vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Pip System (https://vborg.vbsupport.ru/showthread.php?t=55675)

mx3 07-27-2003 10:00 PM

Pip System
 
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/attachmen...&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

Quote:

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

Quote:

Today at 08:09 AM Hostc said this in Post #13
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

Quote:

Today at 08:15 AM mx3 said this in Post #16
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:
PHP Code:

    <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..

Quote:

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 ^^

PHP Code:

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

Quote:

Today at 08:36 AM Faranth said this in Post #24
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

Quote:

Today at 08:45 AM mx3 said this in Post #27
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:
PHP Code:

} 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:
PHP Code:

} 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:

PHP Code:

} 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

Quote:

Today at 07:42 AM Hostc said this in Post #3
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

Oblivion Knight 07-28-2003 07:33 PM

Quote:

Today at 09:25 PM minder said this in Post #38
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

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

Quote:

Today at 02:03 AM Oblivion Knight said this in Post #39
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:


All times are GMT. The time now is 05:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01468 seconds
  • Memory Usage 1,839KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete