The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
UKBL ~ FaceBook profile link in Postbit ~ Clickable !! Details »» | ||||||||||||||||||||||||
UKBL ~ FaceBook profile link in Postbit ~ Clickable !!
Developer Last Online: Oct 2023
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
Supporters / CoAuthors Show Your Support
|
Comments |
#2
|
||||
|
||||
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']"> This conditional seen above starting with vb:if will only show the code in between the beginning and the end vb:if it is ended by the slash seen below / </vb:if> 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 . 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 on you so it will require a slight learning curve... and conditionals? Code:
<vb:if condition="$show['guest']"> TESTING 123 </vb:if> 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 . Edit: Look what I just found 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 . Quote:
|
#3
|
|||
|
|||
Installed and still tweaking it to get it to work...should be good, though!
|
#4
|
||||
|
||||
Quote:
Mike |
#5
|
||||
|
||||
Cheers Mike.
How is Gerry havent seen him in ages? |
#6
|
|||
|
|||
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. |
#7
|
|||
|
|||
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. |
#8
|
|||
|
|||
I'm also asking how do I add the conditional??? Could someone please explain it to us noobs?
|
#9
|
|||
|
|||
I went back to the 3.8 version to work out how to do this.
|
#10
|
||||
|
||||
I hope he is doing very well I have not heard from him but do know something came up in real life and I would like to wait for him to come back and let everyone know. I only released this because a few requested and UKBL makred it as re-usable code but I don't care about installs only helping when I have spare time to however when he returns I get to bug Paul M to change the threads owner to UKBL lol
Quote:
Quote:
PHP Code:
Quote:
Anything else feel free to post Sincerely, Mike |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|