The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Plugin help for vb4
Hello
Need some help... i have one plugin on my vb 3.8.4 and that work fine ...(this is for my slideshow) code is: Code:
ob_start(); include('test_test.php'); $jwfpss = ob_get_contents(); ob_end_clean(); but problem is on my test board with vb4 ... can not get this to work can some help me or what i must to do..maybe in plugin code (init_startup)! regards macc |
#2
|
||||
|
||||
This very subject seems to come up every couple of days right now. You need to register ALL variables for use in a template. You can't just throw $jwfpss into a template and expect anything to be passed to it. You may want to go look at one of the other threads about this issue and see what is posted.
|
#3
|
||||
|
||||
Thanks ..can you help me please ... i do not think that is so complicated ... how to find similar threads or same problem?
regards macc |
#4
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?t=228078" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=228078</a>
|
#5
|
||||
|
||||
Thanks for link ...but can not found solution for my problem!
regards macc |
#6
|
||||
|
||||
Try a search on "ob_start" in these forums and you should find other threads about this issue.
The article linked to tells you how to preregister your variable for use in a whatever template you want to use it in. |
#7
|
||||
|
||||
Found something ..and make like this ...
plugin code: Code:
ob_start(); include('test_slide.php'); $jwfpss = ob_get_contents(); ob_end_clean(); vB_Template::preRegister('forumhome', array('jwfpss' => $jwfpss)); Code:
{vb:raw jwfpss} but no results ...works not ..and no error messages ... just slideshow come not up! have you some solutions? regards macc you can visit my site (like guest) and you will see slideshow ... works fine on vb 3.8.4 |
#8
|
|||
|
|||
Which hook is the plugin attached to?
|
#9
|
||||
|
||||
Fixed - Thanks for help!
forumhome = FORUMHOME and it works ... regards macc |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|