PDA

View Full Version : vB Stars Hack


FlyingDutchman
03-22-2003, 10:00 PM
What Does This Hack Do?: It adds stars to your postbit based on the number of posts you have. You earn a star by Y number of posts (you can set Y in the admin control panel).
For every 10 stars (that's 10 x Y posts) you get a other color star, for 10 other color stars you get another color star, etc, you see the point (i hope, or see screenshot :D).
THIS IS NOT THE SAME AS THE OTHER STAR HACKS THAT ARE ALREADY AVAILABLE

Screenshots:
-Postbit (https://vborg.vbsupport.ru/attachment.php?postid=371992)
-Admin CP Options (https://vborg.vbsupport.ru/attachment.php?postid=372426)

Installation: Very easy ;)
upload the images in the zip to your imagesfolder/stars/
when you have vbhacker (https://vborg.vbsupport.ru/showthread.php?threadid=36378), you can install this hack very easily with the included vbhacker install file...
also in the zip is a text file for manual installation (if you prefer that ;))
after you installed the hack, please set the options in the admin cp -> vb options -> vb star hack options or else this hack won't work!

Additional Info: This hack has been tested on 2.2.9 and on 2.3.0, but as the code is very simple and works almost fully on it's own, it should work 100% correct on 2.2.x (and lower even?) but i'm not here to test that ;)

Update Info:
-24 march 2003 - new version! (v1.1) new features: more options ;) see screenshots :D
currently there is no way of upgrading. You'll have to re-install the hack for now...
added a nice vbhacker (https://vborg.vbsupport.ru/showthread.php?threadid=36378) install file for easy installation, also in the zip is a text file if you want to do it manual ;)
-23 march 2003 - bug fixed. No idea where it came from! 0_o

FlyingDutchman
03-23-2003, 04:06 PM
Screenshot: Postbit

Fi_InCogNiTo
03-23-2003, 04:22 PM
Sweet, I'll install this tonight. Thanks for the release. May I make add-ons for this?

flup
03-23-2003, 04:23 PM
Nice Dutchman ;)

chitown
03-23-2003, 04:25 PM
getting
Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 179

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 189

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 199

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 209

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 179

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 189

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 199

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 209

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 179

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 189

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 199

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 209

FlyingDutchman
03-23-2003, 04:48 PM
Today at 07:25 PM chitown said this in Post #5 (https://vborg.vbsupport.ru/showthread.php?postid=372003#post372003)
getting
Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 179

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 189

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 199

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 209

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 179

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 189

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 199

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 209

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 179

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 189

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 199

Warning: Division by zero in /home/cardtrix/public_html/forum/admin/functions.php3 on line 209

i found out that you need to edit the number in the admin cp -> vB Options at least once or else it won't work! very strange problem...
updated the zip now ;)

Dan
03-23-2003, 04:55 PM
Yea I would install this if I didn't just write my own version of this thats might be more editable than yours.....

Nice hack though

FlyingDutchman
03-23-2003, 05:02 PM
Today at 07:22 PM Fi_InCogNiTo said this in Post #3 (https://vborg.vbsupport.ru/showthread.php?postid=372000#post372000)
Sweet, I'll install this tonight. Thanks for the release. May I make add-ons for this?

what add-ons are you talking about?
at this moment, i'd say yes, but please explain it a bit more ;)

Fi_InCogNiTo
03-23-2003, 10:23 PM
I'll PM you after I gather some ideas.

FlyingDutchman
03-24-2003, 08:59 AM
Screenshot: Admin CP Options

Fi_InCogNiTo
03-24-2003, 01:54 PM
NVM bout the add-on lol. That was just about what I was thinking. Great job dutchman ;)

FlyingDutchman
03-24-2003, 02:00 PM
Today at 04:54 PM Fi_InCogNiTo said this in Post #11 (https://vborg.vbsupport.ru/showthread.php?postid=372489#post372489)
NVM bout the add-on lol. That was just about what I was thinking. Great job dutchman ;)


haha, wasn't too much work to read your thoughts and create it heheheh ;)

The_Wanderer
03-24-2003, 02:14 PM
hasn't this been done a dozen of times already? XD

Dan
03-24-2003, 02:15 PM
It has been done but the older one needs lots of modifacations to work with newer vBs

nnjj.net
03-24-2003, 02:39 PM
Is it working with 2.2.5 ?

FlyingDutchman
03-24-2003, 02:42 PM
if you'd have read the 1st post, you'd know by now that it is guaranteed to work with 2.3.0 and 2.2.9, but no other version is tested (although it should work without any problems!)

The_Wanderer
03-27-2003, 11:22 AM
oh.. in that case, good job then :)

TLfuRy
03-31-2003, 01:48 PM
I installed via vbHacker and get the following error after making the changes to admin/functions.php:

Parse error: parse error, unexpected $ in /home/nestreet/public_html/forum/admin/functions.php on line 2478

Fatal error: Call to undefined function: getuserinfo() in /home/nestreet/public_html/forum/admin/sessions.php on line 366

What did I do wrong? :(

TLfuRy
03-31-2003, 01:52 PM
Ok nevermind. The hacker install didn't tell me ALL of the code I needed to add manually....I installed via the txt file and it went fine.

TLfuRy
03-31-2003, 02:04 PM
I like this hack, but I would like to change it slightly so that it only displays one row of stars. Say, 1 star for every 100 posts. I've messed around a little bit trying to do this, but haven't been able to get it to work properly. Any ideas? I'm not concerned with multiple color stars or anything.

Thanks.

SharronH
04-03-2003, 04:37 AM
Hi, which file is the "postbit" template? TIA

TLfuRy
04-03-2003, 10:12 AM
Look under 'templates' in the admin cp (very bottom of the left menu).

FlyingDutchman
04-03-2003, 04:02 PM
03-31-03 at 05:04 PM TLfuRy said this in Post #20 (https://vborg.vbsupport.ru/showthread.php?postid=375937#post375937)
I like this hack, but I would like to change it slightly so that it only displays one row of stars. Say, 1 star for every 100 posts. I've messed around a little bit trying to do this, but haven't been able to get it to work properly. Any ideas? I'm not concerned with multiple color stars or anything.

Thanks.

with the hack installed, in the postbit template, find:

<smallfont>$post[usertitle]$stars[phatimage]$stars[greenimage]$stars[pinkimage]$stars[yellowimage]</smallfont><br><br>

REPLACE with:

<smallfont>$post[usertitle]$stars[greenimage]</smallfont><br><br>


now, in the vb options, set the 'Stars Hack Number' to 1...
enjoy ;) (you can change the image, right one is: '3rd Star Image
')
(ok, this will still use all the code (some is useless now ;)) but i have no time at this moment, so this quick (and 100% working) fix will do i guess ;))

TLfuRy
04-03-2003, 04:22 PM
Thanks for the reply. I tried what you said, but now the number of stars doens't really seem to have much relevance to their post count. I have users with 1 star that have over 4000 posts...and users with 1200 posts and 6 stars.

Did I do something wrong?

JeffyJoe
04-12-2003, 07:31 AM
Great hack...

was messin around with the other ones - never could get them going right...
this one installed very easily :) using vbhacker
(I had to manually edit the postbit - due to different codes from my forum skin)
(yes I'm a newbie to this, but learning fast)
because of this (i think),,, I had to run the query's again as the vbstars options, didn't show up in my vb options...

now for a newbie question:

when I did this the vb stars options showed double.
how do I get rid of double options?

(i'm guessing it is just a matter of running another query, but I don't know what it should be)

here's a pic of my problem:

FlyingDutchman
04-12-2003, 08:15 PM
edit admin/config.php and set $debug to 1

now you can edit the options in the admin cp (3 new links will show up)
i think you'll find your way around with this ;)
if you don't, just tell me ;)

(and don't forget to set $debug to 0 or anything again afterwards!!!!!)

JeffyJoe
04-17-2003, 05:34 PM
any Ideas?

DeadBeat
05-17-2003, 03:19 PM
OK I think I have everything installed correctly but in admin control panel I see the VB Stars Hack title but there are no options under it and i have it set to debug 1 ......

Any ideas?

cYbercOsmOnauT
06-04-2003, 05:27 PM
[x]installed

Nice nice Dutchman.. but why does it always say "The star image for the 1st star range, you earn..." in all ranges?

I translated your queries into german and attached the file here. Feel free to use it for the other german speakers who wants to install your great hack. :)

bilco105
06-15-2003, 02:29 PM
Hi, I just installed your mod. It shows up fine in the admin console. Yet when I look at someones post it isn't there

I followed the instructions to a "t"

Any ideas why it doesn't work

Joel Llewellyn
06-15-2003, 03:56 PM
^ im having the same problems as bilco, i installed it PERFECTLY and the admin options are there and its set to on, but the stars arent showing up:(

reismarktq2
06-17-2003, 08:44 PM
I like this hack, but I would like to change it slightly so that it only displays one row of stars. Say, 1 star for every 100 posts. I've messed around a little bit trying to do this, but haven't been able to get it to work properly. Any ideas? I'm not concerned with multiple color stars or anything.I'm a bit pickier than you, unfortunately. ;)

The version of this hack I'm looking for is one that has the multiple colors of stars available, but instead of basing them on tiers of posting, a different color star is assigned to each usergroup. (Say, for example, registered users get yellow, moderators get green, and adminstrators get red, but all groups get stars at the same rate.)

Please? :)

ghroob
09-23-2003, 12:46 PM
Hello all :)
how can i install this hack for vb3 beta 6 ?

Thanks
ghroob

mariannet
10-12-2003, 08:27 AM
Hi there

I have now run the queries 3 times and they are still not showing up in the controlpanel. I have ofcourse also changed functions.php and the postbit.
Any ideas?

copper
10-25-2003, 07:32 AM
The version of this hack I'm looking for is one that has the multiple colors of stars available, but instead of basing them on tiers of posting, a different color star is assigned to each usergroup. (Say, for example, registered users get yellow, moderators get green, and adminstrators get red, but all groups get stars at the same rate.)
Please? :)


Yep .. exactly what I'm looking for too.

kylek
10-31-2003, 03:38 AM
I have it on 2.3.2 and works fine, its great! Only problem is that only one row of stars shows, one member has 535 posts (set star for 50 posts) only pink shows, would like all yellow to show and pink like your attachment shows. Had it installed by another person, but would like to get it showing all rows . Any ideas?