View Full Version : Plugins - Where is the area below PALS?
March 12th, 2013, 12:34 AM
Right now if you add a plugin to any of the sidebars, it puts it above categories and search. What position is below the PALS?
An example, I want it to show
Quick Upload (plugin sidebar_top)
Photo of the Week (plugin).
To get POtW below Search, how do I do that?
March 12th, 2013, 08:59 AM
Change the plugins location on any plugin location you create. You can choose between sidebar top middle or bottom ;)
March 12th, 2013, 09:45 AM
Thank you for the reply. However, it does not appear to be working like this.
1. I created the Quick Upload plugin and gave it order 1 and told it sidebar_top. It shows above the categories.
2. I went in and edited Quick uploads an changed it to sidebar_middle. No change.
3. I went in and edited Quick uploads and changed it to sidebar_bottom. No change.
I am attaching a screen shot. I have Layout of the Week in the sidebar_top. I have Quick Upload in sidebar_middle. Both still show up at the top of the sidebar, above categories.
March 12th, 2013, 10:06 AM
Did you actually change the plugin not just the switch box ;) You understand what I mean look at your actual plugin code are you hooking it in the plugin to the top.
Please post for plugins in the mod forums also.
March 12th, 2013, 10:50 AM
I assumed that the plugin location was the hook. I have adjusted the actual code and it is working now. So the "Plugin Location" is not really the factor that decides where the plugin will show up, it just tells you where where it should show up if the actual code is changed.
March 12th, 2013, 11:02 AM
These should help you both one from our FAQ and another from the plugins mod forums itself.
Just like vbulletin you can hook a plugin to a location and you need to render the results to a location. The first tells the script what plugin to get the second is the location in the template to display. Just so happens in ours both are the same but thats fine.
The plugin FAQ goes in detail but in vb it is like this
$template_hook['profile_sidebar_first'] .= $templater->render();
In our application you see the code is like this
$pphook['sidebar_top'] .= "SOME HTML";
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.