vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Display addons on custom page. (https://vborg.vbsupport.ru/showthread.php?t=228325)

Zylantex 11-18-2009 06:47 PM

Display addons on custom page.
 
I have built a custom page for my vB using this guide

I want to use an addon like Latest X Posts on Forumhome 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 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

Quote:

Originally Posted by kh99 (Post 1916792)
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

Quote:

Originally Posted by kh99 (Post 1916816)
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

Quote:

Originally Posted by kh99 (Post 1916816)
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.


All times are GMT. The time now is 08:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01054 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete