Log in

View Full Version : Display addons on custom page.


Zylantex
11-18-2009, 06:47 PM
I have built a custom page for my vB using this guide (https://vborg.vbsupport.ru/showthread.php?t=167036)

I want to use an addon like Latest X Posts on Forumhome (https://vborg.vbsupport.ru/showthread.php?t=185636) and have it display in my custom page. But the $latest variable doesnt insert it into my custom page, I have verified that the $latest command inserts it into any default template.

For some reason CYB - Advanced Forum Statistics (https://vborg.vbsupport.ru/showthread.php?t=201274) shows correctly in my custom page by using $cybtopstats as per the instructions.

My question is what makes the CYB addon display and how can I make my other addons show on my custom page. Any help appreciated.

kh99
11-18-2009, 07:17 PM
I haven't tried it, but just glancing at that mod it looks like maybe the variable you want is called "$platest" and not "$latest"?

Zylantex
11-18-2009, 07:22 PM
I haven't tried it, but just glancing at that mod it looks like maybe the variable you want is called "$platest" and not "$latest"?

Thanks for the response. I actually gave a link to a different version of the mod by accident. I am certain i am using the correct $command for the various mods I'm trying to display because I am testing them in my own custom page and the original FORUMHOME template. For whatever reason they dont display in my custom page, but cyb advanced forum statistics does.

Hope im explaining that correctly.

kh99
11-18-2009, 07:38 PM
OK, I see what you mean. I have another theory: the code that sets $latest is in a plugin using the "forumhome_start" hook, so it isn't running in your custom page, whereas the stats mod uses other hooks.

Zylantex
11-18-2009, 09:00 PM
OK, I see what you mean. I have another theory: the code that sets $latest is in a plugin using the "forumhome_start" hook, so it isn't running in your custom page, whereas the stats mod uses other hooks.

Ah right. I'll take a look into this now, thanks.

Lynne
11-18-2009, 10:36 PM
OK, I see what you mean. I have another theory: the code that sets $latest is in a plugin using the "forumhome_start" hook, so it isn't running in your custom page, whereas the stats mod uses other hooks.
^^ Yep, what he said. The php code that defines the variable is probably not run for your page, so you may have to copy/paste it into your custom page.