Posting News Article Error

Clit

Posting Freak
Feb 25, 2012
1,065
103
rpbOtMjV.png


Why does it come out like so?
How can I fix this?
 

Derpec

Retrosetups.com | Professional, Reliable, Setups
Feb 21, 2012
658
92
This is a really fix i remember i had this problem with my r63 retro.

I think i found this fix at Ot a k u - S t u d i o s and post this error there they well give you a quick fix.
 

kalao

Member
Jul 17, 2011
129
5
If you are using REVCMS This is the fix of it


App>TPL>Skins>(YOURSKIN)>Hk News2.php open it up


Look for this code :

Code:
ysql_query("INSERT INTO cms_news (title,shortstory,longstory,published,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . filter($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error());



Replace the code with this code:


Code:
mysql_query("INSERT INTO cms_news (title,shortstory,longstory,published,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . ($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error());


hope its works. Comment if u dont understand me ^^
 

kalao

Member
Jul 17, 2011
129
5
Oh sorry the first code

is this :

Code:
mysql_query("INSERT INTO cms_news (title,shortstory,longstory,published,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . filter($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error());
 

Clit

Posting Freak
Feb 25, 2012
1,065
103
what CMS are you using??
HSQR25lb.png

facepalm.jpg 
If you are using REVCMS This is the fix of it


App>TPL>Skins>(YOURSKIN)>Hk News2.php open it up


Look for this code :

Code:
ysql_query("INSERT INTO cms_news (title,shortstory,longstory,published,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . filter($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error());



Replace the code with this code:


Code:
mysql_query("INSERT INTO cms_news (title,shortstory,longstory,published,image,author, campaign, campaignimg) VALUES ('" . filter($_SESSION["title"]) . "', '" . filter($_SESSION["shortstory"]) . "', '" . ($_SESSION["longstory"]) . "', '" . time() . "', '" . filter($_POST["topstory"]) . "', '" . filter($author) . "', 0, 'default')") or die(mysql_error());


hope its works. Comment if u dont understand me ^^
nope,

hi6vEAb6.png
 

Users who are viewing this thread

Top