View Single Post
  #93  
Old 06-06-2004, 08:45 AM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure if this is helpful to anyone else but I've added an additional user title to the who's chatting list for my paid subscribers. The sigmachat hack basically lists users as guest, user, moderator, or admin depending on the user group they are in but I've also added Sponsor member as well to recognize those that have upgraded their memberships but you could use it for any usergroup you wish to list providing it's set as a primary group.

In chat_global.php find (may differ slightly depending on your usergroup settings);

Code:
      # Specify the Primary User Groups that have both administrative access and grant access (the
      # ability to grant temporary administrative privileges to non-admins within the
      # chat room) in the chat room. 
      $SIGMACHAT_AUTH_GRANTACCESS   = array(6);
After add (change usergroup id to the one you want to list and remove it from it's previous array);

Code:
      # Specify the Primary User Group For Sponsor Members with standard access
      $SIGMACHAT_AUTH_SPONSORACCESS   = array(14);

In chat_auth.php find;

Code:
	   if(in_array($userinfo[usergroupid], $SIGMACHAT_AUTH_ACCESS)) die("1");
After add (for basic chat access);

Code:
 	   if(in_array($userinfo[usergroupid], $SIGMACHAT_AUTH_SPONSORACCESS)) die("1");
In chat_online.php find;

Code:
            if(in_array($bbuserinfo[usergroupid], $SIGMACHAT_AUTH_GRANTACCESS)) 
               $SIGMACHAT_RANK = $vbphrase[sigmachat_rank_2];
And after add;

Code:
            if(in_array($bbuserinfo[usergroupid], $SIGMACHAT_AUTH_SPONSORACCESS)) 
               $SIGMACHAT_RANK = $vbphrase[sigmachat_rank_3];
Save and upload. Next go to Admin > Phrases > Phrase manager > Add new phrase and add the following phrase;

Type: Global
Varname: sigmachat_rank_3
Text: Sponsor Member (change this to suit your usergroup)

That's it. Now when people use my Who's Chatting link it displays guests, members, sponsor members, moderators, & admin. It's a small thing but if like me you are trying to sell memberships it always helps to highlight those that have paid but you could use it for any selected group you wish.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01220 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete