PDA

View Full Version : Integrating external variable with vbulletin userinfo


lalbahadur
09-23-2009, 07:24 AM
hello,

i want to display number of attachments downloaded by a user on the top of their screen.

i managed to get the count using the count (*) query but the thing is that how do I get the result display on the header ? please help me.

I want something like $user[count] to make it display.

thanks

Lynne
09-23-2009, 02:26 PM
You need to get the count using a plugin that is location right before the template is evaled. So, if you are talking about in the header, you need to put the code in a location *before* the header is evaled. So, probably in one of the global_* locations. Take a look in the code to see.

lalbahadur
09-23-2009, 04:15 PM
Thank you very much ! I added the hook to global_start and its working pefrectly !