vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   Move Facebook Connect (https://vborg.vbsupport.ru/showthread.php?t=251055)

Necrovaris 09-22-2010 10:00 PM

Move Facebook Connect
 
This explains how to move the facebook connect to any template you wish.
Items in red are things you need to change and will have an explination in brackets


1) Go to your Admin CP > Plugins and Products > Add New Plugin

2) In The Fields enter as below

Hook Location - parse_templates
Title - Move Facebook Connect to xxxxxxx (whichever template you are moving it to)
Plugin is Active - Yes
Plugin PHP Code
Code:

vB_Template::preRegister('xxxxx', array('facebook_header' => $facebook_header));
(the exact name of the template you are moving it to)
Save and reload

3) In Admin CP > Styles and Templates > Style Manager > select style > edit templates > header

Open up the header template, find the code

Code:

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

And remove it. Save the template.


4) Open up your template you selected in step 2, and place the code below whereever you wish to move your facebook connect to.

Code:

<vb:if condition="$vboptions['enablefacebookconnect']">
<ul style="float:right; clear:none;">
{vb:raw facebook_header}
</ul>
</vb:if>

5) Save the template and your done!

LuisManson 10-13-2010 11:19 AM

Hi, why would i want to do this?
maybe i can move al JS to the footer area to gain some "spee" ?

abdobasha2004 10-29-2010 01:08 PM

nice and simple
that is what i like

Duncan 10-29-2010 10:10 PM

Works like a charm, thanks.

Ricsca 11-30-2011 03:36 PM

Hi thank you,
but on my vb 4.1.5 not found..!!!

Thank you

Bisha 12-02-2011 04:20 PM

If I want to have facebook connect on header and X_template, will this work or only where i move?

Dorgham 11-01-2012 08:52 PM

Characterized by simplicity and ease
Thank you :)

friendlymela 07-21-2015 03:56 PM

useful article


All times are GMT. The time now is 02:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01098 seconds
  • Memory Usage 1,715KB
  • 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
  • (8)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