![]() |
Because I don't want there to be any confusion about what I'm looking for, and because I don't want to step on anyone's toes, I posting this in a new thread. I'm thinking it's a hack only because it doesn't work in VB "out of the box", but I've posted it over on vbulletin.com in the "how do I" area as well.
- - - - - I am using avatars on my board, avatars provided by me, no custom avatars allowed. Each avatar has a title/name, just like post-icons do. Post icons show the alt= tag as the title/name. (example below)... http://www.fishy.com/test/images/posticon.gif ...Avatars don't have this. How can I get it so that an avatar uses it's given title/name as it's alt= tag, just like post icons do? In the postbit template I tried "alt=$avatar[title]" but that didn't work. Is there something I have to change in a .php file so it does work, the same way it does by default on Avatars Info Page? Any help would be greatly appreciated. |
Don't get your hopes up but maybe this will work?
Try : title=$avatar[title] |
try that where?
|
The postbit_avatar template. The default template is this:
Code:
<img src="$avatarurl" border="0" alt=""> Code:
<img src="$avatarurl" border="0" alt="title=$avatar[title]"> |
BTW, that doesn't work. It only shows title= as the alt bit. But whatever the code is to display it, you want to stick it where I just showed you.
|
And the avatar is also displayed by the following templates, so you would need to make similar changes there, too:
|
And I said in my first post, "alt=$avatar[title]" doesn't work. I had tried that before even posting (in postbit template).
It DOES work in the modifyoptions template. From what I can tell, the members profile stores the avatar id (avatarid), and in a post is told to display that id based on $avatarurl -- I do not how to get the $avatar[title] to relate to this information so that it will show up in the member's post and profile. Any ideas coding gurus? Thanks |
<img src="$avatarurl" border="0" title="$avatar[title]">
Try that. |
You already had us try $avatar[title].
|
In showthread.php find this:
Code:
".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")." Code:
".iif($avatarenabled,",avatar.avatarpath,avatar.title AS avatartitle,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")." |
All times are GMT. The time now is 11:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|