Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Galaga Hack v1 Details »»
Galaga Hack v1
Version: 1.0, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-25-2004 Last Update: 01-12-2005 Installs: 32
 
No support by the author.

This is an old hack, made for vb2 around 3 - 4 years ago, however a nice little addition that i and my members enjoy.

So what does it do?
Dependant on the user's post count, stars appear in the postbit under there username.

0 Posts = 1 Yellow Star
100 Posts = 2 Yellow Star
200 Posts = 3 Yellow Stars

Etc..

Upon getting 1000 posts you will go back to 1 star, but a new color instead of yellow.

The colors are in this order:
Yellow
Grey
Green
Blue
Red

Higher the color and amount of stars, higher the persons post count.

Any questions post below, i have attatched a screenshot as an example for you all

Enjoy,

- Zero Tolerance

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 12-12-2004, 08:28 AM
Snow's Avatar
Snow Snow is offline
 
Join Date: Jul 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paulmjno
I look forward to your findings...hope you can fix it.
same here..... does anyone have a solution yet
Reply With Quote
  #33  
Old 12-12-2004, 09:12 PM
paulmjno paulmjno is offline
 
Join Date: Sep 2004
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snow
same here..... does anyone have a solution yet
Solution: use Stars Hack.

Galaga would be great, if it worked.
Reply With Quote
  #34  
Old 12-13-2004, 07:55 AM
Snow's Avatar
Snow Snow is offline
 
Join Date: Jul 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paulmjno
Solution: use Stars Hack.

Galaga would be great, if it worked.
Thanks
Reply With Quote
  #35  
Old 01-13-2005, 01:17 PM
Rambo Rambo is offline
 
Join Date: Oct 2003
Location: Scotland, UK
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack,

Installed without any problems.

Good Stoof!
Reply With Quote
  #36  
Old 01-13-2005, 01:48 PM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The modification has been updated, it now works as it was intended too, sorry for any inconveniance.

- Zero Tolerance
Reply With Quote
  #37  
Old 02-18-2005, 07:28 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks ZT- it works great now!
Reply With Quote
  #38  
Old 04-02-2005, 08:22 PM
4number8 4number8 is offline
 
Join Date: Nov 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work and thanks, works a treat!
Reply With Quote
  #39  
Old 05-02-2005, 11:04 PM
Ala21 Ala21 is offline
 
Join Date: Feb 2005
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting the following problem: yellow stars work, but if a user reaches 1000 posts or more, stars don't change color and they go back to 1 yellow star and stick with it.

So basically if you have 1000, 2000, 5000, or 9000 posts you only have 1 yellow star, they don't change color, they don't increase amount, nothing. If you have less than 1000 posts then yellow stars increase.

This is the code i am using which is the one you specified in the install file:

Code:
	// ++++++++++++++++++++++++++++++++++++++++++
	// vB Galaga Hack - Created By Zero Tolerance

		$post['stars']=intval(str_replace(",","",$post['posts'])/100);

		// Limit The Stars
		if($post['stars'] >= 50){
		$post['stars'] = 49;
		}

		// Get level
		if($post['stars'] >= 40){
		$post['starsc']=$post['stars'] -39;
		$post['s_ext']="red";
		} elseif($post['stars'] >= 30){
		$post['starsc']=$post['stars'] -29;
		$post['s_ext']="blue";
		} elseif($post['stars'] >= 20){
		$post['starsc']=$post['stars'] -19;
		$post['s_ext']="green";
		} elseif($post['stars'] >= 10){
		$post['starsc']=$post['stars'] -9;
		$post['s_ext']="grey";
		} else {
		$post['starsc']=$post['stars'] + 1;
		$post['s_ext']="yellow";
		}

		$post['stars_display']="";

		for($iCount=0;$iCount<($post['starsc']);$iCount++){
		$post['stars_display'].="<img src='images/galaga/s_{$post['s_ext']}.gif'>";
		}

	// vB Galaga Hack - Created By Zero Tolerance
	// ++++++++++++++++++++++++++++++++++++++++++

Any help would be greatly appreciated

Thank you
Reply With Quote
  #40  
Old 05-04-2005, 12:44 PM
Ala21 Ala21 is offline
 
Join Date: Feb 2005
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
Reply With Quote
  #41  
Old 05-04-2005, 01:23 PM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let's say you had 2000 posts, which would be: 2,000, the script first strips comma's, leaving: 2000

Next this number is divided by 100, leaving: 20
Using the if/else statement, the final outcome is:
$post['starsc'] equals 1
$post['s_ext'] equals green
So you have 1 green star.

I can't see the problem, i'm using the exact same code on my vb forum (3.0.7), and it's working as it should, perhaps something else you installed which collides with this?

- Zero Tolerance
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 07:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05206 seconds
  • Memory Usage 2,309KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete