![]() |
How to hide FB Connect button on certain pages?
1 Attachment(s)
I hide the FB Connect button to non-members and only display it to logged in members. But, when I log out it shows up on the page that displays the cleared cookies. How can I hide the FB Connect button from this page only? Specifically, all iterations of login.php? Can I run CSS code only when the page was loaded and I'll just do "display:none" and be done with it? Or do I have to do a conditional statement like I had to do to hide the button from non-members? It breaks my style and looks wrong too.
|
You can add to your condition something like THIS_SCRIPT == 'login'
|
Would this work? I'm still new to PHP conditionals. <vb:if "THIS_SCRIPT == 'login'">Content here</vb:if>
|
That should work. Just try it on your test site and you will see.
|
Tried it and it threw out an error. I used exactly what I wrote in the post above yours.
The following error occurred when attempting to evaluate this template: An empty or invalid 'if' condition was found. EDIT: Tried <vb:if condition="THIS_SCRIPT == 'album'">Content here</vb:if> and it worked, but I've run into another problem. Apparently you can't nest if/else conditionals or I did it incorrectly. Is there another way to accomplish this? I only want the FB connect button to show up to logged in users, but for some reason when you log out it still thinks you're a logged in user and shows the Connect button anyways. This is what I tried: Code:
<!-- If Template=Login then hide FB Connect Button --> <vb:if condition="$bbuserinfo['userid'] == 0"> EDIT3: I tried <vb:if condition="$show['member']"> instead of <vb:if condition="$bbuserinfo['userid'] == 0"> and it's working now :) Thanks Lynne for working me through it. Could you please take a look at another problem I'm having in regards to none of the human verification questions working? Also please mark this thread Solved :) |
All times are GMT. The time now is 08:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|