![]() |
Variables for thread title
Hello, regarding to this thread - https://www.vbulletin.com/forum/show...-alt-attribute i need to know what variable is use in .php files for thread title ? i've tried "$thread[title]" but not working . thanks in advance
|
AdminCP>Plugins & Products>Add new plugin>
Product: vBulletin Hook Location: postbit_display_complete Title: add alt="" tags to images PHP Plugin Code: Code:
$this->post['message'] = str_replace('<img', '<img alt="your alt tags here"', $this->post['message']); You will just need to figure out how to echo the title variable in there somehow. |
that's the point, title variable. but i don't have any idea which variable i have2 use ;d
|
have you tried $post['title'] seeing as this is a posbit edit? or {vb:raw post.title}
not really sure how to include those into your custom PHP |
Maybe this?
PHP Code:
Ok, I just tested the above code and worked just fine for me :) |
it was the 2 . (periods) thanks HMBeaty :)
|
Quote:
Inside the 2 quotation marks, there are 2 single quotes as well :) |
thank you, working perfectly :)
|
All times are GMT. The time now is 12: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:
|