The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm riddling about this a longer time:
How do i call up my own postbit? I don't want to use the normal postbit any longer for my gallery-hack, but i couldn't get it, to call up my own postbit. Could anyone be so nice and explain me? Thanks, Harald |
#2
|
|||
|
|||
![]()
Try the following in a plugin...
Code:
hook: postbit_display_complete $postid =& $post['postid']; eval('$retval = "' . fetch_template('your_template_name') . '";'); return $retval; |
#3
|
|||
|
|||
![]()
Tried, but made no visible effect.
|
#4
|
|||
|
|||
![]()
postbit_factory
PHP Code:
PHP Code:
|
#5
|
|||
|
|||
![]()
Thanks, this worked great!
|
#6
|
|||
|
|||
![]()
Okay, I have made a few of my own postbit templates and used the postbit_display_complete hook to display them correctly.
However, when I Quick Edit the post, and click Save, it changes the postbit from my new postbit to the forum default. Where does this change take place? I have checked showthread.php, ajax.php, includes/functions_editor.php, includes/class_postbit.php, includes/class_xml.php, includes/class_ajax_output.php all to no avail. EDIT: Need to use hook postbit_display_complete to set $templatename when THIS_SCRIPT == 'editpost' as well. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|