GhostCommunity v2 (AKA) GhostForum

Started on the old forum in January 2013 · view the original in the archive · old links redirect here

21 replies · 3,826 views · started 13 years ago · 5 min read

TL;DR · summary of 21 replies
  • - Added a function to convert site links to look SEO friendly, causing issues with symbols in file names.
  • - A fix was added for uploaded files with full capital lettered names, ensuring they can be downloaded properly.
  • - The script now supports devices with zoom features and has cleaner code functions like Cleanse(), Cleanse_Name(), and Cleanse_Post().
  • - There is no clear resolution or conclusion about the issue with session data counting users online.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

11 participants
Ghost Senior · 366 posts #1

here is the newest version of the script. full list of updates will follow. Read The ReadMe.txt File For Installation Instructions etc. thanks and likes are appreciated.


(v2 RELEASE)

(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 Visitors For Reporting This

  • 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. Added Configuration In Config.php To Set Refresh Rate Of 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 Private 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.

(New) Created A Edit Thread Posts Tool For All Users To Edit Their Own Post, Also Added Edit Thread Post Tool For Staff Members To Edit All Members Posts Not Just Thier Own. Staff Edit Post Configuration Is Inside Config.php

(Fix) Fixed Undeclared Variables In Save_post(), Save_shouts(), save_private() functions.

(Rewrote) Alot Of Functions Within functions.php, File Is Over 300 Lines Shorter Than Before.

(Added) Options In Config.php For Staff Ranks To Be Able To Delete Chatroom Posts.

(Rewrote) The Way Some Functions Look, Some Code Was Bloated, So Created Better Methods To Do The Same Tasks, Functions Such As: Offline_Check(), Full_Online_Pagination(), Update_Profile(), Registration()-(slightly) Etc. Etc.

(New) Created Delete Single Shout Messages Tool For Staff, Configuration For Tool In Config.php

(New) Created Delete All Shout Messages Tool For Owners Cpanel.

(New) Created A Function based On The Built-In Php Syntax Highlighting System And Added It To Thread posts and Private Messages.

Demo: CodeMafia.us.to

👍 1
Share
<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
Attachments: GhostCommunity v2.zip
mobihack Junior · 20 posts #3

I love people who hate or don't use mysql .xdlol. Great coding. And script has good features. Many people believe that flat_files are unsecure and slow. And i found a new way how to not use file_get_contents or any. It's a new feature of my script. Brings down high cpu usage. And i want a help: I use, $_session["user"]="username"; For storing username. And also uses flat files .lol. Then how to show if user is online or offline ?

And also i copied and modified some of your created functions. Any problems 🙂

wap2k Developer · 168 posts #4

Thank you Ghost this is a cool script... 8)

iamriasad Newbie · 2 posts #5

Thanks For the script. Will try it later.

Ghost Senior · 366 posts #6

Update

ive been working on the script to make it an open forum (rather than hidden) and also added seo friendly looking links, and also created a function to convert the site links (that needs it) to also look seo friendly.

there maybe a few bugs i will need to air out. but you can see it in action now.

as long as my computer is on. then youll be able to see these. main index page: Main test thread page: String Replace From A Text file test forum page: Coding Forum

once this is finished it will not work with all old databases. so it will prob be best to run this version as a fresh install. there was a problem with the converting of site links etc, so had to change the way it reads/gets the threads from database. and it now doesnt recognize alot of symbols or the symobls break the preg_replace() functions and causing the file_exists() func to behave strangely. ie: . (period) + (plus) & (and) - (minus) etc etc.

i am using an old database atm so if you was to look for some threads with these type of symobls in youll notice you get a page something like this: uest Your Logo Here!. but of course the file does exist. it just breaks cos its found a . (period) in the file name. so ive had to also restrict symobls in new created thread names to stop this happening when goes live and after fresh install.

think thats it, should keep you interested for a little while at least.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
mobihack Junior · 20 posts #7

mobihack wrote: I love people who hate or don't use mysql .xdlol. Great coding. And script has good features. Many people believe that flat_files are unsecure and slow. And i found a new way how to not use file_get_contents or any. It's a new feature of my script. Brings down high cpu usage. And i want a help: I use, $_session["user"]="username"; For storing username. And also uses flat files .lol. Then how to show if user is online or offline ?

And also i copied and modified some of your created functions. Any problems :)

Any reply ?

Ghost Senior · 366 posts #8

mobihack wrote: Any reply ?

this script also uses session to store the username after login. $_SESSION['valid_user'] i was not able to find a way of counting how many users was online using the session variable. due to not being able to get all session info. the session data is open to the user only after all. so you would have to use flat file to accomplish this. look inside functions.php file and locate online_check() and offline_check() funcs i believe they are called. then look inside main.php to see how you could/would call them.

there is no problem with you copying/modding any part of the code in the script. there is no copyright on it. and i pity the person who tries to really. i created the script to share with people and with the hope that people would build on the script and share its content with other coders/users like they did with lavalair.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
mobihack Junior · 20 posts #9

And bro thanx really. And i have found new way to get contents of file with very very little cpu impact. And nice job bro.

Ghost Senior · 366 posts #10

mobihack wrote: And i have found new way to get contents of file with very very little cpu impact.

and that would be what?

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
mobihack Junior · 20 posts #11

😛 Simple but not now. I will share script soon. So learn from there .lol.

Ghost Senior · 366 posts #12

hmm. i kinda expected as much.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
mobihack Junior · 20 posts #13

Give mail. I will mail it to you love .lol. But note. If you want to use this you will have to change your script very much. Beginning from removing all file_get_contents 😀

mobihack Junior · 20 posts #14

Bro i will not come online for 1month. So telling the thing here: Just save your data like this: title subject is this user as a php file:

<?php $fdata="title subject is this user"; ?>

So instead of file_get_contents just include file and do what you want. Very easy better than file get contents

Ghost Senior · 366 posts #15

Major Updates/Improvements.

Demo: CodeMafia.uk.to Seo Friendly forum/Thread Urls Function To Turn Needed Urls To Seo Friendly Looking. Jump To Last Post Ability From Latest Post Links. New Theme. (Must Be Better Than Last One Right?) Open Forums/Thread To Guests

mobihack wrote: Bro i will not come online for 1month. So telling the thing here: Just save your data like this: title subject is this user as a php file:

<?php $fdata="title subject is this user"; ?>

So instead of file_get_contents just include file and do what you want. Very easy better than file get contents

i see thanks for sharing. i was just curios on what you ment really.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
Ghost Senior · 366 posts #16

Lynjun02 wrote: Ei ghost? Wanna help me modify my site and add some functions? Got many users for my site they are just waiting for me to realease

you might wanna hold off for a little time. im very close to releasing v3. which youll really want rather than this v2.

here is a demo of v3 CodeMafia.uk.to <-- only available while my pc is online.

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
petrysor Junior · 11 posts #18

smiley dont work acces denied

tom Newbie · 4 posts #19

Interesting script, I'll have a look at it later. Signed up for the conversation thread.

Xobatahc Junior · 17 posts #20

Hey Ghost, been trying to get hold you you via email with no luck.... if you see this contact me!!!!

Wappy........

I'll check back here but still have the same gmail we spoke on last time.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close