vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Want some stars? (https://vborg.vbsupport.ru/showthread.php?t=8663)

02-15-2001 05:53 PM

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?

02-17-2001 03:23 AM

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.

02-24-2001 06:14 AM

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?

02-24-2001 07:21 PM

1 Attachment(s)
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.)

02-24-2001 08:44 PM

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.

02-25-2001 12:38 AM

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.

02-25-2001 01:53 AM

Make sure that your usergroupid for mods is correct. Mine is 15, so i put 15, but my friends' is 36. Try that.

02-25-2001 02:28 PM

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?

02-25-2001 03:57 PM

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.

02-25-2001 04:47 PM

1 Attachment(s)
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:


All times are GMT. The time now is 06:55 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.01181 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)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