need a little help (forum)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
deadcowboy
Forum Newbie
Posts: 5
Joined: Tue Jun 11, 2002 4:49 pm

need a little help (forum)

Post by deadcowboy »

hey everyone.. i'm a pretty big php newbie. i can modify it a little bit, but i can't just write it like you fellas...

anyways, i've created a forum that i am pretty happy with. it runs on mysql and all that, and it all works.

BUT, i need your help in adding a few things. all i want to do is add this for now:

1) expanding/collapsing threads. (click a button on the left and it opens the list of replies, click again and it closes to just the starter topic).
2) the ability to register/login (with cookies that give the user the option of remembering login details).

can anyone point me in the right direction or help me out with this? it's really hard to find someone on the net that will help a newbie with php... i've been tryint to figure this out for quite some time... i am a newbie so i can't just find the commands and put them in there...

if any of you guys would be willing to help, i can show you all my code and what not... come on i know there's gotta be SOMEONE that wants to help a guy out a little...

so i really hope one of you guys can help me!
thanks!
Peter
Forum Commoner
Posts: 28
Joined: Mon Jun 10, 2002 12:40 am
Location: Brisbane, Australia

Post by Peter »

For the tree menu (expanding/collapsing threads) thing, you'd need to employ javascript.
You can find an example here...
http://www.dynamicdrive.com/dynamicindex1/navigate1.htm

For the registration and login, I would not recommend using cookies. Sessions are easier! :D
A tutorial on sessions is here...
http://zend.com/zend/tut/session.php
... and the manual entry for sessions is here. :D

Good Luck!
Wandrer
Forum Newbie
Posts: 21
Joined: Thu Jun 06, 2002 8:43 am

Post by Wandrer »

Wouldn't it be a little better to learn from an existing program like phpBB or Phorum ? I would think that customizing one of those programs to learn how they do things would be better than starting from scratch (and possibly getting discouraged)....
deadcowboy
Forum Newbie
Posts: 5
Joined: Tue Jun 11, 2002 4:49 pm

Post by deadcowboy »

hey thanks for the info!

will this expanding/collapsing javascript still work even though my message board seems to be set up to sort by message id? for instance, the thing that is bothering me is that all new messages go to the top of the list, instead of underneath the reply like i would like them to?

any idea how i can change that?

the test version is located at http://www.deadbicycle.com/anti/index.html

thanks again!
Post Reply