![]() |
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. |
For the sidebar, do you enter the contents into a template or is it some other custom box?
|
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? |
If it is a scope issue maybe try: $GLOBALS[blogPrint]
|
All times are GMT. The time now is 11:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|