GhostForums v1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    GhostForums v1

    /**
    * @Author Ghost
    * @Copyright 2013
    * @Version 1.0
    * @Description Forums And Multi-Room Chat Script
    * @FileSource Flat File (.txt)
    * @Setup Functions, Sessions, Encrypted Passwords
    * @HTMLVersion Xhtml 1.0 Transitional EN
    * @CssVersion Css3
    **/

    This is a PHP/XHTML Flat File Forums And Chat Script with many advanced features.
    i hope you guys enjoy this release and support me in anyway you can.
    IE: suggestions/bug reports/feedback etc. at http://coding-talk.com

    -------------
    INSTALLATION
    -------------
    1. Upload all files to your server (except this readme.txt file)
    REMEMBER to upload the .htaccess file that comes with the script.
    it creates protection for your .txt files and other things

    2. Goto yoursite.tld/INSTALL.php (yoursite.tld = your site address)
    and follow the instructions there. (Delete INSTALL.php Once Finished)

    3. Change info inside config.php to your sites needs (located in core folder)

    4. thats it. installation complete.
    Goto yoursite.tld to enjoy your new site (yoursite.tld = your site address)

    -------------
    FEATURES
    -------------
    Functions (located in core/includes folder)
    Sessions
    Registration (Upper/Lower Case Chars, _ And - Symbols Allowed, And 3-15 Chars Long)
    Login
    Encrypted Passwords
    Rank Class
    Staff Tools (Better Written/Working)
    10 Forums
    11 Chatrooms (10 Rooms 1 Staffroom)
    Private Messages
    Shoutbox
    Member Profiles (Hidden to Guests)
    BBCodes (located in functions)
    Smileys
    Avatars
    Censorship/Word Filtering (located in functions)
    Anti-Flood filtering
    Online/Offline Checks
    Newest Members
    IpBan (located in functions)
    IpLogging
    Delete Threads
    Delete Thread Posts
    Move Threads
    Delete Single Chat Messages
    Search Function
    Update/Change Passwords
    File Upload Capabilities
    AND MUCH MUCH MORE.......

    ----------------------
    CHANGES/MODIFICATIONS/ADDITIONS
    ----------------------
    (BEFORE V1 RELEASE)
    ----------------------
    (New) Forums Added (10 Total)
    Forums Can Create Threads With Pagination
    Reply To Threads
    Create Lists Of Threads With Pagination
    Show Last Modified Thread At Top Of List With Time/Date/Username
    Show Last Post With Time/Date/Username In Main Forum Page
    Show Thread Created/Replied By Username in Thread Lists
    Preview Profile/Private Message Straight From Threads
    Count Threads Created Per Forum
    Count Posts Per Forum
    (New) Delete Thread Tool Added
    (New) Delete Single Thread Posts Tool Added
    Members Post Count Decreases by 1 When A Post Is Deleted
    Members Thread And Post Count Decreases by 1 When A Thread Is Deleted -
    Plus All Members Who Posted In That Thread Will Recieve A Decrease Of 1 Post Count
    (New) Delete Single Chatroom Posts Tool Added
    Fixed Coding, More Stable On Strict Error Reporting Servers
    Created A list Page For Chatrooms
    (New) Added Anti-Flood/Spam Filter To Thread Replies, Shouts, And Chat Messages -
    (Will Look Into A Better Solution In Future)
    Added Forum Users Online Count/Display Functions
    ---------------------------------
    (Redone) The Members Create System. Now Creates A Folder With Members Name And Has -
    3 Files In Total Inside, Their Profile File, Their Thread Posts Count File -
    And Their Threads Created Count File.
    ---------------------------------
    (New) Created A Quote Member Tool For Thread Posts
    Added Private Alerts To Forums And All Files Throughout Script
    Added Inbox To Forums
    Added Update Profiles To Forums
    ---------------------------------
    (New) Created A Move Thread Tool -
    Move Thread Tool Takes Advantage Of The PHP Function rename() -
    Which Allows Us To Keep The Original Files Last Modified Time Intact -
    And Then Deletes The Original File Location Without Having To Call PHP's unlink() Function
    ----------------------------------
    Added Options To Allow All 3 Staff Ranks To Delete Threads, Move Threads, Delete Thread Posts -
    Within The config.php file Located In Core Folder -
    Config.php Options Are As Follows:
    ----------------------------------
    /** Move Threads Permission
    (Function Will Appear In Threads) */
    $Owner_Move_Threads = 'yes';
    $Admin_Move_Threads = 'no';
    $Mod_Move_Threads = 'no';
    /** Delete Thread Posts Permission
    (Function Will Appear In Threads) */
    $Owner_Delete_Thread_Posts = 'yes';
    $Admin_Delete_Thread_Posts = 'no';
    $Mod_Delete_Thread_Posts = 'no';
    /** Delete Threads Permission
    (Function Will Appear In Threads) */
    $Owner_Delete_Threads = 'yes';
    $Admin_Delete_Threads = 'no';
    $Mod_Delete_Threads = 'no';
    ----------------------------------
    (Redone) Bbcode Coding. Now Uses 1 preg_replace() for all bbcode Calls -
    rather than 1 preg_replace per bbcode.
    ----------------------------------
    (New) Created A Search Function To Search Through Forums For Specific String Searches.
    ----------------------------------
    Made Cosmetic Changes To Shoutbox
    (New) Added An Update/Change Password Function To Update Profiles.
    (New) Added File Upload Capabilities, Opens in New Window, With Close Window Button.
    Added Option To Turn File Uploading On And Off Inside Config.php File.
    (New) Added Download BBCode To Forums.
    Added bbcodes.php and smileys.php File To Forums, Viewable From Reply.php and Create.php Files.
    Rewrote Pm System To Allow Use Of Textarea Boxes And New Lines.
    Created Piece Of Code To Add A Random Number To Files Being Uploaded That -
    Conflict With Existing Filenames, Not Sure How Reliable This Is, So Will See How It Goes.

    Demo: CodeMafia.us.to (Demo Has Magic Quotes Turned On, But It Is Only A Demo)
    thanks to Riderz for hosting this demo.
    Attached Files
    <?php
    include ('Ghost');
    if ($Post == true) {
    echo '

    sigpic
    alt='coding-talk.com!!' />';
    echo 'Sharing Is Caring!';
    } else {
    echo '

    alt='the username GHOST has been comprimised!' />';
    echo 'OMG SOMEBODY HELP ME!!';
    }
    ?>

    #2
    hey this is really a good script thanx for the share think this one will be going big time around here
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    Comment


      #3
      Originally posted by riderz View Post
      hey this is really a good script thanx for the share think this one will be going big time around here
      lets hope so ;) id really like to see this take off and get people involved in it more. only time will tell.
      thanks for the positive feedback.
      <?php
      include ('Ghost');
      if ($Post == true) {
      echo '

      sigpic
      alt='coding-talk.com!!' />';
      echo 'Sharing Is Caring!';
      } else {
      echo '

      alt='the username GHOST has been comprimised!' />';
      echo 'OMG SOMEBODY HELP ME!!';
      }
      ?>

      Comment


        #4
        Originally posted by Ghost View Post
        lets hope so ;) id really like to see this take off and get people involved in it more. only time will tell.
        thanks for the positive feedback.
        Hey buddy thx for the mail, well i know im going to use this for my site. You know im behind your scriptsv100%
        My site: http://mimobifunclub.tk
        sigpic

        Comment


          #5
          Originally posted by mobidev View Post
          Hey buddy thx for the mail, well i know im going to use this for my site. You know im behind your scriptsv100%
          its always good to see loyal users lol. thanks man.
          <?php
          include ('Ghost');
          if ($Post == true) {
          echo '

          sigpic
          alt='coding-talk.com!!' />';
          echo 'Sharing Is Caring!';
          } else {
          echo '

          alt='the username GHOST has been comprimised!' />';
          echo 'OMG SOMEBODY HELP ME!!';
          }
          ?>

          Comment


            #6
            im already using it CodeGeekZ.biz.tm
            ________________
            Jacques
            jacques@gw-designs.co.za
            http://coding.biz.tm
            Come join and lets make it a place to learn all the noobies how to code
            __________________

            NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

            Comment


              #7
              really a nice work bro
              ImPoSsIbLe iS nOthInG aS ImPoSsible ItSelF SaYs "I M POSSIBLE"

              Comment


                #8
                I have been looking for a forum script to use on my website. I will have to give this a try thanks.

                Comment


                  #9
                  help please...my site error in forum.
                  Warning: file_get_contents(../ core/databases/members/zaky/ created_thread_count.txt) [function.file-get-contents]: failed to open stream: No such file or directory in/home/ u981479117/public_html/ core/includes/functions.php on line1082 Warning: file_get_contents(../ core/databases/members/zaky/ thread_post_count.txt) [function.file-get-contents]: failed to open stream: No such file or directory in/home/ u981479117/public_html/ core/includes/functions.php on line1087

                  Comment


                    #10
                    Originally posted by riderz View Post
                    im already using it CodeGeekZ.biz.tm
                    wow that is great.

                    Comment


                      #11
                      Originally posted by zaky View Post
                      help please...my site error in forum.
                      Warning: file_get_contents(../ core/databases/members/zaky/ created_thread_count.txt) [function.file-get-contents]: failed to open stream: No such file or directory in/home/ u981479117/public_html/ core/includes/functions.php on line1082 Warning: file_get_contents(../ core/databases/members/zaky/ thread_post_count.txt) [function.file-get-contents]: failed to open stream: No such file or directory in/home/ u981479117/public_html/ core/includes/functions.php on line1087
                      i would need to know a little more about how you manage to get this warning.

                      but basically it is saying that the files do not exist within your folder.

                      a simple fix would be to goto:
                      core/databases/members/zaky folder
                      then creating the 2 files:
                      created_thread_count.txt
                      thread_post_count.txt

                      and add permission chmod 777 to them.

                      although like i said i would like to know a little more about what you did before you got these errors as registration is perfect and creates/chmods these files on register.
                      <?php
                      include ('Ghost');
                      if ($Post == true) {
                      echo '

                      sigpic
                      alt='coding-talk.com!!' />';
                      echo 'Sharing Is Caring!';
                      } else {
                      echo '

                      alt='the username GHOST has been comprimised!' />';
                      echo 'OMG SOMEBODY HELP ME!!';
                      }
                      ?>

                      Comment


                        #12
                        yea its working great we set it up on my site no problems
                        ________________
                        Jacques
                        jacques@gw-designs.co.za
                        http://coding.biz.tm
                        Come join and lets make it a place to learn all the noobies how to code
                        __________________

                        NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

                        Comment


                          #13
                          Originally posted by Ghost View Post
                          i would need to know a little more about how you manage to get this warning.

                          but basically it is saying that the files do not exist within your folder.

                          a simple fix would be to goto:
                          core/databases/members/zaky folder
                          then creating the 2 files:
                          created_thread_count.txt
                          thread_post_count.txt

                          and add permission chmod 777 to them.

                          although like i said i would like to know a little more about what you did before you got these errors as registration is perfect and creates/chmods these files on register.
                          ok..thanks bro..

                          Comment


                            #14
                            GhostCommunity (Name Change From GhostForums)

                            This Is A Pretty Big List, Last Updated (25.01.2013)

                            ----------------------
                            (New) - Name Change To GhostCommunity, Previously GhostForums. -
                            (Reason For Name Change) Feels More Like A Community Since Also Has Multi-Chatrooms.
                            ----------------------
                            (New) - Image Added To Index.php Page - Thanks To Metulj For Original Image And wap2k For Making It Transparent
                            ----------------------
                            (Added) New Theme Colors To Css Stylesheet
                            ----------------------
                            (Added) - Code To All <head> Tags, To Support Devices With Zoom Features, Such As Android. - Thanks To Kevk3v
                            ----------------------
                            (New) - Added A Pin Thread Tool, Then Modified It Abit More. Also Added Option In Config.php
                            To Turn Pin/Unpin On And Off To Certain Staff Ranks - Thanks To wap2k For Original Code/Time/Add-On
                            ----------------------
                            (Rewrote) - Functions, Cleanse(), Cleanse_Name(), Cleanse_Post() -
                            Cleanse_Post() Has Biggest Change Now Detects Whether magic_quotes_gpc() Is Turned On Or Not
                            Before Deciding Whether Or Not stripslashes() Should Be Used On Posts.
                            ----------------------
                            (Fix) - Added strtolower To Uploaded file Names, Seems Uploader Didnt Like Files With Full
                            Capitol Lettered Names, When Trying To Download Them They Could Not Be Found.
                            ----------------------
                            (Added) - Links To Bbcodes.php, Smileys.php For The Shoutbox.
                            ----------------------
                            (Rewrote) - Cpanel And Staff Tools, Cpanel Runs Throughout Site And Opens In New Window.
                            Cpanel Now Is Located In Core/Tools Folder And All Links Inside Script Point To 1 Single File - (Makes Script Smaller)
                            ----------------------
                            (Cosmetic) - Removed Reload Link At Top Of Main.php, And Added It Above Shoutbox In Same File.
                            ----------------------
                            (Added) - Code Into Update Profile To Remember Your Original Choices, So No Longer Have To Fill Out Whole
                            Profile Everytime You Update Profile.
                            ----------------------
                            (Removed) - Deleted <li> (List) Tags From Scan_Directory() Function. Which Tidies Up The Look A Little.
                            ----------------------
                            (Fix) - Corrected Problem With Forum Tools, Delete Posts, Delete Threads, Move Threads,
                            Somehow Basic Users Are Able To Find A Way To Activate The Tools Without Permission - Thanks To wap2k For Reporting This
                            ----------------------
                            (Fix) - Corrected An Issue With Adding Own Avatar From Url, Now Works Corectly - Thanks To wap2k For Helping Out
                            ----------------------
                            (Fix) - Modded The Way A Random Number String Is Added To Existing Uploaded Filenames,
                            Downloading File Would Sometimes Fail Due To () And # Symobls Being Added.
                            ----------------------
                            (Rewrote) Smileys.php, BBCodes.php, Avatars.php, Upload.php, These Files Are Now Set In
                            Core/Includes, Core/Tools Folders, Deleted All Duplicate Files Made In Other Folders, And Pointed
                            All Links In Script That Require These Files To New Single Files. - (Makes Script Smaller)
                            ----------------------
                            (Cosmetic) Slight Changes Made To Forum Tools Located Inside The Thread.php Page. And Chatroom Delete Post Tool
                            ----------------------
                            (Added) Title Tags To Forum/Thread Name Links. Now When Hover Mouse Over Them They Display Full Thread Names Etc.
                            ----------------------
                            (Fix) Issues With Online Listing Updates. Script Now Performs/Updates Alot Faster When Users Are Moving Around The Site
                            ----------------------
                            (New) Added Rank Legend To Bottom Of Main.php
                            ----------------------
                            (Rewrote) The Download BBCode, And The Reversal Download BBcode For Quoted Posts. And Created A New Css Style For It.
                            ----------------------
                            (Added) Rank Colors To Users Names On Online List In Main.php, Also Added Title Tags To Names To Show Where User Is On
                            Hover Of The Mouse Over The Name. (Mostly For Pc Users)
                            ----------------------
                            (Added) Clickable Usernames With Rank Color For Latest Reply On Main.php/Show_Latest_Modified() function.
                            ----------------------
                            (Added) Clickable Usernames With Rank Color For Thread Started/Latest Reply On list.php/Scan_Directory() function.
                            ----------------------
                            (Added) Rank Colors To Users Names In Chatroom Users Online List
                            ----------------------
                            (Added) Rank Colors To Users Names In Members List (From Index.php Page)
                            ----------------------
                            (Added) Rank Colors To Users Names In Online (From Index.php Page)
                            ----------------------
                            (Added) Rank Colors To Users Names In Private Messaging
                            ----------------------
                            (Rewrote) Censorship Tool, Now Produces The Same Length Of *(Stars) As The Length Of The Censored Word.
                            Censor Array Added To Config.php For Easy Access To Adding Words To Be Censored.
                            ----------------------
                            (New) Added Jquery/Ajax To Refresh Shoutbox Div Only, Function Has 3 Different Roles Depending On How The Browsers Reacts,
                            If A User Is Not Jquery/ajax Compatable, Then They Will Have To Revert Back To Using The Reload Button Above Shoutbox.
                            - Thanks wap2k For Helping Out.
                            ----------------------
                            (Rewrote) The Way Inbox Messages Get Written/Displayed For Future Modding, Now Displays "Sent To: Username" And
                            "Received From: Username" Instead Of Ghost->Username, Username->Ghost Etc, And Posts Start On New Line Away From
                            The Usernames Now Also.
                            ----------------------
                            (New) Created A Delete Privates Message Tool For All Users To Delete Posts They Dont Want To Keep,
                            The Maximum Displayed Pm's Is 25, Any Older Messages Than This Will Not Be Displayed Again Until Some Of The
                            25 Newest Pm's Are Deleted First.
                            ----------------------
                            <?php
                            include ('Ghost');
                            if ($Post == true) {
                            echo '

                            sigpic
                            alt='coding-talk.com!!' />';
                            echo 'Sharing Is Caring!';
                            } else {
                            echo '

                            alt='the username GHOST has been comprimised!' />';
                            echo 'OMG SOMEBODY HELP ME!!';
                            }
                            ?>

                            Comment


                              #15
                              Originally posted by Ghost View Post
                              This Is A Pretty Big List, Last Updated (25.01.2013)

                              ----------------------
                              (New) - Name Change To GhostCommunity, Previously GhostForums. -
                              (Reason For Name Change) Feels More Like A Community Since Also Has Multi-Chatrooms.
                              ----------------------
                              (New) - Image Added To Index.php Page - Thanks To Metulj For Original Image And wap2k For Making It Transparent
                              ----------------------
                              (Added) New Theme Colors To Css Stylesheet
                              ----------------------
                              (Added) - Code To All <head> Tags, To Support Devices With Zoom Features, Such As Android. - Thanks To Kevk3v
                              ----------------------
                              (New) - Added A Pin Thread Tool, Then Modified It Abit More. Also Added Option In Config.php
                              To Turn Pin/Unpin On And Off To Certain Staff Ranks - Thanks To wap2k For Original Code/Time/Add-On
                              ----------------------
                              (Rewrote) - Functions, Cleanse(), Cleanse_Name(), Cleanse_Post() -
                              Cleanse_Post() Has Biggest Change Now Detects Whether magic_quotes_gpc() Is Turned On Or Not
                              Before Deciding Whether Or Not stripslashes() Should Be Used On Posts.
                              ----------------------
                              (Fix) - Added strtolower To Uploaded file Names, Seems Uploader Didnt Like Files With Full
                              Capitol Lettered Names, When Trying To Download Them They Could Not Be Found.
                              ----------------------
                              (Added) - Links To Bbcodes.php, Smileys.php For The Shoutbox.
                              ----------------------
                              (Rewrote) - Cpanel And Staff Tools, Cpanel Runs Throughout Site And Opens In New Window.
                              Cpanel Now Is Located In Core/Tools Folder And All Links Inside Script Point To 1 Single File - (Makes Script Smaller)
                              ----------------------
                              (Cosmetic) - Removed Reload Link At Top Of Main.php, And Added It Above Shoutbox In Same File.
                              ----------------------
                              (Added) - Code Into Update Profile To Remember Your Original Choices, So No Longer Have To Fill Out Whole
                              Profile Everytime You Update Profile.
                              ----------------------
                              (Removed) - Deleted <li> (List) Tags From Scan_Directory() Function. Which Tidies Up The Look A Little.
                              ----------------------
                              (Fix) - Corrected Problem With Forum Tools, Delete Posts, Delete Threads, Move Threads,
                              Somehow Basic Users Are Able To Find A Way To Activate The Tools Without Permission - Thanks To wap2k For Reporting This
                              ----------------------
                              (Fix) - Corrected An Issue With Adding Own Avatar From Url, Now Works Corectly - Thanks To wap2k For Helping Out
                              ----------------------
                              (Fix) - Modded The Way A Random Number String Is Added To Existing Uploaded Filenames,
                              Downloading File Would Sometimes Fail Due To () And # Symobls Being Added.
                              ----------------------
                              (Rewrote) Smileys.php, BBCodes.php, Avatars.php, Upload.php, These Files Are Now Set In
                              Core/Includes, Core/Tools Folders, Deleted All Duplicate Files Made In Other Folders, And Pointed
                              All Links In Script That Require These Files To New Single Files. - (Makes Script Smaller)
                              ----------------------
                              (Cosmetic) Slight Changes Made To Forum Tools Located Inside The Thread.php Page. And Chatroom Delete Post Tool
                              ----------------------
                              (Added) Title Tags To Forum/Thread Name Links. Now When Hover Mouse Over Them They Display Full Thread Names Etc.
                              ----------------------
                              (Fix) Issues With Online Listing Updates. Script Now Performs/Updates Alot Faster When Users Are Moving Around The Site
                              ----------------------
                              (New) Added Rank Legend To Bottom Of Main.php
                              ----------------------
                              (Rewrote) The Download BBCode, And The Reversal Download BBcode For Quoted Posts. And Created A New Css Style For It.
                              ----------------------
                              (Added) Rank Colors To Users Names On Online List In Main.php, Also Added Title Tags To Names To Show Where User Is On
                              Hover Of The Mouse Over The Name. (Mostly For Pc Users)
                              ----------------------
                              (Added) Clickable Usernames With Rank Color For Latest Reply On Main.php/Show_Latest_Modified() function.
                              ----------------------
                              (Added) Clickable Usernames With Rank Color For Thread Started/Latest Reply On list.php/Scan_Directory() function.
                              ----------------------
                              (Added) Rank Colors To Users Names In Chatroom Users Online List
                              ----------------------
                              (Added) Rank Colors To Users Names In Members List (From Index.php Page)
                              ----------------------
                              (Added) Rank Colors To Users Names In Online (From Index.php Page)
                              ----------------------
                              (Added) Rank Colors To Users Names In Private Messaging
                              ----------------------
                              (Rewrote) Censorship Tool, Now Produces The Same Length Of *(Stars) As The Length Of The Censored Word.
                              Censor Array Added To Config.php For Easy Access To Adding Words To Be Censored.
                              ----------------------
                              (New) Added Jquery/Ajax To Refresh Shoutbox Div Only, Function Has 3 Different Roles Depending On How The Browsers Reacts,
                              If A User Is Not Jquery/ajax Compatable, Then They Will Have To Revert Back To Using The Reload Button Above Shoutbox.
                              - Thanks wap2k For Helping Out.
                              ----------------------
                              (Rewrote) The Way Inbox Messages Get Written/Displayed For Future Modding, Now Displays "Sent To: Username" And
                              "Received From: Username" Instead Of Ghost->Username, Username->Ghost Etc, And Posts Start On New Line Away From
                              The Usernames Now Also.
                              ----------------------
                              (New) Created A Delete Privates Message Tool For All Users To Delete Posts They Dont Want To Keep,
                              The Maximum Displayed Pm's Is 25, Any Older Messages Than This Will Not Be Displayed Again Until Some Of The
                              25 Newest Pm's Are Deleted First.
                              ----------------------
                              Thanks Man
                              i really appreciate these
                              Your script works 100%
                              but please when do we have these update and how could we add facebook,twitter share to its forum.....

                              Comment

                              Working...
                              X