vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Simple question. (https://vborg.vbsupport.ru/showthread.php?t=67874)

rinkrat 08-01-2004 04:40 PM

Simple question.
 
I want to limit popup ads to just guests. What do I put before and after the popup code so that it will only show to a certain usergroup like guest or maybe even banned? Thanks in advance, this will help me.

Steve Machol 08-01-2004 07:06 PM

Quote:

Originally Posted by rinkrat
I want to limit popup ads to just guests. What do I put before and after the popup code so that it will only show to a certain usergroup like guest or maybe even banned? Thanks in advance, this will help me.

You can use template conditionals to do this:

http://www.vbulletin.com/docs/html/m...e_conditionals

rinkrat 08-02-2004 05:30 AM

Aaahhh!


Thank you :)

rinkrat 08-08-2004 04:11 AM

OK it seems to work great when I use
Code:

<if condition="$bbuserinfo['userid'] == 0">
    <p>Welcome to the forum!<br />
    If this is your first visit, we hope you enjoy your stay!</p>
</if>


But if I change the usergroup to 8 or 16 then it doesn't work for those groups. Is there a switch somewhere that enables it?

Modin 08-08-2004 01:06 PM

to use usergroup you'd have to have something like this

Code:

<if condition="$bbuserinfo['usergroupid'] == 8">
    <p>Hey usergroup 8</p>
</if>


rinkrat 08-08-2004 01:56 PM

THAT's what I was looking for!! Thanks you so much!

rinkrat 10-18-2004 01:46 PM

Can I do it for only a certain IP address so that if the person is a guest I can still single them out?

rinkrat 10-21-2004 03:13 PM

if IPadress=111.11.111.11 then

That kind of thing.

Modin 10-26-2004 01:03 AM

hmm... not sure if it'll parse $_SERVER in a template, but hey it's worth a try

HTML Code:

<if condition="$_SERVER['REMOTE_ADDR'] == '156.156.156.165'">
    <p>Hey usergroup 156.156.156.165</p>
</if>

Try that :)

rinkrat 10-26-2004 02:29 AM

I will, thanks :)


All times are GMT. The time now is 01:04 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.01979 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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