Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[release v2] my stars hack (adm/smod/mod/user) Details »
[release v2] my stars hack (adm/smod/mod/user)
Mod Version: 1.00, by (Guest)  is offline
Developer Last Online: Jan 1970 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 0
Released: 30 Mar 2001 Last Update: Never Downloads: 5
Not Supported  

ok, this is the hack i use.
it makes difference on per user/mod/super mod/admin basis.
You can customize it as you like.

If the user has below than X msgs, he get an empty star.
If the user reach X msgs, he will get a special star which means he reach the max )

You'll need six images,so.
[star.*.gif]
star.no.gif // the empty one
star.user.gif
star.mod.gif
star.supermod.gif
star.admin.gif
star.max.gif //the special one



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to use it, include the code where you want, in the postbit template.

finally, here are my stars.

hope this is useful

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 30 Mar 2001, 10:57
Guest
 
Not Downloaded
ops.... i forgot to give credit to freddie for the original code.... silly me

i've just create a complete package to be sure the code will not mess up.

cya.
Attached Files
File Type: zip stars_hack_marl.zip (1.9 KB, 81 views)
Reply With Quote
  #3  
Old 30 Mar 2001, 11:02
Guest
 
Not Downloaded
hey, any chance ya can merge this with tubedogg's star hack?

http://www.vbulletin.com/forum/showt...threadid=12648
Reply With Quote
  #4  
Old 30 Mar 2001, 18:46
Guest
 
Not Downloaded
it's a totally different approach...
mine is a hack "as is", tubedogg's one has cp integration and other features...
Reply With Quote
  #5  
Old 30 Mar 2001, 19:51
Guest
 
Not Downloaded
I want the CP intergration!
As does alot of people!
Reply With Quote
  #6  
Old 30 Mar 2001, 19:56
Guest
 
Not Downloaded
i pasted the code in to the postbit template and i get nothing back...

here is my postbit template:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

i just get the php stuff back when i do a view source on the html it generates??? why? do i need to put the php tags @ the top/bottom??
Reply With Quote
  #7  
Old 30 Mar 2001, 20:01
Guest
 
Not Downloaded
sorry, i was my fault
i was in a hurry

save the code as a file, in the main forum dir,eg. stars.php,
then in the head of your showthread.php file, right under require global.php,add

include('stars.php');



and in the postbit simply insert $stars


hope it helps.
Reply With Quote
  #8  
Old 30 Mar 2001, 20:11
Guest
 
Not Downloaded


now it makes sense... thanks... except everybody has one blank star... hmm... time to debug and figure out why...
Reply With Quote
  #9  
Old 30 Mar 2001, 21:03
Guest
 
Not Downloaded
Stars (or ranks) will officially make their debut in version 2.1. I will try to create something as diverse and feature rich as possible.
Reply With Quote
  #10  
Old 30 Mar 2001, 21:06
Guest
 
Not Downloaded
Originally posted by freddie
Stars (or ranks) will officially make their debut in version 2.1. I will try to create something as diverse and feature rich as possible.


sounds great... in the meantime.. any idea why the if statment in the above code doesn't work for me... i am using 2.0b3
Reply With Quote
  #11  
Old 30 Mar 2001, 23:44
Guest
 
Not Downloaded
it gives a blank star until they reach the minimum amount of posts to obtain a star.
Reply With Quote
  #12  
Old 31 Mar 2001, 00:36
Guest
 
Not Downloaded
Originally posted by marl
it gives a blank star until they reach the minimum amount of posts to obtain a star.
i have over 500 posts myself and i get a blank... i am also an admin... several of my other users are in the hundreds and still no stars either... how many posts are needed??? i thought it was only like 20...
Reply With Quote
  #13  
Old 31 Mar 2001, 00:42
Guest
 
Not Downloaded
you can customize these values:

$sh = 12; //height of the stars
$sw = 11; //width of the stars
$starposts = 20; // Number of posts to give a new star
$maxstars = 10; // Maximum stars per line
$maxtotalstars = 20; // Maximum stars to give
$maxmsgs = $starposts*$maxtotalstars;
Reply With Quote
  #14  
Old 31 Mar 2001, 00:47
Guest
 
Not Downloaded
i've messed w/them some and i still only get one blank star... as if the "if - ifelse - else" statment is not working right...
Reply With Quote
  #15  
Old 31 Mar 2001, 00:47
Guest
 
Not Downloaded
either that or the "for" loop maybe?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:19.

Layout Options | Width: Wide Color: