PDA

View Full Version : Stars v0.2.3


Pages : [1] 2

tubedogg
03 Jun 2001, 02:42
Thanks to Bane there has been a complete reworking of the installation/instructions for this hack. It is now up to date for 2.0.3 and the installer runs exactly like the vB install/upgrade scripts do.

There is no demo as I don't currently use stars on my board.

For version: 2.0.3

Files needed: stars.php

Files to edit: newthread.php, newreply.php, admin/misc.php, admin/index.php, admin/usergroup.php, register.php and possibly stars.php

Templates to edit: postbit

Instructions: Upload install_starshack.php and stars.php to your admin directory. Go to example.com/admin/install_starshack.php and login, then follow the on-screen instructions.

Upgrade information: If you have previously installed the stars hack, make sure you choose the "upgrade" option on the screen mentioned in the instructions. If you have previously installed this version (using install_starshack.php), you MUST STILL use the upgrade option even if you are reinstalling or you will get database errors.

This hack is © 2001 Kevin Schumacher and may not be redistributed, modified or not, without prior permission.

Please DO NOT contact me via AIM, ICQ, PM, or email about this hack. Post your question/problem here and I will try to help you.

Feedback appreciated.

AnnaFan
03 Jun 2001, 10:04
Thanx man,

I hope this works :rolleyes:

AnnaFan
03 Jun 2001, 10:24
Hi tubedogg,

what does this mean:

****In the postbit _template_****
**Find
<smallfont>$post[usertitle]</smallfont><br>
**Replace it with
<smallfont>$post[usertitle]</smallfont><br>$post[stars]<br>

I have not any file which is called postbit. Can you say me where to find this file (admin?). There is only a file which is called template.php in the admin directory.

freehtml
03 Jun 2001, 10:25
I can't find the code in my register.php


$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotification,receivepm,emailonpm,showsignatures,birthday,ma xposts,startofweek,ipaddress,pmpopup,referrerid,nosessionhash)


can its too long to post the register.php over here

freehtml
03 Jun 2001, 10:27
Originally posted by AnnaFan
Hi tubedogg,

what does this mean:

****In the postbit _template_****
**Find
<smallfont>$post[usertitle]</smallfont><br>
**Replace it with
<smallfont>$post[usertitle]</smallfont><br>$post[stars]<br>

I have not any file which is called postbit. Can you say me where to find this file (admin?). There is only a file which is called template.php in the admin directory.

Go to your CP > Templates > Edit > Default > Postbit Templates > Postbit

Then modify as the code above..

AnnaFan
03 Jun 2001, 10:30
thanx freehtml :D

AnnaFan
03 Jun 2001, 10:32
Originally posted by freehtml
I can't find the code in my register.php


$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotification,receivepm,emailonpm,showsignatures,birthday,ma xposts,startofweek,ipaddress,pmpopup,referrerid,nosessionhash)


can its too long to post the register.php over here

Hi freehtml,

I have no problems to change the code in my register.php. Which Version do you have?

AnnaFan
03 Jun 2001, 10:38
Hi,

I changed everything successful but when I try to edit the stars for the user groups I have this error:

There seems to have been a slight problem with the 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.

This error is shown nearly on everything in the cp
:confused: :confused:

freehtml
03 Jun 2001, 11:00
Originally posted by AnnaFan


Hi freehtml,

I have no problems to change the code in my register.php. Which Version do you have?

Hi,

I am using vBulletin 2.0.0 final....

Can send me ur register.php??:)

AnnaFan
03 Jun 2001, 11:19
Hi tubedogg,

works fine so good!! But I have an error when I want to make a new thread =>

Parse error: parse error in newthread.php on line 265

I think there is something wrong. Can you fix it please?

tubedogg
03 Jun 2001, 16:17
Originally posted by AnnaFan
There seems to have been a slight problem with the 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.

This error is shown nearly on everything in the cp

Can you view the source of the error page and copy and paste it here? Or copy and paste the email you should have received?

tubedogg
03 Jun 2001, 16:27
Originally posted by AnnaFan
Parse error: parse error in newthread.php on line 265

I can't get this thing to post the code directly, so download the attached file and make the changes noted in it and let me know if that helps.

WEAPON
03 Jun 2001, 17:04
Could you make it so that different levels can have different color stars instead of all of them having the same color stars and all that changes is the number?

tubedogg
03 Jun 2001, 17:13
Originally posted by WEAPON
Could you make it so that different levels can have different color stars instead of all of them having the same color stars and all that changes is the number?This is already possible...change the "Star Image" for each level. You cannot make one level have 5 different color stars, but each level can have a different color star.

Also you could create one image that had multiple different color stars, and assign that image to be displayed once for a certain level - wallah, a bunch of different color stars for one level.

AnnaFan
03 Jun 2001, 17:14
Hi tubedogg,

great job man! Everything works fine now! Thanx.

First-Man
03 Jun 2001, 17:18
thx tubedogg
Can you Update the star.zip File?
Big thx again...
bye bye

tubedogg
03 Jun 2001, 17:26
Updated.

WEAPON
03 Jun 2001, 18:57
****In admin/index.php****
**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>
**Right below it, add
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("User Titles"); ?>
</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>

This makes the new code also be named User Titles instead of Stars. The second "User Titles" should be changed to "Stars".

tubedogg
03 Jun 2001, 18:59
Yeah, my bad. Fixed.

dadada
03 Jun 2001, 19:33
IVE BEEN WAITING FOR THIS SOOOO LONG

THANX AGAIN U ROCK ;)

i have to go try it right away now :D

snyx
03 Jun 2001, 20:39
Originally posted by tubedogg
Also because I can't get into the old thread to edit it. :rolleyes:
My bad, sorry tubedogg, but thanks for the hack!

ThomasP
04 Jun 2001, 18:23
Hi tubedogg,

does this hack work with PHP3?

Oh... erm, could you please, please have a look at your 'who's online hack' thread (http://161.58.84.213/forum/showthread.php?s=&threadid=16152&perpage=15&pagenumber=9), I'm having a hard time with it :o

Thanks,
-Tom

SSJ4 Saiya-jin
05 Jun 2001, 02:27
In the user titles>admin, I can not seem to make it show some stars I want. It is just one star file that I want to be viewed in 5, but it won't.

tubedogg
05 Jun 2001, 02:49
Are you chaning it under User Groups > Admin > [edit] or User Titles? User titles won't do anything - to set a default for a group you need to edit it under User Groups.

SSJ4 Saiya-jin
05 Jun 2001, 02:54
How do you change it the right way then?
Here is how I am changing it:
Under Administrator I click Edit and then I type it in. It does not work.:( Its frustraighting.
Do you have to do it for each user, or the group such as the group admin. I am doing it by group.

jamesdasher
05 Jun 2001, 21:05
Hi, I have a problem, but I don't know what it is :) as far as I can tell I have done everything I am supposed to do, but they just aren't showing up...no errors or anything, they just don't appear? What do I do?

tubedogg
05 Jun 2001, 21:10
Did you Update Counters?

(Admin CP > Update Counters > Users & Stars)

jamesdasher
05 Jun 2001, 21:13
Yes, I did...please help :)

tubedogg
05 Jun 2001, 21:29
Do you have $post[stars] somewhere in your postbit template?

jamesdasher
05 Jun 2001, 21:32
Yes...sorry about this...

fastforward
06 Jun 2001, 03:56
Another hack installed and working. I'm going on a hack installation spree :D

Thanks for this one tubedogg.

Lesane
06 Jun 2001, 20:57
I just installed the hack and it works great, expect that no one cant register anymore, ill get a mysql error:
this is the error:

Database error in vBulletin: Invalid SQL: INSERT INTO user (userid,username,password,email,styleid,parentemail,coppauser,homepage,icq,aim,y ahoo,signature,adminemail,showemail,invisible,usertitle,joindate,cookieuser,days prune,lastvisit,lastactivity,usergroupid,timezoneoffset,emailnotification,receiv epm,emailonpm,showsignatures,birthday,maxposts,startofweek,ipaddress,pmpopup,ref errerid,nosessionhash,starlevel,starimg) VALUES (NULL,'PaCaLyPsE','kwanie',lala@lala.com,'1','','0','http://','','','','','1','1','0','Beginner','991856220','1','-1','991856220','991856220','2','0','1','1','0','yes','0','-1','1','169.12.167','0','0','1','1','1')
mysql error: Unknown column 'showsignatures' in 'field list'
mysql error number: 1054
Date: Wednesday 06th of June 2001 09:37:00 PM
Script: /board/register.php

pllllzzz help, no new member anymore.... i already received 9 of them...:(

SSJ4 Saiya-jin
06 Jun 2001, 22:59
I still cant get the stars to show for the admin user group. What I want is one star that changes to other colors. I want 6 of them to show, and I have filled in the information correctly for the administrator user group, but it still does not work. :( can some one please help.

tubedogg
07 Jun 2001, 00:16
The thing mentioned two posts up about register.php - that was my bad. I apparently missed that query when rewriting the directions. :o

Anyway, the correct query is now in the stars.txt file in the zip file. Sorry about that.

Dakota
07 Jun 2001, 02:29
SSJ4, Under User Groups and permissions go to modify, then esit the administrator section to how you want it. Then go to Update counters and press Update on the Update Users info box.

SSJ4 Saiya-jin
07 Jun 2001, 02:33
Thanks dakota :). Seen you round on a nother forum too. Bet you know. :) great job at that forum.

