Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 02-15-2001, 05:53 PM
Guest
 
Posts: n/a
Default

Stars hack should be standard in vB 2.0 my users LOVE it on our UBB. But It shouldnt go, every 50. More like,
  • 50
  • 100
  • 250
  • 500
  • 750
  • 1000
Or somthing like that?
Reply With Quote
  #22  
Old 02-17-2001, 03:23 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by freddie
If you want to give different stars to regular moderators than you will have to insert the ismoderator() function which is going to increase the queries on showthread.
How exactly does that ismoderator() function work? Or to make it easier, how do i add it to the script?

Edit: I figured out i can just add an elseif and set the mods stars that way.
Reply With Quote
  #23  
Old 02-24-2001, 06:14 AM
Guest
 
Posts: n/a
Default

Im getting a weird problem with this hack. I just get like 50 lines of the stars.php repeating at the top of my pages?
Reply With Quote
  #24  
Old 02-24-2001, 07:21 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by gekko
How exactly does that ismoderator() function work? Or to make it easier, how do i add it to the script?
Same question, except I still haven't figured out a solution. And also, the admin/supermod stars aren't working.

Here's what I changed my code to (in order to have different color stars based on posts.)
Attached Files
File Type: txt stars.txt (1.4 KB, 63 views)
Reply With Quote
  #25  
Old 02-24-2001, 08:44 PM
Guest
 
Posts: n/a
Default

If you need to make mods have seperate stars just do this:

Code:
 if ($post[usergroupid]==5 || $post[usergroupid]==6)
    // Admin and Supermod Stars
    $starsgif = '<img src="images/stars/Admin1.gif" border=0 width="99" height="20">';
  else
Change that to this:
Code:
 if ($post[usergroupid]==5 || $post[usergroupid]==6)
    // Admin and Supermod Stars
    $starsgif = '<img src="images/stars/Admin1.gif" border=0 width="99" height="20">';
elseif ($post[usergroupid]==15)
$starsgif = '<img src="yourmodstarshere" border=0>';
  else
You can also set different stars for a certain member by using $post[userid]. You can also have entirely different stars setup for mods by making $starsgif something like $starsmod, then at the bottom do something like
Code:
 if ($post[usergroupid]==15)
    $stars .= $starsmod
elseif ($post[posts] > 149)
    $stars .= $stars8;
.....
Just use the elseif and it should work. Just make sure you have them setup so that the ones that are more specific come first. For example if you want different stars for yourself make sure it comes before the ones for the admins. If you already specify the ones for the admin it will give you those stars and ignore the ones for your userid.

I hope this helps. I have 2% PHP knowledge, but that's how i got it to work.
Reply With Quote
  #26  
Old 02-25-2001, 12:38 AM
Guest
 
Posts: n/a
Default

Moderator-specified stars still aren't being shown. The stars of Moderators are still based on their post count, as if they were regular members.
Reply With Quote
  #27  
Old 02-25-2001, 01:53 AM
Guest
 
Posts: n/a
Default

Make sure that your usergroupid for mods is correct. Mine is 15, so i put 15, but my friends' is 36. Try that.
Reply With Quote
  #28  
Old 02-25-2001, 02:28 PM
Guest
 
Posts: n/a
Default

The userid isn't 36. How can I find out which number mine is?

Another problem is, on some posts, the post-based stars are added to my admin stars. How can I prevent that?
Reply With Quote
  #29  
Old 02-25-2001, 03:57 PM
Guest
 
Posts: n/a
Default

In your CP, go to where you edit the user groups. When you highlight one the link should have something that includes &usergroupid=xxxx. Use that.

And for the rest, i'm not sure what your file looks like or what exactly you're trying to do, so i can't help ya there.
Reply With Quote
  #30  
Old 02-25-2001, 04:47 PM
Guest
 
Posts: n/a
Default

Okay, I found my moderator's ID is 7. But it's still adding post-based stars at the end of the mod or admin stars.

Here's my file:
Attached Files
File Type: txt stars.txt (2.9 KB, 42 views)
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 12:12 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.04554 seconds
  • Memory Usage 2,251KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete