search for: in: entire forum this post
you are here: root => Installing the Nodesforum => How to install the forum
member since:
folders:
10
posts:
22
replies:
75

How to install the forum

  1. create a folder on your server to place the forum into, you can call it whatever you want.
  2. copy all the files of the nodesforum into the folder you have created. (and the folders too)
  3. depending on the permissions on your server, it might be necessary to run a chmod -R 777 on the folders "images" and "cache" in the nodesforum files to make sure that nodesforum will be able to create/read/modify files in these folders (or set the permissions from your control panel)(depending on your server settings you might not need to do that step. anyways if you do need to do it and you dont, the forum will show some error messages about not beeing able to write files into its folders... if your php shows error messages)
  4. edit the config.php file in your new forum install make sure to answer all the questions in config.php unless it says that you dont have to, there are explanations under each setting in the config.php file.
    *note that if you will use the user system of the nodesforum and create brand new tables instead of cloning existing ones, you will not be able to specify the uniqueID of the mainforum moderator because the profile has not been created yet. in this case just leave this field blank and come back to it later after you have created the tables and created your own profile.

  5. now you need to chose how you will include the forum to your site. if you want to include the forum in a page of your site, include it like this:
    -------------------------------------
    code:
    <?php include('nodesforum_folder/config.php'); include('nodesforum_folder/pre_output.php'); ?>
    <html>
    <head>
    <title><?php echo $_nodesforum_title; ?></title>
    </head>
    <body>
    <!--my header, my ads, ect..-->
    <?php include('nodesforum_folder/body.php'); ?>
    <!--page bottom, more ads, ect..-->
    </body>
    </html>

    *do not forget to replace nodesforum_folder/ by the actual path to the forum files on your server
    ------------------------------------------
    or like this:
    code:
    <?php
    include('nodesforum_folder/config.php');
    include('nodesforum_folder/pre_output.php');
    echo '<html><head><title>'.$_nodesforum_title.'</title></head><body><!--my header, my ads, ect..-->';
    include('nodesforum_folder/body.php');
    echo '<!--page bottom, more ads, ect..--></body></html>';
    ?>


    ---------------------------------------
    or like this (working with your own site's user system):
    code:
    <?php
    session_start();
    //run any session related scripts here... auto-login from cookie? logout banned? record user's last pageload?...
    
    include('nodesforum_folder/config.php');
    include('nodesforum_folder/pre_output.php');
    
    echo '<html>
    <head>
    <title>'.$_nodesforum_title.'</title>
    </head>
    <body>';
    //display site header here, top and left side ads, ect...
    
    include('nodesforum_folder/body.php');
    
    //display page bottom here, right side and bottom ads, ect...
    echo '</body>
    </html>';
    ?>


    ----------------------------------------
    remember:
    • the "config.php" must be included first, then the "pre_output.php" and then the "body.php"
    • the "pre_output.php" must be included before any output, the "body.php" must be included in the <body> of the page
    • the variable $_nodesforum_title contains the title of the page
    • if you use the user system of your own site and will include the forum in a page of yours, you must start the session with "session_start()" yourself before running the pre_output.php

    --------------------------------
    otherwise you can always also just use the forum by navigating to the folder you placed the forum in, example:
    code:
    http://mywebsite.com/nodesforum_folder


    ------------------------------

  6. finally, navigate to the url of the forum and you should see the auto installer menu asking you to create tables. either create new tables or clone existing ones depending on what you need


  7. after you have created the tables, if you are installing a new forum and will use the user system of the forum, you need to create the main admin profile, so just register normally to create your profile, once your profile is created, find out your uniqueID by navigating to your forum page and specify that unique ID as the unique ID of the main forum mod in your config.php file



  8. once your forum is created and you have the main mod admin rights on it, you can start laying out the sections of your forum. only you and users who have moderator powers on the root of the forum will be able to create posts and folders on the root of the forum. so if you want ppl to be able to create posts or folders in your forum, you must create at least some folders on the root. these folders are the main categories of your forum.




wassaa


test: test
post #8 permalink
please login to reply
a guest
thanks po!..
post #44 permalink
a guest
test
post #234 permalink
please login to reply

moderators of this post

envis (level: ∞)
powered by Nodesforum