vBulletin Modifications

Miscellaneous Hacks - Neat Conditional Templates by Primary and secondary groups

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > Forum Archives > vBulletin 3.0 Template Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Not Supported
[vB ] Miscellaneous Hacks - Neat Conditional Templates by Primary and secondary groups (4)
Released: 01-09-2005, 04:01 PM
Modification Information:
Author: noppid
Last Online: 11-06-2006
Hack Version: 0 Installer Included: 0 Additional queries added to database: 0
New Templates: 0 Template Edits: 0 File Edits: 0
New Files: 0 New Phrases: 0 Installation Time (In Minutes): 0

Decide if template code is going to run for users based on primary usergroup
and secondary groups and only have to edit one template no matter how many
instances of the conditional exist upon changes.

Beneifts are very short conditionals to parse at each template instance of ad
code. Groups can be added or subtracted by editing only one template. Once an
exempt group is found the foreach search for exempt groups is terminated.
There is no hacking involved.

The groups are controlled in the phpinclude_start template in an array. You
add groups to the array or remove them as necessary.

In phpinclude_start add the following code. For example, here the groups 6
and 9 will not see google ads.

You must first be a registered member to view any code.
Use this template code wherever you deem necessary to display your google ads
to everyone except your exempt primary and secondary groups. I used google as
an example, this can be applied to any conditional in any template that is
being displayed based on the user groups.

You must first be a registered member to view any code.
Here are a couple of examples.

Go from this...

You must first be a registered member to view any code.
or this...

You must first be a registered member to view any code.
To this!

You must first be a registered member to view any code.
File with instructions attached.

Cheers!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
secondary groups twoseven General vBulletin Support 0 04-22-2004 03:27 PM


All times are GMT -3. The time now is 06:57 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)