Login   Register  
PHP Classes
elePHPant
Icontem

File: myphpforum.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Christos Tsiavos  >  phpforumPlus  >  myphpforum.php  >  Download  
File: myphpforum.php
Role: Configuration script
Content type: text/plain
Description: Configuration data
Class: phpforumPlus
Rapid discussion forums creation
Author: By
Last change:
Date: 2003-10-15 18:20
Size: 1,866 bytes
 

Contents

Class file image Download
<?php
include("phpforum.php");
class 
myphpforum extends phpforumPlus {
//----------------environment options--------------
    
var $member;
//----------------end environment options--------
//------------------page_options------------------
    
var $display_forum="displayforum.php";
    var 
$view_thread_page="showmessage.php";
    var 
$reply_page="reply.php";
    var 
$post_new_thread_page="post.php";
    var 
$search_page="search.php";
//-----------------end_page options---------------
//---------------database options------------------
    
var $threads_limit_per_page=42;
    var 
$thread_length_limit=2000;
    var 
$headline_length_limit=20;
    var 
$database_type="yourdb";
    var 
$db_host="yourdb_host";
    var 
$db_user="yourdb_user";
    var 
$db_passwd="yourdb_passwd";
    var 
$forum_database="forums";
    var 
$topic_tables=array("PHP"=>array("phpposts","phpreplies","General php forum.Here you can discuss about all-things php.Must be valid member to post new threads"));
    var 
$table_struct=array("table_posts"=>array("id","member","headline","body","date_posted","views"),
                             
"table_replies"=>array("id","member","headline","body","date_posted"));
//-------------end_database options------------------
//-------------icon options-------------------------
    
var $forum_icon=array("PHP"=>"./php.gif");
    var 
$thread_icon="your_thread_icon.gif";
    var 
$hot_thread_icon="your_hot_thread_icon.gif";
    var 
$hot_thread_limit=10;
//------------end_icon options---------------------
//------------stylesheet options---------------------
    
var $style_type="ocean";
//-------------end-stylesheet-options--------------    
//------------site options----------------------------
        
var $welcome_msg="Welcome to our community";
        var 
$site_administrator="webmaster@sth.somewhere";
//------------end_site options----------------------- 
}  
?>