The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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)... ...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. |
#2
|
||||
|
||||
Don't get your hopes up but maybe this will work?
Try : title=$avatar[title] |
#3
|
|||
|
|||
try that where?
|
#4
|
||||
|
||||
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]"> |
#5
|
||||
|
||||
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.
|
#6
|
||||
|
||||
And the avatar is also displayed by the following templates, so you would need to make similar changes there, too:
|
#7
|
|||
|
|||
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 |
#8
|
||||
|
||||
<img src="$avatarurl" border="0" title="$avatar[title]">
Try that. |
#9
|
||||
|
||||
You already had us try $avatar[title].
|
#10
|
||||
|
||||
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","")." |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|