PDA

View Full Version : Stars v0.2.3


Pages : [1] 2

tubedogg
06-02-2001, 10:00 PM
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
06-03-2001, 08:04 AM
Thanx man,

I hope this works :rolleyes:

AnnaFan
06-03-2001, 08:24 AM
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
06-03-2001, 08:25 AM
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,signa ture,adminemail,showemail,invisible,usertitle,join date,cookieuser,daysprune,lastvisit,lastactivity,u sergroupid,timezoneoffset,emailnotification,receiv epm,emailonpm,showsignatures,birthday,maxposts,sta rtofweek,ipaddress,pmpopup,referrerid,nosessionhas h)


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

freehtml
06-03-2001, 08:27 AM
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
06-03-2001, 08:30 AM
thanx freehtml :D

AnnaFan
06-03-2001, 08:32 AM
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,signa ture,adminemail,showemail,invisible,usertitle,join date,cookieuser,daysprune,lastvisit,lastactivity,u sergroupid,timezoneoffset,emailnotification,receiv epm,emailonpm,showsignatures,birthday,maxposts,sta rtofweek,ipaddress,pmpopup,referrerid,nosessionhas h)


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
06-03-2001, 08:38 AM
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
06-03-2001, 09:00 AM
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
06-03-2001, 09:19 AM
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
06-03-2001, 02:17 PM
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
06-03-2001, 02:27 PM
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
06-03-2001, 03:04 PM
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
06-03-2001, 03:13 PM
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
06-03-2001, 03:14 PM
Hi tubedogg,

great job man! Everything works fine now! Thanx.

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

tubedogg
06-03-2001, 03:26 PM
Updated.

WEAPON
06-03-2001, 04:57 PM
****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
06-03-2001, 04:59 PM
Yeah, my bad. Fixed.

dadada
06-03-2001, 05:33 PM
IVE BEEN WAITING FOR THIS SOOOO LONG

THANX AGAIN U ROCK ;)

i have to go try it right away now :D

snyx
06-03-2001, 06:39 PM
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
06-04-2001, 04:23 PM
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
06-05-2001, 12:27 AM
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
06-05-2001, 12:49 AM
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
06-05-2001, 12:54 AM
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
06-05-2001, 07:05 PM
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
06-05-2001, 07:10 PM
Did you Update Counters?

(Admin CP > Update Counters > Users & Stars)

jamesdasher
06-05-2001, 07:13 PM
Yes, I did...please help :)

tubedogg
06-05-2001, 07:29 PM
Do you have $post[stars] somewhere in your postbit template?

jamesdasher
06-05-2001, 07:32 PM
Yes...sorry about this...

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

Thanks for this one tubedogg.

Lesane
06-06-2001, 06:57 PM
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,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,showsignatures,birthday,maxposts,startofweek,i paddress,pmpopup,referrerid,nosessionhash,starleve l,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','ye s','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-06-2001, 08:59 PM
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
06-06-2001, 10:16 PM
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
06-07-2001, 12:29 AM
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
06-07-2001, 12:33 AM
Thanks dakota :). Seen you round on a nother forum too. Bet you know. :) great job at that forum.

SSJ4 Saiya-jin
06-07-2001, 12:43 AM
Hmm... For some reason it dislikes me.

SSJ4 Saiya-jin
06-07-2001, 02:53 AM
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,signa ture,adminemail,showemail,invisible,usertitle,join
date,cookieuser,daysprune,lastvisit,lastactivity,u sergroupid,timezoneoffset,emailnotification,receiv
epm,emailonpm,options,birthday,maxposts,startofwee k,ipaddress,pmpopup,referrerid,nosessionhash,starl evel,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,u sergroupid,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
06-07-2001, 04:02 AM
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,signa ture,adminemail,showemail,invisible,usertitle,join date,cookieuser,daysprune,lastvisit,lastactivity,u sergroupid,timezoneoffset,emailnotification,receiv epm,emailonpm,options,birthday,maxposts,startofwee k,ipaddress,pmpopup,referrerid,nosessionhash,starl evel,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
06-07-2001, 06:12 AM
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
06-07-2001, 06:24 AM
I had that same problem, so I just put my backup copy back up, and it has worked fine ever since.

