Forums Sign Up Reply Search Statistics
Star Rating System GraFX Software Solutions - Forum / Star Rating System /

Star Rate System PRO - Logged in user comment feature

 
Author gameringer1
Forums Member
#1 Posted: 24 Mar 2010 02:42:53
Reply 
Hello,

I was talking to valics on live support about this issue and he said to post it here so the coders can take a look at it.

How do i make it so if a user is logged in he/she doesnt have to fill in the username and email sections of the comment/rate form?

The variables on my site are:
echo $session->username; (THIS DISPLAYS THE USERNAME OF THE LOGGED IN USER)

echo $session->userinfo['email']; (THIS DISPLAYS THE EMAIL OF THE LOGGED IN USER)

To check if a user is logged in I use:

if($session->logged_in){
echo "User Logged In!";
}
else {
echo "User not Logged in!";
}

Also I have to include session.php on every page so this works.

Thanks
Author software
Admin
#2 Posted: 24 Mar 2010 19:38:39
Reply 
This is one of the approach.
The idea is that for example you can create a message user not logged in and do not show the board (if, else) and then if logged in, to show the board and rating.

The idea is that each system will work differently, you need to customize it for each website, is not possible to do by us, this hack must be done by website owner.
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.