vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Rules per Forum (https://vborg.vbsupport.ru/showthread.php?t=45474)

SmartGnome 04-09-2003 04:13 PM

For me it works now on 2.3.0 for existing forums, when I create a new forum I get the following sql error

Code:


Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: INSERT INTO forum
                      (forumid,styleid,title,description,active,displayorder,parentid,
                      parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
                      moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
                      styleoverride,allowratings,countposts,moderateattach,storereply,storethread,mustread,mustreadtext,private,rulestext)
                  VALUES
                      (NULL,'1','Neue Sachen ins Board','Here we announce new optioins in the board and eplain how it works.','1','1','118',
                      '','1','1','30','postings@krissiweb.net','postings@krissiweb.net',
                      '0','0','1','1','1','1',
                      '0','1','1','0', '','','0','','1',)
mysql error: You have an error in your SQL syntax near ')' at line 10

mysql error number: 1064

Date: Wednesday 09th of April 2003 10:02:55 AM
Script: http://forum.krissiweb.org/board/board/admin/forum.php
Referer: http://forum.krissiweb.org/board/adm...hp?action=add&

Who can help me please ???


Cheers

Frozen Dreams 05-02-2003 07:28 PM

I am getting the same SQL error at 2.2.9
Please someone - help :(

solent 05-07-2003 01:34 PM

ok beacuse i myself using vb2.3.0 i had the same problem and i went and fix the problem in the insert query. i recon it was a typing error.

anyway.

edit admin/forum.php
PHP Code:

find this bit of code

$DB_site
->query("INSERT INTO forum
(forumid,styleid,title,description,active,displayorder,parentid,
parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
styleoverride,allowratings,countposts,moderateattach)
VALUES
(NULL,'
$styleset','".addslashes($title)."','".addslashes($description)."','$isactive','$displayorder','$parentid',
'','
$allowposting','$cancontainthreads','$daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
'
$moderatenew','$aallowhtmlcode','$aallowbbcode','$aallowimgcode','$aallowsmilies','$aallowicons',
'
$styleoverride','$allowratings','$countposts','$moderateattach'");


and 
replayce with this

$DB_site
->query("INSERT INTO forum
(forumid,styleid,title,description,rulestext,active,displayorder,parentid,
parentlist,allowposting,cancontainthreads,daysprune,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allowsmilies,allowicons,
styleoverride,allowratings,countposts,moderateattach)
VALUES
(NULL,'
$styleset','".addslashes($title)."','".addslashes($description)."','".addslashes($rulestext)."','$isactive','$displayorder','$parentid',
'','
$allowposting','$cancontainthreads','$daysprune','".addslashes($newpostemail)."','".addslashes($newthreademail)."',
'
$moderatenew','$aallowhtmlcode','$aallowbbcode','$aallowimgcode','$aallowsmilies','$aallowicons',
'
$styleoverride','$allowratings','$countposts','$moderateattach')"); 


PurpleCow 08-09-2003 06:05 AM

Is the instructions given in the text file by spaceb and the mysql error solution mentioned in the previous post working fine on 2.3.0 ?/

I want this hack

Thanks


All times are GMT. The time now is 04:28 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.01166 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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