![]() |
UKBL ~ FaceBook profile link in Postbit ~ Clickable !!
1 Attachment(s)
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 :p 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 :D. 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 :D and Enjoy! Sincerely, TheLastSuperman |
Quick tips!
1. How 2 Guide - Template Conditionals A Conditional If Statement simply put will show something to a user based on IF this or IF that SHOW them THIS. Very simple to follow once you initially grasp it so don't let it trick or fool you ;) Here's an Example: Code:
<vb:if condition="$show['member']"> You can edit your styles templates by going to AdminCP > Style & Templates > Style Manager Now I would create a Child Style to test with so you don't mess up your Live sites style... AdminCP > Style & Templates > Style Manager > Select the style and to the right click the drop down and select "Add Child Style" and leave it all alone except change "Allow User Selection" to NO this way you can tinker with it behind the scenes ;). Then You'll see the new style and click the drop down on the right and choose "Edit Templates" now go down and double click "Header" then at the very top type in TESTING 123 hit save & reload then select the style since you can as an admin and in that style at the very top you'll now see TESTING123 in plain old text :D. You just edited your first template... now yes your right... you can do that but with all sorts of codes just be careful as some can make the style go :p on you so it will require a slight learning curve... and conditionals? Code:
<vb:if condition="$show['guest']"> Now refresh your page (your still logged in as an admin) and now it's gone, it is only showing to visitors or Guests of the forum i.e. non-logged in users :D. Edit: Look what I just found :D https://vborg.vbsupport.ru/showthread.php?t=231525 and special Thanks to BBR-APBT for taking the time to post it up ;) 2. How 2 Guide - Use Facebook ID# OR Name Revised Code by Steve to show using Facebook ID number and "Vanity" profile name i.e. if you have already selected your custom Facebook URL i.e. mine is no longer a number it is thelastsuperman :D. Quote:
|
Installed and still tweaking it to get it to work...should be good, though!
|
Quote:
Mike |
Cheers Mike.
How is Gerry havent seen him in ages? |
I like the idea, but could you be a little more explainable in your text file for us beginners!
It says add template conditional. Umm where do i add this? Also How do I add the box around the section, as seen in the original posts on the profile page. Mine just shows all the text scrunched together with no enclosed box. |
Quote:
I think I got it. I edited the postbit_legacy, not postbit. Went back and edited postbit and it shows up fine. I do not know what the difference is in those two spots, I suppose. |
I'm also asking how do I add the conditional??? Could someone please explain it to us noobs?
|
I went back to the 3.8 version to work out how to do this.
|
Quote:
Quote:
Quote:
PHP Code:
Quote:
Anything else feel free to post :D Sincerely, Mike |
cheers mate very much appreciate you porting this for me, and others now , it works fine for me :)
|
Quote:
Mike |
Thanks UKBL for the original mod!
|
Have installed this and working lovely (after a little tweaking to fit my forum layout).
Is there any way to have the facebook icon show up when viewing the who's online listing like you can with the msn/icq/etc icons? |
Quote:
Mike |
Thanks Mike .
Installed and Working fine. |
Quote:
|
Quote:
Look forward to an update :) |
how can add this information to a tab on user profile?
it will be great to add this widget: http://www.facebook.com/facebook-wid...filebadges.php https://vborg.vbsupport.ru/external/2010/01/10.jpg to the posbit legacy..or a tab on user profile... only show it writing the facebook user id.. |
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"> |
Quote:
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)"> http://www.lsxshootout.com.au/forum/...sc/twitter.png http://www.lsxshootout.com.au/forum/...sc/youtube.gif http://www.toughstreetcars.com/forum...im_myspace.gif http://www.toughstreetcars.com/forum..._cardomain.gif |
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 |
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 |
Quote:
So use the top or bottom half only, the bottom will display the vanity name if you wish. |
I installed this mod and it does work, but it isn't inline with the yahoo and aol icons...
https://vborg.vbsupport.ru/external/2011/01/26.jpg 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. |
1 Attachment(s)
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. |
Quote:
|
1 Attachment(s)
Quote:
YES! Awesome, thanks. That did it. :cool::cool::cool: |
i modified it a bit so that you also can enter your facebook username
Code:
<vb:if condition="$post['field27']"> |
Quote:
|
All times are GMT. The time now is 05:20 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|