Hi,
wow, I was missing that function!
Great description and hack file btw.
But I have a problem:
I went throught your description (thanks for the german one) and did it twice - still got db errors when inserting a forum with link.
Quote:
Database error in vBulletin Control Panel: Invalid SQL: INSERT INTO forum
(forumid,styleid,title,description,active,displayo rder,parentid,
parentlist,allowposting,cancontainthreads,daysprun e,newpostemail,newthreademail,
moderatenew,allowhtml,allowbbcode,allowimages,allo wsmilies,allowicons,
styleoverride,allowratings,countposts,moderateatta ch,link)
VALUES
(NULL,'2','Who is who','Who is who','1','6','-1',
'','1','1','30','','',
'0','0','1','0','1','1',
'0','1','1','0','http://www.de','linktarget='_blank')
mysql error: You have an error in your SQL syntax near '_blank')' at line 10
mysql error number: 1064
Date: Saturday 14th of July 2001 06:53:29 PM
Script: /forum/admin/forum.php
|
Now what I wonder while looking at the SQL code is the following:
Line 142ff in forum.php / Line 38 of your info.txt
Code:
$DB_site->query("INSERT INTO forum (...)
(...)styleoverride,allowratings,countposts,moderateattach,link)
VALUES
(...)'$styleoverride','$allowratings','$countposts','$moderateattach','".addslashes($link)."','linktarget='$linktarget')");
Every field has a name and a value, but the linktarget.
After moderateattach is link, but no linktarget though there is a value 'linktarget='$linktarget'
Secondly the value 'linktarget='$linktarget' irritates me, I am not into php, but from my perl days IIRC the quoting looks weird.
Thanks for a hint,
-Tom
|