vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [request] Starhack / different usergroups (https://vborg.vbsupport.ru/showthread.php?t=22110)

Sneakz 07-06-2001 01:29 PM

Hello,

I just wanna know, if someone could help me out with a small problem i have..
I recently used a starhack "hack" from this board.. and implemented it into a vbb.
But now is my next question: is it spoosible to create a starhack for a individual usergroup.

like:
Quote:


// --- Begin starhack

$stars = "";


if ($post[usergroupid]==6 or $post[usergroupid]==7 ) // administrator or supermoderator
{
$starsgif_1 = '<img src="images/stars/ani1.gif">';
$starsgif_2 = '<img src="images/stars/ani1.gif">';
$starsgif_3 = '<img src="images/stars/ani2.gif">';
$starsgif_4 = '<img src="images/stars/ani2.gif">';
$starsgif_5 = '<img src="images/stars/ani3.gif">';
$starsgif_6 = '<img src="images/stars/ani3.gif">';
$starsgif_7 = '<img src="images/stars/ani4.gif">';
$starsgif_8 = '<img src="images/stars/ani4.gif">';
$starsgif_9 = '<img src="images/stars/ani5.gif">';
$starsgif_10 = '<img src="images/stars/ani5.gif">';
}
if ($post[usergroupid]==5 // moderators
{
$starsgif_1 = '<img src="images/stars/bluestar.gif">';
$starsgif_2 = '<img src="images/stars/cyanstar.gif">';
$starsgif_3 = '<img src="images/stars/greenstar.gif">';
$starsgif_4 = '<img src="images/stars/redstar.gif">';
$starsgif_5 = '<img src="images/stars/yellowstar.gif">';
$starsgif_6 = '<img src="images/stars/yellowstar.gif">';
$starsgif_7 = '<img src="images/stars/redstar.gif">';
$starsgif_8 = '<img src="images/stars/greenstar.gif">';
$starsgif_9 = '<img src="images/stars/cyanstar.gif">';
$starsgif_10 = '<img src="images/stars/bluestar.gif">';
}
else // normal members
{
$starsgif_1 = '<img src="images/stars/redstar.gif">';
$starsgif_2 = '<img src="images/stars/bluestar.gif">';
$starsgif_3 = '<img src="images/stars/redstar.gif">';
$starsgif_4 = '<img src="images/stars/bluestar.gif">';
$starsgif_5 = '<img src="images/stars/redstar.gif">';

}

if ($post[usergroupid]==6 or $post[usergroupid]==7 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $starsgif_5 . $starsgif_6 . $starsgif_7 . $starsgif_8 . $starsgif_9 . $starsgif_10; }

if ($post[usergroupid]==5 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $starsgif_5 . $starsgif_6 . $starsgif_7 . $starsgif_8 . $starsgif_9 . $starsgif_10; }


elseif ($post[posts] > 100 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4. $starsgif_5; }
elseif ($post[posts] > 75 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4; }
elseif ($post[posts] > 50 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3; }
elseif ($post[posts] > 25 )
{ $stars .= $starsgif_1 . $starsgif_2; }
else // ($post[posts] > 0)
{ $stars .= $starsgif_1; }


// --- End starhack
----------------------

Just wondering if above is going to work with that what i want , so a starhack per usergroup.
Please let me know what i should do, improve code, or simply change it ? :D

Any answers are welcome,
Thanks in advance

:p ;)

BradC 07-06-2001 01:35 PM

I would say try it out.. and see if it will..

trial and error..

if you get parse errors figure out what might be wrong.. on what line :)

and go from there.

Sneakz 07-06-2001 04:23 PM

Doesn't work out this here..
Someone need to help now, coz i really dunno what to do more

I get a parse error, and changed it from which line the error occured, but still it doesn't load how i want it..

Please someone help me with this :D:p

Sneakz 07-07-2001 01:51 PM

I already used tubedoggs script :D
Thanks


All times are GMT. The time now is 03:03 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.00968 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete