PDA

View Full Version : Stars v0.2.3


Pages : 1 [2]

Lesane
10-25-2001, 10:35 AM
Originally posted by Ramsy de Vos
Still no luck installing the stars, i double check everything, all goes well, except the displaying of the start, they just don't show up.

My file are attached, if somebody would like to help.
I'm clueless. I have installed the hack before, then there where no probs.

<< edit - you may not post full files! >>

Are you sure that you edited the postbit template ;)

Syphin
10-26-2001, 01:08 PM
I installed this on my test board, worked great the first try... ^^ So GJ.

Anyways... Ive got a Q, Is there a way to make it where i can use diffrent images on diffrent styles? Because the ones i have now, dont match with all the styles i have... So id like to have custom ones for each one...

Hope someone can help... =/

-Syphin

Truetrader
10-26-2001, 11:58 PM
thx tubedog
it's working great
:)

incursio
11-02-2001, 03:16 AM
Anyone know if these instructions are still golden with v2.2.0? It ran great for me under 2.03, BTW ... just upgraded and this is really the last hack left for me to work back in.

Cheers.

Thomas P
11-03-2001, 05:53 PM
Installing the hack using the upgrade option worked fine with 2.2.0, but I couldn't find step 3 in admin/misc.php and step of of admin/index.php for the moment- so I couldn't alter the settings... but it works.
-Tom

damicatz
11-03-2001, 11:33 PM
Originally posted by Thomas P
Installing the hack using the upgrade option worked fine with 2.2.0, but I couldn't find step 3 in admin/misc.php and step of of admin/index.php for the moment- so I couldn't alter the settings... but it works.
-Tom

the part in admin/misc.php only changes update user titles to update user titles and stars so that isn't really needed.

I took a look at the hack's instructions and compared it to the 2.2.0 index file and it appears some of the functions have changed.

I have attached a file that has instructions for getting Tubedogg's Stars hack to work with 2.2.0

Thomas P
11-04-2001, 08:56 AM
Thanks damicatz! :)

Just to be sure: Have you tested to answer/reply to a poll-thread?

That gave me parse errors on my board.
Thanks,
-Tom

damicatz
11-04-2001, 01:02 PM
Replying to a poll thread doesn't give me a parse error, try rehacking your newreply.php file.

Thomas P
11-04-2001, 08:54 PM
nope, still parse errors, I'll look into it tomorrow...
-Tom

Thomas P
11-08-2001, 06:14 PM
hmmm, dunno, still errors...

Anyone with vB 2.2.0 who installed this?

@damicatz:
Regarding your txt file - Is this the only change you did?
Thanks,
-Tom

LuBi
11-11-2001, 08:50 PM
Has anyone got this on 2.2 as of yet?

jamesdasher
11-12-2001, 12:49 AM
I have though I haven't done a total bug test, it seems to work okay with me...

James

Nam
11-12-2001, 01:49 AM
Originally posted by LuBi
Has anyone got this on 2.2 as of yet?

I have it works perfectly on my 2.2 board. Note that if you follow instruction as 2.0.3, there is a serious missing error in register.php, and that's the md5 password encrypt missing in 2.2.0. Without md5 in register.php, your members will NOT be able to log back on once they logged out. It took me 2 whole days to firgue it out.

holev
11-12-2001, 01:33 PM
seems vb2.2.0 is not showing the stars :\

jamesdasher
11-12-2001, 04:20 PM
works for me... :) be happy to help if I can...

email me at:

jamesdasher@teenssucceed.com

James

LuBi
11-12-2001, 07:21 PM
This is what the screen looks like, I believe that little thing after the cursor is what causes my trouble. How can I get rid of that?

https://vborg.vbsupport.ru/

Nam help a brotha out..

