The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Avatar of the last poster on the index [PHPBB3]

View previous topic View next topic Go down

Avatar of the last poster on the index [PHPBB3]

Post by JAN2XONLINE on February 22nd 2013, 9:49 am


JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Re: Avatar of the last poster on the index [PHPBB3]

Post by Sir Chivas™ on February 22nd 2013, 5:05 pm




Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6783
Reputation : 430
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Re: Avatar of the last poster on the index [PHPBB3]

Post by MasterSly on February 22nd 2013, 7:54 pm

CSS Stylesheet
Code:
        /* Avatar hover effect in the last post*/
        .thai_avatar img {
        border: 1px solid #DDD;
        height: 50px;
        margin: 0 5px;
        padding: 1px;
        width: 50px;
        }
        .thai_avatar:hover img {
        cursor: pointer;
        position: absolute;
        width: 150px;
        height: 150px;
        background-color: white;
        }
        /* Avatar hover effect in the last post*/
javascript
Placement:In all the pages
Code:
Code:
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('$(8).9(4(){$(\'.a.g .b\').c(4(e){f m=3.5(\'6\')[0].7.d;$(3).h(\'<2 o="1" p="1\'+e+\'"></2>\');$(\'#1\'+e).l(m+\' #j-k-q i:n(0)\')})});',27,27,'|thai_avatar|span|this|function|getElementsByTagName|strong|firstChild|document|ready|topiclist|lastpost|each|href||var|forums|prepend|img|profile|advanced|load||eq|class|id|right'.split('|'),0,{}))

MasterSly
Forumember

Male Posts : 114
Reputation : 5

http://greekfmsupport.forumgreek.com/

Back to top Go down

Re: Avatar of the last poster on the index [PHPBB3]

Post by JAN2XONLINE on February 23rd 2013, 12:09 am

@Sir Chivas They didn't tell how to do it. Confused

@MasterSly Not working dude. Confused EDIT* It works! I changed the "in all pages" to "in the homepage"! Thank you!

But why is it like this? Confused

Some forums doesn't show the avatar.


EDIT*

When you use the code, the toolbar will disappear too.

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Re: Avatar of the last poster on the index [PHPBB3]

Post by MasterSly on February 23rd 2013, 9:57 am

You must have to make Topic to show avatar

MasterSly
Forumember

Male Posts : 114
Reputation : 5

http://greekfmsupport.forumgreek.com/

Back to top Go down

Re: Avatar of the last poster on the index [PHPBB3]

Post by JAN2XONLINE on February 23rd 2013, 10:13 am



That one has a topic.

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Re: Avatar of the last poster on the index [PHPBB3]

Post by JAN2XONLINE on February 24th 2013, 11:28 am

BUMPPPP

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

Re: Avatar of the last poster on the index [PHPBB3]

Post by levy on February 24th 2013, 11:44 am

Javascript

Code:
$(document).ready(function () {
  $('.topiclist.forums .lastpost').each(function(e) {
      var l = this.getElementsByTagName('strong')[0].firstChild.href;
      $(this).prepend('<span class="lp_avatar" id="lp_avatar'+e+'"></span>');
      $('#lp_avatar'+e).load(l+' #profile-advanced-right img:eq(0)');
    });
});

CSS

Code:
.lp_avatar {
  padding: 2px;
  margin: 0 5px;
  border: 1px solid #105289;
  float: left;
}
.lp_avatar img {
  height: 40px;
  width: 40px;
}

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Re: Avatar of the last poster on the index [PHPBB3]

Post by JAN2XONLINE on February 24th 2013, 11:54 am



I'm still having the same problem. Confused

JAN2XONLINE
Forumember

Male Posts : 943
Reputation : 32
Language : Tagalog, English
Location : Alberta, Canada

http://animeph.4umer.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum