Avatar Mod

General topics relating to phpBB3 to be posted in here.
User avatar
Ghostface
Forum Member
Forum Member
Posts: 17
Joined: Thu Dec 11, 2008 9:25 pm
Your Forum/Website URL: http://www.Ghostface.co.uk
Location: Nottinghamshire UK
Contact:

Avatar Mod

Postby Ghostface » Mon Dec 06, 2010 11:02 am

Hi, on this site you have the avatar showing for whoever logs in.. how can i get this on my board?? and is it hard to add on??

Thanks
Ghostface

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.


User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am
Your Forum/Website URL: http://phpbbmexico.com

Re: Avatar Mod

Postby cisco007 » Mon Dec 06, 2010 1:20 pm

are you talking about the avatar that shows on the who is online on the index?
Image
Image

User avatar
Ghostface
Forum Member
Forum Member
Posts: 17
Joined: Thu Dec 11, 2008 9:25 pm
Your Forum/Website URL: http://www.Ghostface.co.uk
Location: Nottinghamshire UK
Contact:

Re: Avatar Mod

Postby Ghostface » Mon Dec 06, 2010 5:54 pm

yes, thats the one.

User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am
Your Forum/Website URL: http://phpbbmexico.com

Re: Avatar Mod

Postby cisco007 » Tue Dec 07, 2010 12:59 am

don't know if this is the exact edits that LDM has on here, but these is what i have! Remember that this edits are for a clean file with no mods, if you have any mods around the same area you will have to work around them!
first:
Open index.php
Find:

Code: Select all

'NEWEST_USER'   => sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),


Add after, on a new line:

Code: Select all

'USER_AVATAR'                    => get_user_avatar($user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_avatar_width'], $user->data['user_avatar_height']),



Open styles/prosilver/template/index_body.html
Find:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
   <!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
   <p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
   <!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->


Replace with:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
   <!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
<table><tr><!-- IF S_USER_LOGGED_IN and USER_AVATAR --><td valign="top" style="padding-right:6px;">{USER_AVATAR}</td><!-- ENDIF --><td>
<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
    <!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
   </td></tr></table>
<!-- ENDIF -->
Image
Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.


User avatar
Ghostface
Forum Member
Forum Member
Posts: 17
Joined: Thu Dec 11, 2008 9:25 pm
Your Forum/Website URL: http://www.Ghostface.co.uk
Location: Nottinghamshire UK
Contact:

Re: Avatar Mod

Postby Ghostface » Tue Dec 07, 2010 1:31 am

The only mods i have are the default avatar code working,and a couple of BBCodes for YT and Spoilers... hopefully this should work...

User avatar
Ghostface
Forum Member
Forum Member
Posts: 17
Joined: Thu Dec 11, 2008 9:25 pm
Your Forum/Website URL: http://www.Ghostface.co.uk
Location: Nottinghamshire UK
Contact:

Re: Avatar Mod

Postby Ghostface » Tue Dec 07, 2010 1:55 am

Are these code edits to be done in the skin i have in use? i dont have any templates for prosilver i can see.

User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am
Your Forum/Website URL: http://phpbbmexico.com

Re: Avatar Mod

Postby cisco007 » Tue Dec 07, 2010 1:57 am

yeah, i mean any mods that involved doing edits to the index_body.html!
and yes, to the style you have in use, if you are not using prosilver just look for those edits and it should work!
Image
Image

User avatar
Ghostface
Forum Member
Forum Member
Posts: 17
Joined: Thu Dec 11, 2008 9:25 pm
Your Forum/Website URL: http://www.Ghostface.co.uk
Location: Nottinghamshire UK
Contact:

Re: Avatar Mod

Postby Ghostface » Tue Dec 07, 2010 2:05 am

Ok,ill give it a try...

User avatar
Ghostface
Forum Member
Forum Member
Posts: 17
Joined: Thu Dec 11, 2008 9:25 pm
Your Forum/Website URL: http://www.Ghostface.co.uk
Location: Nottinghamshire UK
Contact:

Re: Avatar Mod

Postby Ghostface » Tue Dec 07, 2010 2:14 am

Brilliant!! Top notch!!! Worked good!! http://www.Ghostface.co.uk/forum

Finally a mod that works! and easy to install,second mod today!

Many thanks Cisco007...i have one question left, where can i get the "Mood Status" thats in use here? and is that easy to install too?? :grin:

User avatar
cisco007
Staff
Staff
Posts: 501
Joined: Tue Oct 07, 2008 3:44 am
Your Forum/Website URL: http://phpbbmexico.com

Re: Avatar Mod

Postby cisco007 » Tue Dec 07, 2010 2:34 am

http://www.phpbb.com/customise/db/mod/p ... od_swings/ that is what you are looking for, don't really know, i installed it a while back but don't remember how hard it was to install!
Image
Image

Disable adblock

This site is supported by ads and donations.
If you see this text you are blocking our ads.
Please consider to support the site.



Return to “PhpBB3 General”



Who is online

Users browsing this forum: Bing [Bot] and 43 guests