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)); 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']"> 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']"> |
Hi, why would i want to do this?
maybe i can move al JS to the footer area to gain some "spee" ? |
nice and simple
that is what i like |
Works like a charm, thanks.
|
Hi thank you,
but on my vb 4.1.5 not found..!!! Thank you |
If I want to have facebook connect on header and X_template, will this work or only where i move?
|
Characterized by simplicity and ease
Thank you :) |
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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|