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)

Radon3k 02-15-2002 05:36 PM

Ok I'll try this when I get home. Maybe usergroup.php didn't upload right or something, but I didn't see that in my Admin CP. Will try again when I get home, thanks! :)

Radon3k 02-15-2002 06:49 PM

Ok it works...Don't know what I was doing, but great! Thanks for this great hack! Going to put it on my real board now that I know it works...Yippiee! Thanks! :)

Radon3k 02-15-2002 07:33 PM

"The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:"

This is the error I get when I installed it on my main board. In the Admin CP, I click on either "Add" or "Modify" and that's what I get. Why.....??????

Radon3k 02-15-2002 09:05 PM

Ok everything works now...I accidently added some code twice in "usergroup.php" so under the admins and mods it said two times instead of one "image name, how many"...that thing..heh...its fixed now and it all works...Great hack, thanks again! :)

Massiel 02-16-2002 11:00 PM

I am fairly new at this, I love the star hack though. I have version 2.2.2 and I am not sure which star hack to use, yours or the other one... if I use yours, do I still have to use the other one or yours completely replaces the other one? Don't even know why I am confusing myself but I am confused LOL!

I guess what I am trying to ask is, do I have to first install tubedogg's hack then yours? Or can I just do yours?

Massiel 02-16-2002 11:41 PM

I started modifying the files however I am stuck at this

****In newreply.php****

**Find

if ($bbuserinfo[userid]!=0)
{

I just can't find that entry, I have looked at it over 5 times and I can't find it. Help please!

Also what do I do first, modify the files or go to go to http://www.your-domain.com/forum/admin/mysql.php in your browser and login?

The instructions are not very clear on what is to be done first. Please help me!

And what does this mean?
****Tipp-Anfang****
Keep the empty lines!! (Beim ver?ndern der Dateien, darauf achten, dass die Leerzeilen erhalten bleiben.)
****Tip-Ende****

Massiel 02-17-2002 01:12 AM

I found it, it was pretty well hidden LOL!

On to admin/misc.php

It says to find maketableheader("Update Users Info</b> - </b>updates user titles<b>","",0);

Now this is what is in my misc.php (using version 2.2.2)

// ###################### Start user choices #######################
if ($action=="chooser") {

doformheader("misc","updateuser");
maketableheader("Update User's Titles","",0);
makeinputcode("Number of users to do per cycle: ","perpage","1000");
doformfooter("Update");

doformheader("misc", "updateposts");
maketableheader("Update User's Post Counts</b> - does not add non-posting forums to total. (This will recalculate all of your user's post counts based on their CURRENT posts in the database. Do not run this if you have pruned posts or manually changed post counts and you wish to maintain their current counts.)<b>", "", 0);
makeinputcode("Number of users to do per cycle: ","perpage","1000");
doformfooter("Update");

doformheader("misc","updateforum");
maketableheader("Update Forums Info</b> - update forum post counts<b>","",0);
makeinputcode("Number of forums to do per cycle: ","perpage","100");
doformfooter("Update");

doformheader("misc","updatethread");
maketableheader("Update Thread Info</b> - update thread post counts, original posters, last post date, attachment totals<b>","",0);
makeinputcode("Number of threads to do per cycle: ","perpage","2000");
doformfooter("Update");

doformheader("misc","buildsearchindex");
maketableheader("Rebuild search index</b> - (very intensive, but rarely needed)<b>","",0);
makeinputcode("Number of threads to do per cycle: ","perpage",100);
makeinputcode("Thread number to start at: ","startat",0);
makeinputcode("Total number of threads to process: <BR>(0 for unlimited)","doprocess",0);
makeyesnocode("Include automatic JavaScript<BR>redirect to next page?","autoredirect",1);
echo "<tr class='".getrowbg()."'><td colspan=2><p><i>If you are reindexing, you may want to empty the indexes.</i> <a href=\"misc.php?action=emptyindex\"><b>Click Here to do so!</b></a></td></tr>";
doformfooter("Re-index");

doformheader("misc","removedupe");

maketableheader("Remove dupe threads</b> - (relatively intensive, but useful after importing posts)<b>","",0);
makeinputcode("Number of threads to do per cycle: ","perpage","500");
doformfooter("Remove");
}

cpfooter();
?>

There is nothing on maketableheader("Update Users Info</b> - </b>updates user titles<b>","",0);

Am I missing something? Please help me out!

Wolf42 02-17-2002 08:19 AM

In vB 2.2.2 its the line:
PHP Code:

maketableheader("Update User's Titles","",0); 


Wolf42 02-17-2002 08:21 AM

Quote:

Originally posted by Massiel
I am fairly new at this, I love the star hack though. I have version 2.2.2 and I am not sure which star hack to use, yours or the other one... if I use yours, do I still have to use the other one or yours completely replaces the other one? Don't even know why I am confusing myself but I am confused LOL!

I guess what I am trying to ask is, do I have to first install tubedogg's hack then yours? Or can I just do yours?

"My" Hack is just a rehack of tubedogg's hack for vB 2.2.1 and up. :D

Massiel 02-17-2002 09:11 AM

So do I have to install his first? I already did the first step of his, where the tables are created... I am up to modifying files but I have been having lots of trouble just finding lines in misc.php and index.php

Can you take a look at his thread? I have spend all day trying to figure out this hack and I am a bit disappointed that I have gotten nowhere so far. :(

Massiel 02-17-2002 09:20 AM

I noticed most of the steps on his hack are very similar to yours, that is why I was asking if I have to do his first, then yours or if I can just do the rehack you did without having to do his first.... please tell me hahaha, this would make things a lot easier to understand.

Is the stars.php the same for both hacks?

Are there other lines that are different from 2.2.1 compared to 2.2.2?

I got as far as misc.php and then got stuck there!

Wolf42 02-17-2002 11:09 AM

Yupp, the stars.php is the same one. ;)

If you are running a vB 2.2.1 or up do not install tubedoff's hack, couse some DB_quere are different and the entries in the AdminCP (read above in this thread). This was the reason why I have rehacked his version. My instructions should work if you are using a original vB without hacks. If you have modifyed you scripts be carefull with the changes.

Just follow the instructions and if you have done everthing corretly it should work. :D

The german instruction is better couse I am from Austria, so my german is better than my english. :cool:

If you have backups from original PHP-Files compare them with "Beyond Compare". If the new scripts are not working you can find the errors more easier.

Massiel 02-17-2002 11:39 AM

Wolf thanks for a great hack rehack LOL, I figured it all out and it is running smoothy!!! Finally, now I am a happy camper, thank you so much for your help and patience, you rule! :D

Rapclick 02-17-2002 11:04 PM

i tried running /admin/user.php?s=&action=find thats were im talking about it wont show you.... users fields like location and the points hack ceaced working on new users also.... hmm but the strange thing is i can acess them as members if they have loged in the passed 24 hours and all other methods just cant see a solid list

Raptor 02-27-2002 11:14 PM

I can confirm this works great in vb2.2.2

Radon3k 03-13-2002 03:29 AM

This works just fine in 2.2.4. The only problem I had was I got a parse error on line 81 of /admin/usergroup.php. So I commented that line out and it works great! Thanks for this great hack! :)

Wolf42 03-13-2002 05:04 AM

@Radon3k
Yes, I noticed that the "$DB_site->query("INSERT INTO usergroup .... (line 80)" is not in one line. The is a CR before "VALUES (NULL ... (line 81)". If you leave that part of the quere you get an parse error.

Changed instruction and updated to vB 2.2.4.

Thomas P 04-14-2002 01:02 PM

Hi Wolf,

does it work with 2.2.5, too?

Guess so, since not much changed from 2.2.4.
Am upgrading right now :)

thx,
-Tom

Wolf42 04-14-2002 01:12 PM

Hi Tom!
Da keine gravierenden Ă„nderungen in vB 2.2.5 sind funzt der Hack noch immer.

Thomas P 04-14-2002 01:19 PM

Danke :)
Dann leg ich mal los...
thx,
-Tom

Radon3k 04-14-2002 02:20 PM

Hey Wolf, this works just fine on 2.2.5 and I didn't have to edit out that line! Thanks! :)

Highlander 05-16-2002 06:47 AM

Hi there..i cannot find this query in the Admin/misc.php

maketableheader("Update Users Info</b> - </b>updates user titles<b>","",0);

it is not given for any reason in the misc.php...i also control all other misc.php`s in the directories...but really i did nothing wrong the only query here is shown is this one:

maketableheader("Update User's Titles","",0);

maybe you mean this ??

if someone gots the vbportal..please call me @ ICQ i got a porblem to get in the administration
my ICQ: 148041353

Wolf42 05-16-2002 06:58 AM

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. ;)

Smoothie 05-16-2002 10:48 AM

Wolf42-

Excellent! Installed without a problem. :)

Webmasta XT 05-29-2002 01:30 AM

ok, when new users try to join my forumz, they get an error about the database, and I get this e-mail...

can someone help me plz???

[PHP]
Database error in vBulletin 2.2.5:

Invalid SQL: INSERT INTO user
(userid,username,password,email,styleid,parentemai l,coppauser,homepage,icq,aim,yahoo,signature,admin email,showemail,invisible,usertitle,joindate,cooki euser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotification,receivepm,emailo npm,options,birthday,maxposts,startofweek,ipaddres s,pmpopup,referrerid,nosessionhash,starlevel,stari mg)
VALUES
(NULL,'Ace','king','Calebmoore@hotmail.com','1','' ,'0','http://','','','','','0','0','1','n00b','1022669217','1', '-1','1022669217','1022669217','2','0','1','1','0',' 15','1986-6-4','-1','2','209.68.64.69','0','0','1','','','0','0')
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Wednesday 29th of May 2002 03:46:57 AM
Script: http://www.xtreme-forumz.net/register.php
Referer: http://www.xtreme-forumz.net/register.php
[/PHP}

Wolf42 05-29-2002 05:09 AM

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','$userstarlvl','$userstarimg')"); 

The line in the user.php must look like this. Please check. Your line looks like vB 2.0.3 couse something is missing (avatarid, and password in plain, but should be encrypted).

Webmasta XT 05-29-2002 10:41 AM

sry, that didn't help, there is some problem in register.php and my vb is 2.2.5

Wolf42 05-29-2002 11:12 AM

Which version of Stars have you installed on your vB? Tubedoggs (for 2.0.3) or my Rehack?

Sorry, in register.php the code should be:
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','$userstarlvl','$userstarimg')"); 

Think its the same code as in user.php (did this some time ago). If you download my instructions it should work.

Webmasta XT 05-29-2002 06:33 PM

contact me on AIM plz!!

Webmasta XT 05-29-2002 06:40 PM

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...

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:31 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.01665 seconds
  • Memory Usage 1,883KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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