vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Styles for Premium Members (https://vborg.vbsupport.ru/showthread.php?t=48953)

amykhar 03-13-2003 01:57 PM

Most hacks can be added on very easily to this by only installing them to work on the premium styles. As I am upgrading right now, if I come across any others that I tweak more to work with the premium styles, I will most definitely post them here.

Amy

corsacrazy 03-13-2003 03:04 PM

thank you :p

corsacrazy 03-14-2003 01:41 PM

would it be possible to alow premium members to have custom avatars and non premium members use the gallery avatars ?

amykhar 03-14-2003 01:52 PM

Yes. In fact, I forgot that I had already done something similar. My regular members must have 200 posts to use custom avatars. Premium members can use them no matter how many posts they have. Back in a few with that addon and thanks for the reminder.

Amy

corsacrazy 03-14-2003 01:58 PM

nice one ! im tryin to make some additions also ! but i cant figure out the variable to select the premium mebers ? is it somthing like

userinfo[premium] ! because i want to add a small icon next to the premium peoples usernames in the whos online bit on forumhome

amykhar 03-14-2003 02:22 PM

OK. I am back.
I wrote two versions of the hack. The first is tested. The second is not.

The first one makes it so that if you set a post limit for custom avatars, premium members are exempt from that limit. On my board, members need 200 posts to use custom avatars but premium members can use them no matter how many posts they have.

The second one makes it so that if you disable custom avatars entirely for your normal members, premium members can still use them. I have not tested the second one and will rely on some brave soul to do so. I will happily fix any bugs.

Amy

amykhar 03-14-2003 02:27 PM

Quote:

Today at 10:58 AM corsacrazy said this in Post #25
nice one ! im tryin to make some additions also ! but i cant figure out the variable to select the premium mebers ? is it somthing like

userinfo[premium] ! because i want to add a small icon next to the premium peoples usernames in the whos online bit on forumhome

It depends on the file you are using. Sometimes it is $bbuserinfo[premium] Sometimes it is $userinfo[premium] . Just check to see what other user variables are in that section of code and it is the same.


To do what you want to do, try this:

In online.php Find:

Code:

} else if (($mod["$key"] or $user['usergroupid'] == 5)and $highlightadmin) {
          $userinfo["$key"]['username'] = "<b>$user[username]</b>";

Add After:

Code:

} else if ($user['premium'])and $highlightadmin) {
          $userinfo["$key"]['username'] = "<img src="Put icon here."><b>$user[username]</b>";

Just put your icon url where I have "Put Icon Here"



Amy

corsacrazy 03-14-2003 07:30 PM

u r a star ! and all this without usergroups thanks ever so much !

corsacrazy 03-14-2003 07:52 PM

cant get icon to work ! i will not put it in onlin.php but i would like it to go in index so it shows up next to the username in forum home whosonline

amykhar 03-16-2003 06:26 PM

OK. This one is easy.

In index.php Find: (twice)
Code:

  eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
Add Above:

Code:

  if ($loggedin['premium'] == 1 and $highlightadmin) {

  $username = "<img src='Icon src here'>&nbsp;" .$username;
}

That should do it. Don't forget to do it in both places in index.php.


All times are GMT. The time now is 12:57 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.01074 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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