SSJ4 Saiya-jin
07 Jun 2001, 02:43
Hmm... For some reason it dislikes me.

SSJ4 Saiya-jin
07 Jun 2001, 04:53
When ever some one tries to register i get this sent to me


Database error in vBulletin: Invalid SQL: INSERT INTO user
(userid,username,password,email,styleid,
parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,join
date,cookieuser,daysprune,lastvisit,lastactivity,usergroupid,timezoneoffset,emai lnotification,receiv
epm,emailonpm,options,birthday,maxposts,startofweek,ipaddress,pmpopup,referrerid ,nosessionhash,starlevel,starimg)
VALUES
(NULL,'SS_4_Goku00','pokeball','ss_4_goku00@yahoo.com','1','','0','','','','','' ,'1','1','0','Junior
Member','991885732','1','-1','991885732','991885732','2','0','1','1','0','15','0','-1','1','127.0.0.1','0','0','1')
mysql error: You have an error in your SQL syntax near 'join
date,cookieuser,daysprune,lastvisit,lastactivity,usergroupid,timezoneoffset' at
line 1
mysql error number: 1064
Date: Thursday 07th of June 2001 03:48:52 AM
Script: /forum/register.php
Referer: http://www.guyverout.f2s.com/forum/register.php


How do I allow them to register? :((

tubedogg
07 Jun 2001, 06:02
I'm assuming you copied and pasted out of the thread here instead of using the zip file.

Replace all this:
$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotification,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup,referrerid,nosessionhash,starlevel,starimg) VALUES NULL,'".addslashes(htmlspecialchars($username))."','".addslashes($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')");
$userid=$DB_site->insert_id();
with the query on line 173 of stars.txt that starts
$DB_site->query("INSERT INTO user

Lesane
07 Jun 2001, 08:12
Originally posted by tubedogg
The thing mentioned two posts up about register.php - that was my bad. I apparently missed that query when rewriting the directions. :o

Anyway, the correct query is now in the stars.txt file in the zip file. Sorry about that.

it works great now.
thnx.

Dakota
07 Jun 2001, 08:24
I had that same problem, so I just put my backup copy back up, and it has worked fine ever since.

SSJ4 Saiya-jin
07 Jun 2001, 17:05
Originally posted by Dakota
I had that same problem, so I just put my backup copy back up, and it has worked fine ever since.

Thankds Dakota :), it works GREAT NOW.

Jyaki
07 Jun 2001, 18:59
Everything went smoothly. One question though. How can I get the stars to show up in the user's profile, similar to their avatars?
thanks

maverick1236
08 Jun 2001, 17:21
here is my usergroup php file (http://happyhome1.homestead.com/files/usergroup.txt)

the error im getting when i click on modify user groups and permissions is this :

Parse error: parse error in e:\program files\nusphere\apache\htdocs\forums\admin\usergroup.php on line 84

By looking at the modified file i cant see any errors-do you?

im using vbulletin 2.0.0

thanks for any help-this looks like a great hack!

SSJ4 Saiya-jin
08 Jun 2001, 17:53
I know this is off topic, but how did you install php and mysql on apache? I need to know.

On the other side, I think maby you installd the hack wrong. Check over it again.

maverick1236
08 Jun 2001, 17:54
If i didnt know that i wouldnt be posting here

can anyone SEE anything wrong in the file?
tx 4 checking

tubedogg
08 Jun 2001, 18:17
First off take that file off the web. You are violating the license agreement by posting it.

Second your line 84 ends in$maxforwardpm)"); ###################### Start edit #######################Change that to$maxforwardpm)");
// ###################### Start edit #######################

kicks
08 Jun 2001, 18:40
Good hack tube and excellent instructions :)
I was able to hack it right into my vb 2.0.1 install with vbportal on top of it without too many modifications, only a few of the queries had to be changed :D

Great job!

maverick1236
08 Jun 2001, 18:48
I 4got
ill take it off now!

maverick1236
08 Jun 2001, 18:57
now the errors just on line 85 :(

smacwill
09 Jun 2001, 07:17
I installed your Star Hack and it works, but, the different colors for different levels don't. I do have the alternate image setup under the User groups.

If I set a number in the "Stars shown" then the alternate color will show. However, I would like the different levels to work up the ladder.

I removed everything and re-installed again to make sure I didn't miss anything.

Any idea what I screwed up when I installed it?

Thanks for your valuable time.

Skip.....
www.overclockers.com

tubedogg
09 Jun 2001, 07:23
I'm not sure I completely understand the problem. Using the ladder, you can assign a different color and/or a different number of stars to each "rung". Using a usergroup default overrides this ladder, and always displays the same image no matter what.

So basically I'm not sure what you're saying not works. Can you clarify it a little more? Maybe list some examples groups and how you want them to work?

smacwill
09 Jun 2001, 07:34
Sure...

I want the normal "ladder" to work for all groups. Earn Stars by making more posts.

Admin - Red Stars
Moderators - Green Stars
Members - Yellow Stars

The Yellow stars are set as the default under CP - User Stars

In the Admin Group, I have nothing in "Stars shown" and I have "red" in the star image shown.


In the Moderators Group, I have nothing in "Stars shown" and I have "green" in the star image shown.

In the Members Group, I have nothing in "Stars shown" and I have "yellow" in the star image shown.

In the Forums, the Yellow Stars show for everyone. If I put a number, say 5, in the "Stars Shown" field in the Admin Group, it will then show 5 red stars when by #posts, he should only have 1.

Hope that helps. See http://forums3.overclockers.ws.

tubedogg
09 Jun 2001, 07:41
Oh I see. That's not possible with my current hack. It's a good idea though...I'll probably look into it for a future version.

Sorry :(

smacwill
09 Jun 2001, 07:51
At least I know I'm not nuts :)

Should be pretty easy, just query the image from the user record, if it's there, display it, if not, use the default.

We use that type of system on our regular Forums http://forums.overclockers.ws and the users love it. Can't wait for the import scripts so we can start using vBulletin.

Thanks for you time and sorry for the pm earlier.


Skip.....

SSJ4 Saiya-jin
09 Jun 2001, 16:47
Ill post my stars

http://www.guyverout.f2s.com/forum/images/stars/admin.gif = Admin
http://www.guyverout.f2s.com/forum/images/stars/mod.gif = Moderator
http://www.guyverout.f2s.com/forum/images/stars/star.gif = Member

Jyaki
09 Jun 2001, 17:30
So, is it possible to get the stars to show in the profile too?

thanks
-Hideki

maverick1236
09 Jun 2001, 19:01
my usergroup php file still has an error-after i i did what tube dog suggested -everything else is fine-what do i do?

SS2 Dan
19 Jun 2001, 02:35
I installed the hack and there were no errors, but the stars won't show, but I did update the counters

SSJ4 Saiya-jin
20 Jun 2001, 03:18
Worked fine for me.

kdog316
22 Jun 2001, 01:22
Originally posted by AnnaFan

There seems to have been a slight problem with the 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.

This error is shown nearly on everything in the cp
:confused: :confused:

i am getting that same erorr and here is whats in the view sorce.

Database error in vBulletin Control Panel: Invalid SQL: INSERT INTO stars (starid,starlevel,minposts,starimg) VALUES (NULL,'1','1','stars90')
mysql error: Table 'allarou_tmbps.stars' doesn't exist
mysql error number: 1146
Date: Thursday 21st of June 2001 08:16:18 PM
Script: /forum/admin/stars.php
Referer: http://tmbps.allaroundsite.com/forum/admin/stars.php?action=add

tubedogg
22 Jun 2001, 07:58
Did you upload and run the mysql.php file from the zip?

MApI
23 Jun 2001, 16:59
Works well with my 2.0.1 :D

Thanx, Tubedogg; great hack !!!

bye

:cool:

maverick1236
23 Jun 2001, 17:33
tx!

peteqlee
26 Jun 2001, 11:41
Is this work with php3?

First-Man
26 Jun 2001, 12:16
When ever some one tries to register.....

<!-- Database error in vBulletin: Invalid SQL: INSERT INTO user (userid,username,password,email,styleid,parentemail,coppauser,homepage,icq,aim,y ahoo,signature,adminemail,showemail,invisible,usertitle,joindate,cookieuser,days prune,lastvisit,lastactivity,usergroupid,timezoneoffset,emailnotification,receiv epm,emailonpm,showsignatures,birthday,maxposts,startofweek,ipaddress,pmpopup,ref errerid,nosessionhash,starlevel,starimg) VALUES (NULL,'dddd','ddd','sach@ich.nicht','1','','0','http://','','','','','1','1','0','Junior Member','993553514','1','-1','993553514','993553514','2','0','1','1','0','yes','0','-1','1','127.0.0.1','0','0','1','','')
mysql error: Unknown column 'showsignatures' in 'field list'
mysql error number: 1054
Date: Tuesday 26th of June 2001 01:05:14 PM
Script: /vbb/register.php
Referer: http://localhost/vbb/register.php
-->

This is my register.php
thx

tubedogg
26 Jun 2001, 13:35
Did you download the zip file from the first post in this thread? Nowhere in there does it contain the text showsignatures - did you download v0.1.0 (from the other thread) maybe by accident?

First-Man
26 Jun 2001, 13:50
No i download the file after your update. (this Thread)
After this (http://www.vbulletin.com/forum/showthread.php?s=&threadid=19081#post120054). 06-03-2001 04:18 PM

tubedogg
26 Jun 2001, 14:01
The last update was on 6-06-01 - try downloading the zip file again.

First-Man
26 Jun 2001, 14:56
*goil*:cool: thx
Iīve update my files (register.php). It works fine.

Eternal_Dragon
28 Jun 2001, 19:25
You MUST upload your star images to a new directory called "stars" inside your "images" directory. If your images directory is not called "images" and is not directly inside your forums directory, you must change this in where it appears below (it only appears once, under the showthread.php section):
Change
images/stars/
to
path/to/images/
Then you must change it in the stars.php file, towards the bottom. This time, though, you must preceed your path with .. because you are going up one directory (stars.php goes in your admin directory!)
Example: ../path/to/images/

First, make changes to all the files mentioned in this file. They are: newthread.php, newreply.php, admin/misc.php, admin/index.php, admin/usergroup.php, register.php, and the postbit template. Once you have completed this, upload those files (obviously you can't upload the template <grin> ) to your site, and then upload mysql.php and stars.php to your admin directory.


i am trying to install the star hack on to my board


what does that mean????? like i have no clue

tubedogg
30 Jun 2001, 06:03
Which part don't you understand?

Dolamite
02 Jul 2001, 19:38
In admin/usergroup.php

it says to replace this

if ($action=="insert") {

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmodifyprofile,canviewmembers,can view,cansearch,canem
ail,canpostnew,canmove,canopenclose,candeletethread,canreplyown,canreplyothers,c anviewothers,canedit
post,candeletepost,canusepm,canpostpoll,canvote,canpostattachment,ismoderator,ca npublicevent,canpubl
icedit,canthreadrate) VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)." ',$cancontrolpanel,$canmodifyprofile,$canviewmembers,$canview,$cansearch,$canema il,$canpostnew,$canm
ove,$canopenclose,$candeletethread,$canreplyown,$canreplyothers,$canviewothers,$ caneditpost,$candele
tepost,$canusepm,$canpostpoll,$canvote,$canpostattachment,$ismoderator,$canpubli cevent,$canpublicedi
t,$canthreadrate)");


I have some different code in my file though



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

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmodifyprofile,canviewmembers,can view,cansearch,canem
ail,canpostnew,canmove,canopenclose,candeletethread,canreplyown,canreplyothers,c anviewothers,canedit
post,candeletepost,canusepm,canpostpoll,canvote,canpostattachment,ismoderator,ca npublicevent,canpubl
icedit,canthreadrate,cantrackpm,candenypmreceipts,maxbuddypm,maxforwardpm)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)." ',$cancontrolpanel,$canmodifyprofile,$canviewmembers,$canview,$cansearch,$canema il,$canpostnew,$canm
ove,$canopenclose,$candeletethread,$canreplyown,$canreplyothers,$canviewothers,$ caneditpost,$candele
tepost,$canusepm,$canpostpoll,$canvote,$canpostattachment,$ismoderator,$canpubli cevent,$canpublicedi
t,$canthreadrate,$cantrackpm,$candenypmreceipts,$maxbuddypm,$maxforwardpm)");

