The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi, I want to have access to the thread title in a plugin, how do I proceed?
I am running 3.8.3 Regards. |
#2
|
||||
|
||||
![]()
For what page? For what template? We need information before we can give an answer.
|
#3
|
|||
|
|||
![]() Quote:
I am not too happy with the inbuilt Related Threads feature.. so I am building my custom one. My requirement is: To show related threads on Showthread template just above the footer. In the plugin code I need Title of the current thread, so that it could match the other threads' titles in the database using my custom mysql query (in the plugin). |
#4
|
||||
|
||||
![]()
Well, you haven't mentioned with hook location you are going to use, but I would imagine the variable for the thread title would be something like $thread['title'] or $threadinfo['title']
|
#5
|
|||
|
|||
![]() Quote:
The plugin is just a workaround because vBulletin doesn't let add php to templates. My problem can be solved if you could just tell me how to print thread title using php. Something like: Code:
ob_start(); [echo thread title] $includedphp = ob_get_contents(); ob_end_clean(); --------------- Added [DATE]1273843421[/DATE] at [TIME]1273843421[/TIME] --------------- ![]() Code:
echo $threadinfo['title']; Thanks a lot. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|