SimpleBB - Completely Re-engineered

Joined
Apr 7, 2009
Messages
647
Reaction score
26
SimpleBB

4.7.10 Cleaned up some code
4.7.10 Editing posts is almost done!
---------------------

Currently, SimpleBB contains:
-Unlimited Forums
-Unlimited Subforums
-User Accounts
-Membergroups
-Posting
-Forum Permissions
-BBCode
-Replying

Being worked on...
-Statistics
-Current style-the header just looks awful.

Planned for the future...
-Better styling system
-AJAX thread and reply updater
-Private messaging system
-Profiles

Demo Link: http://www.icisgames.com/forum.alphaii

Screenshots attached

Summary:
So what IS different in this reworked version than the previous one?
The forum's code has been optomized, so now the forum loads much faster. The forum is more user-friendly, and the style doesn't hurt your eyes anymore, like last time. :ott1:

Membergroups are not that complex anymore, it's just a very simple process that registers your permissions upon visiting the forum. Styling has also been reworked.
The theme now loads with its own preset data, instead of the old "the theme is the forum" concept.

A reworked BBCode parser has also been created-BBCode processing is much more efficient.

The forum and subforum system has also been revised, allowing a much smaller file for creating forums, thus faster execution that. We have applied the same thing towards posting and replying.

Breadcrumbing has also been modified. Now, preset functions are defined to find the objects that are "before" your current state.

Advanced session control now allows users to set an auto logout time, or to not allow the account to be logged in on more than one computer.

So how can I help?
You can help by downloading the source code below.
You can try finding security bugs, such as possible SQL injections, XSS injections, and other possible bugs.
..............................................

Alpha Public Release Package PUBLIC: http://infuser.co.cc/simplephp/download.php January 1st 12:00 AM PST
Alpha II Public Release Package PUBLIC: EST Summer 2010

What will the Pre-Alpha Public Release Package include?
The Pre-Alpha Public Release Package is designed to be used by PHP, HTML, or Javascript scripters. Please report any bugs, vulnerabilities, or simply anyways to make the code more efficient.
Categories
Category Viewer
Unlimited Forums
Unlimited Subforums
Forum Viewer
Posting threads
Replying to threads
Stickying threads
Locking threads
Membergroups (only editable through SQL db)
Forum permissions (only editable through SQL db)
Thread (View Forum) Pagination (only editable through data/settings.php)
Reply (View Thread) Pagination (only editable through data/settings.php)
Basic Styling System
Breadcrumbing

Goals for next major release (Alpha II)
-Automatic Patch Detection in Administrator CP
-Finish styling system
-Theme changing
-Custom timezones
-Edit post/delete (from thread)
-AdminCP
-Statistics
-Moderators
-ModeratorCP
-User Profiles
-User CP
-Thread/Reply editor with BBCode buttons
-Smilies

Goals for final Alpha Release (Alpha Final)
-Finished AdminCP
-Maintenance mode
-User Profile Saving (.fpr - Forum PRofile files; basically XML)
-Finished ModeratorCP
-Finished UserCP
-Admin, Moderator, and UserCP Styling
-UserCP Styling permission for membergroups
-Thread rating
-Number of people viewing forum
-Number of people viewing thread

Peek into the "far" future (Beta I)
-WYSIWYG editor
-Trash forum (for deleted threads; threads can be chosen to completely deleted too)
-"Like/Dislike" threads

Peek into the "far far" future (Beta II)
-Automatic thread and reply updating system (AJAX)
-Two types of data storage:MySQL and files (when a new forum is created, a folder with the name of the forum is created, and a settings file for that forum is created, containing the ID, threads, etc. When a thread is created, an HTML file is stored in that folder. When replies are made, the thread file is edited) *THIS IS JUST A CONCEPT*
-Thread quick editing (AJAX)
-Quick Replying (AJAX)
-Blogging

So what's next?
Now that the Alpha has been released, we'd like you to report any bugs or vulnerabilities.

Also, be on the look out for new patches here.
In the Alpha II, automatic patch detecting will be implemented. (You can implement it now in index.php, but it'll just give you a warning since reading files isn't turned on on my web server)

Patches
SimpleBB.Patch1 - Recommended
Code:
<?php
/*THIS IS A PATCH FOR SIMPLEBB PUBLIC ALPHA RELEASE PACKAGE.  DO NOT RUN THIS PATCH IF YOU ARE NOT USING THAT VERSION.*/

