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)
-   -   Stars for vB2.2.1 (english/german) (https://vborg.vbsupport.ru/showthread.php?t=34626)

Wolf42 05-30-2002 06:11 PM

Quote:

Originally posted by Webmasta XT
contact me on AIM plz!!
I'm not using AIM, sorry.
Quote:

Originally posted by Webmasta XT
can you explain how can I have two different kind of stars on two different styles?? plz, cuz I need the color mtach kind of thing, so I have made seprate stars for each style, I was wondering if its possible to do that...
It can be done. But you need for every style an extra images-folder!
Find in admin/functions.php:
PHP Code:

$sli 0;
    while (
$sli $post[starlevel]) {
      
$post[stars] .= "<img src=\"images/stars/$post[starimg].gif\" border=\"0\">";
      ++
$sli;
    } 

and replace with:
PHP Code:

$sli 0;
    while (
$sli $post[starlevel]) {
      
$post[stars] .= "<img src=\"{imagesfolder}/stars/$post[starimg].gif\" border=\"0\">";
      ++
$sli;
    } 

In announcement.php do the same. Now you have different stars for different styles.

xeon 05-30-2002 07:57 PM

Quote:

Originally posted by Wolf42
The line is in admin/misc.php at 330 (vb2.2.5)! And that is the one you "could" change, you must not. Just a notice. ;)
OK, so this line(330) should not be changed at all in 2.2.5? I am just a little unclear about this point. If you would expand on this I would appreciate it. Thanks in advance...

Wolf42 05-30-2002 08:48 PM

It dosn't matter if the line saying "Update user Titles" or "Update User Titles and Stars", the effect is the same.

Webmasta XT 05-31-2002 02:33 AM

Thnx Wolf42!! I luv ya man..

Crunch 06-10-2002 05:51 AM

hmm i think mines messing up the same as webmasta's because i have the gender hak installed in that line so i'm not sure to put it but mine looks like

PHP Code:

$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invisible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid,timezoneoffset,emailnotification,receivepm,emailonpm,options,birthday,maxposts,startofweek,ipaddress,pmpopup,referrerid,nosessionhash,avatarid,starlevel,starimg) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes(md5($password))."','".addslashes(htmlspecialchars($email))."',".$newstyleval."'".addslashes(htmlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($homepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialchars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signature)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','".time()."','$cookieuser','".addslashes($prunedays)."','".time()."','".time()."','$newusergroupid','".addslashes($timezoneoffset)."','$emailnotification','$receivepm','$emailonpm','$options','".addslashes($birthday)."','".addslashes($umaxposts)."','".addslashes($startofweek)."','".addslashes($ipaddress)."','$pmpopup','".addslashes($testreferrerid['userid'])."','$nosessionhash','$avatarid','$gender','$userstarlvl','$userstarimg')"); 

im running vs. 2.2.6 for the info.

Wolf42 06-10-2002 06:15 AM

First: What is your problem or what error do you get?

Second: In with file do you have this line?

Crunch 06-11-2002 08:28 AM

ok well all that works fine and I get no errors but now when people post or I add a moderator I have to update counters everytime. Is this because of a mySql query or maybe using quick reply?

Wolf42 06-11-2002 08:36 AM

You only have to update counters if you change the usergroup of a user (eg make him Moderator and Mods have different stars) or you change the configuration of the stars (lower or rise the postcount for a starlevel).

Crunch 06-11-2002 08:42 AM

ok well i have been testing on just raising a test members post then posting but even then when i get to the amount of posts they need to get a new star it wont go on with out updating counters. got any ideas?

Wolf42 06-11-2002 09:37 AM

It seams that there is something wrong with you newthred.php/newreply.php!

Can you post the part from your newthread.php between // update user stuff (about line 267 in 2.2.6 original) and // send email to moderators (about line 288 in 2.2.6 original).

And the same from newreply.php (324 to 345).


All times are GMT. The time now is 11:02 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,756KB
  • 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_php_printable
  • (3)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