vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Rap Battle System -=RBS=- (https://vborg.vbsupport.ru/showthread.php?t=68161)

vinnycuz 07-26-2005 02:04 AM

Quote:

Originally Posted by MindTrix
would be this piece

PHP Code:

 

*****************
Open NEWREPLY.PHP
*****************

Find
-----------------------------------------------
 
$newpost['stickunstick'] = $_POST['stickunstick'];
 
$newpost['openclose'] = $_POST['openclose'];
-----------------------------------------------
After add
-----------------------------------------------
//RBS
 
$newpost['favouriteline'] = $_POST['favouriteline'];
 if ( 
$newpost['favouriteline'] )
 {
  
$DB_site->query("INSERT INTO " TABLE_PREFIX "battlesys_favlines VALUES ('', '".$newpost['favouriteline']."', '".$bbuserinfo['username']."', '".$foruminfo['forumid']."')"); 
  
$newpost['message'] .= "";
 }
//RBS 


Database error in vBulletin 3.0.6:

Invalid SQL: INSERT INTO battlesys_favlines VALUES ('', 'Don't try and duck or ditch hit or miss open your mouth and swallow my piss.', 'vinnycuz', '124')
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 't try and duck or ditch hit or miss open your mouth and swallow

mysql error number: 1064

I re ran the queries and made sure everything was good...i dont know whats up it doesnt wanna take...any ideas?

Gio~Logist 07-26-2005 03:25 AM

Vinny, what are you trying to do when you get this error?

Marco van Herwaarden 07-26-2005 04:00 AM

Change "don't" to "don\'t"

vinnycuz 07-26-2005 04:17 PM

Quote:

Originally Posted by MarcoH64
Change "don't" to "don\'t"

yes i figured that out last night...sql is ver sensative to the ' and the " ill direct my users to use the \ as far as that goes the hack is running perfectly now...did the loss and win hack and everything is proper...thanks guys!

Fallback 07-26-2005 04:44 PM

You have to modify the code to "addslashes" to what its imputiing in the sql INSERT command. That will fix it.

vinnycuz 07-26-2005 06:49 PM

my users are cheaters and are voting for themself...i will try to find a way to prevent that...if any1 has a quick edit lemme know...

hhw2005 07-27-2005 01:14 PM

What the heck is the deal here?

Mindtrix made this "hack" and hasn't had time to fix the bugs in one year.

Does this thing work or not? You can't update the battles through the Admin CP and I don't see what fields to update in PhpMyadmin.

Qwest 07-29-2005 01:31 PM

I'm uninstalling this...

There are just too many ways to cheat and my memebrs are getting pissed.

- People are signing up with new accounts just to vote for themselves and their boys.
- People are casting votes before the challenger even gets a chance to drop his verse.
- Battles aren't counted because ignorant fools can't spell challenger names right.

It's not worth it. Im going back to letting my mods run battles. Much more control that way and people have to actually post in the thread and say why they voted. Then the mod closes the thread and awards the win and loss.

Im just gonna make a special admincp panel for the mods to award wins and losses.

:clicks uninstall:

Vizionz 08-17-2005 08:53 AM

will this be ported to 3.50

Cabbie 09-03-2005 07:57 AM

Wow this is an awesome hack. Lots of very cool ideas going on my mind on how to use this. I'm going to try this on my test board once I get it up. Thanks for bringing out this great piece of work for free!


All times are GMT. The time now is 07:43 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.01327 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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