This is a discussion on "I made a Forum - Now I need help." within the PHP Forum section. This forum, and the thread "I made a Forum - Now I need help. are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
I made a Forum - Now I need help.
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
I made a Forum - Now I need help.
Hey guys,
Followed a simple tutorial and made a working, functioning very basic PHP forum with a mysql database Anyway, the forums are here: forums.csstrickery.co.uk and as you can see you have to enter your name every time you post. However, I want the user to login, be redirected to the main forums page (which will be called main_forums.php - it's the index page atm) and then where it says 'Name' I want their username to be displayed. Is that gonna get complicated? I have a login script, which looks like this: (Also - is this login secure?)
So where it says Name, it needs to say the username of the person. I also need the forums to be accessable when not logged in but not allow people to post if they are not logged in. I think I can do this myself - I shall report back! Also, how would I make a 'Users Online' box? And how would I make a 'Last 5 posts' box? Lol I'll be less demanding next time, I promise Thanks a million for all the help so far with my PHP, I bet you are all fed up of me already Jack
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
|
|
#2
|
|||
|
|||
|
Re: I made a Forum - Now I need help.
You created your own forum!?!
Are there free forums out there that I can use for my site? from the FAQ of September's edition of the newsletter |
|
#3
|
|||
|
|||
|
Re: I made a Forum - Now I need help.
Quote:
Users Online, you'd need a checkbox or boolean field in the users table and you could do a query where it prints the names of all users whose boolean is set to online (1) AND not those who are offline (0) if that makes sense. Last 5 posts, Just query the place where the posts go to and grab the last 5 assuming you record the dates the posts were made you can do it like that. Query posts, order by date descending and limit of 5, it will grab the 5 newest posts! |
|
#4
|
||||
|
||||
|
Re: I made a Forum - Now I need help.
You would be spending months on this if you choose to complete it.
And the end result would be something which doesn't even compare to the free forums available. I seriously recommend you follow the link Karinne posted and use one right now
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#5
|
|||
|
|||
|
Re: I made a Forum - Now I need help.
Even tho I posted that your were insane for making your own, my hats off to you for making it this far
|
|
#6
|
||||
|
||||
|
Re: I made a Forum - Now I need help.
try this article, it may help
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#7
|
|||
|
|||
|
Re: I made a Forum - Now I need help.
and yea, KariNNe (woohoo NN!) and Alex are right - although building your own forum is great for learning your never going to get something as good as the free ones that are available...
|
|
#8
|
||||
|
||||
|
Re: I made a Forum - Now I need help.
That's why I decided on a blog instead, half as much work!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#9
|
|||
|
|||
|
Re: I made a Forum - Now I need help.
yea I did a blog and a CMS for learning. abandoned them cos they were crap but good for learning and then made my CMS which is now...pretty good if i do say so myself
|
|
#10
|
||||
|
||||
|
Re: I made a Forum - Now I need help.
Yeah I want to continue with this one! I now have a registration thing which adds to the database, a login, a forum which you need to be logged in to see and it's going well!
Jack
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#11
|
||||
|
||||
|
Re: I made a Forum - Now I need help.
Hey,
I know it wont be anywhere near as good or anything but it is so I can learn. Can anyone help with my main forums page. It is not even showing now!
Parse error: syntax error, unexpected $end in /home/freesi/public_html/forums/main_forum.php on line 61 Edit: It only has the error when the user is not logged in. Edit: It now seems to be working! I think I might try making a PHP blog... Jack
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
Last edited by Jack Franklin; Oct 10th, 2007 at 18:22. |
|
#12
|
||||
|
||||
|
Re: I made a Forum - Now I need help.
Quote:
Count how many "{" are in your in code and check if it's the same as the amount of "}". Aswell as checking your php tag is closed. If this doesn't work, port the code from lines 56 - 65.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#13
|
||||
|
||||
|
Re: I made a Forum - Now I need help.
There is no code on line 61! The </html> tag is on 59 at that is it lol.
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
#14
|
||||
|
||||
|
Re: I made a Forum - Now I need help.
Did you do what I recommended? Check if you PHP tags are closed and the curly braces are all closed?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Paid Forum Posting - Political Forum | entropy | Job Opportunities | 0 | Sep 22nd, 2007 03:13 |
| PLEASE HELP ME! Swish made flash is blocking fireworks made navbar | Sope | Flash & Multimedia Forum | 12 | Jun 19th, 2007 12:29 |
| Director made exe | snow | Flash & Multimedia Forum | 7 | Dec 13th, 2006 20:09 |
| HotSeoTalk.com - SEO Forum Search Engine Optimization Ranking Marketing forum | hotseotalk | Link Building and Link Sales | 1 | Aug 19th, 2006 09:43 |