Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Addon] Usergroup Based Profile Conditionals (eBux Usage) Details »»
[Addon] Usergroup Based Profile Conditionals (eBux Usage)
Version: 1.00, by Stangsta Stangsta is offline
Developer Last Online: Feb 2017 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-01-2006 Last Update: Never Installs: 13
Template Edits
 
No support by the author.

Usergroup(s) Based Profile Conditionals (eBux Usage)

What it does: Simply put, this is an addon for the Myspace Profile Re-Write PRO! 1.0.0 template Mod. This will allow you to have a conditional or per usergroup(s) to "turn on and off" hacks in the profile. The Primary use for this hack, is to be able for users to purchase a "secondary usergroup" in eBux to gain access to various parts of the profile.

I STRONGLY RECCOMEND that you make ALL modifications to a "test style" first. If you do not have one, create one. This way, when you mess up, your users will not be affected.

Now, this is where the fun begins.

Installation: First start by looking at your already modified MEMBERINFO template. Haven't modified it yet? Go here - https://vborg.vbsupport.ru/showthread.php?t=109094

Once you have made all the modifications and are happy with your profile, decide what "features" you want to turn on and off. Then create a usergroup for one or more of those features. Some examples are: "Can display media(video)", "Can display friends and/or buddies", "can use comments", etc. You can also use this for ANY profile field. It's up to YOUR needs and imagination.

Now, use this code to wrap around the feature you want to associate with a usergroup. Be sure to change the "XX" to the usergroup number you wish to give access to.

This goes on the top of the "block" of code you are working with
Code:
 <if condition="$bbuserinfo[usergroupid] == XX">
This goes on the bottom of the code
Code:
<else /></if>
So, what it should look like (this is to turn the buddylist on/off in the profile)
Code:
<if condition="$bbuserinfo[usergroupid] == XX">
<br />$FNB_HTML<br /><else /></if>



Now, lets say you would rather do this for multiple usergroups Use this instead
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)">
<br />$FNB_HTML<br /><else /></if>
Just change the x,y,z to whatever usergroup numbers you wish.

This is the building blocks. Its a fairly simple hack, just a little time consuming (maybe 10-30 minutes to install tops) I will do my best to support this thread

Here's 1 more example for the video portion:
Code:
 <if condition="is_member_of($bbuserinfo, X, Y, Z)">
<tr class="alt2"> 
		 <td align="left" valign="top"> <div align="center"><EMBED SRC="$userinfo[field10]"></div></td> 
		</tr> 
<else /></if>
I didn't put screenshots because I don't think they are necessary, but If you must have them, ask and ill get some up tomorrow night.



BE SURE TO CLICK INSTALL!!!!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-02-2006, 12:51 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a feeling that this is almost what I have been looking for. Great work! Thanks.
Reply With Quote
  #3  
Old 03-02-2006, 01:10 PM
caliman's Avatar
caliman caliman is offline
 
Join Date: Jan 2005
Location: California
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You rock!! I know what I am doing this weekend.
Reply With Quote
  #4  
Old 03-02-2006, 03:02 PM
dirtycrow dirtycrow is offline
 
Join Date: Apr 2004
Posts: 350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i create a test style? thanks.
Reply With Quote
  #5  
Old 03-02-2006, 04:46 PM
Stangsta's Avatar
Stangsta Stangsta is offline
 
Join Date: Aug 2004
Location: Virginia
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FleaBag
I have a feeling that this is almost what I have been looking for. Great work! Thanks.
Looks like it to me

Quote:
Originally Posted by dirtycrow
how do i create a test style? thanks.
In your acmincp > styles and templates > style manager > at the bottom, click add new style.

Alteratively, you can make a child style which will mimic one of your other styles that you choose. Theres a link in the dropdown, "Add child style".
Reply With Quote
  #6  
Old 03-16-2006, 05:51 PM
tmcyouth tmcyouth is offline
 
Join Date: Jan 2006
Location: Boston, MA
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Technically, can I use this code without the entire MySpace Re-Write Pro mod? I'm planning on installing that, but using this in the meantime would be great.
Reply With Quote
  #7  
Old 03-16-2006, 06:44 PM
Stangsta's Avatar
Stangsta Stangsta is offline
 
Join Date: Aug 2004
Location: Virginia
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tmcyouth
Technically, can I use this code without the entire MySpace Re-Write Pro mod? I'm planning on installing that, but using this in the meantime would be great.
Yes, you can use it for other things too.
Reply With Quote
  #8  
Old 03-24-2006, 01:07 AM
yayvb's Avatar
yayvb yayvb is offline
 
Join Date: Feb 2005
Location: CT
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not to hijack this thread but...
Rather than hard code which usergroup can use this, how would I
set conditionals for if they have a certain usergroup permission.

I had a coder add 4 custom usergroup options, lets say for instance the first one is called: can_user_enlarge_thumbs

The admincp|usergroups|usergroup manager seems to update the correct entries in the databse, but now how can I limit only people with the usergroup setting: can_user_enlarge_thumbs set to YES?

Thanks in advance. I can't seem to find any examples but I know that's what usergroup codings must do
Reply With Quote
  #9  
Old 04-14-2006, 03:12 AM
cmbehan cmbehan is offline
 
Join Date: Mar 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could this be used in conjunction with this hack: https://vborg.vbsupport.ru/showthrea...=91407&page=5?

I'd like to be able to offer the postbit switching hack only to specific usergroups....
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 07:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06873 seconds
  • Memory Usage 2,286KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete