RevCMS Forum Plugin
Postponed Development
(Read more at the end of the thread)
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:
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
5 - Installed!
Downloads:
[Current] Version 0.247:
You must be registered to see links
Version 0.242:
You must be registered to see links
Version 0.239:
You must be registered to see links
Version 0.237:
You must be registered to see links
Version 0.235:
You must be registered to see links
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]Please check this daily (its important!)
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!)
Already have an editted global.php? Just add this or replace where necessary! Thanks to Sledmore!
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:
And then replace it with this:
PHP:
case "me":
case "account":
case "news":
header('Location: '.$_CONFIG['hotel']['url'].'/index');
exit;
break;
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!
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: