PDA

View Full Version : Trouble with $show['facebookuser']


JimL
09-15-2011, 06:30 PM
I suddenly only get the "Connect" button on my page header, yesterday everything was working as expected. Ie: user who has connected gets facebook icon over facebook avatar miniature.

It seems like show facebookuser isn't true even though the user IS connected.

I have this code in facebook header<li id="fb_headerbox" style="height:0px">
<vb:if condition="$show['facebookuser']">
<a id="fb_link" href="{vb:raw profileurl}">
<img id="fb_squarepic" width="16" height="16" alt="{vb:rawphrase facebook_connect}" src="{vb:raw squarepicurl}" />
<img id="fb_icon" width="14" height="14" alt="{vb:rawphrase facebook_connect}" src="{vb:stylevar imgdir_misc}/facebook.gif" />
</a>
<vb:else />
<a id="fb_loginbtn" href="#"><img src="{vb:stylevar imgdir_misc}/facebook_login.gif" alt="{vb:rawphrase facebook_connect}" /></a>
</vb:if>
</li>


I tried changing it to this just to check that it still works<li id="fb_headerbox" style="height:0px">
<a id="fb_link" href="{vb:raw profileurl}">
<img id="fb_squarepic" width="16" height="16" alt="{vb:rawphrase facebook_connect}" src="{vb:raw squarepicurl}" />
<img id="fb_icon" width="14" height="14" alt="{vb:rawphrase facebook_connect}" src="{vb:stylevar imgdir_misc}/facebook.gif" />
</a>
</li>


This gave me the user connected miniatures.

Where in the code is the show facebookuser variable set?

This user IS connected:
https://vborg.vbsupport.ru/attachment.php?attachmentid=133013&stc=1&d=1316123023

Lynne
09-15-2011, 08:45 PM
Doing a search on "facebookuser" in the vb files gives me the php files class_bootstrap.php and functions_facebook.php

JimL
09-16-2011, 10:14 AM
Hm, they are both there and functions_facebook includes code for checking if user is or isn't facebook connected.

damn, I have no idea why it doesn't seem to work. Checked two different users with ie/firefox/chrome

--------------- Added 1316172286 at 1316172286 ---------------

Fixed
<vb:if condition="$vboptions['enablefacebookconnect']">
{vb:raw facebook_footer}
</vb:if>This wasn't in my footer, for some reason.