The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adding Facebook Icon to Postbit
I'm looking to add a link to my postbit legacy to a member's Facebook account. I've seen the modification for this, but it seems more involved than it really needs to be. I looked at the postbit legacy template and found the portion of the code where the other icons are listed. It looks like it could be added a lot easier.
Here's the piece of code I'm looking at: Code:
<div class="imlinks"> {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon} </div> Now for each of these references to the icq, aim, msn, and other icons, where are they being referred from? I'd like to simply be able to add {vb:raw post.facebookicon} to this part of the code, but what's the other part that I'm missing? Obviously, it must be referring to the image file and also a url, but beyond that I'm lost. Thanks for any thoughts. |
#2
|
||||
|
||||
Make a custom profile field for your facebook link, then do
Code:
{vb:raw post.fieldXX} |
#3
|
||||
|
||||
That will add the image file and link without anything else being coded anywhere else?
Edit: That only adds the member's Facebook ID number to the postbit. |
#4
|
|||
|
|||
Code:
<vb:if condition="$post['fieldX']"><a href="http://facebook.com/$post[fieldX]"><img src="http://facebook.com/favicon.ico" /></a></vb:if> You may want to save the facebook icon to your server and do a relative link <img src="/images/facebookicon.gif" /> |
#5
|
||||
|
||||
Thanks for the reply.
Well, I accomplished what I wanted to accomplish, I just wanted to know what else I'd have to add so I'd be able to just add that one piece of code. It must call on some other piece of code somewhere. |
#6
|
|||
|
|||
The $post array must store the values, so you need to search for where the other icons are and add it.
|
#7
|
|||
|
|||
Hmm... I'm looking to add Linkedin, Facebook, and Twitter as options.
I'm going to skim over this thread and see if there is enough information for me to figure out how to accomplish this, but it also seems like something others have surely done already. So I'm posting a reply to bump the thread. Please chime in if you have any experience with such a modification. Or if there is an article that covers this territory that could help enlighten me, please point me to it. Thank you graciously. |
#8
|
||||
|
||||
I think that's what I meant to ask for from the beginning. Thank you.
|
#9
|
|||
|
|||
If the icons show in the postbit, which is on showthread.php, check the showthread.php page for $post[aimicon] etc.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|