SSJ4 Saiya-jin
06-07-2001, 03:05 PM
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
06-07-2001, 04:59 PM
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
06-08-2001, 03:21 PM
<a href="http://happyhome1.homestead.com/files/usergroup.txt" target="_blank">here is my usergroup php file</a>

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\usergrou p.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
06-08-2001, 03:53 PM
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
06-08-2001, 03:54 PM
If i didnt know that i wouldnt be posting here

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

tubedogg
06-08-2001, 04:17 PM
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
06-08-2001, 04:40 PM
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
06-08-2001, 04:48 PM
I 4got
ill take it off now!

maverick1236
06-08-2001, 04:57 PM
now the errors just on line 85 :(

smacwill
06-09-2001, 05:17 AM
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
06-09-2001, 05:23 AM
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
06-09-2001, 05:34 AM
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
06-09-2001, 05:41 AM
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
06-09-2001, 05:51 AM
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
06-09-2001, 02:47 PM
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
06-09-2001, 03:30 PM
So, is it possible to get the stars to show in the profile too?

thanks
-Hideki

maverick1236
06-09-2001, 05:01 PM
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
06-19-2001, 12:35 AM
I installed the hack and there were no errors, but the stars won't show, but I did update the counters

SSJ4 Saiya-jin
06-20-2001, 01:18 AM
Worked fine for me.

kdog316
06-21-2001, 11:22 PM
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
06-22-2001, 05:58 AM
Did you upload and run the mysql.php file from the zip?

MApI
06-23-2001, 02:59 PM
Works well with my 2.0.1 :D

Thanx, Tubedogg; great hack !!!

bye

:cool:

maverick1236
06-23-2001, 03:33 PM
tx!

peteqlee
06-26-2001, 09:41 AM
Is this work with php3?

First-Man
06-26-2001, 10:16 AM
When ever some one tries to register.....

<!-- Database error in vBulletin: 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,showsignatures,birthday,maxposts,startofweek,i paddress,pmpopup,referrerid,nosessionhash,starleve l,starimg) VALUES (NULL,'dddd','ddd','sach@ich.nicht','1','','0','ht tp://','','','','','1','1','0','Junior Member','993553514','1','-1','993553514','993553514','2','0','1','1','0','ye s','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
06-26-2001, 11:35 AM
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
06-26-2001, 11:50 AM
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
06-26-2001, 12:01 PM
The last update was on 6-06-01 - try downloading the zip file again.

First-Man
06-26-2001, 12:56 PM
*goil*:cool: thx
I?ve update my files (register.php). It works fine.

Eternal_Dragon
06-28-2001, 05:25 PM
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
06-30-2001, 04:03 AM
Which part don't you understand?

Dolamite
07-02-2001, 05:38 PM
In admin/usergroup.php

it says to replace this

if ($action=="insert") {

$DB_site->query("INSERT INTO usergroup (usergroupid,title,usertitle,cancontrolpanel,canmo difyprofile,canviewmembers,canview,cansearch,canem
ail,canpostnew,canmove,canopenclose,candeletethrea d,canreplyown,canreplyothers,canviewothers,canedit
post,candeletepost,canusepm,canpostpoll,canvote,ca npostattachment,ismoderator,canpublicevent,canpubl
icedit,canthreadrate) VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)." ',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$cansearch,$canemail,$canpostnew,$canm
ove,$canopenclose,$candeletethread,$canreplyown,$c anreplyothers,$canviewothers,$caneditpost,$candele
tepost,$canusepm,$canpostpoll,$canvote,$canpostatt achment,$ismoderator,$canpublicevent,$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,canmo difyprofile,canviewmembers,canview,cansearch,canem
ail,canpostnew,canmove,canopenclose,candeletethrea d,canreplyown,canreplyothers,canviewothers,canedit
post,candeletepost,canusepm,canpostpoll,canvote,ca npostattachment,ismoderator,canpublicevent,canpubl
icedit,canthreadrate,cantrackpm,candenypmreceipts, maxbuddypm,maxforwardpm)
VALUES (NULL,'".addslashes($title)."','".addslashes($usertitle)." ',$cancontrolpanel,$canmodifyprofile,$canviewmembe rs,$canview,$cansearch,$canemail,$canpostnew,$canm
ove,$canopenclose,$candeletethread,$canreplyown,$c anreplyothers,$canviewothers,$caneditpost,$candele
tepost,$canusepm,$canpostpoll,$canvote,$canpostatt achment,$ismoderator,$canpublicevent,$canpublicedi
t,$canthreadrate,$cantrackpm,$candenypmreceipts,$m axbuddypm,$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
07-03-2001, 03:20 AM
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
07-04-2001, 04:58 PM
yeah good call turbo..... i just sent you a PM.... hope ya get it soon :)


