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
[PLUGIN] rFacts: Random Fact System
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="brsy" data-source="post: 103456" data-attributes="member: 2912"><p>Here is rFacts 1.0, which displays random facts. The facts are edited within the database, and once you follow the instructions below, just read the first fact and it will show you the final step. I MIGHT create a backend plugin so you can edit it within the housekeeping. This can be used on a RevCMS hotel, and it is mostly used on the Habbo themes. Do not re-release on any forum without valid permissions.</p><p> </p><p><strong>Installation Instructions</strong></p><p>- Open up class.core.php within the RevCMS app folder. Insert this code above the first class.</p><p>[PHP] public function rFacts() {</p><p> $getFacts = mysql_query("SELECT facts FROM r_facts ORDER by RAND() LIMIT 10");</p><p> return mysql_result($getFacts);</p><p> }[/PHP]</p><p> </p><p>- Next, open app-->class.template.php and within the Init() function, put the following code.</p><p>[PHP]$this->setParams('rFacts', $core->rFacts());[/PHP]</p><p> </p><p>- Then, go to where ever you want the facts to be and type {rFacts}</p><p> </p><p>- Finally, run the following query in the database.</p><p>[PHP]CREATE TABLE IF NOT EXISTS `r_facts` (</p><p> `facts` varchar(999) NOT NULL</p><p>) ENGINE=InnoDB DEFAULT CHARSET=latin1;</p><p> </p><p>--</p><p>-- Dumping data for table `r_facts`</p><p>--</p><p> </p><p>INSERT INTO `r_facts` (`facts`) VALUES</p><p>('These messages can be edited from within the r_facts table :)');</p><p>[/PHP]</p><p> </p><p>You are done!</p><p> </p><p><strong>Credits:</strong></p><p> </p><p><strong>ChrizPHP</strong> - Creating & coding the release (90%)</p><p><strong>Fresh Hotel</strong> - Giving me the idea (10%)</p></blockquote><p></p>
[QUOTE="brsy, post: 103456, member: 2912"] Here is rFacts 1.0, which displays random facts. The facts are edited within the database, and once you follow the instructions below, just read the first fact and it will show you the final step. I MIGHT create a backend plugin so you can edit it within the housekeeping. This can be used on a RevCMS hotel, and it is mostly used on the Habbo themes. Do not re-release on any forum without valid permissions. [B]Installation Instructions[/B] - Open up class.core.php within the RevCMS app folder. Insert this code above the first class. [PHP] public function rFacts() { $getFacts = mysql_query("SELECT facts FROM r_facts ORDER by RAND() LIMIT 10"); return mysql_result($getFacts); }[/PHP] - Next, open app-->class.template.php and within the Init() function, put the following code. [PHP]$this->setParams('rFacts', $core->rFacts());[/PHP] - Then, go to where ever you want the facts to be and type {rFacts} - Finally, run the following query in the database. [PHP]CREATE TABLE IF NOT EXISTS `r_facts` ( `facts` varchar(999) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `r_facts` -- INSERT INTO `r_facts` (`facts`) VALUES ('These messages can be edited from within the r_facts table :)'); [/PHP] You are done! [B]Credits:[/B] [B]ChrizPHP[/B] - Creating & coding the release (90%) [B]Fresh Hotel[/B] - Giving me the idea (10%) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[PLUGIN] rFacts: Random Fact System
Top