Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-05-2010, 10:28 PM
ltwonet ltwonet is offline
 
Join Date: Aug 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 08-05-2010, 11:57 PM
ltwonet ltwonet is offline
 
Join Date: Aug 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
	}
Where/what changes do I need to do to move it to this location.
Attached Images
File Type: jpg stylecontinued4.jpg (95.6 KB, 0 views)
Reply With Quote
  #3  
Old 08-07-2010, 01:26 AM
downloadsuk downloadsuk is offline
 
Join Date: Jul 2010
Location: China
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ltwonet View Post
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.
Well it looks like it's your lucky day my friend. I'm doing exactly the same thing.

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));
that will make the facebook header display in the navbar. So far i haven't needed to modify anything else.

Hope that helps. Any questions, just ask.
Reply With Quote
  #4  
Old 08-07-2010, 12:04 PM
ltwonet ltwonet is offline
 
Join Date: Aug 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by downloadsuk View Post
Well it looks like it's your lucky day my friend. I'm doing exactly the same thing.

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));
that will make the facebook header display in the navbar. So far i haven't needed to modify anything else.

Hope that helps. Any questions, just ask.
Helps alot thank you very much.
Reply With Quote
  #5  
Old 08-10-2010, 05:29 AM
ifitsmedia ifitsmedia is offline
 
Join Date: Jul 2010
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by downloadsuk View Post
You have to create your own addon at template hook "parse_templates" location that fires this code:
Can you explain this more?
Reply With Quote
  #6  
Old 08-19-2010, 02:17 AM
fishmaster fishmaster is offline
 
Join Date: Nov 2006
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone dumb this down some more please..
Reply With Quote
  #7  
Old 08-20-2010, 02:25 PM
vivamexico55 vivamexico55 is offline
 
Join Date: Apr 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fishmaster View Post
can someone dumb this down some more please..
+1

--------------- Added [DATE]1282318209[/DATE] at [TIME]1282318209[/TIME] ---------------

Quote:
Originally Posted by downloadsuk View Post
Well it looks like it's your lucky day my friend. I'm doing exactly the same thing.

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));
that will make the facebook header display in the navbar. So far i haven't needed to modify anything else.

Hope that helps. Any questions, just ask.
Please tell me if I'm wrong:

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?
Reply With Quote
  #8  
Old 08-20-2010, 04:23 PM
GONUMBER6's Avatar
GONUMBER6 GONUMBER6 is offline
 
Join Date: Jan 2010
Location: Sunny Arizona
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried it, it did not work. Connect button is still next to log in.
Reply With Quote
  #9  
Old 08-30-2010, 12:10 PM
FASEOFMARS FASEOFMARS is offline
 
Join Date: Mar 2010
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by downloadsuk View Post
Well it looks like it's your lucky day my friend. I'm doing exactly the same thing.

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));
that will make the facebook header display in the navbar. So far i haven't needed to modify anything else.

Hope that helps. Any questions, just ask.
i have done that but it does not seem to change anything..

is their another step?
Reply With Quote
  #10  
Old 09-13-2010, 02:50 PM
themagicm themagicm is offline
 
Join Date: Jul 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:23 AM.


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.04240 seconds
  • Memory Usage 2,282KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete