vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Display Enhancements - UKBL ~ Easy Page Redirect (https://vborg.vbsupport.ru/showthread.php?t=202489)

UKBusinessLive 01-25-2009 09:05 AM

Quote:

Originally Posted by Shaliza (Post 1719785)
This is great! I had been looking for something like this because I'm going to have a premium section on my site soon. Installed. =)

And to make it so that only a certain usergroup can see the ads, I'm assuming you'd have to put in something like:

Code:

<if condition="$bbuserinfo['usergroupid'] == 1">
right?

Yes,

what you need to do is to, say for example your using the Easy Menu Tabs to link from then you would edit one of the tabs so that, say, Guests and unregisted members would view it , and have another tab without the redirect, for registered members, The condition you can use is something like this...

This is using the Easy Menu Tabs as an example

Quote:

<ul>
<!-- CSS Tabs -->
<li id="current"><a href="http://www.ukbusinesslive.co.uk/topsite/"><span>Forums Topsite</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/group.php?"><span>Social Groups</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/online.php?"><span>Who's Online</span></a></li>
<li><a href="http://astore.amazon.co.uk/ukbuli-21"><span>UKBL Bookstore</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/usercp.php"><span>Your CP</span></a></li>

<if condition="is_member_of($vbulletin->userinfo, 1)

<li><a href="http://www.ukbusinesslive.co.uk/forum/memberlist.php"><span>Member List</span></a></li>
</if>

<li><a href="http://www.ukbusinesslive.co.uk/"><span>UK Business Live</span></a></li>
Thats it, where userinfo, 1 you can add and change this so that oother usergroups can use it, don't forget to seperate each usergroup with a comma

Code:

<if condition="is_member_of($vbulletin->userinfo, 1,2,3)

luan7749 02-02-2009 01:15 AM

Demo 's dead :(

UKBusinessLive 02-02-2009 05:06 AM

Quote:

Originally Posted by luan7749 (Post 1731478)
Demo 's dead :(

Are you sure??? Click on the link, then click on the arcade tab :D


All times are GMT. The time now is 05:51 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.01095 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)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
  • (3)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