jamesdasher
11-12-2001, 07:58 PM
that looks like some sort of formatting mark to me (same as the 'paragraph mark 2 lines above that...

what software are you using?

also, that doesn't look like anything that is related to the stars hack code, the original code that tubedogg gave you is for 2.0.3 and is in need of updating for 2.2.0 so look closely when you install it, if you need help getting the code to work, send me your file (preferably as it is before you add any star code) and I can see about giving you a hand.

James

P.S. remember that just the tiniest mistake, can produce a huge error, check your code!

LuBi
11-12-2001, 09:39 PM
I got it working, but I wasn't aware of this code needing to be updated I thought it was. In any case I think I'll be going without it anyhow, but thanks.

CHeeKY
11-24-2001, 11:15 PM
Cant get it to work :( I have installed and reinstalled and then installed again.
All seems ok but stars fail to show.

could somebody please tell me how they acctually got this to work on 2.2.0

Psychdrone
11-25-2001, 09:54 PM
YEs please would someone rerealse this on 2.2.1

Psychdrone
11-27-2001, 11:54 PM
ok got it to work , put would someone please tell me what code i would be adding or editing and on what template, to add my own custom pics, and a lot of them for differnt post counts?

thanks!

Psychdrone
11-28-2001, 09:04 PM
please someone show me what code to alter or what to add, to add my own custom bars, There are 40 of them.....so where do i change the text

Thanks!

Jakeman
11-29-2001, 08:46 PM
you can do this without using a hack. under the "User Titles" section of the control panel you can specify user title according to post count. you can fudge this a big and add an image along with the title or just the image alone. in the title field just put <img src="{imagesfolder}/image.gif"> and that image will now appear under a registered member's name if they have x number of posts. unfortunately this post ladder system only works with the regular 'Registered' user group right now... so if you wanted to do this with mods, admins, etc you would need to hack the code which i don't know how to do.

tamarian
11-29-2001, 09:06 PM
Originally posted by Jakeman
unfortunately this post ladder system only works with the regular 'Registered' user group right now... so if you wanted to do this with mods, admins, etc you would need to hack the code which i don't know how to do.

Not so. I have the hack installed and it works for all user groups, including admins and mods. Titles are taken from the user group table, and stars are taken from the post count.

Jakeman
11-29-2001, 09:56 PM
well, i was talking about without the hack. i'm not familiar with the stars hack... i just followed Psychdrone's link from the request forum.

damicatz
11-29-2001, 10:39 PM
Originally posted by Thomas P
hmmm, dunno, still errors...

Anyone with vB 2.2.0 who installed this?

@damicatz:
Regarding your txt file - Is this the only change you did?
Thanks,
-Tom

Yes

Psychdrone
12-01-2001, 02:25 AM
wait I am unsure about something, so I go to user titles, and add in the images there, what is the code for (x)certain a mount of posts?

or should i just install the hack, but again where would I change the files to

Twig Deez
12-01-2001, 04:58 AM
i've got this installed on 2.2.1, with damicatz' alteration;
and it's 100% working like a charm!

and a very very good charm at that.

:)

Psychdrone
12-01-2001, 05:50 AM
thanks for thelp there!!!!! what files do i modifiy to add my own pics, and post counts, please make it simpile!???????

:( :( :( :( :( :( :(

damicatz
12-01-2001, 11:35 AM
Originally posted by Psychdrone
thanks for thelp there!!!!! what files do i modifiy to add my own pics, and post counts, please make it simpile!???????

:( :( :( :( :( :( :(

If your talking about altering the stars and post counts for stars, if you have the hack installed right there should be a User Stars catagory in your admin control panel.

I am reattaching the instructions for 2.2.0 and 2.2.1 since the other post is a few pages back now.

Kumaro
12-01-2001, 06:13 PM
I can't find this code in misc.php

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

What do I do?

I am using 2.2.1

VolsReport
12-04-2001, 02:19 AM
Can U Give Me A Link To Where Da Instructions are? I have version 2.03...Thanx...

warpeditor
12-04-2001, 04:21 AM
Originally posted by Nam


I have it works perfectly on my 2.2 board. Note that if you follow instruction as 2.0.3, there is a serious missing error in register.php, and that's the md5 password encrypt missing in 2.2.0. Without md5 in register.php, your members will NOT be able to log back on once they logged out. It took me 2 whole days to firgue it out.

Same problem here. How did you fix this one?

VolsReport
12-04-2001, 06:06 PM
Originally posted by VolsReport
Can U Give Me A Link To Where Da Instructions are? I have version 2.03...Thanx...

Anybody has a link to instructions for post it here?

Lesane
12-04-2001, 06:24 PM
Upload the install_starshack.php into your admin folder and execute it, then you will get your instructions :p

VolsReport
12-04-2001, 07:11 PM
I tried to execute it but it comes up an error sayin "ERROR Executing Associated Application Or Association Not Found."
Can any body help? I need Da Instructions...

Nam
12-04-2001, 10:18 PM
Originally posted by warpeditor


Same problem here. How did you fix this one?

Check this link http://vbulletin.com/forum/showthread.php?s=&threadid=32953

Hope it helps,

VolsReport
12-05-2001, 06:27 PM
Originally posted by VolsReport
I tried to execute it but it comes up an error sayin "ERROR Executing Associated Application Or Association Not Found."
Can any body help? I need Da Instructions...
Hello anybody?

Psychdrone
12-07-2001, 12:28 AM
what the hell?


On mine , I uploaded the images and installed it right, but yet, it only show up under, really too, random people??

what the hell is going on??


Heres the link to my board

ochroma.net/forum

please help me guys!:(

macuser
12-07-2001, 07:40 AM
I have installed Stars

some of my users who try to register get this error when they submit...

There seems to have been a slight problem with the MacUser.de community! database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

I received an email:

Subject: vBulletin (forum) Database error!


Database error in vBulletin 2.2.1:

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,'freeze','a6008231fa64ff879ecb286a657b6a99', 'eric@macinmotion.com','0','','0','http://','114975541','','','','0','1','0','Member','10076 59894','1','-1','1007659894','1007659894','2','+1','1','1','0', '15','0000-12-9','-1','1','80.128.211.49','0','0','1','1','star1','0' )
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136

Date: Thursday 06th of December 2001 06:31:34 PM
Script: http://www.macuser.de/forum/forum/register.php
Referer: http://www.macuser.de/forum/register.php

please help me

macuser
12-07-2001, 08:27 AM
Changes to
register.php (2)
Step 2 of 2

>>my change

$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage ,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cooki euser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotificat ion,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup, referrerid,nosessionhash,starlevel,starimg) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes(md5($password) )."','".addslashes(htmlspecialchars($email))."',".$newstyleval."'".addslashes(ht mlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($ho mepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialch ars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signatur e)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','".ti me()."','$cookieuser','".addslashes($prunedays)."','".time()."','".time()."','$n ewusergroupid','".addslashes($timezoneoffset)."','$emailnotification','$receivep m','$emailonpm','$options','".addslashes($birthday)."','".addslashes($umaxposts) ."','".addslashes($startofweek)."','".addslashes($ipaddress)."','$pmpopup','".ad dslashes($testreferrerid['userid'])."','$nosessionhash','$userstarlvl','$userstarimg',' $avatarid')");

macuser
12-07-2001, 09:15 AM
solved it and everything works fine currently
I changed to this:

// Stars Hack
$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage ,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cooki euser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotificat ion,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup, referrerid,nosessionhash,starlevel,starimg) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes(md5($password) )."','".addslashes(htmlspecialchars($email))."',".$newstyleval."'".addslashes(ht mlspecialchars($parentemail))."','$coppauser','".addslashes(htmlspecialchars($ho mepage))."','".addslashes(htmlspecialchars($icq))."','".addslashes(htmlspecialch ars($aim))."','".addslashes(htmlspecialchars($yahoo))."','".addslashes($signatur e)."','$adminemail','$showemail','$invisible','".addslashes($usertitle)."','".ti me()."','$cookieuser','".addslashes($prunedays)."','".time()."','".time()."','$n ewusergroupid','".addslashes($timezoneoffset)."','$emailnotification','$receivep m','$emailonpm','$options','".addslashes($birthday)."','".addslashes($umaxposts) ."','".addslashes($startofweek)."','".addslashes($ipaddress)."','$pmpopup','".ad dslashes($testreferrerid['userid'])."','$nosessionhash','$userstarlvl','$userstarimg')");
// Stars Hack End

HellMind
12-07-2001, 05:58 PM
this hack doens work for vb 2.2.1

i have to modified a few thing but doesnt work yet

isnt show the starts

i look the postbit and it is fine i think

what can i do?

$post[stars] are empty

i think i do bad the misc change beacuse i dont found "user info update"

or something like that

and update the file or put 2 file for 2.2 and 2.0

bbaddons
12-11-2001, 09:40 PM
I am running vBulletin 2.2.1 and it works fine for my board.
The only thing I saw on the installation was that if the stars
were not in the forum directory specified I had to edit
showthread.php (I never had to touch that file - you have to
edit admin/functions.php and stars.php).

But I have it working perfectly fine on my board right now

HellMind
12-11-2001, 10:24 PM
i dont know what are you talking about :(

bbaddons
12-11-2001, 10:38 PM
Did you get it installed (the stars hack)?

I was saying that it is working fine on my board
and I am running vB 2.2.1 and nothing is going
wrong or anything, everything is running perfect.

HellMind
12-12-2001, 12:11 AM
read my first post

i say isnt show any starts but all work perfectly but dont show anything

bbaddons
12-12-2001, 12:32 AM
What is the directory that you have the 'star' images in?
Do you have them in /forums/stars?

If you have you stars in another directory other
than /forums/stars/ follow the below instructions:

(This is what I did on my board - the stars were not
appearing on my board until after I did this)

1. Look for (in stars.php):

../images/stars/$star[starimg].gif\

and change it to

path/to/images/stars/$star[starimg].gif\

2. Look for (in admin/functions.php)

../images/stars/$star[starimg].gif\

and change it to

path/to/images/stars/$star[starimg].gif\

----------------------------------------------------

Backing up would be helpful as this is what I did on my forums

----------------------------------------------------

I hope this helps you out HellMind - Let me know

HellMind
12-12-2001, 03:06 PM
ty
but thata isnt my problem :(

Logo
12-12-2001, 06:10 PM
can anyone post the final release for VB2.2.1 ??

Sorry but this one is a megathread.. it´s very hard to concentrate reading 20 sites...

Dakota
12-13-2001, 07:26 AM
What do I need to do in the admin/index file?

HellMind
12-13-2001, 11:34 AM
this hack is beta for 2.2.1 :(

Wally Hartshorn
01-09-2002, 01:58 PM
Am I correct that Stars doesn't really work with vB 2.2.1? Are there any plans to release an update anytime soon?

Jawelin
01-09-2002, 05:12 PM
Please correct me if wrong, but
the prefix [vB v2.2.1] before an hack release doesn't mean IT WORKS with that version ?

Could any .org moderator place a definitive word about this annoying thread ?
I mean also other hacks with conflicting authors or copyrighters and the war of the compatibility versions

Thanks a lot.

Wolf42
01-10-2002, 02:41 PM
I am using the Starhack 0.2.0 (german) on my vB 2.2.1 with no probs.

The Hack is still for vB 2.0.3, for 2.2.1 I had to change some "$DB_site->query"-entries, couse in 2.2.1 it is e.g. md5($password) and NOT $password (this will write the password in plain text into the user-table). Also the $avatarid is still missing.

But after some testing I got it. ;)

Auf gut deutsch, ich habe diesen bzw. eine Vorversion dieses Hacks zum laufen gebracht. Die Installationsanleitung darf man leider nicht 1:1 ?bernehmen.

SaintDog
01-10-2002, 06:31 PM
Works just fine on my test board, I did not have to change anything except some admin options because the coding that makes that table headers is not the same from 2.0.3 to 2.2.1.

Other from modifying links, I did not have to modify anything else and it is working fine, it is about to go on my main board when my site opens up.

Thomas P
01-13-2002, 05:24 PM
Originally posted by Logo
can anyone post the final release for VB2.2.1 ??

Sorry but this one is a megathread.. it?s very hard to concentrate reading 20 sites...

Have to agree here,
am upgrading to 2.2.1 and it's getting a pain...

Whatever - the following has changed in 2.2.0/2.2.1:

1. register.php | step 2
Nam and Wolf42 are right (thanks), serious change here:
https://vborg.vbsupport.ru/showthread.php?postid=200068#post200068

I recommend not to delete the old db string, but to change the bits which tube has added to reflect the changes (2 or 3 strings).

2. admin/index
damicatz has the solution to this one:
https://vborg.vbsupport.ru/showthread.php?postid=204071#post204071

3. admin/misc.php (Update User's Titles)
You can look for Update User's Titles and replace the line with

maketableheader("Update User's Titles - updates user titles and stars","",0);

or just add something like updates user titles and stars, which is only cosmetics and not important at all (!)

4. usergroup.php | step 2
$cangetattachment seems to be new in 2.2.0 or 2.2.1, so change the db-strings as mentioned above - with care ;)
Just add the 2 or 3 missing bits to the strings which are there, don't just exchange them...

Good luck,
Worked for me this way in 2.2.1.
And again: Adding manually the bits of tube's hack to the strings you find is a clean an somewhat simple method.

cu,
-Tom

Rapclick
01-16-2002, 12:45 AM
ok im havin just a few small problems.....

error in Register.php and Newthread.php

could you please repost the Codes here cuz im confused about who ta believe i keep getting errors...please help as soon as possible

:confused:

Rapclick
01-16-2002, 07:22 PM
anybody ?? :confused:

Rapclick
01-17-2002, 07:58 PM
when users go to register or post a new thread...it gives them this error below in quotes....althoug it still lets them perform these actions when they logout it doesnt let them log back in....i am running Vb 2.2.1 and iv tried all the above solutions and none work...please help me my site needs to grow

// Stars Hack $usergstars=$DB_site->query_first("SELECT starlevel,starimg FROM usergroup WHERE usergroupid='$newusergroupid'"); if ($usergstars[starlevel]=="") { $getstars=$DB_site->query_first("SELECT starlevel,starimg FROM stars WHERE minposts<=$bbuserinfo[posts]+1 ORDER BY minposts LIMIT 1"); $userstarlvl=$getstars[starlevel]; $userstarimg=$getstars[starimg]; } else { $userstarlvl=$usergstars[starlevel]; $userstarimg=$usergstars[starimg]; } // Stars Hack End

Rapclick
01-18-2002, 07:18 PM
i am sorry for replying so many times but i really need someones help users at my website cannot log backin and are recievign errors... :(

Chris
01-24-2002, 01:41 PM
Excuse for my ignorance, but what in the heck does this hack do? I've read through page after page in this thread and didn't really see a description of what this hack does.

I may have well missed it, and if so, I apologize, but I want to know what it does. There seems to be quite a bit of interest in it.

Wolf42
01-24-2002, 01:48 PM
Originally posted by Chris
Excuse for my ignorance, but what in the heck does this hack do? I've read through page after page in this thread and didn't really see a description of what this hack does.

I may have well missed it, and if so, I apologize, but I want to know what it does. There seems to be quite a bit of interest in it.

It is genating stars dependig on the number of postings.

Chris
01-24-2002, 01:50 PM
Ahhhh...okay thanks Wolf! I figured it was something along those lines, but wasn't sure :)

Appreciate it!

Rcooper
01-28-2002, 12:04 AM
tubedogg, is this updated for 2.2.1? I can;t seem to find the code to change in index.php?

Massiel
02-12-2002, 01:27 AM
Hi, I am going to be trying to install this hack on my forums. I previously used UBB and had a star hack there.

This of course is quite different, so I am having some enquiries.

I have 8 user titles in my forums. I would then need 8 different color stars, one for each, one for the mods and one for the administrator. I notice the hack only has 2 stars with it. Would it work to add more then 2, if so, where are they added, does it need to be modified, and if so, how?

I am new at this but I just love this hack and if I had to choose one hack out of all the hundreds out there, this would be the one. Please help me out!

It just looks so complicated, it asks to modify all those files yet there is an installer to upload? I don't see any explanations on what to edit, or does this become obvious once you start the installation?

Massiel
02-17-2002, 06:30 AM
Well I tried doing it and run into some problems, here they are, somebody please help me!

It says to find this in admin/index.php

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Titles"); ?>
</table>
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>

I looked everywhere, many times, all I can find close to that is:

<table width="100%" border="0" cellspacing="0" cellpadding="<?php echo iif($cpnavjs,2,5); ?>" id="navtable">

Why can't I find it? I see others had no trouble installing this hack...

Now the other one is at misc.php, says to find this:

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

This is all there is there:

// ###################### 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();
?>

Any ideas of what is going on? Please help! :(

Massiel
02-17-2002, 11:37 AM
Persistence pays off, please ignore my msg, I figured it out! Thanks !

Rachael
03-02-2002, 02:34 PM
Massiel

I am having the same problem. What was your solution? Or can anyone else help?

isoking
03-02-2002, 07:52 PM
Just to help u all. here is a little change i made myself....

Where is says
Find In Admin/index.php
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Titles"); ?>
</table>
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>

And Replace With:
<!-- Stars Hack -->
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Stars"); ?>
</table>
<a href="stars.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="stars.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>
<!-- Stars Hack End -->

IGNORE THIS ABOVE.. USE WHATS BELOW
****************************

Find In Admin/index.php:

makenavoption("Add","usertitle.php?action=add","|");
makenavoption("Modify","usertitle.php?action=modify");
makenavselect("User Titles");
// ***

Add Below that:

makenavoption("Add","stars.php?action=add","|");
makenavoption("Modify","stars.php?action=modify","|");
makenavselect("Stars Hack");
// ***

Warez
03-09-2002, 08:59 PM
For 3rd replacement in admin/misc.php, find

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

and replace it with

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

This is only cosmetic, but I have put it here for those who might want to know. Thanks to isoking for the updates on the admin/index.php file.

jbell
03-17-2002, 04:46 AM
its late guys i tried installing the code at www.xtremesystems.org/forums - and it isn't working yet, any suggestions?

kvk007
03-18-2002, 04:49 PM
Hi guys! in admin/index.php

I can not find those lines!!!

>>>>>>>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Titles"); ?>
</table>
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>

dimitr|
03-18-2002, 09:28 PM
Doesn't the post 3 posts above yours address this?

Wolf42
03-19-2002, 04:42 AM
Originally posted by kvk007
Hi guys! in admin/index.php

I can not find those lines!!!

>>>>>>>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Titles"); ?>
</table>
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>
You can't find that, couse that is the code in vb 2.0.3. If you have an vB 2.2.1 and above the code is different.

Champion
03-23-2002, 11:43 AM
Hi!
I've installed the hack, but I would like to have two different star-colors for one User-Title (e.g.: User-Title: Special Member; User-Star: 1 gold, 2 silver)....
Do you understand what I mean?

How can I do that?

iconic
03-30-2002, 02:07 AM
Also, I'm a bit of a n00b to editing but I believe I've found something..

For 2.2.4 For Step 2 In usergroup.php, you want to find:
if ($HTTP_POST_VARS['action']=="insert") {

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,showgroup,canse arch,canemail,canpostnew,canmove,canopenclose,cand eletethread,canreplyown,canreplyothers,canviewothe rs,caneditpost,candeletepost,canusepm,canpostpoll, canvote,canpostattachment,ismoderator,canpubliceve nt,canpublicedit,canthreadrate,cantrackpm,candenyp mreceipts,maxbuddypm,maxforwardpm,canwhosonline,ca nwhosonlineip,cangetattachment)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$showgroup,$cansearch,$canemail,$canpo stnew,$canmove,$canopenclose,$candeletethread,$can replyown,$canreplyothers,$canviewothers,$caneditpo st,$candeletepost,$canusepm,$canpostpoll,$canvote, $canpostattachment,$ismoderator,$canpublicevent,$c anpublicedit,$canthreadrate,$cantrackpm,$candenypm receipts,$maxbuddypm,$maxforwardpm,$canwhosonline, $canwhosonlineip,$cangetattachment)");

And replace it with:

// Star Hack
if ($HTTP_POST_VARS['action']=="insert") {

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,starlevel,starimg,can controlpanel,canmodifyprofile,canviewmembers,canvi ew,cansearch,canemail,canpostnew,canmove,canopencl ose,candeletethread,canreplyown,canreplyothers,can viewothers,caneditpost,candeletepost,canusepm,canp ostpoll,canvote,canpostattachment,ismoderator,canp ublicevent,canpublicedit,canthreadrate,cantrackpm, candenypmreceipts,maxbuddypm,maxforwardpm,canwhoso nline,canwhosonlineip)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."','$starlevel','$starimg',$cancontrolpanel,$canmod ifyprofile,$canviewmembers,$canview,$cansearch,$ca nemail,$canpostnew,$canmove,$canopenclose,$candele tethread,$canreplyown,$canreplyothers,$canviewothe rs,$caneditpost,$candeletepost,$canusepm,$canpostp oll,$canvote,$canpostattachment,$ismoderator,$canp ublicevent,$canpublicedit,$canthreadrate,$cantrack pm,$candenypmreceipts,$maxbuddypm,$maxforwardpm,$c anwhosonline,$canwhosonlineip,$cangetattachment)");
// Star Hack End

Tell me If I'm wrong, but I noticed that 2.2.4 has $cangetattatchment, and I knew that was at least somewhat important.. :)

iconic
03-30-2002, 02:29 AM
update :

Installation worked fine, and I think what I did helped.. I can still view attatchments, at least :)

The Matrix 7
04-01-2002, 02:48 PM
hello iconic,

you have forget the $showgroup 2 times and the $cangetattatchment 1 time.

I think the corect Code is this:


if ($HTTP_POST_VARS['action']=="insert") {

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,starlevel,starimg,can controlpanel,canmodifyprofile, canviewmembers,canview,showgroup,cansearch,canemai l,canpostnew,canmove,canopencl ose,candeletethread,canreplyown,canreplyothers,can viewothers,caneditpost,candele tepost,canusepm,canpostpoll,canvote,canpostattachm ent,ismoderator,canpublicevent ,canpublicedit,canthreadrate,cantrackpm,candenypmr eceipts,maxbuddypm,maxforwardp m,canwhosonline,canwhosonlineip,cangetattachment)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)."','$starlevel','$stari mg',$cancontrolpanel,$canmodifyprofile,$canviewmem bers,$canview,$showgroup,$cans earch,$canemail,$canpostnew,$canmove,$canopenclose ,$candeletethread,$canreplyown ,$canreplyothers,$canviewothers,$caneditpost,$cand eletepost,$canusepm,$canpostpo ll,$canvote,$canpostattachment,$ismoderator,$canpu blicevent,$canpublicedit,$cant hreadrate,$cantrackpm,$candenypmreceipts,$maxbuddy pm,$maxforwardpm,$canwhosonlin e,$canwhosonlineip,$cangetattachment)");

unclejojo16
04-01-2002, 10:41 PM
PK  ?*+???` d star2.gifs?t??L?f?bX? ?Ҁ?????3??93s?L???OFv?
?Zf͊*?ݩ > ?/?66??n0'??????Uy?Is?b
??ϙ?? PK  L??*?o??? m stars.php?V]o?6}?~?
k?2?Y??A?hX?4)gC?#RItE*^0???R??5?u????uyy? 9?ix2Kg^??????A???ܟUSH?ߜ?E??<x?y^ɿT??>??L>Ҭ? H???(?E?ɩ/D????(???? ?Jz?t͖x?r?x????/???o?X Yt?pЅ< ??\2???c??3E????{?@???>?I?$? <??D?????\a??P?ԦK??>qM3???9
>?:2?̳,?Y?c?3 ?J?? ?E??X9?r?|&?????T$G]?C?ӭ>?B?U3??G?y??\???DJm?8 [ ȁ?6?Y???gJh???K???\\?D? \\M??????^Sq??ۅ?O/o???n//{??"??7Mt?=?
??k?ߣ??<N%??l4??,????a0??էظ2?y? ?R
/??!???Ix????h?D?mŕ??>???????????C???:?j??S^??hɑ???] ?0™8??`?F<? ?!??8??e??v? ????8???=G`? ???6c??b?B??T ???߅Y4??]??\??Lm4?A~=????????jN?ߚ??m?4 ??{Ȁ`?nmNɒ????x~:??7?ʘ?kzljۛ?.??z6?i+ cG?>~?n???o?2??|???)e?P?h??1E??]?i????xƱ ????e???ؔ???}W?\?P?&uBoS?????'?e??' ?w????P ?;?? ?r?-?8?;4?ec?K???׬~??w???y4??O??A?p?2??<?M?rr?u?>в?/????"[m? ?X{??N\??W]?D??ЂC<?T??????ڬUP??????#??J?e80?b?w??Ix?j?^4???;?o, ??i?W?ҝI?k?Z??3Q<Y??_??Ű_R?1?&/[4?'?-ٝ#|G~?c? d`˵9?\㈭??u?? F?LP+%???I??>?-_R'??PK   ?--+~??? ?a  install_starshack.php?=?s?H???*??A??v??G?-X?BGn??W[??dil??5B;?????{FO+???/?
?c????Ӛ???????{<?E?)摈?N????ݿw?^̿???7?vg????????h???M?/}???tℽv???0L?<f?>?ӻ~G?4???:?ӆ?Ը0ċ%????dš????????p?9? ?_?l??m?????b;?n????KvJG????bG?k_qLSN?$qc???f ????O?G???y?J"?H$??fze???9????fo$?*?﹈=?0,?c?Z??????Xa`l ????iw???<S??잂??E?_?
| ??ǜI?Ҧl{??D>3??_ H?K?v?@??@M?+?????9?@?u?W??/w???Ѡ??i??v?@???mwQ>??S'??=Dpv????L?? ??? ??K?????{?D.?mq?@jw?$1?E;????)???@??)??? ?^?aIl>zn???,???c? +q?d;???~???ǖ??>?=9??^??7??&?6~?}???G???A9???}9.?w?L??x9??~?KA??O? ??qĘJ=?t#??mW?:c?g?d*?%?r<?E?ե?ٽ_??)???pi?F?~??l’ص
7???hO?qqx?м,K ??%?c2??$2="?#^kBxe*8?? a ?f?G????W4P4B??Q??d?$??;?h?%C?N???fw ?d}???d}?|??~v????r?J)|~~ޮ????F<&
;d?? ???s7?~?{bX??3??D?4G?ͺ??f?p???q??L?S?? ?A???V? ?4???C??De'??]????Z~??N?Ǭ?~Rp TjCc#G?K?ef?i?qL????R?Q>?|2?6????K?N?p?iO0ޜ3펙S?\ۊtD?~'?`?S??? C?!?p,???f<???ɩ# ???<???y?K>??Z????9a U_?/?? 8?KFq?p5?H8?Χ>?(O x????95?0%?@?x'??? = ?B @?{>F@l Ė? T?'??!7???,???v?n???#?q???S???:??>ͥv
??O????i?)$?e?iY?????=?譵$Au ???c"??)?5????AAh4n?2??ֽxa
?y4?!t? أ`??s? j???????Ѽ3=???~?2?+?K?z??S????h!F&?????F +?^?b?b뗱?"h?? ??`?!ک?Mj?Ch??7??ė/_|?ŷ_?<^6??'???p???(?F?VZ?
Nt34???a??/xp?N?q7?2?]k?J?tDw?8?)c????P?t:G?9?Hݼ?4|,?@??!Q??????? q,fdR?????D?L?j?%???A8????ɽ2$????y(?4`> Y#?[c??@?b3E?M??m?  _`??*E/????N?<Q$$˽)??f???mZ?)cF!???? "N? BC|?!?V??????[??]?????!X?5ʛFJ??vE??O??E?eMOt???|????? D?0?????
Y??`o?
???GG̙K??] >D??M???X??$l??? vZ}??6??Yy}|r?f???????&,imhY?^??A??l($ !r?"??ׇ?T???{???9eA????Z??B?F?-0ӳ?i?Ԡ????f?
?i?b??b?‰??{?辊j۵懕
\?u??ţ?IzD&)]Z??^??ԅ?XL???F?, /???7??OY??#?$??|?Κ;)???ˑ?G?ߔ^?|??L?? Ee?#?I?e ????????3?q ?n?z?1W??(k???*L\O?=X9? ?T)<?Ȁw? >?@?x?Z?FR?e???????_?-K?\?y?vww?<1U ?R.?W?^???O???*???k???nH?L???rd??>A?Eva|??:???."F??\#N?U??Ⅽv?iW????_4}?y???f't????v?? ??y?? \?t??>?@ ??????궴??)@???HVMJ?d??*???lEypR?@?5?]?????(Sa??`{??d???\,???=\?? qC??rk?ڏb>P?AVi4?LM8T?????m?B??Jua??)???牄 Y??A??N*u?r???kWq??A????ܔW"t\1%EDg:G͘I??ܗ]?П?~?Ȧqzpt???ݽ???W'??<??^?<??ٍ*1???9n?P?q???rfgy??-s??7??"K?_??"r?*??ػ??`??#_??7?C??ho?4?"?3?
?W?&?f??L????/A?%L?J?"t?gO(V ?S??Ҭ??~?A??Q? ??V? ??j?Uѳ?k???????_?Z??Ӄan?3??Ū`?צ?u?r?6?? ?x*?l???F[?3ބ?????I??u????rFY??r???WS???F? nF?i#?R??+{?z??Ef???jdP??X??JP?|Н??A??m?`w??F? ???S+d7?z?k??s=U??????i??<f??ML78?ƒ???\????Xp\?ބ?e??:C%ٛ????J?h#Wt?#?y цnh'D???X???oON??????2?Me?,?:3nE w]Y|???e?Q`h??????6"@>???+?????T?x?L???_,ǟYKg*??_>9??EiA? ??+?Ľ@??[??Z?0GGr .>???{?2??y?-4????p??—K? ?Z??????8?R?#{=???/B+?.?<??w"?+?= ?F~,?0?5s??ܑK1>????c?/?IbE?HD?`?y CQ???b????8eM?L?z&???'ͩ?I?]? ?)H??;$ ?G???????*$??S?XrxrI?g5f???N%??? &?5Yڬ! \-?2!ԓ?E?2iěL W?d???9{"S*???C?E???WR1?U@e??}V?f???@?-?+?S????<ՄZ???Q?:???֚չ?D??????R?,?LQ??
?Kr??ߚٸ3??ʄZ+QĝQ?3?wF?V??UɊ??!?+$Hof?Z?Z???_ ?^ ?k????p??D~h?rtF;cM???h?r?iiU?h?ۻϘ?>F?1???}Jx?E3?R|4??t]9?V?d??֭?ezŗI???][?!nҳ>S??,M??qr?ڀwv??????0&z??? O!|̎!|4?
:>??˲??1ӻ?V0?.???.??}?~?g0{??????s+?1????? ???m?΂?"?R?? ?4=?c?!:?$?r????x?t?? oH? *???=?q7?C}P4l??
? ?oz?????FyC?@鴼????Y?e?PP
:???k?Ƅ.1??????]??S??Zo
?? ???]???6B=????Rzw???
??Ji.ݲ?Jwy?t?n?ۭU?5??????d??.(???ƞ????N??,)o? ???f???
6??x;)^?I%w7?ظٷ?
>5??4n??q???*x?֯????&????}:??%(}?2???g?????|???JA??q7?????Ox?Y?( w???U?<?̈́?QN?%`?????S?Dф?a?oF??iu??6???P???M?(bU?G? G,VK[???|t?r?5<????X??T??? LΕ??x??!J??9?1???
|???n??8<q+???i??⑊[\?2V+q?ɩ???
?W??:?g?v?C0Z?????_联'w`?>X,??o??b<?#??e?X1?n?9????^e?7?W?(Cl????;~?}???CC E?
?7|??m??[??????,?,??]'Ī???F? ܫX;?n\? ????Iz?????tVޡ?$To?t??,4?x<???m?xO{?5p(%??
<???T?Y:v$?c!$O?9R:??Λ? ?
OK????G?????p #??B2v ?@?q<.???"?`?~4?<x??c?;??Z?OE"Bt??;?B???pQ??7Kދӿf??
?
?{??<43&?.?)??*#?"'?
+?2/?"3?27͌?f??f?Ps??f??f??f??f??f???*_?c?g?2k?*o???? ꁀ??W3|???^?,a?,?? ?[?G?̏?\c?ٕ?M?R? 7?n?? sk7?Z????ӳ[?~?o?[?`?SΏ????age?x}?{t
?[??P??T??}?=̤?^k+?6/?s?y????zO?=?]?m?zG۬?????3m??y??:Wj?k|?m^?hms???? ??m^??m??G?f?????m??p?\??m???????? n?6W??-??E?m??ls]?`??yq(a?k# ??x.ʗ?????-@1/]????t-?ي;[qg+6???e?k
T??Ã7?G`!?Z????4s?~???BBU?p ????<.?/?yT????@?jF??p*nU*`ZRn\13??t??BQ???V??q???cUg?Z ؈?dal.?j ?E?U?????Rz???M???oZ\??s????,I8?Nj*?e?ׇ??s ?????
g?ʡP???e?%?????$/????I???L}??A?????m??5??;
??'\???n??g??v??j??|;`6uX,S??e??c?????
??ǹj??{?L
Z?b?j???]B?? AP?g?j62Bn?z۪?Kyh???x$?*rMJ2͠W?D\??nOO???jhU? ???\Jj<S+m<???3ڥZOX5????!0)??/_?U\?|?@?%s?:?????????1?{??u?)f s8`6p???K?RS?J?
??1?,i?E2???????v?윪?]?(?T????,?"t??-???P?IW?k=ͭ???O?z??mi?d?'?PDm?ȑӎݱ?EW- W&??Tj??QT-?Q?7N?D?$??*a???QZ??n?Z:|?y???g?6q?ͫR?@? ??!/0??c0?HN?HO?vtū??8>?]?ݩL=??o?????c{???? ?? ?5??J??EU'>??а?`??5?.c_??n?p?dao?h(???+H2U? %<??k?IQ??9-????@r????6??N???Υ\疼 ????7?`?T̓??0,}<«?^?OE?z??U'ieK??B=K?! 4#??-? ćՏ??j?s?Y??X???&N?yI??"n??"Z>S?k*??N??|13?U?9?-)?????PK  ?*+?)o?` e  star.gifs?t??L?f?bX? ?1l???`,????L
*?dad``g?? ?u`֪?
ݭ*?У??rV?,??FA]JEyA?????<?j??]x̰i?2#?5 PK   ?*+???` d ?? star2.gifPK   L??*?o??? m  ??? stars.phpPK    ?--+~??? ?a   ??? install_starshack.phpPK   ?*+?)o?` e  ??? star.gifPK   ? 

unclejojo16
04-01-2002, 10:41 PM
all that pops up when i get it

xtrim
04-03-2002, 10:48 AM
Hi,

I got a question for tubedogg.

First of all thanks for the hack.. my users really appreciate this forum feature.

Im trying to figure out on how to display star information on the welcome panel hack or the avatar in homepage hack. Could you point me out on doing this? I see I can get starlevel information from user table using the global bbuserinfo, but thats as far as I can get for getting some of the starlevel information needed.

Thanks in advance!

Emma
04-11-2002, 04:51 AM
I have a slight problem with this hack.... for awhile it wouldn't let people register, but I was able to fix that. the problem now is when people register, it takes them to the redirect page telling them click here to go back to where you were, thank you for registering.. blah blah blah, thing is tho, when they click it goes back to the main page and while it shows them as online in the online box at the bottom, the mainpage is that as if they are unregistered. I have a welcome panel/vbstats thing at the top of the main page that only registered members can view, and for some reason the new members can't see this. While showing there name as being online, it still has the log in box at the bottom and the log out link isn't there, meaning they aren't logged in...

Another weird point on this is that when they are taken to the redirect page after registering, if they click on the image at the top to return to the main page, it shows up like they are an actual member, but not if they click on the link that says, click here to return to where you where....

Also the redirect page that they are taken to after registering is the error_registeremail template instead of the normal page.