$action="modify";

echo "<p>Record added</p>";

}





I'm a little stuck here.... so I just kinda stopped midway thru the process till i can get some expert help as this is my first vB hack......


(i am however upgrading my board to 2.0.1 today.... if you think that will change anything let me know :)

tubedogg
03 Jul 2001, 05:20
Make sure you have downloaded the latest file from the first post in this thread.

You should probably wait until you've successfully upgraded to 2.0.1 to install the hack - it will mean less work for you in the end.

Dolamite
04 Jul 2001, 18:58
yeah good call turbo..... i just sent you a PM.... hope ya get it soon :)


i could use a little help

:D

Dolamite
07 Jul 2001, 00:46
ok i finally got 2.0.1 installed and it fixed THAT problem... but presented another one.....in the MISC.PHP file

my originl file:


[DO NOT POST THE SOURCE OF ENTIRE FILES]


What it tells me to change i do NOT have for some reason.... and by using the ORIGINAL one from the 2.0.1 version... and editing it..... i got a database error....

EVERYTHING ELSE WAS DONE EXACTLY as it should have been...... i used to do hacks on UBB..... so I'm not (totally :) incompetant... but i may not be able to speel that word :)


anyhow....... anyideas as to why... that 1 file would be different.....and not have the variables i need to change (my baord is working great by the way....) I just wanted to add stars.

Well... if anyone can help.... I would appreciate it

snyx
07 Jul 2001, 01:39
like a charm ;)

we78
07 Jul 2001, 18:34
installed and all is fine got no errors but still see no starts
btw: i have seen them on win2k server but not on linux
any ideas?:confused: :confused:
vbb: 2.0.1

tubedogg
07 Jul 2001, 19:36
Dolemite: Two things - first please edit the code out of your post as it against the license to post it like that. Second you are editing the wrong misc.php file - you need to edit the one in the admin folder, not the main forums folder.

Dolamite
08 Jul 2001, 02:57
sorry i didnt realize i could not post the code

i apploagize

Dolamite
08 Jul 2001, 03:03
just fyi though tube.... that IS the file from the ADMIN dir.....

that seems to be the problem...... those 2 files are the same... i think... same size anyhow

but if i edit the original (from 2.0.1 realease..... it dosnt work)

eger
11 Jul 2001, 00:25
is there any particular order to do the steps? i run the mysql.php , then update the users and stars. no luck, stars don't show. when i add a new user stars, it shows the star pic, so i know the images are in the right place, and i edited all the code correctly (since i copied the edited files from a board where the stars DID work). so i dont know whats up, any suggestions?

Oliver
11 Jul 2001, 16:45
The old thread is still open and hence i dl`ed the older version. Someone should delete that.

Anywayz, im about to upgrade to latest version of stars, one question, in the readme it says not to run mysql.php if you have installed a previous version of stars (v0.0.2 in my case), how then can the modified code on various pages insert or update starimg into the usergroup table when starimg doesn`t exist?

Regards
oli

oh, vB2.0.0 by the way

Shadow_Xj5
12 Jul 2001, 01:02
Originally posted by we78
installed and all is fine got no errors but still see no starts
:confused: :confused:
vbb: 2.0.1

I get the same problem :/ I have installed the hack with no code errors, I have upgraded the database with no errors, I have set the star 'ladder' and have given cetain goups a set amount of stars, the star.gif is loaded in the CP so they are in the right place, I have also updated all the counters.

