View Single Post
  #3 (permalink)  
Old 15-03-07
WordpressConsultant's Avatar
WordpressConsultant WordpressConsultant is offline
Administrator
 
Join Date: Aug 2006
Location: Subang Jaya
Posts: 3,137
Default

Quote:
Originally Posted by etravelreviews View Post
I installed Wordpress at http://www.etravelreviews.com/comments/

My wordpress post is at http://www.etravelreviews.com/comments/savannah/

My page is at http://www.etravelreviews.com/savannah/

use login: XXXXXX
pw: XXXXXX

I have a php include on my page that incorporates my post into my page:

Login is required to add a comment to the post.

Goto my page, at the bottom, click to login, and it will return you to my page after login saying you still need to login.

If you navigate directly to the post, however after logging in, it will give you the ability to add a comment / logout.

I've tested this by putting this code into the post (comments.php):

When logged in and you go directly to the post, it answers with the proper user ID: "User ID: 3"

When logged in and you go to my page, it has no answer - just says "User ID: "

(you can see that code result at the bottom of the page).

The issue is the following code in the comments.php file:

When accessing the post directly, with a user logged in, this test fails (as it should)
When the post is included in my page, and a user is logged in, the test validates (but it shouldn't).

All I'm trying to do is when a user is logged in and viewing my page, that they can add a post.

Please help!
~marc

Don't post directly to here in order to prevent any unauthorised accesss.

And I don't think I am able to help you as you are going into very much advance level in php & code modification. This forum is dedicated to use wordpress in easy way, mainly focus on using the tips, plugins & themes to optimise your blog.

Thank you.
__________________
Regards,

Steven Wong
Wordpress Consultant
| Blog | Internet Online | AllNicheVideo |

Wanna to get link to 2 PR4/PR3 high traffic sites? Go here to find out how!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote