![]() |
How to add thread title into IMG ALT Tag
Hi,
I am using vBulletin 3.7.x and want to add an img alt tag to all my images. At the moment the postbit_attachmentimage shows alt="" I want to add the thread title and the filename of the image. So I change the postbit_attachmentimage to: alt="$attachment[filename]" This works. But I was not able to add the thread title to the ALT Tag. I tried $thread_title, but this does not work. Is someone able to help please ? I want to optimize my images for google images and an alt="" is not very good for google :-) Many thanks and best regards Andy |
*push*
|
Look up the function process_attachment. That is where the template gets rendered. You can see that there is no thread information passed to the function. $post is passed, so you may be able to go backwards to where that function is first called and slip the thread title into a post variable so it gets passed.
|
Hi Lynne,
thanks for your posting. I am not familiar with php coding. Do you have a clue how to include this the thread title into the template ? Many thanks in advance for your help. |
I told you what I know. You will have to do some coding in order to get this to work for you. The information is not currently available for you to use.
|
All times are GMT. The time now is 01:09 AM. |
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:
|