vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   adding a variable in forum home template (https://vborg.vbsupport.ru/showthread.php?t=228182)

Jeweetog 11-17-2009 09:31 AM

adding a variable in forum home template
 
Hi,

How do i add a variable in form home template?

Im trying to do this:

Display stats on the forumhome yes/no

Display chatbox stats on the forumhome.
Don't forget to add the $mgc_cb_evo_stats variable in the FORUMHOME template where you want to display them otherwise they won't appear.
Warning : Add 4 sql queries on the forumhome.
For the users of a vBulletin version prior to 3.7.2, you will have to manually add the $mgc_cb_evo_stats var in the FORUMHOME template where you want the stats to appear.


How do i get this done guys?

Thanks in advance!

cellarius 11-17-2009 09:45 AM

If that mod has not yet been updated for vB4 by the author, there's no way to do that.

Jeweetog 11-17-2009 11:37 AM

Why does it need to be updated to vb4? It's compatible for vb3, not 4 yet.

It doesn't have to be very 'user friendly' for me to get this done. I can program, just not that experienced in php.

cellarius 11-17-2009 12:48 PM

You are posting this question in the vB4 subforum, so I gather you want to do this in vB4. If the mod's php code is not altered to adapt to vB4, there is no way of showing the variable in the template at this time. In vB4, variables need to be registered to be available in templates.

See this article on what is needed:
https://vborg.vbsupport.ru/showthread.php?p=1915830

Jeweetog 11-17-2009 02:38 PM

My bad sorry! I just noticed the 4 behind the 'vb'!

Paul M 11-17-2009 02:50 PM

Moved to VB3 forum as that seems to be the version in question.

However, if you have a question about a modification, then you need to post it in the mods thread.


All times are GMT. The time now is 09:48 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.01879 seconds
  • Memory Usage 1,716KB
  • 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
  • (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