BUT I CANT SEE MY STARS :(

there code is exexcited as i get the extra <br> in the code. but the stars are not shown, any ideas? anyone?!

Vb 2.0.1

ShadowTech
12 Jul 2001, 05:58
I had everything replaced and installed correctly .. and the stars would not show in the post under the user's name. It does show in the control panel tho .. so basically I am having the same problem as this other Shadow dude. (we are NOT the same person btw)

Tidus
13 Jul 2001, 04:23
ok here is my problem:

I changed everything successful but when I try to edit the stars for the user groups I have this error:

There seems to have been a slight problem with the 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.

This error is shown nearly on everything in the cp

Dakota
13 Jul 2001, 08:12
Shadow did you edit the postbit template? if not, then there is no way the stars will show. It worked fine for me the first time I installed it.

Oliver
13 Jul 2001, 09:58
ATTN: Tubedogg

As per my post above, is there an easy way to upgrade to starsv0.2.0?

I have v0.0.2 installed (due to dl`ing from the old thread.)

Could I just upload the original *.php files, then delete the databasse entries via phpMyAdmin that refer to starlevel?

Help please as whenever i`m in control panel using usergroup.php i get errors. I`ve also had a couple of errors from newthread and newreply, though these dont seem as common.

Whats the best way???

Regards
Oli

Tidus
13 Jul 2001, 15:27
did anyone see my post im getting there is a problem with the database, sorry for the inconvenience. when i go to add star levels or modify them

Shadow_Xj5
13 Jul 2001, 20:53
Dakota:

Yes :( this is what I can't understand, I far as I know I have done everything right, I have deffintly edited the postbit as I get the gap where the star should show, also when I view the soruce


<td bgcolor="#DFDFDF" width="175" valign="top" nowrap>
<a name="post35"></a>
<a name="newpost"></a>
<font face="verdana, arial, helvetica" size="2" ><b>The_Gringo</b></font><br>
<font face="verdana,arial,helvetica" size="1" >Junior Member</font><br><!--Stars should show here!--><br>
<img src="avatar.php?userid=5&dateline=994983979" border="0" alt=""><p>
<font face="verdana,arial,helvetica" size="1" >Registered: Jul 2001<br>
Location: <br>
Posts: 7</font></td>


I even get the extra <br> that the star code produces, (I added the comment to highlight the location)

:( This is really getting me down, as we had them on our UBB and everyone want them on this, which I told them I could do :(

Dont suprose anyone as the files ? (I have no other hacks installed)

Plz email them to me here (shadow_xj5@btinternet.com)

This souldn't effect the lience agreement as I own it anyway :confused:

Thanks.

tubedogg
14 Jul 2001, 21:02
Shadow_Xj5: Did you run Update Counters > Users?

Tidus: What is the actual error you are getting? (View the source of the page and it should also be emailed to you).

Oliver: Download the file attached to this post, rename it to mysqlupgrade.php and run it from your admin directory. Then do the rest of the instructions - do not run mysql.php.

tubedogg
14 Jul 2001, 21:03
Hmm...here's the file.

Shadow_Xj5
14 Jul 2001, 22:49
Yep, serveral times :(

hum, maybe I should just restore everything and then try to install it again?

thanks.

Oliver
16 Jul 2001, 09:53
Cheers tubedogg. Shall sort this out this a.m.

Have you managed to delete the first thread for stars yet?

Regards
oli

Kengan
20 Jul 2001, 03:42
I try to add on my register.php. it show me a error ... any idea? :(

J Dot Blk
26 Jul 2001, 20:10
any one knwos whats wrong i installed the stars hack seemed like everything was perfect but then i got a message saying

"There seems to have been a slight problem with the 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." do any one know whats wrong???

J Dot Blk
27 Jul 2001, 00:31
nevermind i fixed it

ThomasP
28 Jul 2001, 17:12
Hi,

got PHP4 installed from my provider and it works now - though it would be good to mention that you need PHP4.
vBulletin works on PHP3 so it's worth mentioning...

But: Now it works - great job!

Attached my stars (small and normal sized).
Here's my setup with the small stars:

http://www.mcseboard.de/forum/images/stars.gif

I know that the number of postings is set a little bit low, but my board just recently opened...

Thanks Tubedogg!
-Tom

Harizz
30 Jul 2001, 06:43
it works good except i cant post a reply but I can post a thread. This is what it says when I want to post a reaply.

Parse error: parse error in /home2/harizz/public_html/newreply.php on line 313


Please help me tube dog cause I really need those stars. thanxx for any help.

Harizz
30 Jul 2001, 07:14
Now it says this, I tried to fix it but now it says this.

Parse error: parse error in /home2/harizz/public_html/newreply.php on line 162


tubedogg if u know the problem please tell me cause I would really appreciate it.
THANXX for stars trick anyways.

snyx
31 Jul 2001, 21:30
tubeboy, I upgraded to 2.0.3 and we got no showthread stuff in it? I can't find ANY lines in this;

****In showthread.php****
**Find
if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}

Ideas?

Thanks,
snyx

Freddie Bingham
31 Jul 2001, 22:18
Second function in functions.php

snyx
31 Jul 2001, 22:24
let me try

snyx
31 Jul 2001, 22:32
it worked, but you guys changed around other code I can't find, ahhhh, to much hassle, I'll to it later :mad:

Harizz
01 Aug 2001, 20:44
Nobody ain't answering my question. Come on TUBEDOGG do u ever check this topic. Shoot I need somebody's help.


Parse error: parse error in /home2/harizz/public_html/newreply.php on line 162


Can anybody fix that. THANXXXX

snyx
01 Aug 2001, 22:41
leave tubedogg alone, he created the hack, its his discretion to want to keep working on it or not.

Pie'oh'pah
02 Aug 2001, 00:43
Originally posted by snyx
it worked, but you guys changed around other code I can't find, ahhhh, to much hassle, I'll to it later :mad:

works for me....

Harizz
02 Aug 2001, 07:17
I said tubedogg can u please help me with my stars cause I get this error. Whats there leave him alone. Whats the point then if he made it but cant work for me. Tubedogg made it that's why i am asking him. He is probably the only one who knows that and I cant ask somebody else. I asked TUBEDOGG can u please fix this cause I get this error


Parse error: parse error in /home2/harizz/public_html/newreply.php on line 162

Tubedogg can u please fix the error and do u know whats the problem. thank you.

webhost
02 Aug 2001, 08:57
I read a post earlier, but I really see an answer so I will ask again.
Recently upgraded to 2.0.3 can someone give the correct placement in the showthread.php file, it works with the other files but I am struggling with this file.
Any help would be appreciated/

Thanks

Pie'oh'pah
02 Aug 2001, 09:22
Hi Joey,

instead of showthread.php you need to edit the admin/functions.php !

**Find

if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}


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


That's it. :D:D

-Alex

Dimitri
02 Aug 2001, 09:50
Thanks. With that little change, the hack works for me on 2.0.3 just fine. :cool:

Pie'oh'pah
02 Aug 2001, 10:48
Glad i could help, even if i only made a little more clearly, what's been already stated by freddy.

I guess, his head was still full of code when he gave his "hint" on where to look for it :D:D:D

-Alex

Mobile
02 Aug 2001, 14:34
Got a problem with register.php, when someone registers they get this error
There seems to have been a slight problem with the 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.

and i've done the mysql.php file put still get the same problem.

Can someone please help me.
Thanks Mobile

monkeybot
02 Aug 2001, 15:35
it works with function.php modified

Pie'oh'pah
02 Aug 2001, 16:04
Sign hack installed? may be this gives additional workarounds to care of...

Mobile
02 Aug 2001, 17:31
no hacks installed on board m8,
heres my register.php file


Thanks Mobile


<<<attachment removed - you cannot post vBulletin source files>>>

Pie'oh'pah
02 Aug 2001, 20:16
what error exactly do you get via email?
and what version of vB do you use?

Mobile
02 Aug 2001, 20:20
i am using verison 2.0.3 and the error code is
<!-- Database error in vBulletin: Invalid SQL: INSERT INTO userfield (userid,field1,field2,field3,field4) VALUES (,'','','','')
mysql error: You have an error in your SQL syntax near ''','','','')' at line 1
mysql error number: 1064
Date: Thursday 02nd of August 2001 08:45:46 PM
Script: /upload/register.php
Referer: http://127.0.0.1/upload/register.php
-->
Mobile

ThomasP
02 Aug 2001, 21:30
Originally posted by Mobile
no hacks installed on board m8,
heres my register.php file
Thanks Mobile

You MUST not post vb sources!
-Tom


edit: Thanks freddie for the hint, works great in 2.0.3

WEBDosser
02 Aug 2001, 22:29
Any chance of getting this to work with 2.0.3 i got down to showthread.php and it's not the same..

Please..

Pie'oh'pah
02 Aug 2001, 22:49
Originally posted by WEBDosser
Any chance of getting this to work with 2.0.3 i got down to showthread.php and it's not the same..

Please..

Any chance you take care of reading the thread at all??

Scroll up dude! Answer is 10 posts backwards...

HelpME
03 Aug 2001, 07:33
Can this hack work for 2.0.0 cause I have that . Please respond somebody cause I am nEw and I need help. I am beginner.

Oliver
03 Aug 2001, 14:22
Weve got it working fine on v2.0.0

just follow the steps

oli

HelpME
03 Aug 2001, 14:38
Do I need to just download the zip file and then just follow the steps or do I even have to do like this that people have some problems. Lots of people had problems that's Why I am asking. Thanks Guys for the code cause I would love to have stars. KOOOL!!

HelpME
04 Aug 2001, 16:26
I have that same error like Harizz. Hey Harizz how did u fix it. I cant fix mine. Or i should forget about it and just get XMB forum cause it has stars already installed.

tubedogg
04 Aug 2001, 22:17
I would be much more willing to help if you entered valid license information into your profiles.

HelpME
05 Aug 2001, 03:44
So u just dont wanna help us. Ok. I dont get it. This thing with these codes sucks. Always some problems. Wheres that Harizz shoot. he probably fixed his. He ain't responding. HMM. ohh well thanxx for that tubodogg I will enter my license code. Nah. I dont feel like. I am not really safe with that stuff. I will keep it on my paper. Untill I install XBM then u can have my code. OK
See ya then

WEBDosser
05 Aug 2001, 04:02
Hey Pie'oh'pah.

No need for that dude.. we all need some help now and then..especially when a hack says one thing and means another..

Anyways got the hack working that same day..

To the rest of you i give a BIG thankyou for your help, i really like this hack.. just hope there's no more upgrades for a while..LOL

Pie'oh'pah
05 Aug 2001, 10:51
Originally posted by WEBDosser
Hey Pie'oh'pah.

No need for that dude.. we all need some help now and then..especially when a hack says one thing and means another..

Anyways got the hack working that same day..


That wasn't meant as an offence or stuff. Just that your question was answered by me 10 posts before.

I would appreciate (as everyone else i suppose), one reads the thread before stating his/her question, since it may already have been answered.

Now, since i'm german, and english ain't my primary language, may be I lag to understand your last posting addressing me.

If so, I apologize :D

-Pie

White Chocobo
11 Aug 2001, 00:57
So do you plan on re-writing this hack? Cause the some PHP codes on vB 2.0.3 have been changed and some of the stuff you can't find anymore.

tpearl5
16 Aug 2001, 07:16
I want the normal "ladder" to work for all groups. Earn Stars by making more posts.

Admin - Red Stars
Moderators - Green Stars
Members - Yellow Stars

The Yellow stars are set as the default under CP - User Stars

In the Admin Group, I have nothing in "Stars shown" and I have "red" in the star image shown.

In the Moderators Group, I have nothing in "Stars shown" and I have "green" in the star image shown.

In the Members Group, I have nothing in "Stars shown" and I have "yellow" in the star image shown.

In the Forums, the Yellow Stars show for everyone. If I put a number, say 5, in the "Stars Shown" field in the Admin Group, it will then show 5 red stars when by #posts, he should only have 1.


Originally posted by tubedogg
Oh I see. That's not possible with my current hack. It's a good idea though...I'll probably look into it for a future version.

Sorry :(

I'm trying to do the same type of thing. Basically you can't have a different star image inless you have the 'star shown' field filled in along with the 'Star Image shown' ?

DevilsMania.com
16 Aug 2001, 09:49
I DID ALL, i have v 2.03 and i still can't see any stars....

now if i go to the mysql.php page thru the browser i get this msg:


There seems to have been a slight problem with the 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.


Database error in vBulletin Control Panel: Invalid SQL: CREATE TABLE stars (
starid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
minposts smallint(5) unsigned DEFAULT '0' NOT NULL,
starlevel CHAR(5) NOT NULL,
starimg CHAR(25) NOT NULL,
PRIMARY KEY (starid)
)
mysql error: Table 'stars' already exists
mysql error number: 1050
Date: Thursday 16th of August 2001 04:36:41 AM
Script: /admin/mysql.php
Referer: https://66.33.25.215:81/index.cgi?query=status



-what is this ?
how to fix it ?

thanks...

Pie'oh'pah
16 Aug 2001, 10:59
You try to create a table that already exists!

The mysql.php only needs to be run 1 time.

DevilsMania.com
16 Aug 2001, 11:05
and how do i fix that ? ... ? :eek: :confused:

Pie'oh'pah
16 Aug 2001, 11:08
Well, this aint an error actually.

it simply means the table has been created before (which is good).
You should be able to setup your 'starsystem' within your admin cp.

-Alex

DevilsMania.com
16 Aug 2001, 11:32
but if that it's not a problem... ... ...
anyway i can't see that and the stars thing is installed and can be modified in the admin panel..... but i still see 0 stars..................................................................


thnx :)

Pie'oh'pah
16 Aug 2001, 11:58
Have you updated the counters?

DevilsMania.com
16 Aug 2001, 15:18
yeps...

http://forum.devilsmania.com/admin/mysql.php

...

Pie'oh'pah
16 Aug 2001, 15:28
wtf is that link supposed to mean?

update user info and stars in your admin cp, that's what you got to do

Bald Bouncer
17 Aug 2001, 07:47
Thanks for that it worked fine and my board now has stars, my head now hurts and I need a lie down though :D

rickjansen105
17 Aug 2001, 09:07
maybe someone posted this already, but this thread is sooo long (10 pages!)

uhm, is this working with VBB 2.0.3?

Thomas P
17 Aug 2001, 09:55
Yep, is working...
Read page 8, especially Pie'oh'pah's posting.
It's not "VBB", it's "vB" :rolleyes:
hth,
-Tom

P.S.: There's a saying in german - Wer lesen kann ist klar im Vorteil :D
(nope, won't translate that ;) )

rickjansen105
17 Aug 2001, 12:53
Originally posted by Thomas P
P.S.: There's a saying in german - Wer lesen kann ist klar im Vorteil :D


muhahahah
i can understand German (at least enough for that single line ;))
hmm... i CAN read, but i don't want to :)
anyway, thx for your reply...

this hack is a nice piece of good vB hacking... Good job Tubedogg! Thx!

maverick1236
18 Aug 2001, 04:20
im running 2.03-the stars hack went well-no errors at all

only problem is-no stars show up in postbit-there is a space where they would be-but thats it

ive checked my paths and updated counters-no luck

any suggestions?

thanks!!

Pie'oh'pah
18 Aug 2001, 08:05
Hmmm

make sure you don't use file extensions for the stars in the admin cp.....

else...dunno, not much information to work with :p

-Alex

illogicalx
20 Aug 2001, 00:08
mmm

I have used that hack with 2.0.3 but there is one problem

In the user groups its working well

But in the posts part it couldn’t work automatically .

Mike D One
20 Aug 2001, 16:23
I get the exact same problem with vb203 hack install without a problem but stars don't show in the posts :(
stars show up in the control panel but nothing in the post the only hack in place is couner on front page and total view in front page.

any suggestion?

illogicalx
20 Aug 2001, 16:31
sorry it's working now :)

just i remove the star from the member title in user groups

now it's working a great hack

Pie'oh'pah
20 Aug 2001, 17:27
Originally posted by Mike D One
I get the exact same problem with vb203 hack install without a problem but stars don't show in the posts :(
stars show up in the control panel but nothing in the post the only hack in place is couner on front page and total view in front page.

any suggestion?

You probably made same mistake as illogicalX.

In the UserGroups only add stars for such as Admin and Mods, those who are given a fixed amount of stars.

for the users u will need to configure the star system according to their postings.

eg:

10 Posts = 1 Star
20 Posts = 2 Stars
...
100 Posts = 10 Stars

or whatever suites you best.

What i'm saying is, that users, who'll get their stars by postcount are not to be declared in the UserGroups setup

hth

-Alex

Mike D One
20 Aug 2001, 17:28
I finally solved my problem of stars not showing in the post with vb203
when i installed i edited only funcions.php and not showtread.php and guess what i was wrong !
i edited like mentioned by Pie'oh'Pah but i also edited the showtread with the same code and now is perfectly working !

Originally posted by Pie'oh'pah
Hi Joey,

instead of showthread.php you need to edit the admin/functions.php !

**Find

if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}


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


That's it. :D:D

-Alex

Pie'oh'pah
20 Aug 2001, 18:06
Well...

thats strange. To my knowledge, the strings you need to change/find/replace for this hack to work aren't part of showthread.php (at least not in my v2.0.3)

if you are on 2.0.3 you need to edit the admin/functions.php instead of showthread.php

I know it's uncomfortable to read all 10 pages to find a solution, but nevertheless necessary sometimes :p

So if you are on v2.0.3 you ONLY need to make that changes in admin/functions.php, NOT in showthread.php (because you would not find them there (usually :D))

Users of Versions <= v2.0.2 will need to edit the showthread.php.

Maybe we got different versions of showthread.php, even if we are both on v2.0.3 ??

-Alex

Kehfera
21 Aug 2001, 02:02
Stars Hack Thread (http://www.vbulletin.com/forum/showthread.php?s=&threadid=24411&perpage=15&pagenumber=1)

Mike D One
21 Aug 2001, 03:42
Originally posted by Pie'oh'pah
Well...

thats strange. To my knowledge, the strings you need to change/find/replace for this hack to work aren't part of showthread.php (at least not in my v2.0.3)....

.....I know it's uncomfortable to read all 10 pages to find a solution, but nevertheless necessary sometimes :p

So if you are on v2.0.3 you ONLY need to make that changes in admin/functions.php, NOT in showthread.php ..........
-Alex

I know what your saying but i've read all the 10+ pages before posting :) and i edited both code and it's working just great !!
we must have 2 different files as i'm running 203 no doubt about that ;)

anyhow i'm happy as is working !

Hope everyonelse get it to work to !:D

Mike D One

k@mi
21 Aug 2001, 04:59
I can't find this in showthread.php

if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}

Mike D One
21 Aug 2001, 06:54
I'm sorry if i misslead some of you with my direction.
i have the code in showtread.php because i had installed a hack that added that code.........i just looked in the original unedited files of vb203 and the code is not there :p

Good luck and i hope you get it to work as it's so much better than the other stars hack going around as you get full cp control :)

Mike D One

Dakota
21 Aug 2001, 07:27
The code that is says to find in showthread.php is now located in admin/functions.php just find it in there and do whatever the instructions say to do to showthread.php

tubedogg
25 Aug 2001, 17:59
Updated for 2.0.3 --> See the first post in this thread.

joecrow
25 Aug 2001, 18:13
can u include some multi colour flashing stars instead of the boaring red and yellow ones please.

Thomas P
25 Aug 2001, 18:23
Originally posted by joecrow
can u include some multi colour flashing stars instead of the boaring red and yellow ones please.

That should be your job.
Tubedogg provided us with his fantastic hack, the graphics is up to you - look for others or do them yourself!
-Tom

Bane
25 Aug 2001, 18:38
Small mistake I made in the installer on line 391 and 399 should be a html comment <! -- not a php comment // :(

joecrow
25 Aug 2001, 18:43
can u repack the hack then

Bane
25 Aug 2001, 18:49
I'm sure tubedogg will. I dont have access to his post though.

tubedogg
25 Aug 2001, 21:20
It's fixed and updated.

tweak
26 Aug 2001, 04:13
Nice hack thanx man

LuBi
26 Aug 2001, 08:45
Yea this works great easy install my first hack. Check my site if you need an example. Thanks again Bane, thanks tubedogg.

MApI
28 Aug 2001, 00:00
As usually, great job ! & simple to install. Thx again.

VB 2.0.3

bye

tamarian
31 Aug 2001, 20:08
Step 2 of 2 find:

.... PHP code

Just under that add:


Should be

Replace with

If you add under, new users will be added to user table in duplicates.

AJR
02 Sep 2001, 00:22
Hey Tubedog... very nice hack! I installed this a few weeks ago and everything went off without a hitch!

Here's something you may want to update in your stars hack distribution...Show stars on announcements page. I'm using v2.0.3 but should work on v2.0.x

Open announcement.php (NOT admin/announcement.php)

find:

if ($post[receivepm]) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}


Below it add:

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



In announcebit template add $post[stars] where you want the stars to appear.


That's it! Now the stars of those who put up announcements will show under their usertitle when viewing the announcement.

tamarian
02 Sep 2001, 19:01
Kevin,

This is exactly what I mentioned just 2 posts above :)

tubedogg
02 Sep 2001, 19:08
There was an error in the instructions supplied by Bane, as reported by tamarian.

To fix it, download the attached file and follow the instructions in it. The first post in this thread has been updated with the correct instructions in the zip file.

tamarian
02 Sep 2001, 19:17
Kevin,

I wonder what would be the best fix for those already registered? I simply deleted new users who registered and didn't post in the period before correcting it (2days). For those who did post, I asked them to try and post, and if they can't to let me know and I'll delete them so they can sign up again.

Some get into difficulty loging in, possibly because they have to memberships with the same name, one as registered, and one as "awaiting".

escalade
05 Sep 2001, 23:53
i dont know where post bit template is

tubedogg
06 Sep 2001, 08:50
escalade I'll tell you if you enter your license information in your profile.

Silverlight
06 Sep 2001, 18:35
Okay, I've waded through the first 8 or 9 pages and no one else asked, so I figure it's probably something really stupid.

But I will risk ridicule and embarrassment anyway.

On the new install, it says to find some code, which I'm not going to post here, but the fact of the matter is, my admin/functions.php file doesn't contain the code I'm supposed to be looking for.

I very much doubted the code could just be inserted in anywhere, so I tried to go on. But there's no link to the next page! I manually entered http://***/admin/install_starshack.php?s=&step=5, and it went on, but in this case, my control panel says "Fatal error: Call to undefined function: maketableheader() in /web/sites/342/asheri/www.asheri.f2s.com/forums/admin/install_starshack.php on line 394" where the stars controls should be.

So am I a retard, or am I missing something?

tamarian
06 Sep 2001, 20:17
Kevin,

Another bug in the docs:

Changes to
admin/usergroup.php (4)

Step 4 of 4 find:

Should be:

replace

I haven't checked if they're all like that, I just check files when the sh*t hits the fan. :D

LuBi
06 Sep 2001, 20:58
Tube your hack makes it so when someone registers it adds them once now, but thep roblem is now they get an error after they register.

There seems to have been a slight problem with the 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.

And i get an email. Did you update fix banes hack from adding 2 of a new member to our database? If so, it works but now after they register at my board it sends them to an error. A fix would be great ASAP. thanks.

tamarian
06 Sep 2001, 21:08
LuBi, read the posts from 8-31 to fix it.

This will only fix it for future users. I had to delete my double users and email them to register again.

LuBi
06 Sep 2001, 21:10
Add this above what tube says to replace the other text with.

$userid=$DB_site->insert_id();

LuBi
06 Sep 2001, 21:25
It's not working for me, it will add the user but will give them an error.

TheComputerGuy
07 Sep 2001, 05:29
Parse error: parse error in /home/web+++++/public_html/demo/admin/usergroup.php on line 90


What do I need to fix

tamarian
07 Sep 2001, 05:48
Read my post, just 4-5 posts back. This should fix this problem. Read a bit further up, to fix another problem that is a bit "hidden". i.e. no errors, but new users will have trouble.

TheComputerGuy
07 Sep 2001, 05:54
Originally posted by tamarian
Kevin,

Another bug in the docs:

Changes to
admin/usergroup.php (4)

Step 4 of 4 find:

Should be:

replace

I haven't checked if they're all like that, I just check files when the sh*t hits the fan. :D


There is what I need but I need to know what I need to replace it...???

tamarian
07 Sep 2001, 06:03
Replace it with the the code specified in the "add". The documentation is accurate accept for two mistakes where it says add instead of replace.

LuBi
07 Sep 2001, 06:44
tam your doing a great thing but your instructions are a bit confusing, include the code so we may copy and paste what your talking about.

tamarian
07 Sep 2001, 07:10
LuBi,

It would be very confusing if I include the code, since it would depend if if it's pre hack or post hack.

But I'll assume you already followed the instructions according to the instructions in the hack.

In this case, two changes need to be made:

A) In the register.php changes


Step 2.2



// 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,cookieuser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotification,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup,referrerid,nosessionhash) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes($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')");
// Stars Replaced Code
$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotification,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup,referrerid,nosessionhash,starlevel,starimg) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes($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','$userstarlvl','$userstarimg')");
// Stars Hack End


Simply comment out, or delete the line above it:


$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield."parentemail,coppauser,homepage,icq,aim,yahoo,signature,adminemail,showemail,invi sible,usertitle,joindate,cookieuser,daysprune,lastvisit,lastactivity,usergroupid ,timezoneoffset,emailnotification,receivepm,emailonpm,options,birthday,maxposts, startofweek,ipaddress,pmpopup,referrerid,nosessionhash) VALUES (NULL,'".addslashes(htmlspecialchars($username))."','".addslashes($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')");




B) In the usergroup.php

Step 4 of 4:


// Stars Hack
/* $DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmem bers=$canviewmembers,canview=$canview,cansearch=$cansearch,canemail=$canemail,ca npostnew=$canpostnew,canmove=$canmove,canopenclose=$canopenclose,candeletethread =$candeletethread,canreplyown=$canreplyown,canreplyothers=$canreplyothers,canvie wothers=$canviewothers,caneditpost=$caneditpost,candeletepost=$candeletepost,can usepm=$canusepm,canpostpoll=$canpostpoll,canvote=$canvote,canpostattachment=$can postattachment,ismoderator=$ismoderator,canpublicedit=$canpublicedit,canpublicev ent=$canpublicevent,canthreadrate=$canthreadrate,cantrackpm=$cantrackpm,candenyp mreceipts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardpm,c anwhosonline=$canwhosonline,canwhosonlineip=$canwhosonlineip WHERE usergroupid=$usergroupid"); */
// Stars Hack Code
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',starlevel='$starlevel',starimg='$starimg',cancontrolpanel=$cancontrolpanel,can modifyprofile=$canmodifyprofile,canviewmembers=$canviewmembers,canview=$canview, cansearch=$cansearch,canemail=$canemail,canpostnew=$canpostnew,canmove=$canmove, canopenclose=$canopenclose,candeletethread=$candeletethread,canreplyown=$canrepl yown,canreplyothers=$canreplyothers,canviewothers=$canviewothers,caneditpost=$ca neditpost,candeletepost=$candeletepost,canusepm=$canusepm,canpostpoll=$canpostpo ll,canvote=$canvote,canpostattachment=$canpostattachment,ismoderator=$ismoderato r,canpublicedit=$canpublicedit,canpublicevent=$canpublicevent,canthreadrate=$can threadrate,cantrackpm=$cantrackpm,candenypmreceipts=$candenypmreceipts,maxbuddyp m=$maxbuddypm,maxforwardpm=$maxforwardpm,canwhosonline=$canwhosonline,canwhosonl ineip=$canwhosonlineip WHERE usergroupid=$usergroupid");
// Stars Hack End


Simply delete or comment out the line above it:


$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',cancontrolpanel=$cancontrolpanel,canmodifyprofile=$canmodifyprofile,canviewmem bers=$canviewmembers,canview=$canview,cansearch=$cansearch,canemail=$canemail,ca npostnew=$canpostnew,canmove=$canmove,canopenclose=$canopenclose,candeletethread =$candeletethread,canreplyown=$canreplyown,canreplyothers=$canreplyothers,canvie wothers=$canviewothers,caneditpost=$caneditpost,candeletepost=$candeletepost,can usepm=$canusepm,canpostpoll=$canpostpoll,canvote=$canvote,canpostattachment=$can postattachment,ismoderator=$ismoderator,canpublicedit=$canpublicedit,canpublicev ent=$canpublicevent,canthreadrate=$canthreadrate,cantrackpm=$cantrackpm,candenyp mreceipts=$candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwardpm=$maxforwardpm,c anwhosonline=$canwhosonline,canwhosonlineip=$canwhosonlineip WHERE usergroupid=$usergroupid");



IF the line "above it" that I mentioned is not there, you're o.k. and it should work fine.

LuBi
08 Sep 2001, 06:52
I haven o clue what you mean. But now when people join it doesn't make dups but after they register it says error and refresh to them, then it says member name already in use. How can I fix this and what might the problem be.

tamarian
08 Sep 2001, 07:06
Originally posted by LuBi
I haven o clue what you mean. But now when people join it doesn't make dups but after they register it says error and refresh to them, then it says member name already in use. How can I fix this and what might the problem be.

You cannot find the dups through vb, you only see it in the user table through mysql or phpmysql. And yes, your symptoms are exactly like mine before I corrected the installation as indicated above.

If you have no clue what I mean or the fixes that have been listed, I strongly recommend you un-install this hack, and bring the file back as they were before. There's no point adding bells and whistles, with the forum screwd up :)

mADmAX`
09 Sep 2001, 03:41
I am having the same problems with this hack also...

The register page says there is an error in the database and then I hit refresh and it says someone has already registered with this address. Its in the database but not in VB?!?

The usergroup page parse's out on me. I have checked all settings a thousand times and everything is as stated throughout these post and the installation file...

mADmAX`
09 Sep 2001, 04:03
Here is a copy of the email I get:

Database error in vBulletin: Invalid SQL: INSERT INTO userfield (userid,field1,field2,field3,field4) VALUES (,'','','','') mysql error: You have an error in your SQL syntax near ''','','','')' at line 1 mysql error number: 1064
Date: Saturday 08th of September 2001 07:57:20 PM
Script: /forums/register.php

LuBi
09 Sep 2001, 04:15
I get that same error, how can we fix this?

tubedogg
09 Sep 2001, 04:28
Considering nowhere in my instructions do I have you do anything with anything relating to userfield, that has nothing to do with my hack...

mADmAX`
09 Sep 2001, 04:31
I was thinking the same thing to but what do you think is wrong with it? Also, whats with the usergroup.php parsing out on line 240 something or another...

mADmAX`
09 Sep 2001, 04:33
I have no hack in the register page btw, so cant seem to figure it out, works before I put this hack ... hmm

VAN
10 Sep 2001, 04:32
T-Dogg, cool hack as usual, but I have a few problemos. :)

When installing, it says there are (4) changes to be made to the postbit template, yet there is only one change documented. I think this is just a minor type in the file.

Also, I have run through the install process. The stars show up great!

But......, something happened during the install and now I have lost all of the "profile" link buttons which appear under each post.

Any ideas?

LuBi
10 Sep 2001, 23:05
Well I tried the update with no luck. Such a simple thing and it didn't work. I don't know PHP very much more of a script kiddie but, it must be getting an error because of somewhere else in the script. Maybe it doubles like that somewhere else I'll do my best to look but I can't make any promises.

Below is the error message I keep getting sent. I installed the script as informed from before now I have used the update.txt and this is the error I get. Also again when members sign up they get an error then refresh and it says that user name is already taken. It no loger doubles in mySQL but I get in error instead. Someone please help me this is causing a lot of trouble.

Database error in vBulletin: Invalid SQL: INSERT INTO userfield (userid,field5,field4,field3,field2) VALUES (,'','','','')
mysql error: You have an error in your SQL syntax near ''','','','')' at line 1
mysql error number: 1064
Date: Monday 10th of September 2001 06:00:07 PM
Script: /register.php
Referer: http://forums.suprascene.com/register.php

LuBi
11 Sep 2001, 03:51
help me :eek:

tamarian
11 Sep 2001, 04:27
Lubi,

Why not start freash? Uninstall everything, or better yet do a fresh install since the forum isn't up yet.

It appears you have installed several hacks at once, and got something wrong in the process. This will allow your users to sign-up and login. Next, install a test forum to practice hacking on, and test each hack seperately until you are confident about it.

LuBi
11 Sep 2001, 04:34
I got ya, I have installed alot of hacks but this hack is the problem. I put in my saved copy of register.php edited it with the update and I still recieve the same error. I am thinking of reinstalling the forum and all my hacks when phpportals3.0 comes out and i can try that out first on my existing forum. Just a fix for this would still be nice. ;) thanks though.

VAN
11 Sep 2001, 21:33
Yoohoo, Tubedogg! :)

I know you're a busy guy and all, but can you please take a peek at my post regarding your star hack? (bottom of pg 13)

Ive been trying my damndest, but I can't find the problem.

Thanks

[VbbFr]Elie
12 Sep 2001, 01:51
Hy ... May be some one talk about it before but i'm to lazy to read :)

I managed to install all ...
But i don't understand if member can choose is style of stars like avatar ? or admin must atribute which star for which one !...

Thanks :)

A french version was make by me :)

VAN
12 Sep 2001, 02:24
Originally posted by [VbbFr]Elie
Hy ... May be some one talk about it before but i'm to lazy to read :)



Well theres a surefire way to guarantee your post goes unanswered. :rolleyes:

::sigh::

You, as administrator will add the actual star images and define when they appear (after x number of posts)

[VbbFr]Elie
12 Sep 2001, 02:33
OK ...

I undestood :)

Thanks You :)

Buu
12 Sep 2001, 22:33
Parse error: parse error in /home/sites/site6/web/newreply.php on line 476


I installed it with you're installer instrcutions checked it three times but can't seem to find the probleem.

The Problem is on the last Line of newreply.php does ne1 has this too and is it fix-able !

My Newreply is modfied alot but i can't seem to get the parse error out does ne1 has a suggestion ?

tubedogg
13 Sep 2001, 10:47
OK I've fixed all the installer problems.

Please reinstall using the newest instructions (they can be obtained from the first post in this thread) and if you still have problems then, please repost.

Thank you and sorry for the inconvenience.

VAN
13 Sep 2001, 23:04
Tubedogg-

I just ran the un-installer (wanted a fresh start) and I am still missing all of my "profile" icons in the thread displays. I am baffled why this has happened, since no changes were made which affect the $post[profile] variable in the postbit template.

(the $post[profile] variable is still there, btw)

Any ideas?

LuBi
13 Sep 2001, 23:07
I started fresh again, installed this hack. Now when I post a thread in a forum. I get credit for the post, the forum gets credit for the thred. Yet when I go back ot the thread or something in the forum it's not there.

TuPPerWaR
14 Sep 2001, 00:44
Great hack.. can't wait till it works, but I have some problems!

This is coming on the mainpage (Boardhome):

Warning: Cannot add header information - headers already sent by (output started at c:\http\www\vvb\admin\functions.php:2109) in c:\http\www\vvb\admin\functions.php on line 1466

and I get these when I'm trying to connect to the admin CP:

Warning: Cannot add header information - headers already sent by (output started at c:\http\www\vvb\admin\functions.php:2109) in c:\http\www\vvb\admin\functions.php on line 1466

Warning: Cannot add header information - headers already sent by (output started at c:\http\www\vvb\admin\functions.php:2109) in c:\http\www\vvb\admin\functions.php on line 1466

Warning: Cannot add header information - headers already sent by (output started at c:\http\www\vvb\admin\functions.php:2109) in c:\http\www\vvb\admin\global.php on line 133

Warning: Cannot add header information - headers already sent by (output started at c:\http\www\vvb\admin\functions.php:2109) in c:\http\www\vvb\admin\global.php on line 159



Does anybody know what I can do about it?
PLEASE!!!

tubedogg
14 Sep 2001, 08:41
Van: Do you find this line anywhere in functions.php? eval("\$post[profile] = \"".gettemplate("postbit_profile")."\";");

TuPPerWaR: Please enter your license information in your profile. See the link in my sig for more info. Thanks! :)

LuBi: Seeing as how my hack touches neither the thread or post tables, nor the forumdisplay.php file, I fail to see how it could possibly produce that effect. Not saying it's not happening, but if it is, something else is wrong.

Goldfinger
14 Sep 2001, 09:27
Tupparwar: What you might be using a version of vbulletin that doesnt support the stars hack.

LuBi
14 Sep 2001, 11:36
Well I was getting those problems with a fresh install of the baord. It wa the first and only hack I had installed at the time.

VAN
15 Sep 2001, 09:10
Originally posted by tubedogg
Van: Do you find this line anywhere in functions.php? eval("\$post[profile] = \"".gettemplate("postbit_profile")."\";");



Ahhhh. Evidently when I pasted the stars code in there, the bottom comment line ended up in front of that line. Such a simple fix, yet it vexed me for hours. Thanks for sending me in the right direction, T-Dogg.

NUTNDUN
15 Sep 2001, 18:11
Hey Tubedogg,
I read through all the posts and I have everything installed correctly as far as not having any errors in code and I have my options in the admin cp, and the lines are added to the functions.php file but I still can't get the stars to show, as of now I only have the stars setup for normal registered users in the amount of posts that they make. Hopefully someone can help me with this. Thanks


Update;
I now have at least the member stars working now but it only works for newly registered members after the hack, even if I update the user titles on the counter, I still can't get the stars to show for the administrator even though it has the space under the user name for the stars, which I'm guessing is from the postbit template, hopefully someone can help me out with this so I can have it working, this mod rocks.

Another update,
The stars hack rocks, I found that somehow my admin/misc.php ended up in the root directory and therefor not letting the stars work, so I got that back in place and everything works like a charm, and then I tried the faq and tada figured out that I needed the misc.php file in the root directory so I copied the one from my backup and all is well, good job tubedogg

Chandler
16 Sep 2001, 19:03
At the installer, it says..


admin/functions.php

Step 1 of 1 find:


if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}

and Replace with etc,

I cannot find this code in the Functions.php, i have looked for hours.. word by word! I can't find this code, so I cannot add the code below it for the stars to work :mad:

Please Help..


Chandler

Blackfire
24 Sep 2001, 10:34
Hi,
i have installed the stars hack it seems to work bud when there comes a new registration on the board now he gets the msg

There seems to have been a slight problem with the 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

The problem is that the user CAN login bud i cannot find his name in the users list in cp. so i cannot remove him or edit his account on the board.
What or where can i remove that user account so that the person re-register him again.

THX

tubedogg
24 Sep 2001, 11:55
Chandler: you will need to upgrade to 2.0.3 to use this hack. Also please enter your license information in your profile. Thanks!

Blackfire: Please enter your license information in your profile. Thanks!

Chrysalis
30 Sep 2001, 11:46
hack is installed i get no error stars in cp works but i dont see any stars in the threads.

tubedogg
30 Sep 2001, 16:24
Chrysalis, please enter your license information in your profile (http://www.vbulletin.com/forum/member.php?action=editprofile). See the link in my sig for more info. Thanks!

rebby
01 Oct 2001, 05:57
this works slick... :D

now i just gotta find some good stars ;)

hacker
01 Oct 2001, 07:37
Works like a charm. Need green stars now. Got to find them....

YourHostSucks
01 Oct 2001, 10:00
A long install, but it works ;)

Thanks....

nuno
01 Oct 2001, 12:28
hey mADmAX`

http://www.dss+++++forums.com/forums/index.php

why dont you have copyright info at your board :confused:

hacker
01 Oct 2001, 15:15
The stars appear, but there is still the missing Title underneath $[userprofile]. Anyone knows the code to insert it between $[userprofile] and the star?

Originally posted by AJR
Hey Tubedog... very nice hack! I installed this a few weeks ago and everything went off without a hitch!

Here's something you may want to update in your stars hack distribution...Show stars on announcements page. I'm using v2.0.3 but should work on v2.0.x

Open announcement.php (NOT admin/announcement.php)

find:

if ($post[receivepm]) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}


Below it add:

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



In announcebit template add $post[stars] where you want the stars to appear.


That's it! Now the stars of those who put up announcements will show under their usertitle when viewing the announcement.

YourHostSucks
01 Oct 2001, 18:01
Not sure what you are talking about?

Stars do not show up in profiles...
Do you have a link to what you are talking about?
But thier title in the profile is were it says
Status: it has their title and avatar.

hacker
02 Oct 2001, 00:36
If you click on any post, you will see the stars and the title. However, for Announcements, there is no Title and Stars. I have implemented the hack by AJR to add the stars, but now need to make it look like the normal post with the Title.

YourHostSucks
02 Oct 2001, 02:38
So you want the stars and title to show up in the announcements?


I took a different approach to this, and removed all the user details from the announcements..

EX: http://forums.yourhostsucks.com/announcement.php?&forumid=14

So I would not be able to test how to add the stars/tiles, as I have removed all information.. :(

Sounds like a nice feature/edit for people to have,
if they want it. Maybe someone else can help you with this..

Good Luck!

hacker
02 Oct 2001, 02:42
Nice implementation. I got the stars working, now I need is the Title under the USerName.

White Chocobo
03 Oct 2001, 01:07
Umm...I'm getting this error message in my usergroup.php file.

Parse error: parse error in /home/garylaw/public_html/forums/admin/usergroup.php3 on line 228

That's the exact line the words cpfooter(); are on.

Mike Gaidin
04 Oct 2001, 04:29
Installed, and it works great! Good job!

YourHostSucks
04 Oct 2001, 04:41
Originally posted by 12ways
My HTML Result <br><br> under usertitle

Because
$post[stars]= <-- Empty

What's wrong?


Did you add the stars through the admin cp?

tubedogg
04 Oct 2001, 07:03
12ways: you will need to enter your license information in your profile (http://www.vbulletin.com/forum/member.php?action=editprofile). See the link in my sig for more info. Thanks!

YourHostSucks
04 Oct 2001, 07:58
Did you do the "Update counters"....

tubedogg
04 Oct 2001, 20:26
12ways: You may not post full vBulletin files. That is strictly against the license agreement. You will also not receive any support from me until you enter your license information into your profile.

AnimeR
08 Oct 2001, 04:55
is there a version of this hack that works for 2.0.0 ??? this is the exact hack i am looking for, if there isint a version that works for 2.0.0 can somebody PLEASE make me one?

Thanks a lot

tubedogg
08 Oct 2001, 05:44
AnimeR, please enter your license information in your profile (http://www.vbulletin.com/forum/member.php?action=editprofile). See the link in my sig for more info. Thanks!

You should upgrade to 2.0.3 as there is an important security fix in it.

AnimeR
08 Oct 2001, 06:17
I would enter my license number, but to be honest I dont haveit, somebody installed my VBB for me >_<

tubedogg
08 Oct 2001, 06:22
Then you are using the program illegally and need to delete it off your server.

magistr
09 Oct 2001, 14:11
PEOPLE!

ok
i installed this hack

BUT FILES NOT REPLACE AND CHANGES AuTOMATICALY!!!

All scripts for install auto not replace and chandges files

i tested in local server///


help me pleeze

tubedogg
10 Oct 2001, 07:03
Please enter your license information in your profile (http://www.vbulletin.com/forum/member.php?action=editprofile). See the link in my sig for more info. Thanks!

Bill Burns
17 Oct 2001, 09:35
man I typed a long message and it didn't post. grrrrrrrrrrr I read through 16 pages of messages on a 48k dialup. NOBODY asked this quesion:

I have version 2.0.3. and when I try and change the admin/functions.php, I get this error:

Parse error: parse error in /home/lyricalb/public_html/forum/admin/functions.php on line 793

Fatal error: Call to undefined function: vbdate() in /home/lyricalb/public_html/forum/admin/sessions.php on line 358

I have tried everything and can't get it to work. I even verified character by character the code I was pasting in there. // Stars Hack
$sli = 0;
while ($sli < $post[starlevel]) {
$post[stars] .= "<img src=\"images/stars/$post[starimg].gif\" border=\"0\">";
++$sli;
}
// Stars Hack End

I don't have a clue what it could be.......

Please help!

Bill Burns
17 Oct 2001, 09:35
sorry double post!

Bill Burns
18 Oct 2001, 19:22
any help please?

DelFDgfd_gT
20 Oct 2001, 13:45
I installed the hack, added the amount of stars in the control panel, updated counter (user info). But the stars just don't show up in the post.
Any idea's ?

danbc
22 Oct 2001, 10:40
Hiya Tubedogg...


I have installed the hack, but am unsure of the last bit in Your stars Hack installer screen ...

It says "Go to Add under Stars, and set up the levels you want (e.g. 10 posts = 1 star, etc.)"

What stars??

I assume You mean a "menu item" in the CP, but such item is not present.....


So what have I done wrong?

NUTNDUN
22 Oct 2001, 22:46
I have installed the star hack and everything works great except for when a user reaches the next post level to get another star they don't recieve it until I go into the admin cp and do the update counters thing. Is there anyway for this to auto update when a user reaches the next level so I don't have to do it manually? Or if it is supposed to do it on it's own is there something in the code I can check? Thanks for any help.

Lesane
23 Oct 2001, 11:22
Originally posted by Danbc
Hiya Tubedogg...


I have installed the hack, but am unsure of the last bit in Your stars Hack installer screen ...

It says "Go to Add under Stars, and set up the levels you want (e.g. 10 posts = 1 star, etc.)"

What stars??

I assume You mean a "menu item" in the CP, but such item is not present.....


So what have I done wrong?

From the installer:

Keep in mind: Any place it asks how many stars you want to give, it's a number (from 1 to 100) and not star.gif or anything else. The hack itself processes the number and goes from there automatically.

If you put 100 there then you get 10 stars...etc...

danbc
23 Oct 2001, 12:46
Lesane:


Thanks! I got it to work now :)

Allthough there is now 2 user profiles options in my CP, but I donīt mind as long as it works ;)



Btw. Not releated. I installed the "links hack" aswell, and it said to put a link to links.php on the forum. How do I do that, and is there a "links" button to use?

DelFDgfd_gT
23 Oct 2001, 16:21
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! >>

malc
23 Oct 2001, 20:06
I have a problem,

when I put in usergroup an image for a group, I do not have an error
but in the base sql I do not have the image which I defined in
usergroup

( i use vbportal 3.0b pr 6.1 )

Lesane
24 Oct 2001, 07:09
Originally posted by Danbc
Btw. Not releated. I installed the "links hack" aswell, and it said to put a link to links.php on the forum. How do I do that, and is there a "links" button to use?

In your admin: Styles -> Modify -> Default (probably) -> fonts/colors/ -> and then put a link to links.php somewhere in your header template

danbc
25 Oct 2001, 10:48
Lesane:


Thanks for the tip! All is working nicely now :)