With the star hack uninstalled, I don't have this problem. Any pointers?

Thanks!
Emma

Emma
04-14-2002, 06:14 PM
bump! I still need help on this!

OmegaDB
04-14-2002, 10:38 PM
Does this work with 2.2.5?

I've heard rumours that maybe it doesn't, or at least causes issues.

Can anyone confirm this one way or the other?

Unknown553
04-15-2002, 02:05 AM
Runs fine on 2.2.5....

Emma
04-15-2002, 02:45 AM
got my problem cleared up!

Elly
05-06-2002, 07:35 PM
It isnt working for me ~ sniffles ~ the line in the admin index.php is not on mine >.< can someone please help me ?

ZiRu$
05-06-2002, 07:58 PM
I guess I'll try to install it on 2.2.4

Webmasta XT
05-29-2002, 01:34 AM
ok, when new users try to signup at my forumz, they get a database error, and I get a e-mail saying this..


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


PLZ SOMEONE HELP ME OUT, I have lost 40 members already.. :'( and its hasn't even been one day..

Webmasta XT
05-29-2002, 10:21 AM
never mind, I just undid the register.php part, and evrything is fine, One question though, How can I make 2 different images display on 2 different styles, like I wanna display one type of stars at one style and different type of star at another...
is it possible?

sharkito
06-06-2002, 03:41 PM
Does the hack work for vB 2.2.6 without alterations ?

N9ne
06-20-2002, 03:04 PM
bump, does it work with 2.2.6 without alterations??

Bro_Joey_Gowdy
06-26-2002, 06:27 PM
Im useing vB2.2.6 and thus for have only run into 2 errors during the install - listed below is how I corrected it for vB2.2.6 :


Original Version
admin/index.php
Step 1 of 1 find:
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Titles"); ?>
</table>
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="usertitle.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>
Just under that add:
<!-- Stars Hack -->
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Stars"); ?>
</table>
<a href="stars.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="stars.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>
<!-- Stars Hack End -->

Corrected Version
Find In Admin/index.php:
makenavselect("Users");
// ***
Add Below that:
makenavoption("Add","stars.php?action=add","|");
makenavoption("Modify","stars.php?action=modify");
makenavselect("Stars Hack");
// ***


and:


Original Version
admin/misc.php
Step 3 of 3 find:
maketableheader("Update Users Info</b> - </b>updates user titles<b>","",0);
Replace That With:
// Stars Hack
maketableheader("Update Users Info</b> - </b>updates user titles and stars<b>","",0);
// Stars Hack End

Corrected Version
admin/misc.php
Step 3 of 3 find:
maketableheader("Update User's Titles","",0);
Replace That With:
// Stars Hack
maketableheader("Update User's Titles and Stars","",0);
// Stars Hack End

Gary King
06-29-2002, 04:20 AM
[QUOTE]Originally posted by Bro_Joey_Gowdy
Im useing vB2.2.6 and thus for have only run into 2 errors during the install - listed below is how I corrected it for vB2.2.6 :



and:

GrayFOX
07-05-2002, 12:44 AM
<font color="009999">
can somebody tell me how to install this Hack, I'd try it but I don't have found a script in the admin/index.php which I have to repleace or take it under ... I have a vBulletin 2.2.6 version can it be that it goes only in the 2.2.3 version?

THX Raiden
</font>

Gary King
07-05-2002, 12:47 AM
[QUOTE]Originally posted by GrayFOX

can somebody tell me how to install this Hack, I'd try it but I don't have found a script in the admin/index.php which I have to repleace or take it under ... I have a vBulletin 2.2.6 version can it be that it goes only in the 2.2.3 version?

THX Raiden

justsomedude
07-05-2002, 12:29 PM
I too was able to install the stars on 226 & so far I see no problems.

The only alterations from the install srcipt I used were the ones posted by Bro_Joey_Gowdy a few posts up.

Additionally, One or 2 of the other modifications to the scripts didn't match evactly, but I replaced them anyway, and as I said, everything seems to be working perfectly.

As always, just be wise and back up your database & modified files before hand in the event of a problem. :squareeyed:

Gary King
07-05-2002, 01:06 PM
[QUOTE]Originally posted by justsomedude
I too was able to install the stars on 226 & so far I see no problems.

The only alterations from the install srcipt I used were the ones posted by Bro_Joey_Gowdy a few posts up.

Additionally, One or 2 of the other modifications to the scripts didn't match evactly, but I replaced them anyway, and as I said, everything seems to be working perfectly.

As always, just be wise and back up your database & modified files before hand in the event of a problem. :squareeyed:

Gary King
07-05-2002, 01:49 PM
The hack works on my test board, so that's one step better than where I was before :) Now I'll just have to figure out which hacks is clashing with the stars one :ermm:

warpeditor
07-09-2002, 08:23 AM
I have installed this hack and changed 2 files as Bro_Joey_Gowdy wrote.

Stars showed up and everything works fine except newreply.php. When i click the reply button, it says

Parse error: parse error, unexpected $ in /home/somewhere/public_html/newreply.php on line 539


What is this mean? I checked newreply.php line 539 but there's only ?> there.

Any ideas?

Bro_Joey_Gowdy
07-09-2002, 12:00 PM
here is my newreply.php


<?php
error_reporting(7);

$templatesused = "quotereply,newpost_postpreview,email_notify,emails ubject_notify,redirect_postthanks,email_moderator, emailsubject_moderator,threadreview,threadreviewbi t,newpost_attachment,newpost_disablesmiliesoption, forumrules,newreply,posticons,posticonbit";
$templatesused.=",vbcode_smilies,vbcode_smiliebit,vbcode_smilies_ge tmore,vbcode_buttons,vbcode_sizebits,vbcode_fontbi ts,vbcode_colorbits";

require("./global.php");

// get decent textarea size for user's browser
$textareacols = gettextareawidth();

$action = trim($action);
if (!isset($action) or $action=="") {
$action="newreply";
}

unset ($postpreview);
unset ($parseurlchecked);
unset ($emailchecked);
unset ($disablesmilieschecked);
unset ($signaturechecked);
unset ($previewchecked);
$rate = array();

// check for valid thread or post

if (isset($postid)) {
$postid=verifyid("post",$postid,0);
if ($postid!=0) {
$postinfo=getpostinfo($postid);
$threadid=$postinfo[threadid];
if ($postinfo[userid]==0) {
$originalposter=$postinfo[username];
} else {
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid='$postinfo[userid]'");
$originalposter=$getusername[username];
}
if ($postinfo[title]!="") {
$title="Re: ".unhtmlspecialchars($postinfo[title]);
}
$postdate=vbdate($dateformat,$postinfo[dateline]);
$posttime=vbdate($timeformat,$postinfo[dateline]);
$pagetext=$postinfo[pagetext];
$pagetext = preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $pagetext);
eval("\$message = \"".gettemplate("quotereply",1,0)."\";");
}
}

$threadid=verifyid("thread",$threadid);

$threadinfo=getthreadinfo($threadid);

if (!$threadinfo[visible]) {
$idname="thread";
eval("standarderror(\"".gettemplate("error_invalidid")."\");");
}
if (!$threadinfo[open]) {
if (!ismoderator($threadinfo[forumid],"canopenclose")) {
eval("standardredirect(\"".gettemplate("redirect_threadclosed")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");");
exit;
}
}

$permissions=getpermissions($threadinfo[forumid]);
if (($bbuserinfo['userid']!=$threadinfo['postuserid'] or $bbuserinfo['userid']==0) and (!$permissions['canviewothers'] or !$permissions['canreplyothers'])) {
show_nopermission();
}
if (!$permissions['canview'] or (!$permissions['canreplyown'] and $bbuserinfo['userid']==$threadinfo['postuserid'])) {
show_nopermission();
}

updateuserforum($threadinfo['forumid']);

