Yes, I do have the EndIf in place according to Richie's instructions. My site is http://qiaccess.com. I have a FB login on the front page, but that isn't working either! Also have a Forum request open for that. Many thanks for your time.
One would think that would work, pretty sure I tried that already. Something must be going on with the theme. Did you notice that there is an End if that is commented out? Not sure why. I didn't do it. Also I'm having trouble with the Facebook plugin on the home page. It works fine from http://qiaccess.com/wp-login.php, but not the home page, neither as a Shoicode nor a widget.
7257 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Chimp
—
7th February 2012 (3 months ago)
#
Hey Pali.
I had issues with my net connection earlier and had to use a 3G tethered connection. My BB is now fully back. :-) I just tested what I sent you and it does work for me.
Please confirm when you can try it with your install.
Also I'm having trouble with the Facebook plugin on the home page. It works fine from http://qiaccess.com/wp-login.php, but not the home page, neither as a Shoicode nor a widget.
Well I see you are running another plugin there for using FB connect. I suspect there is a conflict there, most likely with JS.
The best way to debug would be deactivating all other plugins, reverting to Twenty Eleven theme and then testing again. Once you confirm it then works, reactivate each one, one at time until you find the issue.
You will then know the plugin which its conflicting with.
Yup Tims right I had a similar FB issue earlier and I think it was a duplicate case of <div id='fb-root'> or FB.init
If you are using two FB plugins then go to one of them and change the setting to: "my page already loads FB javascript" or similar. All the WPMU DEV plugins Ive seen have this handy option to stop multiple JS calls.
Responses (9)
Ach Crivvens — 6th February 2012 (3 months ago) #
Hi Pali,
So you have the following before your content div:
<?php if( is_user_logged_in() ) : ?>But do you have the closing end if after the content:
<?php endif; ?>Sorry if thats obvious but just thought Id check as wasnt clear from above.
If you have this code in the right places none of the content will be displayed when the user is not logged in.
But will this display the login form still if not you could use an else statement to display a login form
A link to your site would help so I can check your code.
Hope that helps
Member — 6th February 2012 (3 months ago) #
Hi there,
Yes, I do have the EndIf in place according to Richie's instructions. My site is http://qiaccess.com. I have a FB login on the front page, but that isn't working either! Also have a Forum request open for that. Many thanks for your time.
Ach Crivvens — 6th February 2012 (3 months ago) #
OK dude I just tried this technique on a test site and it worked as you can see: http://www.thepathwebdesign.com/testsites/wordpress/
So I had this at the top:
So I put the
<?php if( is_user_logged_in() ) { ?>in the content div but before the do action bitty.Then to close the if I have this:
Again note the
<?php } ?>before the closing content div.Can you try it this way please and let me know if that works for you. If it doesnt would you give me ftp access so I can check your php code?
Cheers
Support Chimp — 6th February 2012 (3 months ago) #
Hey Pali Baacsi, hope you are well today! :-)
How are you going with this?
If you still need some help could you please post your pages full code to PasteBin?
http://pastebin.com/
That will enable us to see the code in full. :-)
Take care.
Member — 7th February 2012 (3 months ago) #
Hi Timothy,
Tonight I'm flying, so I am mostly incommunicado. Short layover in LA before a red-eye! Here is my PasteBin http://pastebin.com/1WnTVmX0
Support Chimp — 7th February 2012 (3 months ago) #
So you want to hide all the content below right?
If so then here you go:
http://pastebin.com/97JtuYdA
That will do it for :-)
Take care
Member — 7th February 2012 (3 months ago) #
Hiya Timothy,
One would think that would work, pretty sure I tried that already. Something must be going on with the theme. Did you notice that there is an End if that is commented out? Not sure why. I didn't do it. Also I'm having trouble with the Facebook plugin on the home page. It works fine from http://qiaccess.com/wp-login.php, but not the home page, neither as a Shoicode nor a widget.
Support Chimp — 7th February 2012 (3 months ago) #
Hey Pali.
I had issues with my net connection earlier and had to use a 3G tethered connection. My BB is now fully back. :-) I just tested what I sent you and it does work for me.
Please confirm when you can try it with your install.
Well I see you are running another plugin there for using FB connect. I suspect there is a conflict there, most likely with JS.
The best way to debug would be deactivating all other plugins, reverting to Twenty Eleven theme and then testing again. Once you confirm it then works, reactivate each one, one at time until you find the issue.
You will then know the plugin which its conflicting with.
Let me know how you get on.
Take care.
Ach Crivvens — 7th February 2012 (3 months ago) #
Yup Tims right I had a similar FB issue earlier and I think it was a duplicate case of
<div id='fb-root'>or FB.initIf you are using two FB plugins then go to one of them and change the setting to: "my page already loads FB javascript" or similar. All the WPMU DEV plugins Ive seen have this handy option to stop multiple JS calls.
:D Hope you sort it dude.
Become a member