PDA

View Full Version : --Please read-- Stars Hack for 2.2.6


N9ne
08-24-2002, 05:51 PM
I know there's a stars hack out there but it's for 2.2.1 and it's full of bugs on 2.2.6 so this is my request which will probably help out so many people out there :)

Just like the stars hack for 2.2.1 but for 2.2.6 with no bugs :)

Please no one tell me to go post in the stars hack thread because many people have posted bugs etc but many don't ever get fixed and it's not getting updated so please :(

Thanks a MAJOR bunch to whoever does this :)

g-force2k2
08-24-2002, 05:57 PM
Tha Rock what kind of bugs are you experiencing? because i believe that i did a clean install of that not too long ago... i would gladly make one compatible if you can give me a list of what need to be fixed ;) regards

g-force2k2

N9ne
08-24-2002, 06:30 PM
Well i'm not going to install it because i've read about bugs and such, so I don't want to take the risk...I was just thinking it's about time for it to be recoded? Surely it's not that much code?

N9ne
08-24-2002, 06:39 PM
Also, my set up is a bit different, I don't have normal stars, instead I have bars which contain different colours, etc...

So I only have one image for each ranking not a set number of stars

So what my request really is is a hack that will allow me to assign a graphic to each user post ranking, AND to Moderators, SuperMods, Admins and userid=8 [custom group I made]

So really I am asking for pretty much a new hack...?

And be able to change it all through the CP of course :)

So g-force, if this is possible and you create it, thanks very much :)

g-force2k2
08-24-2002, 06:44 PM
are we talking about just something on the postibit? or would you prefer to have it show in other locations as well?

g-force2k2

N9ne
08-24-2002, 07:52 PM
Just the postbit :) under their custom title or title...

g-force2k2
08-25-2002, 05:23 AM
Tha Rock then you can just user the admin/functions.php to make your own type of hack...

find:

// do ip addresses

under it add:

if($bbuserinfo[posts] >= 0) {
$post[specialimg] = "<img src=\"[url here].[extension here]\" border=\"0\">";
} elseif($bbuserinfo[posts] >= 50) {
$post[specialimg] = "<img src=\"[url here].[extention here]\" border=\"0\">";
}

and you can keep that going and user whichever posts that you want and different images etc... i hope you get my point...

then after if you want to user custom images for moderators... smods and administrators...

under my other coding add:

if($bbuserinfo[usergroupid] == 6) { // Image for Administrators
$post[specialimg] = "<img src=\"[url here].[extention here]\" border=\"0\">";
} elseif($bbuserinfo[usergroupid] == 7) { // Image for Smods
$post[specialimg] = "<img src=\"[url here].[extention here]\" border=\"0\">";
} elseif($bbuserinfo[usergroupid] == 5) { // Image for Moderators
$post[specialimg] = "<img src=\"[url here].[extention here]\" border=\"0\">";
}

then in the postbit template where ever you want the image to show just place:

$post[specialimg]

hope that helps you on your request :)

g-force2k2

N9ne
08-25-2002, 09:50 AM
It's useful, however we'd find it easier if it was an option in the AdminCP to change :)

N9ne
08-25-2002, 09:54 PM
bee you emm pee spells B.U.M.P ;)

g-force2k2
08-25-2002, 09:55 PM
okay but do you mind if it runs extra queries then?

regards...

g-force2k2

tcs
08-25-2002, 10:04 PM
I recently add the stars hack with no problems or bugs what so ever. This is in 2.2.6. It's accually one of the simplest hacks I have installed.

N9ne
08-25-2002, 10:12 PM
Originally posted by g-force2k2
okay but do you mind if it runs extra queries then?

regards...

g-force2k2

Exactly how many more queries? I don't mind if it's around 10 I guess

N9ne
08-26-2002, 01:17 PM
bump...

N9ne
08-27-2002, 09:22 PM
g-force, any updates on how many queries will be added?

g-force2k2
08-27-2002, 10:00 PM
well it'll probably be at one per post if not a little less but you can expect that... regards...

g-force2k2

N9ne
08-27-2002, 11:39 PM
ok that's fine :)

N9ne
08-30-2002, 04:56 PM
Is this hack in production [just wondering since this topic is on page 3 now :(]