Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
UKBL ~ FaceBook profile link in Postbit ~ Clickable !! Details »»
UKBL ~ FaceBook profile link in Postbit ~ Clickable !!
Version: 1.00, by TheLastSuperman (Senior Member) TheLastSuperman is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 01-17-2010 Last Update: Never Installs: 60
Supported Template Edits
Re-useable Code Additional Files Translations  

This is a super simple template edit that will allow your members to share their Facebook Profile with others .

You simply create a new user profile field and make one template edit and then your members do the rest and your all set!

Full Credit for this mod goes to UKBL, requested by taffy056 for use with vBulletin 4.0 Series here:

https://vborg.vbsupport.ru/showthread.php?p=1929367

And via PM to me

I did not realize UKBL had stated "Re-Usable" Code or I would have released this sooner However again I must make it clear that full credit goes to UKBL and per his thread the idea was presented to him by DobieGillis.

You can add your own links to postbit by following this same method just redoing the code snippets a bit so in essence you can have Facebook, Twitter, Myspace, LinkedIn and many more just by playing with the code a bit .

Screenshots are in UKBL's original thread and I just tested and verified this to be working on a 4.0.1 forum however it should be perfectly usable on any 4.0.x series. Please refer to the Install.txt file in the .zip for instructions on how to add this to your forum and Enjoy!

Sincerely,

TheLastSuperman

Download Now

File Type: zip UKBLFaceBook.zip (4.2 KB, 371 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-03-2010, 11:40 AM
SLY LS1's Avatar
SLY LS1 SLY LS1 is offline
 
Join Date: May 2007
Location: Melbourne Australia
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by worried View Post
Thanks!

I couldn't get facebook to open in a new window until I move the target_blank here:

Code:
<a href="http://www.facebook.com/home.php/#/profile.php?id={vb:raw post.field99}&ref=profile" target="_blank">
Yes that is correct,

This is a very simple mod but has been made very hard by the way the instruction have been written, they need to be writtin in the standard mod form.


Heres some more if anyone wants them, Facebook - Twitter - Youtube - My Space - Car Domain

Just add a new profile field as per this mod for each one, then change the profile fields XX below to match, save the images at the bottom of this post to your forum/images/misc folder - anyone who has done the mod above will get the drift

Code:
<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7,10)">
<vb:if condition="$post['fieldXX']">
<a href="http://www.facebook.com/home.php/#/profile.php?id={vb:raw post.fieldXX}&ref=profile" target="_blank"/>
<img src="images/misc/facebook.png" alt="My Facebook" style="border-style: none" ></a>
</vb:if>
</vb:if>

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7,10)">
<vb:if condition="$post['fieldXX']">
<a href="http://twitter.com/{vb:raw post.fieldXX}" target="_blank"/>
<img src="images/misc/twitter.png" alt="My Twitter" style="border-style: none" ></a>
</vb:if>
</vb:if>

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7,10)">
<vb:if condition="$post['fieldXX']">
<a href="http://www.youtube.com/{vb:raw post.fieldXX}" target="_blank"/>
<img src="images/misc/youtube.gif" alt="My Youtube" style="border-style: none" ></a>
</vb:if>
</vb:if>

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7,10)">
<vb:if condition="$post['fieldXX']">
<a href="http://www.myspace.com/{vb:raw post.fieldXX}" target="_blank"/>
<img src="images/misc/myspace.gif" alt="My Space" style="border-style: none" ></a>
</vb:if>
</vb:if>

<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7,10)">
<vb:if condition="$post['fieldXX']">
<a href="http://www.cardomain.com/ride/{vb:raw post.fieldXX}" target="_blank"/>
<img src="images/misc/cardomain.gif" alt="My Car Domain" style="border-style: none" ></a>
</vb:if>
</vb:if>




Reply With Quote
  #23  
Old 04-16-2010, 08:31 PM
ARPRDcom ARPRDcom is offline
 
Join Date: Mar 2010
Location: USA
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added works great ... I had to do some tweaking though to meet the style I wanted.. I added Facebook, Twitter, YouTube, FriendFeed, and ArticleProductions (my own site has user profiles).

James
Reply With Quote
  #24  
Old 10-02-2010, 10:07 AM
taffy056 taffy056 is offline
 
Join Date: Sep 2004
Location: In a house in Wales ;)
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is still working great thanks

