The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
I am trying to insert a faux post between the first and second post of a thread.
I can't quite get if figured out. I have a template modeled after the postbit template called postbit_faux. Code:
<li class="postbitlegacy postbitim postcontainer" id="post_faux"> <div class="posthead"> <span class="faux-header">Community FAQ</span> </div> <div class="postbody"> <div class="postrow"> <div id="post_message_faux"> {vb:raw fauxmessage} </div> </div> </div> <div class="faux-postfoot"> <a href="faux.php?{vb:raw session.sessionurl}t={vb:raw threadid}"><img src="{vb:stylevar imgdir_button}/edit.gif" alt="{vb:rawphrase edit_delete_lock_faux}" border="0" /></a> </div> <hr /> </li> Code:
Hook location: cache_templates // for a single template if ($THIS_SCRIPT == 'showthread') { $cache[] = 'postbit_faux'; } Code:
Hook location: showthread_postbit_create // posbit $templater = vB_Template::create('postbit_faux'); $templater->register('fauxmessage',$thread['fauxmessage']; $templatevalues['fauxmessage'] = $templater->render(); vB_Template::preRegister('SHOWTHREAD', $templatevalues); I have been following this thread (https://vborg.vbsupport.ru/showthrea...ht=preregister) but no love. I looked at this thread (https://vborg.vbsupport.ru/showthread.php?t=279650) and though the may be the ticket but I did not want to modify the postbit template. Can I use a hook to accomplish what is in the above thread? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|