The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Facebook Connect, Move
hi, Hopefully someone can help, I'd like to move the facebook Connect button/information to the Navbar area, I've tried copying the information in the header and putting it in the navbar but it just disappears and then doesn't work at all, can someone tell me how to move it.
|
#2
|
|||
|
|||
Looks like it might be possible via the CSS file vbulletin-chrome unfortantely I am not that familiar with building CSS.
Any help? Here are is what I was able to dig from the CSS file Code:
.toplinks ul.isuser li#fb_headerbox.hidden, .toplinks ul.nouser li#fb_headerbox.hidden { display: none; } .toplinks ul.isuser li#fb_headerbox a, .toplinks ul.nouser li#fb_headerbox a { padding-top: 0; background: none; cursor: pointer; } li#fb_headerbox a#fb_link { position: relative; } li#fb_headerbox a#fb_link #fb_squarepic{ position:absolute; right:-6px; top:5px; z-index:1; border:1px solid #B3CCE7; padding:1px; } li#fb_headerbox a#fb_link #fb_icon{ position:absolute; right:10px; top:1px; z-index:2; } |
#3
|
|||
|
|||
Quote:
You can move the code no problem - and its not the code thats wrong. Its the way VB executes its templates. The template has to be "registered" for use inside another template. From default, the facebook header template that gets called after the VB conditional in header is not registered for use in the navbar template. You have to create your own addon at template hook "parse_templates" location that fires this code: Code:
vB_Template::preRegister('navbar', array('facebook_header' => $facebook_header)); Hope that helps. Any questions, just ask. |
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
Can you explain this more?
|
#6
|
|||
|
|||
can someone dumb this down some more please..
|
#7
|
|||
|
|||
+1
--------------- Added [DATE]1282318209[/DATE] at [TIME]1282318209[/TIME] --------------- Quote:
1. Go to Plugins > Add plugin 2. Select parse_templates as hook location 3. Paste code and enable? And then move around the previously mentioned code for the FB button? Or is this more complicated than that? |
#8
|
||||
|
||||
Tried it, it did not work. Connect button is still next to log in.
|
#9
|
|||
|
|||
Quote:
is their another step? |
#10
|
|||
|
|||
anyone?
--------------- Added [DATE]1284394614[/DATE] at [TIME]1284394614[/TIME] --------------- ok guys, got it working with an example here: http://www.vbulletin.com/forum/showt...=move+facebook |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|