The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Please help me call this template!
I'd like to display $similarthreads in POSTBIT.
I've been working on this for days but I can't seem to make it happen. If you help me, I'll pay you through Paypal. Please PM me. |
#2
|
|||
|
|||
err .. why do you need to show $similarthreads in POSTBIT? if on one page there are 10 postbits, all of them will be showing the same list of threads over and over, you want that?
|
#3
|
|||
|
|||
I want $similarthreads in postbit so I can display similar threads after the first post.
Then I'll make them display just once. |
#4
|
|||
|
|||
Looking at showthread.php for vb 3.7.4, seems like there's no hook for putting stuff after first posts of showthread pages. Plus the codes that generate the simir threads listing are located way after (in term of execution flow) the codes that generate the postbits. The only choice is to totally modify your showthread.php by moving the codes that generate similar threads listing to before codes that generate the postbits. Easier said than done: you will have to be proficient in PHP and vBulletin architecture to understand the execution flow to make sure you don't mess up the file.
|
#5
|
||||
|
||||
what about using global_start?
|
#6
|
|||
|
|||
Thanks for your replies guys
I've made a plugin out of this code from showthread.php PHP Code:
Tried all 3 with no results. Same thing with the templates PHP Code:
This is how I tried to call the templates from POSTBIT $similarthreads $similarthreadbit but nothing happens. What am I doing wrong? |
#7
|
|||
|
|||
is it at least possible to make?
|
#8
|
||||
|
||||
Yes it's possible since you can see they do it here in the Modification forums.
You should be using the cache_templates hook for your templates. I would have tried to use a hook location at the beginning of showthread and then spit it out after the first postbit. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|