The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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
|
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
that's the point, title variable. but i don't have any idea which variable i have2 use ;d
|
#4
|
||||
|
||||
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 |
#5
|
||||
|
||||
Maybe this?
PHP Code:
Ok, I just tested the above code and worked just fine for me |
2 благодарности(ей) от: | ||
LifesGreatestGift, Przemoo |
#6
|
||||
|
||||
it was the 2 . (periods) thanks HMBeaty
|
#7
|
||||
|
||||
Look closer
Inside the 2 quotation marks, there are 2 single quotes as well |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|