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

Reply
 
Thread Tools
Rap Battle System -=RBS=- Details »»
Rap Battle System -=RBS=-
Version: 1.00, by MindTrix MindTrix is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-08-2004 Last Update: Never Installs: 93
 
No support by the author.

Ladys and Gentlemen, i give you, The Rap Battle System -=RBS=-


Many people have been requesting this so here it is. Took along time so im hoping it becomes a popular hack :nervous:



Features

Hmmm there are a few. Select the forum which the battle hack works in via the admin cp
Can edit a users win/loss record via the admincp aswell.

When someone wins a battle it automatically adds it to their win count and the opposite if they lose

The thread does not auto close because in my many years of experience people like to post/argue on after a battle is won or lost.

Erm oh and you submit your favourite line from the battle and it will get added to a database, then lines are randomly shown on the forum homepage.

Check the installation.txt for the full list, Also there is loads more features to come. Hopefully some people will release some addons maybe

Screenshot time wohoo

Oh yeah, the install button is your friend


Attachment edited/upgraded on 15th August 2004 had 87 views woot
Edited attachment on 15/1/2005 to stop all polls closing after one vote. Fix submitted by KingPooky!

Show Your Support

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

Comments
  #132  
Old 11-19-2004, 07:00 PM
Hades-1 Hades-1 is offline
 
Join Date: May 2004
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KingPooky
First of all, I want to thank you for creating this hack. It's cool as hell, and best of all, easy to install.

For those of you who are having problems with normal, everyday polls being closed whenever someone votes, I believe I have found the solution.

Open POLL.PHP and find
PHP Code:
        //RBS
        
$battlesys $DB_site->query_first("SELECT * FROM " TABLE_PREFIX "battlesys_battles WHERE pollid = '".$pollinfo['pollid']."'");
        
$votestowin $battlesys['votestowin'];
        
$splitoptions explode("|||"$pollinfo['options']);
        
$maxvotes 0;
        
$leastvotes 0;
        foreach (
$splitvotes as $number => $vote)
        {
            global 
$maxvotes;
            global 
$leastvotes;
            global 
$splitoptions;
            if ( 
$vote $maxvotes ) {
                
$maxvotes $vote;
                
$winner $splitoptions[$number];
                global 
$winner;
            }
            if ( 
$vote $leastvotes or $vote == ) {
                
$leastvotes $vote;
                
$loser $splitoptions[$number];
                global 
$loser;
            }
        }
        if ( 
$maxvotes >= $votestowin )
        {
            
$DB_site->query_first("UPDATE " TABLE_PREFIX "poll SET active = '0' WHERE pollid = '".$pollinfo['pollid']."'"); //close poll
            //$winnerinfo = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "user WHERE username = '".$winner."'");
            
$DB_site->query("UPDATE user SET bs_wins = bs_wins + 1 WHERE username = '".$winner."'");
            
$DB_site->query("UPDATE user SET bs_loses = bs_loses + 1 WHERE username = '".$loser."'");
            
        }
        
//RBS 
And replace with
PHP Code:
        //RBS
        
$battlesys $DB_site->query_first("SELECT * FROM " TABLE_PREFIX "battlesys_battles WHERE pollid = '".$pollinfo['pollid']."'");
        if(
$battlesys)
        {
            
$votestowin $battlesys['votestowin'];
            
$splitoptions explode("|||"$pollinfo['options']);
            
$maxvotes 0;
            
$leastvotes 0;
            foreach (
$splitvotes as $number => $vote)
            {
                global 
$maxvotes;
                global 
$leastvotes;
                global 
$splitoptions;
                if ( 
$vote $maxvotes ) {
                    
$maxvotes $vote;
                    
$winner $splitoptions[$number];
                    global 
$winner;
                }
                if ( 
$vote $leastvotes or $vote == ) {
                    
$leastvotes $vote;
                    
$loser $splitoptions[$number];
                    global 
$loser;
                }
            }
            if ( 
$maxvotes >= $votestowin )
            {
                
$DB_site->query_first("UPDATE " TABLE_PREFIX "poll SET active = '0' WHERE pollid = '".$pollinfo['pollid']."'"); //close poll
                //$winnerinfo = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "user WHERE username = '".$winner."'");
                
$DB_site->query("UPDATE user SET bs_wins = bs_wins + 1 WHERE username = '".$winner."'");
                
$DB_site->query("UPDATE user SET bs_loses = bs_loses + 1 WHERE username = '".$loser."'");
                
            }
        }    
        
//RBS 

This should fix that problem. Enjoy!

nobody said thank you for posting this so let me be the first

thank you!
Reply With Quote
  #133  
Old 11-24-2004, 10:10 PM
Pro Pro is offline
 
Join Date: Aug 2002
Location: Cali
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

started workin on this again...

i got the LOSSES to come up finally - now im starting on the KO's part... i think it might be easy... we'll see... im not a pro but i know enough to get stuff working!



James T. Brock - if you see this hit me up on aim: thajoker714
Reply With Quote
  #134  
Old 11-24-2004, 10:12 PM
Pro Pro is offline
 
Join Date: Aug 2002
Location: Cali
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

P.S.

I'll post updates soon... just give me some time to test them... a few days or so... i should have the LOSS and K.O. updates for you all - then if i get to start on a new CHALLENGE system - i'll have MindTrix post the new updates in a zip file...
Reply With Quote
  #135  
Old 11-24-2004, 10:34 PM
Pro Pro is offline
 
Join Date: Aug 2002
Location: Cali
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm... while testing this on my site the person i "battled" (just for test purposes) ended up recieving 1 win out of 6 battles - although now i have 6 losses LOL... so i gotta look into this again... something's not right.

i've started looking into the Challenge system as well...
Reply With Quote
  #136  
Old 11-29-2004, 02:37 AM
deb0 deb0 is offline
 
Join Date: Sep 2004
Location: somewhere
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone tried to use this for other competitions like graphics, poetry, etc...?
Reply With Quote
  #137  
Old 11-30-2004, 02:40 AM
Jmonto Jmonto is offline
 
Join Date: Jan 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a post limit that a user must have before being able to vote? also does it show who voted?
Reply With Quote
  #138  
Old 12-01-2004, 04:24 PM
mopfool mopfool is offline
 
Join Date: Aug 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need some help

1) When trying to add a line that contains an apostrophe (') as a favorite (when posting a reply to a battle), I get a database error. Otherwise, it works fine.

2) This is a pretty general question. You can't select your favorite line in the quick reply box, so is there any way to turn off the quick reply box for just the rap battle forum and leave it on for all others?

Thanks,
mopfool=]
Reply With Quote
  #139  
Old 12-05-2004, 01:33 AM
N1Co N1Co is offline
 
Join Date: Jan 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Slashes don't get added on data submitted to the database (quotes (') don't get escaped), which is quite imortant :| !
Reply With Quote
  #140  
Old 12-05-2004, 03:22 PM
dndog dndog is offline
 
Join Date: Apr 2004
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I notice on the Rap Battle System, you added extra blanks to the postbit:

https://vborg.vbsupport.ru/attachmen...chmentid=20108

How could I just incorporate a few fields into my regular postbit?

That would be great!

-dndog
Reply With Quote
  #141  
Old 12-28-2004, 01:42 AM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what i was looking for!! thanks man!!
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 09:04 PM.


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.06048 seconds
  • Memory Usage 2,346KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (1)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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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