News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

AvatarOnBoard

Started by Bulakbol, February 18, 2008, 10:39:03 PM

Previous topic - Next topic

LiteSpeed

Hi JohnyB another question .. i just want the avatar to display in the board index  and not in the topic index .. v1.1 just displays on the board index. How do i make it display like 1.1 ?

Thanks
MyAltis.com [nofollow] - Malaysia Toyota Corolla Altis Owners Club
website : http://www.myaltis.com/ [nofollow]

Eliana Tamerin

You haven't tried the settings on the admin panel?
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Bulakbol

Quote from: LiteSpeed on March 25, 2008, 09:24:54 AM<br />Hi JohnyB another question .. i just want the avatar to display in the board index  and not in the topic index .. v1.1 just displays on the board index. How do i make it display like 1.1 ?<br /><br />Thanks<br />

Hi LiteSpeed. In default/MessageIndex.template.php, find and comment-out these lines.

if (!$modSettings['disable_avatar'])
echo '
<td width="', $modSettings['board_avatar_width'] ? $modSettings['board_avatar_width'] : '1','" class="windowbg2" align="center">
', $topic['last_post']['member']['avatar'], '
</td>';

Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

ccbtimewiz

Yo JohnyB, I have a question about this modification.

Does it simply resize the avatar using HTML, or does it use PHP/Javascript to resize?

If true for one part, how would I go about changing the method?

Eliana Tamerin

HTML, ccbtimewiz.

If you're looking at a php method to resize via GD or something, I'd highly suggest caching those thumbs. Otherwise you're going to be placing a huge load on your server trying to create dynamic thumbnails every page load.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Bulakbol

Hi ccbtimewiz. Eliana is correct. I don't know about GD and I am slowly learning javascript so I can't help you with your question. Sorry.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

robbie93

hi JohnyB :D

is there any chance that this mod will work with Gothic_Rose?

thanks. :D

Bulakbol

Quote from: robbie93 on March 29, 2008, 09:12:24 PM
hi JohnyB :D

is there any chance that this mod will work with Gothic_Rose?

thanks. :D

Hi Robbie. It should work on most theme if installed (manually) properly. Try to use the package parser and if you have problems after, let me know.

Package Parser
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

robbie93

ok,  i will try the parser Johny

thanks for the reply. :D

Bulakbol

Quote from: robbie93 on March 30, 2008, 03:02:53 AM
ok,  i will try the parser Johny

thanks for the reply. :D

No worries. Post here if you encounter any problem. Let me know if you need assistance. Thanks for trying this mod.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

robbie93

hi,  i just tried running the mod through the parser and it wont take it for some reason :'(

great mod btw :D

Bulakbol

#151
Quote from: robbie93 on March 30, 2008, 03:10:31 AM
hi,  i just tried running the mod through the parser and it wont take it for some reason :'(

great mod btw :D

I think it's because of the additional language tanslation. You can edit the package and remove the other languages if you want, then feed it to the parser.

<edit>
What I can do to help you is... attach your BoardIndex.template.php and MessageIndex.php and I'll edit them for you.
</edit>
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

robbie93

hi,  there is no boardindex.template for gothic_rose

there is a messageindex.php though,  what should i do?

Eliana Tamerin

If there is no boardindex.template.php file, then the mod should work perfectly for your main index page. You'll have to manually edit the MessageIndex.template.php file, though.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

robbie93

thanks for the reply Eliana,  do i download the messageindex.template.php from my cpanel then

attach it here?

Eliana Tamerin

Yes, attach it here and JohnyB will be able to edit it for you.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

robbie93

thank's again Eliana.

here you go JohnyB i hope i have done it right :D

Bulakbol

#157
Quote from: robbie93 on March 30, 2008, 05:09:42 PM
thank's again Eliana.

here you go JohnyB i hope i have done it right :D

Hi Robbie. I will be back and I'll make sure it done right. lol

<Edit>
I'm back. Here;s your MessageIndex.template.php. Try it and make sure it's working. Post here if there's any error. Thanks for using this mod.
</Edit>
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

robbie93

#158
hi, JohnyB

it works :D :D :D

thank you so much for all of you're help and for such a great mod, you're the best man ;D

thanks again :D

i really really love this mod thank you  :D

Bulakbol

You are welcome Robbie. if there's any problem, just post here and I'll try my best to help.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: