![]() |
How do I get thread title in a plugin?
Hi, I want to have access to the thread title in a plugin, how do I proceed?
I am running 3.8.3 Regards. |
For what page? For what template? We need information before we can give an answer.
|
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). |
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']
|
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(); --------------- Added [DATE]1273843421[/DATE] at [TIME]1273843421[/TIME] --------------- :) Code:
echo $threadinfo['title']; Thanks a lot. |
All times are GMT. The time now is 11:51 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:
|