vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Trouble with $show['facebookuser'] (https://vborg.vbsupport.ru/showthread.php?t=270342)

JimL 09-15-2011 06:30 PM

Trouble with $show['facebookuser']
 
1 Attachment(s)
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
Code:

<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
Code:

<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/attachmen...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 [DATE]1316172286[/DATE] at [TIME]1316172286[/TIME] ---------------

Fixed
Code:

<vb:if condition="$vboptions['enablefacebookconnect']">
        {vb:raw facebook_footer}
</vb:if>

This wasn't in my footer, for some reason.


All times are GMT. The time now is 10:09 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
  • Page Generation 0.02097 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete