![]() |
Call Thread Author in SHOWTHREAD template
How can I call the user thread author into the SHOWTHREAD template?
For call the thread title I've used $thread[title], and it works. But if I use $thread[musername], it doesn't show anything. Can you help me, please? |
try using $thread[postusername]
|
Thanks, it works!
I need also to put the selected thread icon into the SHOWTHREAD template. Can you help me? :) |
Tricky, make me a favor and look into showthread.php file to understand why $thread['postusername'] works. You will get your answer instantly for any thread table field, if you look into the file.
Hint: Search for postusername Thanks and let me welcome you to the community. :) |
Thanks. But there I find all the fields I can use. And if I want use a field that isn't listed in the showthread.php file code?
For example, I need to call the current thread rating, with the images, in my SHOWTHREAD template. I have tried to search into the showthread.php file code, but I've found only this: $show[threadrating].. and it show just a number: "1". I don't know why. |
Open /install/mysql-schema.php (line 1679), all thread fields are listed there.
To see what is the actual result, insert into showthread_post_start hook a var_dump(), so you see what it will be spit as data. Example: var_dump($thread['iconid']); This will return the icon id you are using. Then, all you have to do is instert into your template the html related code to display the image. |
All times are GMT. The time now is 02:17 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:
|