[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 08-19-2006, 01:11 PM   #1 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


A Project i'm working on.....

I'm working on creating a full forum software from scratch, so far it has:

- User registration/login
- Multiple Forums in Multiple Categories
- New Topic/Reply
- User Postcounts

Has anyone got anything to add to that list? Currently i'm working on getting rid of the frames that I used when I first started it.
Barrucadu is offline  
Old 08-19-2006, 02:03 PM   #2 (permalink)
Account Closed
 
Join Date: Feb 2006
Posts: 272
52.00 NP$ (Donate)

DVBT is an unknown quantity at this point


search
DVBT is offline  
Old 08-19-2006, 02:07 PM   #3 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Winnipeg, Canada
Posts: 3,472
5.31 NP$ (Donate)

killaklown is a splendid one to beholdkillaklown is a splendid one to beholdkillaklown is a splendid one to beholdkillaklown is a splendid one to beholdkillaklown is a splendid one to beholdkillaklown is a splendid one to beholdkillaklown is a splendid one to behold


Check out Vbulletin, phpbb, mybb, ipb, smf, etc for features.
killaklown is offline  
Old 08-19-2006, 02:09 PM   #4 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


I should write a to-do list, lol.

lets seeeee:

- User Profiles
- User Titles
- Join Date
- Reputation System [with comments]
- User Location

Red Text = Done

Last edited by Mikor; 08-19-2006 at 03:39 PM.
Barrucadu is offline  
Old 08-19-2006, 03:19 PM   #5 (permalink)
Account Closed
 
Join Date: Feb 2006
Posts: 272
52.00 NP$ (Donate)

DVBT is an unknown quantity at this point


quote funcion, image posting function, attachment upload

I could create a huge list lol
DVBT is offline  
Old 08-19-2006, 03:33 PM   #6 (permalink)
NamePros Regular
 
Join Date: Mar 2006
Location: United Kingdom
Posts: 344
482.75 NP$ (Donate)

lee101 is a jewel in the roughlee101 is a jewel in the roughlee101 is a jewel in the rough


everything that vbulliten has, butslightly different so it isn't obvious that you copied :P
More seriously:
RSS feeds,
Use of BBcode, or similar,
Private Messaging
edit:
forgot to put:
Word filtering
User Ranks
Easily changeable themes
__________________
http://bypasstopsite.com - Submit your proxy!
http://biggertwitter.com - Make twitter a bit bigger!
Currently Developing - Linux Screenshots
lee101 is offline  
Old 08-19-2006, 03:36 PM   #7 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


----- problem fixed -----

I need a bit of help with the bbcode, right now my code is:

PHP Code:
$message = strip_tags($_POST['message']);
$message = nl2br($message);
$message = eregi_replace("[ b ]","<b>",$message);
$message = eregi_replace("[ /b ]","</b>",$message);
However, say I enter the message [ b ]Bold Text[ /b ]
That is output as [<b>]old Text[</b>]

Anyone know whats wrong?

(put in spaces so bbcode would show up)

----- problem fixed -----

I downloaded a simple bbcode parser.

Last edited by Mikor; 08-19-2006 at 03:44 PM.
Barrucadu is offline  
Old 08-19-2006, 03:51 PM   #8 (permalink)
Account Closed
 
Join Date: Feb 2006
Posts: 272
52.00 NP$ (Donate)

DVBT is an unknown quantity at this point


Security of it would be a big problem that would need to be addressed.

Some other things

Who Is Online Info
Post Count for users and the bottom
User Burthdays
Number of memebers and guests online
Number of people who visted in the last 24 hours
avatars
sigs
edit post function
post delete function
User CP
Admin Section
Moderator Section
report system
maybe an invites system
DVBT is offline  
Old 08-19-2006, 03:58 PM   #9 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


ToDo:

Who Is Online Info
Post Count for users and the bottom
User Birthdays
Number of memebers and guests online
Number of people who visted in the last 24 hours
post delete function
Admin Section
Moderator Section
Private Messaging
Easily changeable themes
announcements
latest news i a section on the froum template
current time and date
quick reply
polls
numer of replys to thread
number of views to thread
people viewing thread
number of people view section
adminds and mods different colours
maybe quick register
sticky

Done:

smilies
Threads Bumping (ordered by most recent post)
avatars
User CP
Use of BBcode, or similar,
User Ranks
User Profiles
Join Date
Reputation System [with comments]
User Location
sigs
edit post function

Discarded Ideas:

Word filtering
report system
maybe an invites system
RSS feeds,

Last edited by Mikor; 08-20-2006 at 04:50 AM.
Barrucadu is offline  
Old 08-19-2006, 04:26 PM   #10 (permalink)
Account Closed
 
Join Date: Feb 2006
Posts: 272
52.00 NP$ (Donate)

DVBT is an unknown quantity at this point


announcements
latest news i a section on the froum template
current time and date
quick reply
polls
smilies
numer of replys to thread
number of views to thread
people viewing thread
number of people view section
adminds and mods different colours
maybe quick register
sticky
DVBT is offline  
Old 08-20-2006, 06:14 AM   #11 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


Right, my code is messy, and the layout sucks. But i've made a very basic forum. I'm now going to get working on Version 2, where i'll store all the forum php in a class file, for easy access everywhere on the forum.

ToDo:

Who Is Online Info
User Birthdays
Number of memebers and guests online
Number of people who visted in the last 24 hours
post delete function
Admin Section
Moderator Section
Private Messaging
Easily changeable themes
announcements
latest news i a section on the froum template
current time and date
quick reply
polls
numer of replys to thread
number of views to thread
people viewing thread
number of people view section
adminds and mods different colours
maybe quick register
sticky

Version One Features:

smilies
Threads Bumping (ordered by most recent post)
avatars
User CP
Use of BBcode, or similar,
User Ranks
User Profiles
Join Date
Reputation System [with comments]
User Location
sigs
edit post function
Post Count for users and the bottom

Possible Ideas:

Word filtering
report system
maybe an invites system
RSS feeds,
Barrucadu is offline  
Old 08-20-2006, 08:44 AM   #12 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


Quote:
Originally Posted by DVBT
Security of it would be a big problem that would need to be addressed.
Working on that now.
I'm making a simple function that does mysql_real_escape_string, ect. I've also done this:
When someone registers, it dosnt put their username and password in the database, it does this:
PHP Code:
$username = $_POST['username'];
$login = sha1($username . ':' . $_POST['password']);
It then adds that to the database. So the password isnt actually stored alone, its encrypted with the username.
So hopefully thats more secure than just encrypting the password. (i'm also gonna add a salt function at some point)

BUT, when someone logs in, it sets a session variable logged_in to 'yes', as long as that variable is set to 'yes', they have full acces to the entire contents of the site, so not very secure, i'll put something else in later though.

edit: Just made my password encrypt function, it returns a 120-character hexadecimal number, I think thats secure enough, lol.

Last edited by Mikor; 08-20-2006 at 09:10 AM.
Barrucadu is offline  
Old 08-20-2006, 03:59 PM   #13 (permalink)
Account Closed
 
Join Date: Feb 2006
Posts: 272
52.00 NP$ (Donate)

DVBT is an unknown quantity at this point


yea definatly

Anyway if you ever need beta testers for this forum i would be happy to help

regards
DVBT is offline  
Old 08-20-2006, 04:29 PM   #14 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


Quote:
Originally Posted by DVBT
yea definatly

Anyway if you ever need beta testers for this forum i would be happy to help

regards
Possibly, possibly, lol.

I'll need some people to give it a good bugtesting, but I dont expect it to be fully ready until at least version 5.
Barrucadu is offline  
Old 08-20-2006, 06:17 PM   #15 (permalink)
NamePros Regular
 
ablaye's Avatar
 
Join Date: May 2006
Location: WebmasterGround.com
Posts: 837
0.00 NP$ (Donate)

ablaye is on a distinguished road


Make your forum URLs are search engine friendly URLs (make good use of mod_rewrite).
ablaye is offline  
Old 08-20-2006, 07:13 PM   #16 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


Quote:
Originally Posted by ablaye
Make your forum URLs are search engine friendly URLs (make good use of mod_rewrite).
Ah, my testing server dosnt support .htaccess, so i'll add that to the bottom of my to-do list (things that work on all servers first)
Barrucadu is offline  
Old 08-21-2006, 07:17 AM   #17 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


Here is an up-to-date feature list.
Current version is 2.

-----

ToDo:
post delete function
Moderator Section
Private Messaging
Easily changeable themes
announcements
latest news in a section on the froum template
current time and date
quick reply
polls
people viewing thread
number of people view section
adminds and mods different colours
maybe quick register
sticky
Search-Engine Friendly URLs (mod_rewrite)

Version 2 Features:
Who Is Online Info
RSS feeds,
Number of memebers and guests online
avatars
User CP
Use of BBcode, or similar,
User Ranks
User Profiles
Join Date
User Location
sigs
edit post function
Threads Bumping (ordered by most recent post)
smilies
Post Count for users and the bottom
Reputation System [with comments]
quoting
numer of replys to thread
number of views to thread
User Birthdays
Number of people who visted in the last 24 hours
Admin Section
FAQ

Version 1 Features:
avatars
User CP
Use of BBcode, or similar,
User Ranks
User Profiles
Join Date
Reputation System [with comments]
User Location
sigs
edit post function
Threads Bumping (ordered by most recent post)
smilies
Post Count for users and the bottom

Possible Ideas:
Word filtering
report system
maybe an invites system

Last edited by Mikor; 08-21-2006 at 12:42 PM.
Barrucadu is offline  
Old 08-21-2006, 12:09 PM   #18 (permalink)
Senior Member
 
Camron's Avatar
 
Join Date: Jan 2006
Location: Portland, Oregon
Posts: 2,059
24.85 NP$ (Donate)

Camron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud ofCamron has much to be proud of

VA Tech Memorial 9/11/01 :: Never Forget Cancer Survivorship Child Abuse
Add this,

Code:
$message = eregi_replace("
","<br>",$message);
Will save them from having to type <br> to break a line

Otherwise just use a WYSIWYG from dynamicdrive.com, there is a few. Wordfiltering, and an adminsection where you can ban people is a definate must.
__________________
|| VPSByte Virtual & Dedicated Solutions
|| True 24/7/365 support with a 1 hour guaranteed response time!
|| We offer budget, yet powerful dedicated servers and vps solutions.
|| All servers come w/ 10Mbps unmetered bandwidth & lite management standard.
Camron is offline  
Old 08-21-2006, 12:41 PM   #19 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


Quote:
Originally Posted by StackedTech
Add this,

Code:
$message = eregi_replace("
","<br>",$message);
Will save them from having to type <br> to break a line
Or just use nl2br();, lol.
and i'll definatly look into getting a wysiwsg

---

updated feature list. [see above]
Barrucadu is offline  
Old 08-21-2006, 01:11 PM   #20 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future

Autism Autism Autism Autism Autism Autism Autism
How are there versions of your script before it's even out?

Can we see a demo or a working version?
Dan is offline  
Old 08-21-2006, 01:27 PM   #21 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


Quote:
Originally Posted by Dan Friedman
How are there versions of your script before it's even out?

Can we see a demo or a working version?
Its not public yet, I just decided to say that I was making one.
and there are versions because when I first made it, it was coded terribly, so i completely remade it (hence, v2)
Barrucadu is offline  
Old 08-21-2006, 01:49 PM   #22 (permalink)
NamePros Regular
 
Tree's Avatar
 
Join Date: Feb 2006
Location: Atlanta, GA, USA
Posts: 335
13.25 NP$ (Donate)

Tree will become famous soon enoughTree will become famous soon enough


Quote:
Originally Posted by Mikor
I'm making a simple function that does mysql_real_escape_string, ect. I've also done this:
When someone registers, it dosnt put their username and password in the database, it does this:
PHP Code:
$username = $_POST['username'];
$login = sha1($username . ':' . $_POST['password']);
It then adds that to the database. So the password isnt actually stored alone, its encrypted with the username.
So hopefully thats more secure than just encrypting the password. (i'm also gonna add a salt function at some point)

BUT, when someone logs in, it sets a session variable logged_in to 'yes', as long as that variable is set to 'yes', they have full acces to the entire contents of the site, so not very secure, i'll put something else in later though.

edit: Just made my password encrypt function, it returns a 120-character hexadecimal number, I think thats secure enough, lol.
Best thing to do would be to create a salt, attach it to the beginning, end, and somewhere in the password, and encrypt that.
Tree is offline  
Old 08-21-2006, 01:52 PM   #23 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


Quote:
Originally Posted by Tree
Best thing to do would be to create a salt, attach it to the beginning, end, and somewhere in the password, and encrypt that.
Yep, thats used in my encrypt function.
Barrucadu is offline  
Old 08-21-2006, 06:35 PM   #24 (permalink)
NamePros Regular
 
baxter's Avatar
 
Join Date: Apr 2006
Posts: 289
1,990.00 NP$ (Donate)

baxter is a jewel in the roughbaxter is a jewel in the roughbaxter is a jewel in the rough

Ethan Allen Fund Save The Children
make sure its not just the username that your using as the salt or I would just do a bruteforce by encrypting the members username with a password list then compare.

Best to use str_replace instead of the ereg or preg replace as its quicker and is more secure. In specific circumstances you can levy preg_match/ereg_match for malicious purposes.

Good luck on your project mate
baxter is offline  
Old 08-21-2006, 06:38 PM   #25 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


Heres a screenshot of the admin panel (category and forum management page to be exact).
Attached Images
File Type: png acp.png (33.7 KB, 15 views)
Barrucadu is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 06:05 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85