PDA

View Full Version : Adding a block on the main page right column


CoolHandLuc
12-16-2009, 01:54 AM
I need to add a block of information that I need to query prior from the database.

I made add-on stand alone but never add to include a box on the right.

Where do I put the PHP code to query the database and fill in the variable?

In which template do I put the HTML code with the var so it show on the right column of the main forum page?

How do the main page know how to execute the PHP code?

For the rest I already have the PHP logic written and want to pass one variable that will be the whole box content. It's just how to place things in VB that I am not familiar. I already coded a add-on so I know how to get the data.

If a article exist, please point me to it. I just could not find this.

Lynne
12-16-2009, 03:08 AM
The best thing to do is find a mod that does something similar and see how they did it. You probably want to use a plugin and the best way to pick a location is to see what plugins are available on that page. You can do that by going into debug mode *on your test site* and then on the bottom of the page it will tell you want hook locations are available for that page.