![]() |
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 |
All times are GMT. The time now is 05:43 AM. |
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:
|