vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Stars Hack vb228 (https://vborg.vbsupport.ru/showthread.php?t=47093)

kuwaitsun 12-29-2002 05:49 AM

Stars Hack vb228
 
Hi

Please could any body tell me how can i get the stars hack for VB 2.2.8
A.S.A.P

I have the stars for 2.2.5 but it couldn't worked in my forum (228)

Regards :::

kuwaitsun 03-20-2003 11:16 AM

No One Want to help me :(

grog6 03-20-2003 11:40 AM

Star hacks works well on a v2.2.8 ;) and even on a 2.3.0 ;)

flup 03-21-2003 07:50 AM

i've made a starhack myself.
Just add: <br><img src="file_2_stars.jpg"> in the back of the group title.
It works perfectly!

FlyingDutchman 03-21-2003 10:38 AM

Quote:

Today at 10:50 AM flup said this in Post #4
i've made a starhack myself.
Just add: <br><img src="file_2_stars.jpg"> in the back of the group title.
It works perfectly!


i think this is not really what he wants... i think he wants stars based upon the user's post count...
;)

Lesane 03-21-2003 02:53 PM

You can use this simple stars addon if you want, it works perfect on my forum:

Find in functions.php:

PHP Code:

eval("\$post[buddy] = \"".gettemplate("postbit_buddy")."\";"); 

Add after it:

PHP Code:

if ($post[posts]<30) {
    
$post[stars] = "<img src=\"images/stars/1.gif\" border=\"0\">";
    } elseif (
$post[posts]<100) {
    
$post[stars] = "<img src=\"images/stars/2.gif\" border=\"0\"><img src=\"images/stars/2.gif\" border=\"0\">";
    } elseif (
$post[posts]<250) {
    
$post[stars] = "<img src=\"images/stars/3.gif\" border=\"0\"><img src=\"images/stars/3.gif\" border=\"0\"><img src=\"images/stars/3.gif\" border=\"0\">";
    } elseif (
$post[posts]<500) {
    
$post[stars] = "<img src=\"images/stars/4.gif\" border=\"0\"><img src=\"images/stars/4.gif\" border=\"0\"><img src=\"images/stars/4.gif\" border=\"0\"><img src=\"images/stars/4.gif\" border=\"0\">";
    } elseif (
$post[posts]<1000) {
    
$post[stars] = "<img src=\"images/stars/5.gif\" border=\"0\"><img src=\"images/stars/5.gif\" border=\"0\"><img src=\"images/stars/5.gif\" border=\"0\"><img src=\"images/stars/5.gif\" border=\"0\"><img src=\"images/stars/5.gif\" border=\"0\">";
    } elseif (
$post[posts]<2000) {
    
$post[stars] = "<img src=\"images/stars/6.gif\" border=\"0\"><img src=\"images/stars/6.gif\" border=\"0\"><img src=\"images/stars/6.gif\" border=\"0\"><img src=\"images/stars/6.gif\" border=\"0\"><img src=\"images/stars/6.gif\" border=\"0\"><img src=\"images/stars/6.gif\" border=\"0\">";
    } elseif (
$post[posts]>2000) {
    
$post[stars] = "<img src=\"images/stars/7.gif\" border=\"0\"><img src=\"images/stars/7.gif\" border=\"0\"><img src=\"images/stars/7.gif\" border=\"0\"><img src=\"images/stars/7.gif\" border=\"0\"><img src=\"images/stars/7.gif\" border=\"0\"><img src=\"images/stars/7.gif\" border=\"0\"><img src=\"images/stars/7.gif\" border=\"0\">";
    } 

You need to edit the path to the stars images though. And you could also edit the post amounts wich the user must have to display the stars.

Then you can put $post[stars] in your postbit to show the stars.

flup 03-21-2003 03:48 PM

Quote:

Today at 12:38 PM FlyingDutchman said this in Post #5



i think this is not really what he wants... i think he wants stars based upon the user's post count...
;)


Well, usertitles are based on postcount!
Aren't they?

Think bfore answer ;)

EvilLS1 03-22-2003 12:57 AM

Quote:

Yesterday at 05:48 PM flup said this in Post #7



Well, usertitles are based on postcount!
Aren't they?

Think bfore answer ;)


That won't work if you allow your users to set custom titles. ;)

I use a simple little hack thats similar to the one Lesane posted and it works perfectly for rank images.

flup 03-22-2003 06:12 AM

Ok that way your correct.
I use my "hack" [-> Custum Usertitles ;)] cause i don't have
custom usertitles enabled :D


All times are GMT. The time now is 08:16 PM.

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.00981 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete