vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Please Help Me (https://vborg.vbsupport.ru/showthread.php?t=7608)

AMG 02-01-2001 07:39 PM

OK...

The last time I asked this question I may have made it unclear.

So here goes,

I have the Star hack installed.

This is how it goes.

There are 10 Ranks, 1 star each for every level

1 = 1 star
2 = 2 star
3 = 3 star

etc...

Mod = 11 stars
Admin = 12
Webmaster = 12

I have created a new group webmaster where every ability is included.. due to past events now only I have access to the control panel.

However, this is my dilema... Instead of the user status saying "Moderator" i wanted it to say "Anime Master" it would go with my board much better however, once this is changed.. instead of 11 stars, it only adds the amount of stars for the rank that person would be at

Example:

MOD = Anime Master
315 Post 300 posts = 3 stars
XXX

They are a MOD & have MOD powers but only have the amount of stars for their amount of posts.

How would I edit the file so that it would recognize them, Adminz & the Webmaster status asnd show the correct amount of stars?

02-01-2001 08:14 PM

What you should do is just set it to use a custom title and since HTML is enabled automatically in custom titles you can just insert something like...

Code:

Anime Master<br><img src="/images/5stars.gif">

02-02-2001 01:55 AM

Code:

elseif ($userinfo[usertitle]=="Moderator") {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0><img src=\"images/star8.gif\" border=0><img src=\"images/star9.gif\" border=0><img src=\"images/star10.gif\" border=0><img src=\"images/star11.gif\" border=0>";
}

This is the code that is inserted in for the Moderator status. What would I have to do to it to make it recognize Anime Master?

02-02-2001 03:29 AM

all i did was include it in the usertitle. i did that for personal pics as well cause i couldn't get the avatar to work properly..

Code:


<img src="www.starimage.com/pic.gif">Anime Master<br><br><img src="www.icon.com/pic.gif">

this will put stars above the title and a personal icon under the title..

rather simple trick only problem is that u'r members won't be able to do it themselves..

hope this helped.

02-02-2001 12:59 PM

Trying to determine a user's level by their title is not a very good way of doing it. Nor do I think embedding HTML code in the custom user titles is. These both work of course but are quick fixes and not flexible. Not only that everytime a Moderator is created or one leaves, there is a lot of maintenance to be done.

However if you program the code correctly, you only have to do things once and the program will adapt to the environment it is in including creating and deleting moderators.

Look at this thread for a better way of determining who is a moderator or admin and let the program do the work.

http://vbulletin.com/forum/showthrea...ighlight=stars

02-02-2001 08:11 PM

Quote:

Originally posted by wluke
Trying to determine a user's level by their title is not a very good way of doing it. Nor do I think embedding HTML code in the custom user titles is. These both work of course but are quick fixes and not flexible. Not only that everytime a Moderator is created or one leaves, there is a lot of maintenance to be done.

Have to Agree with Wayne

02-02-2001 08:17 PM

When 2.0 is released I will give out my updated stars hack (you do notice that I have stars on my forum running 2.0 right?).

02-02-2001 10:46 PM

wluke, me & you have never been on the same level.

OK lets start over.

Suppose PHP programming were like drving a car.

I would be 16months old binding me ineligeble to drive
However you would be 25... not only old enough but several years of experience ok..

In other words!

I DO NOT HAVE THE SLIGHTEST CLUE ABOUT PHP SCRIPTING!

So I will always have to revert back to the easiest option. HTML it is.

02-02-2001 11:18 PM

Dude if your forum doesn't have like 10 + mods then you can just do what I said, I do that on mine and everythings great.

02-03-2001 09:18 PM

I tried this and it didn't work!

elseif ($userinfo[usertitle]=="Moderator") {
$usertitle="$userinfo Anime Master<br><img src=\"images/star1.gif\" border=0>
}


All times are GMT. The time now is 02:43 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.01253 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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