Jump to content


blog and comment script.


2 replies to this topic

#1 fudgy

    Young Padawan

  • Members
  • Pip
  • 80 posts

Posted 20 June 2008 - 11:40 PM

this is my site : http://www.phozeglobal.ulmb.com/

well i have a user/member system.
it does the following

register member
login member
logout member
admin panel
admin adds member
admin deletes member
admin modifys member
admin logs
admin ip ban

and a lil more for admin.

and i want to have a member profile (i will create myself unless if anyone knows of one :) )
and in this member profile i want users to do the following

add comments on user page,

now i have this comment system (simple)

http://www.wireplast...m/projects.php#

CLICK ON WPRANT

so how do i get it so that members can only post replys when logged in? and they dont have to typ in name in the comment system and if they are not logged in, i want them to be redirected to a login page of mine?

and also i want to add my members to this system. and i want them not to have to post their name eitherand if they are not logged in, i want them to be redirected to a login page of mine.

http://www.wireplast...m/projects.php#

CLICK ON WPBLOG

anyone know how to do this?


#2 tomos

    Young Padawan

  • Members
  • Pip
  • 58 posts

Posted 21 June 2008 - 10:09 AM

Quote

so how do i get it so that members can only post replys when logged in? and they dont have to typ in name in the comment system and if they are not logged in, i want them to be redirected to a login page of mine?

I'm not much of a PHP man, but couldn't you use a IF Statment for this? Something like (psuedo code) - (btw, I'm not to sure about the username part):

if(user is logged in) {
	
	echo "show the comment form";

} else {
	
	echo "Not logged in - log in to post comment";	

}


#3 fudgy

    Young Padawan

  • Members
  • Pip
  • 80 posts

Posted 21 June 2008 - 12:27 PM

thnx i will try.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users