// ############################### start post reply ###############################
if ($HTTP_POST_VARS['action']=="postreply") {

// check for subject and message
$message=trim($message);
if ($message=="") {
eval("standarderror(\"".gettemplate("error_nosubject")."\");");
exit;
}

// decode check boxes
$parseurl=iif(trim($parseurl)=="yes",1,0);
$email=iif(trim($email)=="yes",1,0);
$allowsmilie=iif(trim($disablesmilies)=="yes",0,1);
$signature=iif(trim($signature)=="yes",1,0);
$preview=iif(trim($preview)!="",1,0);

if ($wordwrap!=0) {
$threadinfo[title]=dowordwrap($threadinfo[title]);
}

$foruminfo=getforuminfo($threadinfo[forumid]);
$forumid=$foruminfo['forumid'];

if ($foruminfo['allowposting']==0) {
eval("standarderror(\"".gettemplate("error_forumclosed")."\");");
}

$visible=!$foruminfo[moderatenew];

// auto bypass queueing for admins/mods
if (ismoderator($foruminfo[forumid])) {
$visible=1;
}

if ($parseurl) {
$message=parseurl($message);
}
// remove sessionhash from urls:
$message=ereg_replace("&sessionhash=[a-z0-9]{32}","",$message);
$message=ereg_replace("\\?sessionhash=[a-z0-9]{32}","",$message);
$message=ereg_replace("&s=[a-z0-9]{32}","",$message);
$message=ereg_replace("\\?s=[a-z0-9]{32}(&)?","?",$message);

if (strlen($message)>$postmaxchars and $postmaxchars!=0) {
eval("standarderror(\"".gettemplate("error_toolong")."\");");
}

if ($preview) {
$previewpost=1;
$previewmessage=bbcodeparse($message,$threadinfo[forumid],$allowsmilie);

if ($signature) {
$post['signature'] = bbcodeparse($bbuserinfo['signature'],0,$allowsmilie);
eval("\$post[signature] = \"".gettemplate("postbit_signature")."\";");
$previewmessage.=$post['signature'];
}

eval("\$postpreview=\"".gettemplate("newpost_postpreview")."\";");

$parseurlchecked=iif($parseurl,"checked","");
$emailchecked=iif($email,"checked","");
$disablesmilieschecked=iif(!$allowsmilie,"checked","");
$signaturechecked=iif($signature,"checked","");
$previewchecked=0;

if ($rating) {
$rate["$rating"] = " selected";
}

$action="newreply";
} else {

$username = $HTTP_POST_VARS['username'];
$password = $HTTP_POST_VARS['password'];

if (isset($username) and !isset($bbuserinfo['username'])) {
$username = trim($username);
$username = eregi_replace("( ){2,}", " ", $username);

if (!$username) {
eval("standarderror(\"".gettemplate("error_nousername")."\");");
}
if ($userinfo=$DB_site->query_first("
SELECT user.*,userfield.*
FROM user,userfield
WHERE (username='".addslashes(htmlspecialchars($username))."' OR
username='".addslashes(eregi_replace("[^A-Za-z0-9]","",$username))."') AND
user.userid=userfield.userid")) {
if (!$password) {
eval("standarderror(\"".gettemplate("error_usernametaken")."\");");
} elseif (md5($password)!=$userinfo['password']) {
eval("standarderror(\"".gettemplate("error_wrongpassword")."\");");
} else {
$bbuserinfo = $userinfo;
$postusername = $bbuserinfo['username'];

if ($user['cookieuser']==1) {
vbsetcookie("bbuserid",$user['userid']);
vbsetcookie("bbpassword",$user['password']);
}
$DB_site->query("UPDATE session SET userid='$bbuserinfo[userid]' WHERE sessionhash='".addslashes($session['dbsessionhash'])."'");
}
} else {
$postusername = htmlspecialchars($username);
}
} else {
$postusername = $bbuserinfo['username'];
}

if ($enablefloodcheck) {
if ($bbuserinfo[userid]!=0 and time()-$bbuserinfo[lastpost]<=$floodchecktime and !ismoderator($foruminfo[forumid])) {
eval("standarderror(\"".gettemplate("error_floodcheck")."\");");
exit;
}
}

// check max images
if ($maximages!=0) {
$parsedmessage=bbcodeparse($message,$forumid,$allo wsmilie);
if (countchar($parsedmessage,"<img")>$maximages) {
eval("standarderror(\"".gettemplate("error_toomanyimages")."\");");
exit;
}
}

if ($logip==1 or $logip==2) {
if ($temp = getenv("REMOTE_ADDR")) {
$ipaddress = $temp;
} else if ($temp = $REMOTE_ADDR) {
$ipaddress = $temp;
} else {
$ipaddress = $HTTP_HOST;
}
} else {
$ipaddress="";
}

if (!isset($iconid) or $iconid=="") {
$iconid=0;
}
$iconid = intval($iconid);

$permissions=getpermissions($threadinfo['forumid']);
if (($bbuserinfo['userid']!=$threadinfo['postuserid'] or $bbuserinfo['userid']==0) and (!$permissions['canviewothers'] or !$permissions['canreplyothers'])) {
show_nopermission();
}
if (!$permissions['canview'] or (!$permissions['canreplyown'] and $bbuserinfo['userid']==$threadinfo['postuserid'])) {
show_nopermission();
}

/*if ($bbuserinfo[userid]==0) {
$postusername=$bbuserinfo[username];
} else {
$postusername="";
}*/

$title=censortext($title);
$message=censortext($message);

// sort attachement
if (is_array($HTTP_POST_FILES)) {
$attachment = $HTTP_POST_FILES['attachment']['tmp_name'];
$attachment_name = $HTTP_POST_FILES['attachment']['name'];
$attachment_size = $HTTP_POST_FILES['attachment']['size'];
}
if ($permissions[canpostattachment] and trim($attachment)!="none" and trim($attachment)!="" and trim($attachment_name)!="") {
$attachmentid=acceptupload($foruminfo[moderateattach]);
} else {
$attachmentid=0;
}

if ($email&&$bbuserinfo[userid]!=0) {
if (!$checkid=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE userid=$bbuserinfo[userid] AND threadid=$threadid")) {
$DB_site->query("INSERT INTO subscribethread (subscribethreadid,userid,threadid) VALUES (NULL,$bbuserinfo[userid],$threadid)");
}
}
// see if there has been a post identical to this in the last 5 mins. If so, update that one, as user has probably done a double post
$datecut=time()-300;
if ($prevpost=$DB_site->query_first("SELECT attachmentid,postid,visible FROM post WHERE threadid='$threadid' AND username='".addslashes($postusername)."' AND userid='$bbuserinfo[userid]' AND title='".addslashes(htmlspecialchars($title))."' AND dateline>$datecut AND pagetext='".addslashes($message)."'")) {
$postid=$prevpost[postid];

if ($prevpost[attachmentid]!=0) {
$DB_site->query("DELETE FROM attachment WHERE attachmentid = '$prevpost[attachmentid]'");
if ($attachmentid==0) {
$DB_site->query("UPDATE thread SET attach = attach - 1 WHERE threadid = '$threadid'");
}
}
$DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid',attachmentid='$attachmentid ' WHERE postid='$postid'");

// redirect
if ($prevpost[visible]) {
$goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
}
eval("standardredirect(\"".gettemplate("redirect_postthanks")."\",\"$goto\");");

} else {
if ($visible) {
sendnotification ($threadinfo['threadid'], $bbuserinfo['userid'], 0);
}

if ($attachmentid and !$foruminfo[moderateattach]) {
$DB_site->query("UPDATE thread SET attach = attach + 1 WHERE threadid = '$threadid'");
}
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($title))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconi d','$visible')");
$postid=$DB_site->insert_id();

indexpost($postid,0);

if ($visible) {
if ($threadinfo[replycount]%10==0) {
$replies=$DB_site->query_first("SELECT COUNT(*)-1 AS replies FROM post WHERE threadid='$threadid'");
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount='$replies[replies]',lastposter='".addslashes($postusername)."' WHERE threadid='$threadid'");
} else {
$DB_site->query("UPDATE thread SET lastpost='".time()."',replycount=replycount+1,lastposter='".addslashes($postusername)."' WHERE threadid='$threadid'");
}
}

if ($rating > 0 and $rating < 6 and $foruminfo['allowratings'] == 1) {
if ($permissions['canthreadrate']) {
$vote = intval($rating);
if ($ratingsel = $DB_site->query_first("SELECT vote, threadrateid
FROM threadrate
WHERE userid='$bbuserinfo[userid]'
AND threadid = '$threadid'")) {
if ($votechange) {
if ($vote != $ratingsel['vote']) {
$voteupdate = $vote - $ratingsel['vote'];
$DB_site->query("UPDATE threadrate SET vote='$vote'
WHERE threadrateid=$ratingsel[threadrateid]");
$DB_site->query("UPDATE thread SET votetotal=votetotal+$voteupdate
WHERE threadid='$threadid'");
}
}
} else {
$DB_site->query("INSERT INTO threadrate (threadid,userid,vote)
VALUES ('$threadid','$bbuserinfo[userid]','$vote')");
$DB_site->query("UPDATE thread SET votetotal=votetotal+$vote,votenum=votenum+1
WHERE threadid='$threadid'");
}
}
}

// update forum stuff
if ($visible==1) {
$DB_site->query("UPDATE forum SET replycount=replycount+1,lastpost='".time()."',lastposter='".addslashes($postusername)."' WHERE forumid IN ($foruminfo[parentlist])");
}

// update user stuff
$dotitle="";
if ($bbuserinfo[userid]!=0)
{

// Stars Hack
if ($foruminfo[countposts]) {
$usergstars=$DB_site->query_first("SELECT starlevel,starimg FROM usergroup WHERE usergroupid='$bbuserinfo[usergroupid]'");
if ($usergstars[starlevel]=="") {
$getstars=$DB_site->query_first("SELECT starlevel,starimg FROM stars WHERE minposts<=$bbuserinfo[posts]+1 ORDER BY minposts DESC LIMIT 1");
$userstarlvl=$getstars[starlevel];
$userstarimg=$getstars[starimg];
} else {
$userstarlvl=$usergstars[starlevel];
$userstarimg=$usergstars[starimg];
}
$dostars=",starlevel='$userstarlvl',starimg='$userstarimg'";
}
// Stars Hack End

if ($bbuserinfo[customtitle]==0 && $foruminfo[countposts])
{
$usergroup=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid='$bbuserinfo[usergroupid]'");
if ($usergroup[usertitle]=="") {

$getprofilefield=$DB_site->query_first("SELECT profilefieldid from profilefield where 1 and title = 'Ranksystem' LIMIT 0, 1");
$gettitle=$DB_site->query_first("Select rankdetail.title from user left join userfield on user.userid = userfield.userid left join rankdetail on userfield.field" . $getprofilefield[profilefieldid] . " = rankdetail.rankid where user.userid= $bbuserinfo[userid] and rankdetail.minposts <= user.posts+1 ORDER BY rankdetail.minposts DESC LIMIT 1");
$usertitle=$gettitle[title];
} else {
$usertitle=$usergroup[usertitle];
}
$dotitle="usertitle='".addslashes($usertitle)."',";
}

// Stars Hack
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."'$dostars WHERE userid='$bbuserinfo[userid]'");
// Stars Hack End
}

// send email to moderators
if ($enableemail) {
$moderators=$DB_site->query_first("SELECT newpostemail FROM forum WHERE forumid='$threadinfo[forumid]'");

$mods=$DB_site->query("SELECT DISTINCT user.email FROM moderator LEFT JOIN user USING (userid) WHERE moderator.forumid IN ($foruminfo[parentlist]) AND moderator.newpostemail=1");
while ($mod=$DB_site->fetch_array($mods)) {
$moderators[newpostemail].=' '.$mod[email];
}
$moderators[newpostemail]=trim($moderators[newpostemail]);

if ($moderators[newpostemail]!="") {
$bbuserinfo['username']=unhtmlspecialchars($bbuserinfo['username']); //for emails
$mods=explode(" ",$moderators[newpostemail]);
while (list($key,$val)=each($mods)) {
if (trim($val)!="") {
$subject=$threadtitle;
$toemail=$val;

eval("\$emailmsg = \"".gettemplate("email_moderator",1,0)."\";");
eval("\$emailsubject = \"".gettemplate("emailsubject_moderator",1,0)."\";");

mail($toemail,$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
}
}
$bbuserinfo['username']=htmlspecialchars($bbuserinfo['username']); //back to norm
}
}

// redirect
if ($visible) {
$goto="showthread.php?s=$session[sessionhash]&postid=$postid#post$postid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]";
}
eval("standardredirect(\"".gettemplate("redirect_postthanks")."\",\"$goto\");");
}
}
}

// ############################### start new reply ###############################
if ($action=="newreply") {

if ($wordwrap!=0) {
$threadinfo[title]=dowordwrap($threadinfo[title]);
}

$message = htmlspecialchars($message); // Without this, a </textarea> in the message breaks the form on preview
$title = htmlspecialchars($title);

$foruminfo=getforuminfo($threadinfo[forumid]);

$threadratingoption = '';
if ($foruminfo['allowratings']==1 and $permissions['canthreadrate']==1) {
if ($rating=$DB_site->query_first("SELECT vote, threadrateid FROM threadrate
WHERE userid = $bbuserinfo[userid] AND threadid = '$threadid'")) {
if ($votechange) {
$rate[$rating[vote]] = " selected";
eval("\$threadratingoption = \"".gettemplate("newreply_ratethread")."\";");
} else {
$threadratingoption = "";
}
} else {
eval("\$threadratingoption = \"".gettemplate("newreply_ratethread")."\";");
}
}

if ($foruminfo['allowposting']==0) {
eval("standarderror(\"".gettemplate("error_forumclosed")."\");");
}

$bbcodeon=iif($foruminfo[allowbbcode],$ontext,$offtext);
$imgcodeon=iif($foruminfo[allowimages],$ontext,$offtext);
$htmlcodeon=iif($foruminfo[allowhtml],$ontext,$offtext);
$smilieson=iif($foruminfo[allowsmilies],$ontext,$offtext);

// draw nav bar
$navbar=makenavbar($threadid,"thread",1);

unset($ignore);
$ignorelist = explode(' ', $bbuserinfo['ignorelist']);
while ( list($key, $val)=each($ignorelist) ) {
$ignore[$val] = 1;
}
if ($ignore) {
eval("\$ignoreduser = \"".gettemplate("threadreviewbit_ignore")."\";");
} else {
$ignoreduser = '';
}

if (($bbuserinfo[maxposts] != -1) and ($bbuserinfo[maxposts] != 0)) {
$maxposts = $bbuserinfo[maxposts];
}
$posts=$DB_site->query("
SELECT IF(post.userid=0,post.username,user.username) AS username,
post.pagetext,post.allowsmilie,post.userid FROM post
LEFT JOIN user ON user.userid=post.userid
WHERE post.visible=1 AND post.threadid='$threadid'
ORDER BY dateline DESC LIMIT " . ($maxposts+1)); // return +1 so that check later will still work

$threadreviewbits = '';
while ($post=$DB_site->fetch_array($posts)) {
if ($postcounter++ < $maxposts) {
if ($postcounter%2 == 0) {
$backcolor = "#F1F1F1";
$post[bgclass] = "alt1";
} else {
$backcolor = "#DFDFDF";
$post[bgclass] = "alt2";
}
$username=$post[username];
if ($ignore[$post[userid]]) {
$reviewmessage = $ignoreduser;
} else {
$reviewmessage = bbcodeparse($post[pagetext],$threadinfo[forumid],$post[allowsmilie]);
}
eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
} else {
break;
}
}
if ($DB_site->num_rows($posts)>$maxposts) {
eval("\$threadreviewbits .= \"".gettemplate("threadreview")."\";");
}

if ($bbuserinfo[userid]!=0 and !$previewpost) {
if ($bbuserinfo[signature]!="") {
$signaturechecked="CHECKED";
}
if ($bbuserinfo[emailnotification]!=0) {
$emailchecked="checked";
}
}

if ($foruminfo[allowicons]) {
$posticons=chooseicons($iconid);
} else {
$posticons="";
}

if (!isset($parseurl)) {
$parseurlchecked="CHECKED";
}

$maxattachsize_temp = getmaxattachsize();

if (phpversion() < '4.0.3') {
$enctype = 'enctype="multipart/form-data"';
} else if (ini_get('file_uploads')) {
$enctype = 'enctype="multipart/form-data"';
} else {
$enctype = '';
}

if ($permissions[canpostattachment] and (!$safeupload or function_exists("is_uploaded_file"))) {
eval("\$attachmentoption = \"".gettemplate("newpost_attachment")."\";");
} else {
$attachmentoption="";
}

$vbcode_smilies = '';
$vbcode_buttons = '';
if ($foruminfo[allowsmilies]) {
if ($bbuserinfo[showvbcode] && $allowvbcodebuttons) {
$vbcode_smilies = getclickysmilies();
}
eval("\$disablesmiliesoption = \"".gettemplate("newpost_disablesmiliesoption")."\";");
} else {
$disablesmiliesoption="";
}
if ($bbuserinfo[showvbcode] && $allowvbcodebuttons) {
$vbcode_buttons = getcodebuttons();
}

getforumrules($foruminfo,$permissions);

eval("dooutput(\"".gettemplate("newreply")."\");");

}

?>

joschiv
07-09-2002, 06:51 PM
don`t forget to Update your coounter...otherwise the stars will not be shown......

lawnmowerman
07-11-2002, 11:12 PM
Where is their a most recent version of this great hack?

lawnmowerman
07-12-2002, 05:52 PM
Bump

Bro_Joey_Gowdy
07-13-2002, 09:41 AM
Originally posted by lawnmowerman
Where is their a most recent version of this great hack?

this hack works with vb 2.2.6

;)

Caliber
07-15-2002, 08:58 PM
Hello all,

Any help would be appreciated.

We are running stars with 2.2.6. We have three usergroups (Admins, Mods, Platinum) that are all supposed to receive the special star https://vborg.vbsupport.ru/external/2002/07/1.gif

The "Star image shown" is set to platstar for all three usergroups. However, only Admins and Mods get this special star and the Platinum members wrongly get the regular star https://vborg.vbsupport.ru/external/2002/07/2.gif

Any suggestions on what is keeping the Platinum members form getting the special star that is set in the "Star image shown" field like the Admins and Mods?

Mithan
07-24-2002, 06:57 PM
Im having a problem....

Im getting the following error code:

Database error in vBulletin 2.2.6:

Invalid SQL: Select rankdetail.title from user left join userfield on user.userid = userfield.userid left join rankdetail on userfield.field = rankdetail.rankid where user.userid= 460 and rankdetail.minposts <= user.posts+1 ORDER BY rankdetail.minposts DESC LIMIT 1
mysql error: Table 'ac2hqdb.rankdetail' doesn't exist

mysql error number: 1146

Date: Wednesday 24th of July 2002 02:00:57 PM
Script: http://www.ac2hq.com/forum/forum/newreply.php
Referer: http://www.ac2hq.com/forum/newreply.php?s=&action=newreply&threadid=2014


Obviously, something is screwed in the newreply.php thread. I installed the one that Bro-Joey posted above.

Can anybody give me a hand fixing this?

Thanks.

Thewnagchung
07-24-2002, 07:16 PM
Hi.

whenever I try to install this hack, i get a weird T_encassed error from functions.php o.O

I have not installed any hacks outside of quick reply.

what am i doing wrong?

and im 2.2.6

Thewnagchung
07-25-2002, 07:11 PM
here is my functions.php

could someone modify it for me? cus iam so confused why it wont work....

Wolf42
07-26-2002, 12:31 PM
Originally posted by Thewnagchung
here is my functions.php

could someone modify it for me? cus iam so confused why it wont work....

First: You are not allowed to post hole vbulletin-files by license agreement!!! Please remove the attachment!

Secound: I told you here (https://vborg.vbsupport.ru/showthread.php?postid=276841#post276841) how and where to modify your functions.php.

Toxid
07-29-2002, 05:38 PM
Ghet der Hack auch für 2.2.6

Do teh Hack also work at 2.2.6 ( sorry but i cannot speak english, i hope the sentence is quitly correct )

Toxid
07-29-2002, 05:38 PM
Ghet der Hack auch für 2.2.6

Do the Hack also work at 2.2.6 ( sorry but i cannot speak english, i hope the sentence is quitly correct )

justsomedude
07-29-2002, 07:29 PM
Originally posted by Toxid
Ghet der Hack auch f?r 2.2.6


ja bearbeitet diese Kerbe auf geradem Gebrauch 2,2,6 die ?nderungen innen this post (https://vborg.vbsupport.ru/showthread.php?postid=266174#post266174) Initally I hatte ein Problem, in dem neue Benutzer nicht registrieren konnten. Ich entfernte die ?nderungen an register.php und alles ist fein seit dem gelaufen.


Do the Hack also work at 2.2.6 ( sorry but i cannot speak english, i hope the sentence is quitly correct )


yes this hack will work on 2.2.6
just use the modifications in this post (https://vborg.vbsupport.ru/showthread.php?postid=266174#post266174)

Initally I had a problem where new users could not register. I removed the modifications to register.php and everything has been running fine since.

PSI|Dr-X
08-14-2002, 01:03 PM
Fatal error: Call to undefined function: adminlog() in /home/planets/public_html/AdminOnly/forum/admin/stars.php on line 8


I keep getting that error if someone could help out it would be greatly appreciated

btw this is what's on line 8

adminlog(iif($starid!=1,"star id = $starid","http://www.planetside.info/AdminOnly/forum/images/stars"));

crazza
09-20-2002, 12:41 PM
I've created a VBHacker install file for StarHack 0.2.4

I updated the version because it incorporates several changes for VBulletin 2.2.6 .. and now also works in combination with some other hacks that have added items to several insert and update queries.

Please note that this 'release' does not contain any star images nor the stars.php file. See the original release for those..

It is tested on my own board. It runs 2.2.6 with PMGauge, QuickReplyBox with open/close and several other hacks previously installed.

I Had no trouble whatsoever installing the hack, but still.. make a backup of your database as well as the files affected by this hack.

If you're installing over an older or corrupted version of this hack, please make sure you take extra care with the SQL Queries... see the original Stars Hack 0.2.3 installation for details.

Attached file contains VBHacker.php as well as the StarHack_0.2.4.hack.php file which contains all the changes.

See this thread https://vborg.vbsupport.ru/showthread.php?s=&threadid=36378&highlight=vbhacker for more info on VBHacker and VBHackmaker.

UnForums2k
11-20-2002, 08:03 AM
hmmm has anyone attempted this hack with 2.2.8 ???

Marcel tha Mast
11-22-2002, 08:57 AM
yes and it works!

Savant
12-17-2002, 12:57 AM
nice hack, ill give her a try

UnForums2k
01-24-2003, 05:20 AM
nice... but if tubedogg or some one else has time i really dont feel like reading through 25 pages of changes and updates.... did it work right out of the zip for you?

Darker Lord
02-05-2003, 12:53 AM
Um, when I am installing, when I go to this step:

**Find

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

**and replace with

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

This is in the file Admin/Misc.php

Anyhow, that line can't be found. Please help!

Shadow_NL
02-19-2003, 03:31 PM
When I'm editing my files I also need to edit this:

root/newthread.php

Step 2 of 2 find:

$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");

I couldn't find it, till I noticed that I already changed it with Zajako's RPG hack to:

// Zajako's Rpg hack pay per post
$DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."',rpgmoney=rpgmoney+'$moneynewthread' WHERE userid='$bbuserinfo[userid]'");
}
// end zajako's rpg hack pay per post

How can I edit this to the right code which is needed to install this stars hack? I don't want to drop Zajako's RPG hack ofcourse.

Thanks in advance.

Jacko
02-27-2003, 08:16 PM
Originally posted by Marcel tha Mast
yes and it works!

may i ask how :rolleyes: :cheeky:

Jacko
03-02-2003, 05:21 PM
Anyone got this to work on 2.2.9 yet??

if so can they MSN me??

monstergamer
03-12-2003, 10:25 PM
i ran the installer and it finesh but idont see any thing

Serge
03-13-2003, 01:22 AM
Originally posted by Shadow_NL
When I'm editing my files I also need to edit this:

root/newthread.php

Step 2 of 2 find:

$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");

I couldn't find it, till I noticed that I already changed it with Zajako's RPG hack to:

// Zajako's Rpg hack pay per post
$DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."',rpgmoney=rpgmoney+'$moneynewthread' WHERE userid='$bbuserinfo[userid]'");
}
// end zajako's rpg hack pay per post

How can I edit this to the right code which is needed to install this stars hack? I don't want to drop Zajako's RPG hack ofcourse.

Thanks in advance.

Ok well the only thing that you added with Zajako's hack is:


rpgmoney=rpgmoney+'$moneynewthread'


If you could post the change you have to make I can give you something to replace with because it is just a matter of finding the differences and makeing it that way.

Shadow_NL
03-17-2003, 05:24 PM
Find:

$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
}

CHANGE it to:

// Zajako's Rpg hack pay per post
$rpgadmin = $DB_site->query_first("SELECT * FROM rpgmoneyadmin");
$payme=$rpgadmin[newthread];
$DB_site->query("UPDATE user SET ".iif ($foruminfo[countposts],"posts=posts+1,","")." $dotitle"."lastpost='".time()."',rpgmoney=rpgmoney+'$payme' WHERE userid='$bbuserinfo[userid]'");
}
// end zajako's rpg hack pay per post

catocom2
03-18-2003, 04:35 AM
I need a slight bit of help on the index.php.

I installed this hack way back at ver 2.0.0.
It worked fine until I hada hacker crash my database for me. :ermm:
Anyway I'v installed updates up to 2.0.3, and ran the
forum for quite a while without stars, although the old
stars.php, and my star graphics where in place.
(also the database tables were still ok.)
I recently upgraded to 2.3.0, and decided to try this
again.
I did the upgrade, and ther were some slight changes, but I
got it working great.
The only problem I have is I made the new stars catigory
in the index.php, but since it's change so much I can't figure
out how to get the "add" & "modify" catigories under the header.
I uploaded the new stars.php, and if I go directly to it, everything
is in place. I just would like to get to it through the admin cp.

Thanks
This is still a great hack. :banana:

I stuck this in the index ????
//<!-- Stars Hack -->
maketableheader("User Stars");
makenavoption("Modify","stars.php?action=add","|");
makenavoption("Modify","stars.php?action=modify");
//<!-- Stars Hack End -->

catocom2
03-18-2003, 04:46 AM
eh
nevermind I forgot I save this text file...
Got it working. :banana:

//Stars Hack
makenavoption("Add","stars.php?action=add","<br>");
makenavoption("Modify","stars.php?action=modify","<br>");
makenavselect("User Stars");
//End Stars Hack


Adaption Instructions by damicatz

Thanks Tubedogg and damicatz.

floridaideal
03-18-2003, 08:19 AM
Hi all

I am really getting down with this hack, I went by the instructions and have changed all the files and used the modified code but then I started getting errors.

First was my registration, I could not see a way out so I replaced my hacked registration page with the original one. All seems ok and no difference to the hack.....or will it?

Now I just tried to modify a user group and I am getting '
Parse error: parse error, unexpected $ in /home/virtual/site76/fst/var/www/html/forum/admin/usergroup.php on line 308'

I did everything by the book, btw is there a copy of the stars.txt file that I can download so I can have another go and editing the files, the only information was in the installation file which I cant read again without wiping my tables.

Please someone, I am in urgent need of some help, thank you.

catocom2
03-18-2003, 01:21 PM
floridaideal,
I'll see if I can help.
First, what vB ver are you using.

floridaideal
03-19-2003, 11:05 AM
Thank you very much catocom2

I am running version 2.2.8, the hack seems to still be working ok on my forum but the usergroups and registration didnt work, so I replaced both files with the original files and it seems to work but still not happy about doing that, would rather edit the files to work properly.

Does anyone please have the stars txt file so I can check over the files again please?

Thanks

Stuart

catocom2
03-19-2003, 12:45 PM
Here's the install file that I just quick converted for you to html.
It's not pretty, but I think you can read it enough to get the info
that you need.

floridaideal
03-19-2003, 01:22 PM
Thanks Catocom2

Thats great, but I just edited usergroups again and still getting this error :

Parse error: parse error, unexpected $ in /home/virtual/site76/fst/var/www/html/forum/admin/usergroup.php on line 239

Just attached my usergroups file, can you please take a look?

Thank you again

Stuart

catocom2
03-19-2003, 06:36 PM
There may be another place, and I not sure of the differences
in 2.2.8 and 2.3.0, but..
on line 178 (i think) you might need to add the attachment thing.

where this is.. (close to the end of the line)
canwhosonlineip=$canwhosonlineip WHERE

change to..
canwhosonlineip=$canwhosonlineip,cangetattachment= $cangetattachment WHERE

I think there may be another place too, Sorry my mem isn't so good.

Where ever you are supposed to change that long line you need to make that change.

floridaideal
03-21-2003, 01:10 PM
Thanks again for all your help Catocom2 but unfortunitly that didnt work either :(

Got this error Parse error: parse error, unexpected $ in /home/virtual/site76/fst/var/www/html/forum/admin/usergroup.php on line 239

It wont let me Add | Modify any Usergroups

Its just something out, can't be too much, just can't work it out, spend the last hour looking over it.

Have attached the file again for all those clever VB'ers out there.

Thanks you.

iceman11111
03-26-2003, 05:50 PM
I have a problem!

I installed this hack, and did all the changes!

Now when I click Add and fill in all the info and then click submit I get a blank screen.

What did I do wrong?

P.S I am not to good with php, but I am trying :)

iceman11111
03-26-2003, 07:12 PM
This is what I am getting!

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

DarkDraco07
05-07-2003, 01:08 AM
i installed this and it works perfectly fine. my only problem is that i set admins to 6 start (custom color) and mods to 5 stars (red) and it either shows 2 yellow stars or none at all.

my regular posters get the correct amount of stars based on posts but admins / mods only get 2 yellow stars

DarkDraco07
05-07-2003, 01:46 AM
btw, i temporarily changed the amount of stars admins / mods get by editing my users table in my database until someone helps me

Sondawg
07-04-2003, 04:03 AM
Column count doesn't match value count at row 1

esfron
07-27-2003, 03:17 PM
Is it working with 2.3.0 ?

Gary King
07-27-2003, 09:46 PM
[QUOTE]Today at 12:17 PM esfron said this in Post #392 (https://vborg.vbsupport.ru/showthread.php?postid=421016#post421016)
Is it working with 2.3.0 ?

Airs
07-28-2003, 12:55 AM
Like Gary said i made it work on vb2.3.0 with the proper modifications.

The Realist
08-20-2003, 11:57 AM
Anyone willing to post what changes are needed for 2.3.0

07-28-03 at 02:55 AM Airs said this in Post #394 (https://vborg.vbsupport.ru/showthread.php?postid=421120#post421120)
Like Gary said i made it work on vb2.3.0 with the proper modifications.

Bro_Joey_Gowdy
04-25-2004, 03:47 AM
Can this be made available for vb3 or is it already implimented in vb3 - if it is then i have not found it ?

catocom2
04-25-2004, 01:57 PM
I use the user rank settings. ;) (in vb3)

Photon
05-08-2004, 12:34 AM
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Titles"); ?>
</table>
<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>

add under

<!-- Stars Hack -->
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Stars"); ?>
</table>
<a href="stars.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="stars.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>
<!-- Stars Hack End -->

Can someone modify this for 2.3 ??

Photon
05-08-2004, 12:52 AM
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Titles"); ?>
</table>
<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="user.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>

add under

<!-- Stars Hack -->
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Stars"); ?>
</table>
<a href="stars.php?s=<?php echo $session[sessionhash]; ?>&action=add"> Add </a> |
<a href="stars.php?s=<?php echo $session[sessionhash]; ?>&action=modify"> Modify </a>
</td></tr>
<!-- Stars Hack End -->


Can someone modify this for 2.3 ??

modified it myself..

makenavoption("Add","usertitle.php?action=add","|");
makenavoption("Modify","usertitle.php?action=modify");
makenavselect("User Titles");

under add

// ***
makenavoption("Add","stars.php?action=add","|");
makenavoption("Modify","stars.php?action=modify");
makenavselect("User Stars");
// ***



if you follow the other options (standard) this hack will work on 2.30