Welcome!

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!

[DEV] RevCMS - Forum Plugin [0.247]

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jan 5, 2013
Messages
20
Reaction score
4
RevCMS Forum Plugin
Postponed Development
(Read more at the end of the thread)

Hello guys, i'm going to be releasing a real nice forum plug-in coded by myself for RevCMS (only). Installation steps, images and features will all be listed further down the post! Note, this is still in development stages - however I wanted to get it released so others can find bugs, and suggest ideas on what to be added in the next version.

Let's begin!

Feature List:
-> Full (easy to manage) category structure in the database
-> Forum location (so you can easily navigate around the forum easily)
-> Keep tracks of all of your threads you have created (latest poster & time)
-> Editable signature
-> Users can be muted from the forum, refraining them to comment & create threads
-> Leaderboards - check whos got the most posts (top 10)
-> Commenting on threads
-> Post Count increases
-> Inbox (minimail system) - still under development!
-> Administrator Panel (manage your forum efficiently) - at the moment everything has to be changed through the database. This isn't efficient enough so soon an admin panel will be released
-> Want to see more? Post your suggestions down below!

Pictures:
iBennish - [DEV] RevCMS - Forum Plugin [0.247] - RaGEZONE Forums

iBennish - [DEV] RevCMS - Forum Plugin [0.247] - RaGEZONE Forums

iBennish - [DEV] RevCMS - Forum Plugin [0.247] - RaGEZONE Forums

iBennish - [DEV] RevCMS - Forum Plugin [0.247] - RaGEZONE Forums

iBennish - [DEV] RevCMS - Forum Plugin [0.247] - RaGEZONE Forums

iBennish - [DEV] RevCMS - Forum Plugin [0.247] - RaGEZONE Forums

iBennish - [DEV] RevCMS - Forum Plugin [0.247] - RaGEZONE Forums

iBennish - [DEV] RevCMS - Forum Plugin [0.247] - RaGEZONE Forums

iBennish - [DEV] RevCMS - Forum Plugin [0.247] - RaGEZONE Forums

Installation Steps:
1 - Extract the ZIP into your RevCMS skin
2 - Execute the SQL file into your database (dbforum.sql)
2.5 - Copy the class.forum.php to your /app/ folder where class.core.php and class.engine.php locate
3 - Add to your htaccess the following:
Code:
RewriteRule ^forum/f([a-zA-Z0-9_-]+)(|/)$ index.php?url=forum&view=category&id=$1
RewriteRule ^forum/thread/([a-zA-Z0-9_-]+)(|/)$ index.php?url=forum&view=thread&id=$1
RewriteRule ^forum/newthread/f([a-zA-Z0-9_-]+)(|/)$ index.php?url=forum&view=newthread&id=$1
4 - Navigate to yoursite/forum
5 - Installed!

Downloads:
[Current] Version 0.247:
Version 0.242:
Version 0.239:
Version 0.237:
Version 0.235:

Do you like it? Please post your suggestions & ideas down below, also like my thread! :)

---
Updates & Patches
Please check this daily (its important!)

-> dbforum.sql (missed a default value) [Patched in 0.247]
Fixes the error on the /forum The column 'muted_reason' does not have a default value. Execute this query into your database:
Code:
ALTER TABLE `forum_users` CHANGE `muted_reason` `muted_reason` VARCHAR(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'NULL'

-> Global.php miss! (Fixes some issues) [Released in Version 0.242]
This is the error where some of the global issues error out, here is the fix (just replace your global.php with this!)
PHP:
<?php


    // Special Functions
    
    function filter($var)
    {
        return mysql_real_escape_string(stripslashes(htmlspecialchars($var)));
    }


if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
error_reporting(E_ALL ^ E_NOTICE);


define('A', 'app/');
define('I', 'interfaces/');
define('M', 'management/');
define('T', 'tpl/');




//REVOLUTION


use Revolution as Rev;




    //INTERFACES
    
        require_once A . I . 'interface.core.php';
        
        require_once A . I . 'interface.engine.php';
    
        require_once A . I . 'interface.users.php';
    
        require_once A . I . 'interface.template.php';
        
        //TPL
        
            require_once A . T . I . 'interface.forms.php';
            
            //HTML
            
                require_once A . T . I . 'interface.html.php';
                
            //CSS
                
                require_once A . T . I . 'interface.css.php';
                
            //JS
                
                require_once A . T . I . 'interface.js.php';
                
    
    //CLASSES
    
        //app
    
        require_once A . 'class.core.php';
        
        require_once A . 'class.engine.php';
        
        require_once A . 'class.users.php';
        
        require_once A . 'class.template.php';


        require_once A . 'class.forum.php';
        
        //MANAGEMENT
        
            require_once A . M . 'config.php';
            
            require_once A . M . 'recaptchalib.php';
                
        //TPL
        
            require_once A . T . 'class.forms.php';
            
            //HTML
                
                require_once A . T . 'class.html.php';
                
            //CSS
                
                require_once A . T . 'class.css.php';
                
            //JS
                
                require_once A . T . 'class.js.php'; 
        
        
    //OBJ
    
    $core = new Rev\core();
    $engine = new Rev\engine();
    $users = new Rev\users();
    $forum = new Rev\forum();
    $template = new Rev\template();
    $template->form = new Rev\forms();
    $template->html = new Rev\html();
    $template->css = new Rev\css();
    $template->js = new Rev\js();
        
    //START    
    
    session_start();
    $engine->Initiate();
    $template->Initiate();
    
?>

Already have an editted global.php? Just add this or replace where necessary! Thanks to Sledmore!
PHP:
        //app
        require_once A . 'class.core.php';
        require_once A . 'class.engine.php';
        require_once A . 'class.users.php';
        require_once A . 'class.template.php';
        require_once A . 'class.forum.php';

PHP:
    //OBJ
    $core = new Rev\core();
    $engine = new Rev\engine();    
    $users = new Rev\users();
    $template = new Rev\template();
    $forum = new Rev\forum();

-> When your not signed in and you navigate to /forum it sees yourself as a Guest (this can cause too many errors with the forum). Open the spoiler for the fix!

To resolve this, you need to open up class.core.php and find:
PHP:
case "me":
case "account":
case "news":
    header('Location: '.$_CONFIG['hotel']['url'].'/index');
    exit;
break;
And then replace it with this:
PHP:
case "me":
case "account":
case "news":
case "forum": //ibennish
case "forumaccount": //ibennish
case "forumstats": //ibennish
case "inbox": //ibennish
case "myposts": //ibennish
    header('Location: '.$_CONFIG['hotel']['url'].'/index');
    exit;
break;

The comments just show what has been updated to the code!

---

If you have any problems with this please let me know (with a print screen would be easier to resolve your issue) and I will fix it as soon as I know! Please give me some suggestions & feedback on this too!


THE DEVELOPMENT HAS BEEN POSTPONED
THE CURRENT RELEASE VERSION IS V0.247
THE RELEASE IS NOT STABLE

Development on this has been postponed due to too many errors & bugs found, you can install the forum to your CMS, however any problems with it (which you will have) I won't help until I have released the new version which includes the most stable version out of the previous versions. If you want you can check here every now and then, but I will bump the thread if I continue with development. By all means continue with the development yourself, just remember to give me some credit if you re-release!

 

Attachments

You must be registered for see attachments list
Last edited:
Run, but I'll find you.
Joined
Jan 29, 2011
Messages
777
Reaction score
327
Re: [DEV] RevCMS - Forum Plugin

This looks cool. Shame I don't use Rev, because this looks awesome :)
 
Newbie Spellweaver
Joined
Jan 5, 2013
Messages
20
Reaction score
4
Re: [DEV] RevCMS - Forum Plugin

Thanks:), just realised whilst turning my PC off I have forgotten another snippet of code which redirects users who are not signed in. Will update that tomorrow morning! Sorry for the inconvenience;D
 
Junior Spellweaver
Joined
Nov 28, 2011
Messages
111
Reaction score
17
Re: [DEV] RevCMS - Forum Plugin

Minimail system shouldn't be part of this plugin should it? Also "Latest threads" doesn't blend in so well with the page tbh, other than that this plugin is perfect! What you could look into now is adding achievements really.
 
Newbie Spellweaver
Joined
Aug 15, 2012
Messages
50
Reaction score
7
Re: [DEV] RevCMS - Forum Plugin

Awesome release! Thanks for sharing it with us.
 
Newbie Spellweaver
Joined
Jun 10, 2012
Messages
49
Reaction score
12
Re: [DEV] RevCMS - Forum Plugin

This looks like it will be great to use and edit to my liking
 
Skilled Illusionist
Joined
Jan 23, 2012
Messages
301
Reaction score
164
[DEV] RevCMS - Forum Plugin

Nice release :D makes me wish I didn't stop using RevCMS :3


Sent from an unbroken iPod with tapatalk
 
Experienced Elementalist
Joined
Jun 7, 2012
Messages
244
Reaction score
27
Re: [DEV] RevCMS - Forum Plugin

this is nice, i might use it.
 
Newbie Spellweaver
Joined
Mar 3, 2012
Messages
7
Reaction score
0
Re: [DEV] RevCMS - Forum Plugin

For some reason I get a weird error, can you help me with this?


Fatal error: Call to a member function getUserData() on a non-object in C:\xampp\htdocs\Betahotel\app\tpl\skins\Habbo\forum.php on line 12
 
Newbie Spellweaver
Joined
Jan 5, 2013
Messages
20
Reaction score
4
Re: [DEV] RevCMS - Forum Plugin

For some reason I get a weird error, can you help me with this?


Fatal error: Call to a member function getUserData() on a non-object in C:\xampp\htdocs\Betahotel\app\tpl\skins\Habbo\forum.php on line 12

Could you give me a printscreen? I'll be able to correct the error quicker.
Edit: download version 0.247 (it should fix your problem!)

Minimail system shouldn't be part of this plugin should it? Also "Latest threads" doesn't blend in so well with the page tbh, other than that this plugin is perfect! What you could look into now is adding achievements really.

Thanks for the feedback, what can I do to fix up the Latest threads design? The minimail system idea was for users to be able to inbox each other through the site, but still be linked in through the minimail, but I could just make it so it's just a Forum Inbox, and thats that. Also, the idea of achievements has been noted for the upcoming releases so thanks for that:), what sort of achievements would you like to see?

Please refer to the original post for Updates & Fixes for the plugin
(They will be important to check daily!)
 
Last edited:
Joined
Jun 25, 2009
Messages
831
Reaction score
475
Re: [DEV] RevCMS - Forum Plugin

This is pretty cool, nice release. - You might want to add that they need to require the class in global.php like below:

PHP:
		//app
	
		require_once A . 'class.core.php';
		
		require_once A . 'class.engine.php';
		
		require_once A . 'class.users.php';
		
		require_once A . 'class.template.php';
		
		require_once A . 'class.roleplay.php';
		
		require_once A . 'class.forum.php';

PHP:
	//OBJ
	
	$core = new Rev\core();
		
	$engine = new Rev\engine();	
		
	$users = new Rev\users();
		
	$template = new Rev\template();
	
	$roleplay = new Rev\roleplay();
	
	$forum = new Rev\forum();

