Log in

View Full Version : vB 3.5 Stars Hack


FlyingDutchman
04-15-2006, 10:00 PM
I finally upgraded my vb2/vb3 stars hack to vB 3.5.

What does it do?
This extension will show stars under the username in the postbit. Depending on the number of posts the user has made it will show more or less stars.
You can specify at which number of posts the user gets a certain type of star.
Example. star levels are 3000,300,30,3 (default). If user X has 4278 posts, then this user X will have one 3000-star, four 300-stars, two 30-stars and 6 3-stars.
Take a look at the screenshots..

How to install?
Import the xml file
Upload the 4 star images in the zipfile (either one of the two star sets) to the folder images/stars/ (you will most likely need to create it)
Add the following html to your postbit or postbit_legacy template somewhere:

<div>$stars</div>

I suggest you put it directly after:

<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>


How to use it?
If you installed it correctly the stars will show up in the postbit. You can specify the star levels and image names in the Admin CP. You can turn off the extension as well in the Admin CP on the options page.

sandrodz
04-16-2006, 01:49 PM
looks nice, thanks :)

toolblast
04-16-2006, 09:29 PM
Having all those different levels of stars is confusing in my opinion.

Can you switch it so that there is only 1 line of stars from 1-5 stars, and the more posts, the more stars and the different the color of star?

So, say for example:

100 posts - 1 yellow star
500 posts - 2 yellow stars
800 posts - 3 yellow stars
1000 posts - 4 yellow stars

1100 posts - all stars are removed and replaced with 1 blue star
1500 posts - 2 blue stars
etc etc....

down to

10,000 posts - 5 red stars.

Something like that?

Brent H
04-16-2006, 09:37 PM
Just use the existing User Ranks feature if you want a single line.

FlyingDutchman
04-17-2006, 02:35 PM
toolblast, Brent is right about this.

To clarify:
My extension basicly is an addition/replacement to the User Ranks system. Using the User Ranks system to accomplish the same functionality as my extension is probably possible, but if it is, it will require a lot of work to get it working...
Above all, my extension will work for any number of posts, it's not limited in any way.

hypnoticpimp
04-25-2006, 02:40 PM
is there anyway to change the picture? like instead of a star, something else,

firstrebel
04-25-2006, 06:33 PM
I think this is a better system than the standard 'Junior Member' etc. A lot of people don't like that. I will play around with this on my dev site.

Bob

FlyingDutchman
04-25-2006, 08:58 PM
is there anyway to change the picture? like instead of a star, something else,

yes you can use any image you want, as long as they are gifs, you can upload them to the folder: images/stars
then you'll need to specify the names of the images in the admin cp under settings

saba
04-25-2006, 09:36 PM
can u please make blue and sliver stars and black

texasasl
08-31-2006, 10:31 PM
Really sorry I tried to install it but I am getting this error message when I am trying to import the xml file:

Database error in vBulletin 3.5.3:

Invalid SQL:

INSERT INTO vb3_setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'starsonoff',
'staroptions',
'1',
'1',
'free',
'yesno',
10,
0,
1,
'stars'
),
(
'starlevels',
'staroptions',
'3000,300,30,3',
'3000,300,30,3',
'free',
'',
20,
0,
1,
'stars'
),
(
'starcolors',
'staroptions',
'megastar,green,pink,yellow',
'megastar,green,pink,yellow',
'free',
'',
30,
0,
1,
'stars'
);

MySQL Error : Duplicate entry 'starsonoff' for key 1
Error Number : 1062
Date : Friday, September 1st 2006 @ 02:25:45 AM


Please note that I have also installed the previous version following exactly the guidelines but it was also false. That means even I entered all the required modifications I never saw any stars appearing.
Is there any way to help me or is there anyway to remove the older version and install the new one???
I will be really appreciated if somebody can help me. Thank you.

neologan
02-21-2007, 12:38 PM
does this work with 3.6?

bigwest
04-08-2007, 04:50 AM
does this work with 3.6?I have the same question. :)

bigwest
04-18-2007, 06:42 PM
Anyone know?

My members like this hack much better than the rank system.

bigwest
04-27-2007, 03:45 PM
Has anyone tried this in 3.6??

bigwest
04-27-2007, 03:53 PM
I tried installing it and it didn't work. :(

phiber
05-01-2007, 05:49 PM
I need it also please! :D

paulmjno
08-02-2007, 06:35 PM
I tried installing it and it didn't work. :(
Damn, that sucks. My members have been requesting this. I'm on 3.6.

kdeniz
05-28-2009, 01:14 AM
goes with the 3.8