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
Various RevCMS Fixes
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="Muffmuncher" data-source="post: 73654" data-attributes="member: 11381"><p>Here're various fixes for RevCMS. Fixes noted untested are not tested, and therefore needs response from you to tell if they work or not. Those tested are based on the Mango theme, but the process would be similar or probably the same for other skins.</p><p> </p><p>1. "Unknown column 'seckey' in 'field list'" registration error fix:</p><p>Execute SQL in phpMyAdmin or Navicat.</p><p>[code]ALTER TABLE `users` ADD `seckey` VARCHAR(999)[/code]</p><p> </p><p>2. Fix for "Incorrect integer value: '' for column 'author' at row 1" news posting error:</p><p>Select cms_news table> Design Table in Navicat> Change type of "author" field to varchar.</p><p> </p><p>3. Default figure code:</p><p>[code]hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100[/code]</p><p> </p><p>4. Client popup:</p><p>In me.php, replace [code]<center><a href="api.php" onclick="mango.client.popup(); return false;">Enter {hotelName} Hotel</a></center>[/code] with </p><p>[code]<center><a href="api.php" target="ClientWndw" onclick="window.open('api.php','ClientWndw','width=980,height=597');return false;">Enter {hotelName} Hotel</a></center>[/code]</p><p> </p><p>5. Get bans fix (untested):</p><p>In hk\banlist.php, replace get bans code with</p><p>[code]<?php</p><p>$getBans = mysql_query("SELECT * FROM bans");</p><p> </p><p>while(($ban = mysql_fetch_array($getBans))) </p><p>{</p><p>echo "<tr><td>" . $ban['value'] ."</td><td>" . $ban['reason'] . "</td><td>" . $ban['added_by'] . "</td><td><a href='?url=banlist&unban=" . $ban['id'] . "'><b>Unban</b></a></td></tr>";</p><p>}</p><p>?>[/code]</p><p> </p><p>6. Account per IP:</p><p>In /app/class.users, change value 1 in the following code to desired number of accounts.</p><p>[code]if($engine->num_rows("SELECT * FROM users WHERE ip_reg = '" . $_SERVER['REMOTE_ADDR'] . "'") == 1)[/code]</p><p> </p><p>7. Unban fix (untested):</p><p>In hk/banlist.php, replace [code]<table width="100%"></p><p><tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Value</b></td></tr></p><p><?php</p><p>while($two = mysql_fetch_array(mysql_query("SELECT * FROM bans"), MYSQL_ASSOC))</p><p>{</p><p>echo "<tr><td>" . $two['value'] ."</td><td>" . $two['reason'] . "</td><td>" . $two['added_by'] . "</td><td><a href='?url=banlist&unban=" . $two['id'] . "'><b>Unban</b></a></td></tr>";</p><p>}</p><p> </p><p>?>[/code] with </p><p>[code]<table width="100%"></p><p><tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Expires</b></td><td><b>Value</b></td></tr></p><p><?php</p><p>$getBans = mysql_query("SELECT * FROM bans");</p><p> </p><p>while(($ban = mysql_fetch_array($getBans)))</p><p>{</p><p>echo "<tr><td>" . $ban['value'] ."</td><td>" . $ban['reason'] . "</td><td>" . $ban['added_by'] . "</td><td>" . @date("d-m-Y H:i", $ban['expire']) . "</td><td><a href='?url=banlist&unban=" . $ban['id'] . "'><b>Unban</b></a></td></tr>";</p><p>}</p><p>?>[/code]</p><p> </p><p>ASE should be working fine at this point. Now in app/class.core.php, replace [code]if($k == 'balist') [/code] with [code]if($k == 'banlist') [/code]</p><p> </p><p>Lastly perform a :update_bans command in hotel to take effect.</p><p> </p><p>8. Edit User Account Script Name Case Fix (untested):</p><p>In hk/edit.php, find [code]<input type="username" value="<?php echo $_POST['l_username']; ?>" style="width: 95%;" />[/code] change [code]<?php echo $_POST['l_username']; ?>[/code] to [code]<?php echo $two['username']; ?>[/code]</p><p> </p><p>9. News Fix:</p><p>In hk/news2.php, replace line 66 with [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());"[/code]</p></blockquote><p></p>
[QUOTE="Muffmuncher, post: 73654, member: 11381"] Here're various fixes for RevCMS. Fixes noted untested are not tested, and therefore needs response from you to tell if they work or not. Those tested are based on the Mango theme, but the process would be similar or probably the same for other skins. 1. "Unknown column 'seckey' in 'field list'" registration error fix: Execute SQL in phpMyAdmin or Navicat. [code]ALTER TABLE `users` ADD `seckey` VARCHAR(999)[/code] 2. Fix for "Incorrect integer value: '' for column 'author' at row 1" news posting error: Select cms_news table> Design Table in Navicat> Change type of "author" field to varchar. 3. Default figure code: [code]hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100[/code] 4. Client popup: In me.php, replace [code]<center><a href="api.php" onclick="mango.client.popup(); return false;">Enter {hotelName} Hotel</a></center>[/code] with [code]<center><a href="api.php" target="ClientWndw" onclick="window.open('api.php','ClientWndw','width=980,height=597');return false;">Enter {hotelName} Hotel</a></center>[/code] 5. Get bans fix (untested): In hk\banlist.php, replace get bans code with [code]<?php $getBans = mysql_query("SELECT * FROM bans"); while(($ban = mysql_fetch_array($getBans))) { echo "<tr><td>" . $ban['value'] ."</td><td>" . $ban['reason'] . "</td><td>" . $ban['added_by'] . "</td><td><a href='?url=banlist&unban=" . $ban['id'] . "'><b>Unban</b></a></td></tr>"; } ?>[/code] 6. Account per IP: In /app/class.users, change value 1 in the following code to desired number of accounts. [code]if($engine->num_rows("SELECT * FROM users WHERE ip_reg = '" . $_SERVER['REMOTE_ADDR'] . "'") == 1)[/code] 7. Unban fix (untested): In hk/banlist.php, replace [code]<table width="100%"> <tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Value</b></td></tr> <?php while($two = mysql_fetch_array(mysql_query("SELECT * FROM bans"), MYSQL_ASSOC)) { echo "<tr><td>" . $two['value'] ."</td><td>" . $two['reason'] . "</td><td>" . $two['added_by'] . "</td><td><a href='?url=banlist&unban=" . $two['id'] . "'><b>Unban</b></a></td></tr>"; } ?>[/code] with [code]<table width="100%"> <tr><td><b>Username</b></td><td><b>Reason</b></td><td><b>Banned by</b></td><td><b>Expires</b></td><td><b>Value</b></td></tr> <?php $getBans = mysql_query("SELECT * FROM bans"); while(($ban = mysql_fetch_array($getBans))) { echo "<tr><td>" . $ban['value'] ."</td><td>" . $ban['reason'] . "</td><td>" . $ban['added_by'] . "</td><td>" . @date("d-m-Y H:i", $ban['expire']) . "</td><td><a href='?url=banlist&unban=" . $ban['id'] . "'><b>Unban</b></a></td></tr>"; } ?>[/code] ASE should be working fine at this point. Now in app/class.core.php, replace [code]if($k == 'balist') [/code] with [code]if($k == 'banlist') [/code] Lastly perform a :update_bans command in hotel to take effect. 8. Edit User Account Script Name Case Fix (untested): In hk/edit.php, find [code]<input type="username" value="<?php echo $_POST['l_username']; ?>" style="width: 95%;" />[/code] change [code]<?php echo $_POST['l_username']; ?>[/code] to [code]<?php echo $two['username']; ?>[/code] 9. News Fix: In hk/news2.php, replace line 66 with [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());"[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
Various RevCMS Fixes
Top