i could use a little help

:D

Dolamite
07-06-2001, 10:46 PM
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-06-2001, 11:39 PM
like a charm ;)

we78
07-07-2001, 04:34 PM
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-07-2001, 05:36 PM
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
07-08-2001, 12:57 AM
sorry i didnt realize i could not post the code

i apploagize

Dolamite
07-08-2001, 01:03 AM
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
07-10-2001, 10:25 PM
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
07-11-2001, 02:45 PM
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
07-11-2001, 11:02 PM
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
07-12-2001, 03:58 AM
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
07-13-2001, 02:23 AM
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
07-13-2001, 06:12 AM
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
07-13-2001, 07:58 AM
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
07-13-2001, 01:27 PM
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
07-13-2001, 06:53 PM
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
07-14-2001, 07:02 PM
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
07-14-2001, 07:03 PM
Hmm...here's the file.

Shadow_Xj5
07-14-2001, 08:49 PM
Yep, serveral times :(

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

thanks.

Oliver
07-16-2001, 07:53 AM
Cheers tubedogg. Shall sort this out this a.m.

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

Regards
oli

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

J Dot Blk
07-26-2001, 06:10 PM
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
07-26-2001, 10:31 PM
nevermind i fixed it

ThomasP
07-28-2001, 03:12 PM
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
07-30-2001, 04:43 AM
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
07-30-2001, 05:14 AM
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
07-31-2001, 07:30 PM
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
07-31-2001, 08:18 PM
Second function in functions.php

snyx
07-31-2001, 08:24 PM
let me try

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

Harizz
08-01-2001, 06:44 PM
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
08-01-2001, 08:41 PM
leave tubedogg alone, he created the hack, its his discretion to want to keep working on it or not.

Pie'oh'pah
08-01-2001, 10:43 PM
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
08-02-2001, 05:17 AM
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
08-02-2001, 06:57 AM
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
08-02-2001, 07:22 AM
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
08-02-2001, 07:50 AM
Thanks. With that little change, the hack works for me on 2.0.3 just fine. :cool:

Pie'oh'pah
08-02-2001, 08:48 AM
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
08-02-2001, 12:34 PM
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
08-02-2001, 01:35 PM
it works with function.php modified

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

Mobile
08-02-2001, 03:31 PM
no hacks installed on board m8,
heres my register.php file

Thanks Mobile

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

Pie'oh'pah
08-02-2001, 06:16 PM
what error exactly do you get via email?
and what version of vB do you use?

Mobile
08-02-2001, 06:20 PM
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
08-02-2001, 07:30 PM
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
08-02-2001, 08:29 PM
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
08-02-2001, 08:49 PM
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
08-03-2001, 05:33 AM
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
08-03-2001, 12:22 PM
Weve got it working fine on v2.0.0

just follow the steps

oli

HelpME
08-03-2001, 12:38 PM
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
08-04-2001, 02:26 PM
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
08-04-2001, 08:17 PM
I would be much more willing to help if you entered valid license information into your profiles.

HelpME
08-05-2001, 01:44 AM
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
08-05-2001, 02:02 AM
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
08-05-2001, 08:51 AM
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
08-10-2001, 10:57 PM
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
08-16-2001, 05:16 AM
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
08-16-2001, 07:49 AM
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
08-16-2001, 08:59 AM
You try to create a table that already exists!

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

DevilsMania.com
08-16-2001, 09:05 AM
and how do i fix that ? ... ? :eek: :confused:

Pie'oh'pah
08-16-2001, 09:08 AM
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
08-16-2001, 09:32 AM
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
08-16-2001, 09:58 AM
Have you updated the counters?

DevilsMania.com
08-16-2001, 01:18 PM
yeps...

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

...

Pie'oh'pah
08-16-2001, 01:28 PM
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
08-17-2001, 05:47 AM
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
08-17-2001, 07:07 AM
maybe someone posted this already, but this thread is sooo long (10 pages!)

uhm, is this working with VBB 2.0.3?

Thomas P
08-17-2001, 07:55 AM
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
08-17-2001, 10:53 AM
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
08-18-2001, 02:20 AM
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
08-18-2001, 06:05 AM
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
08-19-2001, 10:08 PM
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
08-20-2001, 02:23 PM
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
08-20-2001, 02:31 PM
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
08-20-2001, 03:27 PM
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
08-20-2001, 03:28 PM
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
08-20-2001, 04:06 PM
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
08-21-2001, 12:02 AM
<a href="http://www.vbulletin.com/forum/showthread.php?s=&threadid=24411&perpage=15&pagenumber=1" target="_blank">Stars Hack Thread</a>

Mike D One
08-21-2001, 01:42 AM
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
08-21-2001, 02:59 AM
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
08-21-2001, 04:54 AM
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
08-21-2001, 05:27 AM
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
08-25-2001, 03:59 PM
Updated for 2.0.3 --> See the first post in this thread.

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

Thomas P
08-25-2001, 04:23 PM
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
08-25-2001, 04:38 PM
Small mistake I made in the installer on line 391 and 399 should be a html comment <! -- not a php comment // :(

joecrow
08-25-2001, 04:43 PM
can u repack the hack then

Bane
08-25-2001, 04:49 PM
I'm sure tubedogg will. I dont have access to his post though.

tubedogg
08-25-2001, 07:20 PM
It's fixed and updated.

tweak
08-26-2001, 02:13 AM
Nice hack thanx man

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

MApI
08-27-2001, 10:00 PM
As usually, great job ! & simple to install. Thx again.

VB 2.0.3

bye

tamarian
08-31-2001, 06:08 PM
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
09-01-2001, 10:22 PM
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
09-02-2001, 05:01 PM
Kevin,

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

tubedogg
09-02-2001, 05:08 PM
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
09-02-2001, 05:17 PM
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
09-05-2001, 09:53 PM
i dont know where post bit template is

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

Silverlight
09-06-2001, 04:35 PM
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
09-06-2001, 06:17 PM
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
09-06-2001, 06:58 PM
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
09-06-2001, 07:08 PM
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
09-06-2001, 07:10 PM
Add this above what tube says to replace the other text with.

$userid=$DB_site->insert_id();

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

TheComputerGuy
09-07-2001, 03:29 AM
Parse error: parse error in /home/web+++++/public_html/demo/admin/usergroup.php on line 90

What do I need to fix

tamarian
09-07-2001, 03:48 AM
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
09-07-2001, 03:54 AM
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
09-07-2001, 04:03 AM
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
09-07-2001, 04:44 AM
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
09-07-2001, 05:10 AM
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,signa ture,adminemail,showemail,invisible,usertitle,join date,cookieuser,daysprune,lastvisit,lastactivity,u sergroupid,timezoneoffset,emailnotification,receiv epm,emailonpm,options,birthday,maxposts,startofwee k,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,signa ture,adminemail,showemail,invisible,usertitle,join date,cookieuser,daysprune,lastvisit,lastactivity,u sergroupid,timezoneoffset,emailnotification,receiv epm,emailonpm,options,birthday,maxposts,startofwee k,ipaddress,pmpopup,referrerid,nosessionhash,starl evel,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,signa ture,adminemail,showemail,invisible,usertitle,join date,cookieuser,daysprune,lastvisit,lastactivity,u sergroupid,timezoneoffset,emailnotification,receiv epm,emailonpm,options,birthday,maxposts,startofwee k,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,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,cansearch=$cansearch,canemail=$c anemail,canpostnew=$canpostnew,canmove=$canmove,ca nopenclose=$canopenclose,candeletethread=$candelet ethread,canreplyown=$canreplyown,canreplyothers=$c anreplyothers,canviewothers=$canviewothers,canedit post=$caneditpost,candeletepost=$candeletepost,can usepm=$canusepm,canpostpoll=$canpostpoll,canvote=$ canvote,canpostattachment=$canpostattachment,ismod erator=$ismoderator,canpublicedit=$canpublicedit,c anpublicevent=$canpublicevent,canthreadrate=$canth readrate,cantrackpm=$cantrackpm,candenypmreceipts= $candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwa rdpm=$maxforwardpm,canwhosonline=$canwhosonline,ca nwhosonlineip=$canwhosonlineip WHERE usergroupid=$usergroupid"); */
// Stars Hack Code
$DB_site->query("UPDATE usergroup SET title='".addslashes($title)."',usertitle='".addslashes($usertitle)."',starlevel='$starlevel',starimg='$starimg',cancon trolpanel=$cancontrolpanel,canmodifyprofile=$canmo difyprofile,canviewmembers=$canviewmembers,canview =$canview,cansearch=$cansearch,canemail=$canemail, canpostnew=$canpostnew,canmove=$canmove,canopenclo se=$canopenclose,candeletethread=$candeletethread, canreplyown=$canreplyown,canreplyothers=$canreplyo thers,canviewothers=$canviewothers,caneditpost=$ca neditpost,candeletepost=$candeletepost,canusepm=$c anusepm,canpostpoll=$canpostpoll,canvote=$canvote, canpostattachment=$canpostattachment,ismoderator=$ ismoderator,canpublicedit=$canpublicedit,canpublic event=$canpublicevent,canthreadrate=$canthreadrate ,cantrackpm=$cantrackpm,candenypmreceipts=$candeny pmreceipts,maxbuddypm=$maxbuddypm,maxforwardpm=$ma xforwardpm,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,canmodifyprofil e=$canmodifyprofile,canviewmembers=$canviewmembers ,canview=$canview,cansearch=$cansearch,canemail=$c anemail,canpostnew=$canpostnew,canmove=$canmove,ca nopenclose=$canopenclose,candeletethread=$candelet ethread,canreplyown=$canreplyown,canreplyothers=$c anreplyothers,canviewothers=$canviewothers,canedit post=$caneditpost,candeletepost=$candeletepost,can usepm=$canusepm,canpostpoll=$canpostpoll,canvote=$ canvote,canpostattachment=$canpostattachment,ismod erator=$ismoderator,canpublicedit=$canpublicedit,c anpublicevent=$canpublicevent,canthreadrate=$canth readrate,cantrackpm=$cantrackpm,candenypmreceipts= $candenypmreceipts,maxbuddypm=$maxbuddypm,maxforwa rdpm=$maxforwardpm,canwhosonline=$canwhosonline,ca nwhosonlineip=$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
09-08-2001, 04:52 AM
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
09-08-2001, 05:06 AM
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-09-2001, 01:41 AM
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-09-2001, 02:03 AM
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-09-2001, 02:15 AM
I get that same error, how can we fix this?

tubedogg
09-09-2001, 02:28 AM
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-09-2001, 02:31 AM
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-09-2001, 02:33 AM
I have no hack in the register page btw, so cant seem to figure it out, works before I put this hack ... hmm

VAN
09-10-2001, 02:32 AM
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
09-10-2001, 09:05 PM
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
09-11-2001, 01:51 AM
help me :eek:

tamarian
09-11-2001, 02:27 AM
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
09-11-2001, 02:34 AM
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
09-11-2001, 07:33 PM
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
09-11-2001, 11:51 PM
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
09-12-2001, 12:24 AM
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
09-12-2001, 12:33 AM
OK ...

I undestood :)

Thanks You :)

Buu
09-12-2001, 08:33 PM
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
09-13-2001, 08:47 AM
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
09-13-2001, 09:04 PM
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
09-13-2001, 09:07 PM
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
09-13-2001, 10:44 PM
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
09-14-2001, 06:41 AM
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
09-14-2001, 07:27 AM
Tupparwar: What you might be using a version of vbulletin that doesnt support the stars hack.

LuBi
09-14-2001, 09:36 AM
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
09-15-2001, 07:10 AM
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
09-15-2001, 04:11 PM
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
09-16-2001, 05:03 PM
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
09-24-2001, 08:34 AM
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
09-24-2001, 09:55 AM
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
09-30-2001, 09:46 AM
hack is installed i get no error stars in cp works but i dont see any stars in the threads.

tubedogg
09-30-2001, 02:24 PM
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
10-01-2001, 03:57 AM
this works slick... :D

now i just gotta find some good stars ;)

hacker
10-01-2001, 05:37 AM
Works like a charm. Need green stars now. Got to find them....

YourHostSucks
10-01-2001, 08:00 AM
A long install, but it works ;)

Thanks....

nuno
10-01-2001, 10:28 AM
hey mADmAX`

http://www.dssmafiaforums.com/forums/index.php

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

hacker
10-01-2001, 01:15 PM
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
10-01-2001, 04:01 PM
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
10-01-2001, 10:36 PM
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
10-02-2001, 12:38 AM
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
10-02-2001, 12:42 AM
Nice implementation. I got the stars working, now I need is the Title under the USerName.

White Chocobo
10-02-2001, 11:07 PM
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
10-04-2001, 02:29 AM
Installed, and it works great! Good job!

YourHostSucks
10-04-2001, 02:41 AM
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
10-04-2001, 05:03 AM
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
10-04-2001, 05:58 AM
Did you do the "Update counters"....

tubedogg
10-04-2001, 06:26 PM
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
10-08-2001, 02:55 AM
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
10-08-2001, 03:44 AM
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
10-08-2001, 04:17 AM
I would enter my license number, but to be honest I dont haveit, somebody installed my VBB for me >_<

tubedogg
10-08-2001, 04:22 AM
Then you are using the program illegally and need to delete it off your server.

magistr
10-09-2001, 12:11 PM
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-10-2001, 05:03 AM
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
10-17-2001, 07:35 AM
sorry double post!

Bill Burns
10-17-2001, 07:35 AM
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
10-18-2001, 05:22 PM
any help please?

DelFDgfd_gT
10-20-2001, 11:45 AM
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
10-22-2001, 08:40 AM
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
10-22-2001, 08:46 PM
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
10-23-2001, 09:22 AM
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
10-23-2001, 10:46 AM
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
10-23-2001, 02:21 PM
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
10-23-2001, 06:06 PM
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
10-24-2001, 05:09 AM
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
10-25-2001, 08:48 AM
Lesane:


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