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 Q&A
RevCMS article comments
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="LewisBHS" data-source="post: 333694" data-attributes="member: 55269"><p>1) This has not been released and you will have to code this yourself.</p><p>2) This is quite simple to do in PHP just requires a little bit of javascript(if you want to do it properly) - you will have to do it yourself I don't think someone will do it for you.</p><p>3) Here you go.</p><p>[CODE]</p><p> $url = str_replace('/', '', $_SERVER['REQUEST_URI']);</p><p> $news = mysql_query("SELECT id FROM cms_news ORDER BY id DESC LIMIT 1");</p><p> $news = mysql_fetch_assoc($news);</p><p> if($url == 'news'){</p><p> header('Location: ' . $_CONFIG['hotel']['url'] . '/index.php?url=news&id=' . $news['id']);</p><p> }</p><p>[/CODE]</p><p>You can either put it in the core like me or at the top of the file.</p></blockquote><p></p>
[QUOTE="LewisBHS, post: 333694, member: 55269"] 1) This has not been released and you will have to code this yourself. 2) This is quite simple to do in PHP just requires a little bit of javascript(if you want to do it properly) - you will have to do it yourself I don't think someone will do it for you. 3) Here you go. [CODE] $url = str_replace('/', '', $_SERVER['REQUEST_URI']); $news = mysql_query("SELECT id FROM cms_news ORDER BY id DESC LIMIT 1"); $news = mysql_fetch_assoc($news); if($url == 'news'){ header('Location: ' . $_CONFIG['hotel']['url'] . '/index.php?url=news&id=' . $news['id']); } [/CODE] You can either put it in the core like me or at the top of the file. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
RevCMS article comments
Top