/*
 * Patch 01
 *
 * Bug fixes:
 * Logout script changed
 */

/*
 * Place this file in the root directory of your simpleBB installation.
 * This file should be in the same folder as the folders themes and data are in.
 */

if(isset($_GET['act']))
$act = $_GET['act'];
else
$act = "";

if($act == "delete")
{
	unlink("sbb.patch1.php");
	echo "Succesfully deleted file";
}

$file = "templogout.php";
$fo = fopen($file, 'w');

echo "<b>Patching file (current object:$file): Stage 1 out of 1...";
//Attempt to write to the file

$content = "<?php\r\n/*This code was automatically generated by a simpleBB patcher*/\r\n session_start();\r\nsession_destroy();\r\n?><meta http-equiv='refresh' content='1;url=index.php' />";

fwrite($fo, $content) or die("The patch failed.");
fclose($fo);

echo "Patch succesfully completed!";

echo "Click <a href=\"?act=delete\">here</a> to delete this file";
?>

SimpleBB.Patch2 - Recommended
Code:
<?php
/*THIS IS A PATCH FOR SIMPLEBB PUBLIC ALPHA RELEASE PACKAGE.  DO NOT RUN THIS PATCH IF YOU ARE NOT USING THAT VERSION.*/

/*
 * Patch 01
 *
 * Bug fixes:
 * Logout script changed
 */

/*
 * Place this file in the root directory of your simpleBB installation.
 * This file should be in the same folder as the folders themes and data are in.
 */

if(isset($_GET['act']))
$act = $_GET['act'];
else
$act = "";

if($act == "delete")
{
	unlink("sbb.patch2.php");
	echo "Succesfully deleted file";
        die();
}

$file = "themes/Simple/footer.theme.php";
$fo = fopen($file, 'w');

echo "<b>Patching file (current object:$file): Stage 1 out of 1...";
//Attempt to write to the file

$content = '<?php
/*MUST BE INCLUDED ON EVERY PAGE!*/
	echo "
		<div style=\"font-size:8pt;\">
		<br />
		<br />
		<br />
		<center>
			<!--Credits and stuff.  MUST STAY HERE! (area credits)-->
			Powered by SimpleBB Pre-Alpha Test Release Package<br />
			Copyright © 2009 SimplePHP Group and CronosGames Group
                        ";
                        if($copyright != "")
                            echo "<br />" . $copyright;
                        else { }
                        echo"
			<!--End SimpleBB credits.  (end area credits) Begin theme credits-->
			<br />
			Theme by multiple authors.  Background by BackgroundTube.com.
			<!--End all credits-->
		</center>
		</div>
	";
?>';

fwrite($fo, $content) or die("The patch failed.");
fclose($fo);

echo "Patch succesfully completed!";

echo "Click <a href=\"?act=delete\">here</a> to delete this file";
?>
 

Attachments

Last edited:
Yea looks ugly, but the features seems cool:)
 
The Theme looks similar to my WysGui 0.01 BETA thing I made when I lost connection to the internet for a few weeks time.. To be perfectly honest, I really didn't like that theme afterward.. Some how at the time it seemed like a good idea.

I too have some sort of "designer's block".. I guess some coders are just bad at it, like postNuke, they're design is always so terrible..

Don't feel bad about going out and getting a template to use for your software.. Free or paid for, leave code comments of where you got it, or whatever the terms say to do... You don't need to make everything, just give credits.

Besides, it helps you to learn how to integrate a vast amount of designs from people all around the world. So you'll find times you need to change the way you do some things, and the back-end becomes more versatile, and all that as you go. So in that respect it's a very good thing if you can get a free template and integrate it into your forum. It makes other people think they can integrate their templates, and then you got some people contributing and it gets better, faster.

Take it or leave it, that's my advice.
 
http://localhost/forum.prealpharlspkg/ said:
Error connecting to the database.
You should have an installation file....

Edit: I ran the query and got this message,
phpmyadmin said:
Error

SQL query:

--
-- Dumping data for table `board_props`
--
INSERT INTO `board_props` ( `id` , `name` , `description` , `adminemail` , `copyright` , `tos` , `privacypolicy` , `defaulttheme` , `rootdir` )
VALUES (
* * * * 'GrindSquad', 'Where Grinders Unite!', '[email protected]', '© 2009 Techial', '', '', 'themes/Simple/style.css', 'http://www.grindsquad.co.cc/nforum/forum/'
);

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '**** 'GrindSquad', 'Where Grinders Unite!', '[email protected]', '© 200' at line 2

