The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom plugin help request
Greetings,
I have read quite a bit on hooks in the article section so I decided to give it a go. I created a plugin which hooks to the global_start. It queries the blogs and picks the last 10 entries from it. It then stores it in a variable which I can use. Everything works fine if I put the variable to be 'echo'ed in the footer lets say. However when I put the variable in the sidebar (I am using the Ultimate sidebars product) it just doesn't display. Any ideas as to how I can make a variable that clearly has data work inside another plugin? Pointers are more than appreciated. |
#2
|
|||
|
|||
For the sidebar, do you enter the contents into a template or is it some other custom box?
|
#3
|
|||
|
|||
The sidebar is
https://vborg.vbsupport.ru/showthread.php?t=175181 This incorporates a few templates that create the boxes on the sidebar. When the plugin runs the $blogPrint variable is populated. I know this because if I echo it in the footer it works. When I put it in the template of the sidebar it doesn't. I am guessing it is a scope issue. Is there a way to inject that variable in the particular template? Does that make sense? |
#4
|
|||
|
|||
If it is a scope issue maybe try: $GLOBALS[blogPrint]
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|