- Joined
- Dec 18, 2010
- Messages
- 1,506
- Reaction score
- 712
can u give me ur cms i need ur cms!!! that fully Good!! ig give 10/10
Lol, it's just this skin, edited.
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!can u give me ur cms i need ur cms!!! that fully Good!! ig give 10/10
I'm going to edit this so, when u update for example, "header.php" It will change all the tabs on each page :thumbsup: Wish me luck. ( with permission from Hejula)
Sounds awesome, thanks
Do you have a new download link to the footer version of the Habbo Theme Skin.
I've a error.
Does someone have a fix or knows how to fix?
$template->setParams('newsPreview', $news['shortstory']);
$template->setParams('newsDate', date("d-m-y", $news['published']));
$news = $engine->fetch_assoc("SELECT title, longstory, author, published FROM cms_news WHERE id = '" . $engine->secure($_GET['id']) . "' LIMIT 1");
$news = $engine->fetch_assoc("SELECT title, shortstory, longstory, author, published FROM cms_news WHERE id = '" . $engine->secure($_GET['id']) . "' LIMIT 1");
Nice release again Oliver.
Off Topic:
On your downloads is there anyway to download the habbo.swf?
Still has the problem.
Maybe you should add me: Coke@hotmail.lv.
The {newsPreview} error is because you must add this:
PHP:$template->setParams('newsPreview', $news['shortstory']);
to class.forms.php underneath this:
PHP:$template->setParams('newsDate', date("d-m-y", $news['published']));
Hi, I was looking through the code and saw this:
$template->setParams('newsTitle', $news['title']);
$template->setParams('newsContent', $news['longstory']);
$template->setParams('newsAuthor', $news['author']);
$template->setParams('newsDate', date("d-m-y", $news['published']));
I tried what he said, and it didn't work, so I thought everything there is in order, so why not put it right under
$template->setParams('newsDate', date("d-m-y", $news['published']));
And it worked, try let me know?
I said to do that in the first place... If you follow my instructions and not be a complete downie then you might get things working
Off Topic:You must be registered to see linksThat one oliver.
Didn't worked for me.
Please someone upload the files for news..
Like class.forms.php.
<?php
namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class forms implements iForms
{
public $error;
final public function setData()
{
global $engine;
foreach($_POST as $key => $value)
{
if($value != null)
{
$this->$key = $engine->secure($value);
}
else
{
$this->error = 'Please fill in all fields';
return;
}
}
}
final public function unsetData()
{
global $template;
foreach($this as $key => $value)
{
unset($this->$key);
}
}
final public function writeData($key)
{
global $template;
echo $this->$key;
}
final public function outputError()
{
global $template;
if(isset($this->error))
{
echo "<div id='message'> " . $this->error . " </div>";
}
}
/* Manage different pages */
final public function getPageNews()
{
global $template, $engine;
if(!isset($_GET['id']) || !is_numeric($_GET['id']))
{
$_GET['id'] = 1;
}
$result = mysql_query("SELECT title, id FROM cms_news WHERE id != '" . $engine->secure($_GET['id']) . "' ORDER BY id DESC");
while($news1 = mysql_fetch_array($result))
{
$template->setParams('newsList', '« <a href="index.php?url=news&id='.$news1["id"].'">' . $news1['title'] . '</a><br/>');
}
$news = $engine->fetch_assoc("SELECT title, longstory, author, published FROM cms_news WHERE id = '" . $engine->secure($_GET['id']) . "' LIMIT 1");
$template->setParams('newsTitle', $news['title']);
$template->setParams('newsContent', $news['longstory']);
$template->setParams('newsAuthor', $news['author']);
$template->setParams('newsDate', date("d-m-y", $news['published']));
unset($result);
unset($news1);
unset($news);
}
final public function getPageHome()
{
global $template, $engine;
$a = 1;
$data = mysql_query("SELECT title, id, published, shortstory, image FROM cms_news ORDER BY id DESC LIMIT 5");
while($news = mysql_fetch_array($data, MYSQL_ASSOC))
{
$template->setParams('newsTitle-' . $a, $news['title']);
$template->setParams('newsID-' . $a, $news['id']);
$template->setParams('newsDate-' . $a, date("d-m-y", $news['published']));
$template->setParams('newsPreview' . $a, $news['shortstory']);
$template->setParams('newsCaption-' . $a, $news['shortstory']);
$template->setParams('newsIMG-' . $a, $news['image']);
$a++;
}
unset($news);
unset($data);
}
}
?>