Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[CMS][Tutorial] How to Fix the post News
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Reis" data-source="post: 55029" data-attributes="member: 7525"><p>Hello, I'm Lucas Reis, owner of: <a href="http://www.novo.habborool.org" target="_blank">www.novo.habborool.org</a></p><p></p><p>I've fixed the PHP to post the correct news without the HTML tags.</p><p></p><p>If you want this fixed, go to:</p><p></p><p>Your style > hk > <strong>news2.php</strong></p><p></p><p>In the 66 line, remove the Filter tag in the ["longstory"], eg:</p><p></p><p>[PHP] 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());</p><p>[/PHP]</p><p></p><p>Save the document and test to post the news.</p><p></p><p><strong>Or download:</strong></p><p><strong>Attached document.</strong></p><p></p><p>This realy work.</p><p></p><p>Credits:</p><p>Kryptos - RevCms coder</p><p>Me - Fixing the post News</p></blockquote><p></p>
[QUOTE="Reis, post: 55029, member: 7525"] Hello, I'm Lucas Reis, owner of: [url="http://www.novo.habborool.org"]www.novo.habborool.org[/url] I've fixed the PHP to post the correct news without the HTML tags. If you want this fixed, go to: Your style > hk > [B]news2.php[/B] In the 66 line, remove the Filter tag in the ["longstory"], eg: [PHP] 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()); [/PHP] Save the document and test to post the news. [B]Or download:[/B] [B]Attached document.[/B] This realy work. Credits: Kryptos - RevCms coder Me - Fixing the post News [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[CMS][Tutorial] How to Fix the post News
Top