vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Advanced Templates: Dynamic Templates Changing according to different conditions (https://vborg.vbsupport.ru/showthread.php?t=43325)

arracing 01-21-2003 03:26 PM

how can i make it so that my top_stats button still shows but will tell a guest he needs to register the same way the forum defaults do when you set permissions to have guests not see certain forums?

I dont want guests to be able to see my forum stats.

Logician 01-21-2003 04:28 PM

Quote:

Originally posted by arracing
how can i make it so that my top_stats button still shows but will tell a guest he needs to register the same way the forum defaults do when you set permissions to have guests not see certain forums?

Which page or script does your "top_stats" page link to? It is not default vb so should be another hack (eg. vb stats)?

arracing 01-21-2003 09:10 PM

the top_stats button links to vbstats.php
Its a hack i got off these forums. my website is www.ar-racing.com

Mike11212 01-21-2003 09:38 PM

I am having trouble with the hack.
I don't want UserGroup 19 not to see a certin html code in the footer template
so I added
-----------
[[($bbuserinfo[usergroupid]==4 OR[usergroupid]==17 OR[usergroupid]==18 OR[usergroupid]==9 OR[usergroupid]==8 OR[usergroupid]==2 OR[usergroupid]==1 OR[usergroupid]==3 OR[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]]

HTML CODE HERE

[[/($bbuserinfo[usergroupid]==4 OR[usergroupid]==17 OR[usergroupid]==18 OR[usergroupid]==9 OR[usergroupid]==8 OR[usergroupid]==2 OR[usergroupid]==1 OR[usergroupid]==3 OR[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]]
---------------------------

But it hides the html code from everyone

Boofo 01-21-2003 09:48 PM

Then why don't you just use this and save some code?

[[($bbuserinfo[usergroupid]!=19)]]

HTML CODE HERE

[[/($bbuserinfo[usergroupid]!=19)]]

and you need to add spaces after the OR in your code. ;)

Boofo 01-21-2003 09:53 PM

This:

[[($bbuserinfo[usergroupid]==4 OR[usergroupid]==17 OR[usergroupid]==18 OR[usergroupid]==9 OR[usergroupid]==8 OR[usergroupid]==2 OR[usergroupid]==1 OR[usergroupid]==3 OR[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]]

HTML CODE HERE

[[/($bbuserinfo[usergroupid]==4 OR[usergroupid]==17 OR[usergroupid]==18 OR[usergroupid]==9 OR[usergroupid]==8 OR[usergroupid]==2 OR[usergroupid]==1 OR[usergroupid]==3 OR[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]]

should be this:

[[($bbuserinfo[usergroupid]==4 OR $bbuserinfo[usergroupid]==17 OR $bbuserinfo[usergroupid]==18 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==8 OR $bbuserinfo[usergroupid]==2 OR $bbuserinfo[usergroupid]==1 OR $bbuserinfo[usergroupid]==3 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]]

HTML CODE HERE

[[/($bbuserinfo[usergroupid]==4 OR $bbuserinfo[usergroupid]==17 OR $bbuserinfo[usergroupid]==18 OR $bbuserinfo[usergroupid]==9 OR $bbuserinfo[usergroupid]==8 OR $bbuserinfo[usergroupid]==2 OR $bbuserinfo[usergroupid]==1 OR $bbuserinfo[usergroupid]==3 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7)]]

Mike11212 01-21-2003 10:12 PM

thank you very very much :)

Boofo 01-21-2003 10:15 PM

You're welcome. Just curious, which code are you using? The first one I posted or the second one?

Mike11212 01-21-2003 10:22 PM

The secound code because because I want to hide an add for 1 user group but have the rest see it.

Mike11212 01-21-2003 10:24 PM

My visitors have said they would be interesting in paying to visit the site. So I said I would offer an ads free version of the site for those who pay. Lets see if they do


All times are GMT. The time now is 05:23 PM.

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.01213 seconds
  • Memory Usage 1,735KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete