PDA

View Full Version : Pip System


mx3
07-27-2003, 10:00 PM
Pip System Hack
By mx3/Hyper22shadow

What this does is display an image a certain amount of times based on post count in the postbit.

Demo: http://www.ugfederation.com/forums (check any thread)
Screenshot: https://vborg.vbsupport.ru/attachment.php?s=&postid=421155
Contact: Hyper22Shadow@cableone.net for email, or you can contact me via AIM. My AIM name is Hyper22Shadow2

I just made this today, it appears to be working fine for me...Any bugs just post them here and i'll try to help as best i can.
Enjoy!

mx3
07-28-2003, 05:35 AM
Screenshot:

Hostc
07-28-2003, 05:42 AM
Isn't that what the "Stars" in the image folder are for?

mx3
07-28-2003, 05:43 AM
Uhm...
Can you rephrase that?
Sorry....a bit tired...
Wait...do you mean the thread rankings? If so, no...this has nothing to do with the thread, just the user...

Hostc
07-28-2003, 05:44 AM
Oh, sorry hit the submit button too quickly :P

mx3
07-28-2003, 05:45 AM
Heh...its ok...

Hostc
07-28-2003, 05:55 AM
So as I understand it Adds the images under the Title like Invisionboard, Phpbb has on theirs?

mx3
07-28-2003, 05:56 AM
Yes. Right under the title in the postbit.

Hostc
07-28-2003, 05:59 AM
Great Hack! :) I always wondered why vbulletin didn't have this ;)


To people who need PIPs you can get some from http://phpbb.com or http://ibplanet in their graphics area :p

Installs

mx3
07-28-2003, 06:02 AM
Thanks! Heh...finally a hack i make that works...
Oh and be careful getting them from those sites...some are copyrighted...
but at ibplanet.com in their gfx db under pips find the flashy rainbow ones and i made those (They are by hypershadow22)...you can use those if you want. the rest...well i dunno.

Hostc
07-28-2003, 06:04 AM
Suggestion:

It'd be nice if you added a way to edit the PIPs Options VIA the AdminCP.

mx3
07-28-2003, 06:06 AM
Thatll be in version 2. I just threw this together really fast because i was bored and wanted to see if i could make a hack :p
I'll see what i can do about the admin stuff...might take awhile though. I'm not all that good with the template system...or PHP for that matter. I only know the basics, but its enough for me for now. :D

I always wondered why vbulletin didn't have this
Me too, heh heh...thats another reason i made it.
Any other suggestions/comments?

Hostc
07-28-2003, 06:09 AM
Add a way for users to change which PIP Images should show in their post...

Example:

1 user wants Red stars showed in his Post, so he can choose red stars PIP

2nd user wants Blue Stars showed in his post, so he can choose Blue Star PIP.

Or something like that :p

mx3
07-28-2003, 06:12 AM
Today at 08:09 AM Hostc said this in Post #13 (https://vborg.vbsupport.ru/showthread.php?postid=421170#post421170)
Add a way for users to change which PIP Images should show in their post...

Example:

1 user wants Red stars showed in his Post, so he can choose red stars PIP

2nd user wants Blue Stars showed in his post, so he can choose Blue Star PIP.

Or something like that :p
Well the way i set it up is that the colors change for usergroup. At my boards, i have about 6-7 staff usergroups and each have a separate color, and the members just get regular white.

Hostc
07-28-2003, 06:13 AM
Then restrict which images a person can choose depending on their usergroup

mx3
07-28-2003, 06:15 AM
So like, the regular members could choose a few different colors that aren't special staff ones? heh...it'd be kinda hard at my boards since a lot of the colors are taken but i can try that. Version 2. :D

Hostc
07-28-2003, 06:21 AM
Today at 08:15 AM mx3 said this in Post #16 (https://vborg.vbsupport.ru/showthread.php?postid=421173#post421173)
So like, the regular members could choose a few different colors that aren't special staff ones? heh...it'd be kinda hard at my boards since a lot of the colors are taken but i can try that. Version 2. :D

Exactly :)


Little Problem,

After Editing the Functions.php and adding the code after

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

It doesn't show the PIP's under the title.....

mx3
07-28-2003, 06:26 AM
Hmm...
you put $showpips<br> right after it?
I'll go check my template to make sure thats the right variable...
Did you save and upload your admin/functions.php file?

-Edit-
Well, this is the line in my template:
<smallfont>$post[usertitle]</smallfont><br>$showpips<br>
If the instructions say to make that look otherwise, tell me, and i'll update ASAP.

Also, make sure you added it to all your template sets.

Hostc
07-28-2003, 06:29 AM
Oh, stupid me...... Forgot to upload the functions.php file. Other then that it works great :)

mx3
07-28-2003, 06:30 AM
Lol, well ok...Its always something like that which causes errors and stuff. :D
Can you post the url to your board so others can see it in action? I'll add it to the first post, as well. :D

Zachery
07-28-2003, 06:31 AM
i always wondered why vb2 had stars. but i never figured a way to turn them on, great hack, too bad ill be going vb3 in a day or two

Hostc
07-28-2003, 06:34 AM
..........

mx3
07-28-2003, 06:34 AM
The stars are for the thread rankings i believe. When you make a new reply, you can 'rate the post'...
Unless i'm stupid and can't read correctly today :p
I'll update this for vB3 soon....i suppose....but can't release it here till vB3 final is released..

http://www.ph33rnet.com/forums/show...php?&threadid=3

It's just a hack testing board, not intended for public use.... but I guess I could let people see it in action...
Hmm...it doesn't look like its working for the admin user.
The administrator group id should be 6, at least thats what i have the hack set for. Change those if they are different ^^

if(($post[usergroupid] == "6")) { // This should be the admin group id
$pip="images/apip.gif";
} elseif(($post[usergroupid] == "5")) { // this should be the super mod group id
$pip="images/spip.gif";
} elseif(($post[usergroupid] == "7")) { // and this should be moderator group id
$pip="images/mpip.gif";
} else {
$pip="images/pip.gif";
}

Zachery
07-28-2003, 06:36 AM
well if you do the work now, i wouldnt mind seeing a beta of it if thats ok with you....

mx3
07-28-2003, 06:38 AM
Today at 08:36 AM Faranth said this in Post #24 (https://vborg.vbsupport.ru/showthread.php?postid=421184#post421184)
well if you do the work now, i wouldnt mind seeing a beta of it if thats ok with you....


Ack, too tired right now...
I'll try it tomorrow, sometime in the afternoon....:D
But i guess i can check out the vb3 files right now to see how they are set up.

Hostc
07-28-2003, 06:38 AM
BUG: If a user has more posts then the maximum option in the function.php it doesn't show the IMAGES for the LAST PIP Level......

mx3
07-28-2003, 06:45 AM
Err...well it wasn't really designed to do so. i can fix that though.
And faranth, I think its actually built in to vB3. The User Ranks thing...

-edit-
Updated the zip file. Download it and re-do the change to admin/functions.php.

Hostc
07-28-2003, 06:53 AM
You may want to make a version number for this one ;)

mx3
07-28-2003, 06:54 AM
Why? Just a little fix...
Ok, fine...1.1 it is :D

Hostc
07-28-2003, 06:58 AM
Today at 08:45 AM mx3 said this in Post #27 (https://vborg.vbsupport.ru/showthread.php?postid=421187#post421187)
Err...well it wasn't really designed to do so. i can fix that though.
And faranth, I think its actually built in to vB3. The User Ranks thing...

-edit-
Updated the zip file. Download it and re-do the change to admin/functions.php.

Still not fixed......

mx3
07-28-2003, 07:00 AM
It isn't? How many posts does the user have?

Hostc
07-28-2003, 07:02 AM
Posts: 65535

:p

mx3
07-28-2003, 07:04 AM
ok...
find:

} elseif($post[posts] >=' 5501' AND $post[posts] <= '10000') {
$pipcount=15;
$showpips="<img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip>";

add under:

} elseif($post[posts] > '10000') {
$pipcount=16;
$showpips="<img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip>";


Tell me if that works...



And i don't really think there are many boards out there with members that have post counts that high :p

Hostc
07-28-2003, 07:19 AM
I know, but if a user had more posts then whats set in the functions.php it wouldn't show the image ;)

Hostc
07-28-2003, 07:22 AM
You mean


Find:


} elseif($post[posts] >=' 5501' AND $post[posts] <= '5500') {
$pipcount=15;
$showpips="<img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip><img src=$pip>";

? ;)

Hostc
07-28-2003, 07:29 AM
Yep that works :D

P.S: Don't forget to update the zip.

assassingod
07-28-2003, 07:48 AM
Today at 07:42 AM Hostc said this in Post #3 (https://vborg.vbsupport.ru/showthread.php?postid=421157#post421157)
Isn't that what the "Stars" in the image folder are for?

Technically, no, but there have been hacks out that are similar to this that uses stars. Also, vBulletinTemplates.com had a modification to use stars as well.

minder
07-28-2003, 07:25 PM
another way to do this without a hack is the way i have made the rank stars on my forum.....


in the admin cp

When defining the ranks, simply ad a <br>followed by an img tag for the appropriate star image. For example:
Starting at 0 posts:
Forum Newbie<br><img src="images/stars/1star.gif">
Starting at 51 posts:
Forum Member<br><img src="images/stars/2star.gif">

You would then make appropriate images and place them in forums/images/stars.

regards
rob
:smoke:
my forum (http://www.unlocking4u.net)

Oblivion Knight
07-28-2003, 07:33 PM
Today at 09:25 PM minder said this in Post #38 (https://vborg.vbsupport.ru/showthread.php?postid=421361#post421361)
another way to do this without a hack is the way i have made the rank stars on my forum.....


in the admin cp

When defining the ranks, simply ad a <br>followed by an img tag for the appropriate star image. For example:
Starting at 0 posts:
Forum Newbie<br><img src="images/stars/1star.gif">
Starting at 51 posts:
Forum Member<br><img src="images/stars/2star.gif">

You would then make appropriate images and place them in forums/images/stars.

regards
rob
:smoke:
my forum (http://www.unlocking4u.net) You can only have so many stars doing it this way since there is a limit to how many characters you can enter in the rank field.. Though of course this can be fixed with a small MySQL database query.. ;)

minder
07-28-2003, 07:38 PM
Today at 02:03 AM Oblivion Knight said this in Post #39 (https://vborg.vbsupport.ru/showthread.php?postid=421363#post421363)
You can only have so many stars doing it this way since there is a limit to how many characters you can enter in the rank field.. Though of course this can be fixed with a small MySQL database query.. ;)

i dont see what u mean?
as you are linking to an image file and that image could have say 10 or even 20 stars

maybe im wrong as im new to vb

regards
rob
:smoke:

Oblivion Knight
07-28-2003, 08:50 PM
Today at 09:38 PM minder said this in Post #40 (https://vborg.vbsupport.ru/showthread.php?postid=421366#post421366)
i dont see what u mean?
as you are linking to an image file and that image could have say 10 or even 20 stars

maybe im wrong as im new to vb

regards
rob
:smoke: My bad, it's ok if you do it like that. :)
Problems occur when you want to link to the same image for x amount of stars you want (for a stupidly high amount of times)..

For example if you wanted 20 stars for the highest rank and entered Super Duper Member<br> and then had <img src="images/stars/member.gif"> 20 times after that, it wouldn't work properly..

minder
07-28-2003, 08:59 PM
Today at 03:20 AM Oblivion Knight said this in Post #41 (https://vborg.vbsupport.ru/showthread.php?postid=421387#post421387)
My bad, it's ok if you do it like that. :)
Problems occur when you want to link to the same image for x amount of stars you want (for a stupidly high amount of times)..

For example if you wanted 20 stars for the highest rank and entered Super Duper Member<br> and then had <img src="images/stars/member.gif"> 20 times after that, it wouldn't work properly..


no problem :)

mx3
07-28-2003, 09:24 PM
Heh...this would be easy without a hack. But, I felt like coding.
Anyone found any more bugs? I could go in and add a few more ranks for those bigger boards out there, but the highest poster at my forums has only 2100-something and i have 1510 i think....so i basically made it for smaller boards. that can easily be changed, though :p

mx3
07-31-2003, 12:40 AM
Whoops...i found a bug. Better update. :D

SmEdD
08-17-2003, 06:42 AM
vB3 already has this so no need to get it ready for it ;)

mx3
10-13-2003, 05:33 PM
Yeah but this is for vB2 and for people who might not update due to other hacks that they like that won't be re-coded for vB3 fast enough....I paid $40 for one hack and I'm not upgrading to vB3 until it is compatible ^_^

armani1072
01-30-2004, 06:24 AM
Is there a way to alter the code so the Admin will have more stars without having the amount of post required? i tried several things but me not be any type of code expert nothing worked. thanks.

good hack btw.

Kerr
02-06-2004, 01:14 PM
Yeh I am looking for something that will add stars to my admins then add a smaller amount of stars in a different color to my super mods...then a different color and less abmount for my mods and so forth. I will reread this post as I may be able to code it myself but I am no where near a coder like some of you guys are. So any direction would help me if there is a hack here already or if I can make this one work that way it would be great. I dont want it to work off posts for my admins/mods I want it to work on posts however for members.

Maybe I should request? I dunno.