(I pasted the whole of mine so people get the idea). - But yeah, otherwise it will not work (uhuh if you included this in the release, but I didn't see it). - Very nice though, keep it up.
 
Newbie Spellweaver
Joined
Jan 5, 2013
Messages
20
Reaction score
4
Re: [DEV] RevCMS - Forum Plugin

This is pretty cool, nice release. - You might want to add that they need to require the class in global.php like below:

PHP:
        //app
    
        require_once A . 'class.core.php';
        
        require_once A . 'class.engine.php';
        
        require_once A . 'class.users.php';
        
        require_once A . 'class.template.php';
        
        require_once A . 'class.roleplay.php';
        
        require_once A . 'class.forum.php';

PHP:
    //OBJ
    
    $core = new Rev\core();
        
    $engine = new Rev\engine();    
        
    $users = new Rev\users();
        
    $template = new Rev\template();
    
    $roleplay = new Rev\roleplay();
    
    $forum = new Rev\forum();

(I pasted the whole of mine so people get the idea). - But yeah, otherwise it will not work (uhuh if you included this in the release, but I didn't see it). - Very nice though, keep it up.

Completely missed that, there's always something I missed
I've updated the thread - Version 0.242 now includes my global.php

Thanks for your feedback :D
 
Last edited:

r63

Elite Diviner
Joined
Jan 27, 2012
Messages
417
Reaction score
63
Re: [DEV] RevCMS - Forum Plugin

I could tell this was going to be brilliant when you started coding it, everything about it is perfect.

 
Newbie Spellweaver
Joined
Oct 14, 2012
Messages
45
Reaction score
10
Re: [DEV] RevCMS - Forum Plugin [0.242]

When i go to mysite/forum it says "Server Error The website encountered an error while retrieving **mysite**. It may be down for maintenance or configured incorrectly. Even though i did everything.
 
Newbie Spellweaver
Joined
Jan 5, 2013
Messages
20
Reaction score
4
Re: [DEV] RevCMS - Forum Plugin [0.242]

When i go to mysite/forum it says "Server Error The website encountered an error while retrieving **mysite**. It may be down for maintenance or configured incorrectly. Even though i did everything.

Try updating to the new release (Version 0.242) this should resolve your error (as I forgot a file which is necessary!). If this doesn't resolve your issue, please print screen so I can figure it out quicker.

Also, make sure you have corrected your .htaccess correctly!
This only works with RevCMS!

Don't have an edited .htaccess? Replace it with this (and it should work!)
Code:
RewriteEngine On


RewriteRule ^(|/)$ index.php?url=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [NC]


RewriteRule ^(|/)$ dash.php?page=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ dash.php?url=$1


RewriteRule ^forum/f([a-zA-Z0-9_-]+)(|/)$ index.php?url=forum&view=category&id=$1
RewriteRule ^forum/thread/([a-zA-Z0-9_-]+)(|/)$ index.php?url=forum&view=thread&id=$1
RewriteRule ^forum/newthread/f([a-zA-Z0-9_-]+)(|/)$ index.php?url=forum&view=newthread&id=$1
 

r63

Elite Diviner
Joined
Jan 27, 2012
Messages
417
Reaction score
63
Re: [DEV] RevCMS - Forum Plugin [0.242]

When i go to mysite/forum it says "Server Error The website encountered an error while retrieving **mysite**. It may be down for maintenance or configured incorrectly. Even though i did everything.

If you post a screen shot I may be able to help.
 
Newbie Spellweaver
Joined
Oct 14, 2012
Messages
45
Reaction score
10
Re: [DEV] RevCMS - Forum Plugin [0.242]

That fixed it but now the main forum page constantly refreshes itself.
 
Newbie Spellweaver
Joined
Jan 5, 2013
Messages
20
Reaction score
4
Re: [DEV] RevCMS - Forum Plugin [0.242]

That fixed it but now the main forum page constantly refreshes itself.

Have you got teamviewer? If so PM me your details and i'll see what I can do.
There isn't anything I can see which consistently loads, but there might be something i've missed.

--

Issue resolved & is now patched in the Release 0.247
Enjoy!
 
Last edited:
Status
Not open for further replies.
Back
Top