But got a question about the code abqtj posted that is in post 2, I would like to force my users to place their facebook id, so that means that if they supply it in one field they don't need it in the other, but the fields don't appear to work in that way, is there some way to do this ?

Thanks
Reply With Quote
  #25  
Old 10-07-2010, 02:55 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by taffy056 View Post
This is still working great thanks

But got a question about the code abqtj posted that is in post 2, I would like to force my users to place their facebook id, so that means that if they supply it in one field they don't need it in the other, but the fields don't appear to work in that way, is there some way to do this ?

Thanks
That is an example of both versions he came up with

So use the top or bottom half only, the bottom will display the vanity name if you wish.
Reply With Quote
  #26  
Old 01-16-2011, 05:31 PM
Jaske's Avatar
Jaske Jaske is offline
 
Join Date: Apr 2010
Location: South Philadelphia
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this mod and it does work, but it isn't inline with the yahoo and aol icons...

any idea on how to fix it? thanks.

*EDIT-nevermind I placed the code after the </div> and that was messing it up...it's fixed now. thanks.
Reply With Quote
  #27  
Old 01-17-2011, 04:14 PM
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Mod, but I'm having alignment problems as well.

One profile it shows up exactly where I want it (Sombeech)

but on another (and there have been a few others) it shows up right next to the avatar.

The one difference is the "BigShot" badge under the avatar. How can I make the fb image appear under all of that, and next to where the others would be, say Yahoo IM?

I've got a shot of my settings, and the edit to my postbit_legacy template. I'd love to get this fixed.

Thanks.
Attached Images
File Type: png 1.png (26.2 KB, 0 views)
File Type: png 2.png (43.7 KB, 0 views)
File Type: png 3.png (33.7 KB, 0 views)
File Type: png 4.png (27.3 KB, 0 views)
Reply With Quote
  #28  
Old 01-17-2011, 04:23 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bogley View Post
Great Mod, but I'm having alignment problems as well.

One profile it shows up exactly where I want it (Sombeech)

but on another (and there have been a few others) it shows up right next to the avatar.

The one difference is the "BigShot" badge under the avatar. How can I make the fb image appear under all of that, and next to where the others would be, say Yahoo IM?

I've got a shot of my settings, and the edit to my postbit_legacy template. I'd love to get this fixed.

Thanks.
Take all the highlighted code from that last attachment, everything except the last </vb:if> and paste it above that </div> and right after the skypeicon} add one little space and paste, that should sort it .
Reply With Quote
  #29  
Old 01-17-2011, 04:34 PM
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
Take all the highlighted code from that last attachment, everything except the last </vb:if> and paste it above that </div> and right after the skypeicon} add one little space and paste, that should sort it .

YES!

Awesome, thanks. That did it.
Attached Images
File Type: png 5.png (27.3 KB, 0 views)
Reply With Quote
  #30  
Old 03-06-2011, 12:23 PM
PiroX's Avatar
PiroX PiroX is offline
 
Join Date: Jun 2009
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i modified it a bit so that you also can enter your facebook username

Code:
<vb:if condition="$post['field27']">
<vb:if condition="is_numeric($post['field27'])">
<a href="http://www.facebook.com/profile.php?id={vb:raw post.field27}" target="_blank">
<vb:else />
<a href="http://www.facebook.com/{vb:raw post.field27}" target="_blank">
</vb:if>
<img width="18" height="17" alt="Fb" title="Facebook profile" border="0" src="http://www.yoursite.com/forum/images/misc/facebook.png" /></a>
</vb:if>
it works now with "Username" like www.facebook/test
Reply With Quote
  #31  
Old 03-07-2011, 01:06 AM
zeus_r6 zeus_r6 is offline
 
Join Date: Jun 2007
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PiroX View Post
i modified it a bit so that you also can enter your facebook username

Code:
<vb:if condition="$post['field27']">
<vb:if condition="is_numeric($post['field27'])">
<a href="http://www.facebook.com/profile.php?id={vb:raw post.field27}" target="_blank">
<vb:else />
<a href="http://www.facebook.com/{vb:raw post.field27}" target="_blank">
</vb:if>
<img width="18" height="17" alt="Fb" title="Facebook profile" border="0" src="http://www.yoursite.com/forum/images/misc/facebook.png" /></a>
</vb:if>
it works now with "Username" like www.facebook/test
A big high five for that addition!
Reply With Quote
Reply

Thread Tools

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 11:59 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.11470 seconds
  • Memory Usage 2,356KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete