vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Use the stats infos on header (https://vborg.vbsupport.ru/showthread.php?t=304893)

Valerio 11-22-2013 11:56 PM

Use the stats infos on header
 
Hello everyone

I would like to create a welcome header for guests and i would like to highlight the forum stats.

I thought to use the script in the "whats going on" section of the forum

this part in particular:

{vb:rawphrase threads}: {vb:raw forum.threadcount}
{vb:rawphrase posts}: {vb:raw forum.replycount}

unfortunately it work only the rawphrase wich instead the thread count and reply count does not show info at all.

Any help with this mod?

thank you

tbworld 11-23-2013 02:22 AM

Sorry, your post is a bit hard to understand. You will have to show your code, so we can see what your doing. Most likely the variables you are trying to place in a template are not available in that template. In other words you need to register the variables in that template.

Valerio 11-24-2013 01:01 AM

thank you tbworld

I'll try to explain better.

You know there is a notices that invite the guest to register, it is the default guest message.

I would like to modify that pretty much like this:

"This community has {thread Count} Discussions and {UserCount} users registered, Join Us!"

By using the statistics form the "what's going on".

They should be already registered because i'm just duplicating the script on the same page.

Valerio 12-10-2013 02:09 AM

somebody can help me on that?

tbworld 12-10-2013 02:13 AM

Quote:

Originally Posted by Valerio (Post 2467227)
somebody can help me on that?

I have some beta code, I am about to release. A couple of users have asked for something like this. I was under the weather the last couple of days, but I should be able to send you something that will work in the next couple of days. Trust me, well worth the wait.


All times are GMT. The time now is 06:55 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.02268 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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