Page 1 of 1

need a little help (forum)

Posted: Tue Jun 11, 2002 4:49 pm
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!

Posted: Tue Jun 11, 2002 6:12 pm
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!

Posted: Tue Jun 11, 2002 7:48 pm
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)....

Posted: Tue Jun 11, 2002 7:50 pm
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!