Fix that.. The tables were created though, and tell people to to change their config file and create a readme or an install file. (auto-install on index is best)
 
Last edited:
Now you forgot a comma,
Code:
INSERT INTO `board_props` (`id`, `name`, `description`, `adminemail`, `copyright`, `tos`, `privacypolicy`, `defaulttheme`, `rootdir`) VALUES
('100', 'GrindSquad', 'Where Grinders Unite!', '[email protected]', '© 2009 Techial', '', '', 'themes/Simple/style.css', 'http://www.grindsquad.co.cc/nforum/forum/');
Paste that in over it ;)

Edit: Now the query works ;)
what's the details to log in?

Edit 2: Figured out it's 'test' and 'test'...
Okay, so how do I post? I see text inputs but no button? (using firefox)

Also, the text at the top of the topics should be links so I can actually navigate around :/

Edit 3: Wait, the password is not test, when you enter the correct username and wrong password, no error message pops up. It's not very intuitive.. Maybe that's why I can't post?
 
Last edited:
Now you forgot a comma,
Code:
INSERT INTO `board_props` (`id`, `name`, `description`, `adminemail`, `copyright`, `tos`, `privacypolicy`, `defaulttheme`, `rootdir`) VALUES
('100', 'GrindSquad', 'Where Grinders Unite!', '[email protected]', '© 2009 Techial', '', '', 'themes/Simple/style.css', 'http://www.grindsquad.co.cc/nforum/forum/');
Paste that in over it ;)

Edit: Now the query works ;)
what's the details to log in?

Edit 2: Figured out it's 'test' and 'test'...
Okay, so how do I post? I see text inputs but no button? (using firefox)

Also, the text at the top of the topics should be links so I can actually navigate around :/

Edit 3: Wait, the password is not test, when you enter the correct username and wrong password, no error message pops up. It's not very intuitive.. Maybe that's why I can't post?

i should've explained lol.
In this edition, you can't really post yet lol.

I'm going to upload a new one in a couple of minutes, which includes membergroups, forum permissions, timzone management, and a bunch of other features. (It includes posting!)

---------- Post added at 08:48 PM ---------- Previous post was at 08:44 PM ----------

Now you forgot a comma,
Code:
INSERT INTO `board_props` (`id`, `name`, `description`, `adminemail`, `copyright`, `tos`, `privacypolicy`, `defaulttheme`, `rootdir`) VALUES
('100', 'GrindSquad', 'Where Grinders Unite!', '[email protected]', '© 2009 Techial', '', '', 'themes/Simple/style.css', 'http://www.grindsquad.co.cc/nforum/forum/');
Paste that in over it ;)

Edit: Now the query works ;)
what's the details to log in?

Edit 2: Figured out it's 'test' and 'test'...
Okay, so how do I post? I see text inputs but no button? (using firefox)

Also, the text at the top of the topics should be links so I can actually navigate around :/

Edit 3: Wait, the password is not test, when you enter the correct username and wrong password, no error message pops up. It's not very intuitive.. Maybe that's why I can't post?

Lol, you can just delete the hash in the db.

---------- Post added at 08:56 PM ---------- Previous post was at 08:48 PM ----------

Files updated.

New Features:
Forum Timezone
Posting Threads
Membergroups
Forum Permissions

Misc
Username: test; Pass: none
Viewing threads has NOT been coded yet; only displaying threads.
 
Well, for me, what I thought was going to be the hardest was membergroups and forum permissions, but I got that done in just half an hour.

So yea, most likely gonna finish by New Years.

I'd assume you could do membergroups, forum permissions, and a blank forum with little to no functionality like this by following a tutorial.
 
I'd assume you could do membergroups, forum permissions, and a blank forum with little to no functionality like this by following a tutorial.

The only reason I uploaded the files this time was so people like you wouldn't tell me that I copied a tutorial like the last time I posted this project.

---------- Post added at 04:48 PM ---------- Previous post was at 04:46 PM ----------

Files Updated

What's New:
Thread Reply Pagination
Viewing Threads
BBCode Parsing
HTML Code Blocked

Other:
Username:test Password:none

---------- Post added ---------- Previous post was at 04:48 PM ----------

Files Updated!

What's New:
No Permission Page
Replying

Other:
User and Pass: demo

Demo Site is now UP!

User and Pass: demo
 
Last edited by a moderator:
Back