The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Okay,
First of all I apologize my mind has completely shut down on me - too many things happening and not enough sleep - I found a modification for vb3.8 about adding social network links to a postbit however would like it to be updated to vb4. Below is the code: Code:
<div align="center"> My Social Networks:<br /><br /> <if condition="is_member_of($bbuserinfo, 2, 6, 7, 9)"> <if condition="$post['field5']"> <a href="https://twitter.com/$post[field5]" target="_blank"> <img alt="Twitter" border="0" src="$stylevar[imgdir_misc]/twitter.png"/></a></if> <if condition="$post['field6']"> <a href="https://facebook.com/$post[field6]" target="_blank"> <img alt="Facebook" border="0" src="$stylevar[imgdir_misc]/facebook.png"/></a></if> <if condition="$post['field7']"> <a href="https://myspace.com/$post[field7]" target="_blank"> <img alt="MySpace" border="0" src="$stylevar[imgdir_misc]/myspace.png"/></a></if> </div> </if> I am working on my postbit stuff at the moment and this would be a great addition. Thank you to all in advance. |
#2
|
|||
|
|||
![]()
This should work?
Code:
<div align="center"> My Social Networks:<br /><br /> <vb:if condition="is_member_of($post, 2, 6, 7, 9)"> <vb:if condition="$post['field5']"> <a href="https://twitter.com/$post[field5]" target="_blank"> <img alt="Twitter" border="0" src="$stylevar[imgdir_misc]/twitter.png"/></a></if> <vb:if condition="$post['field6']"> <a href="https://twitter.com/$post[field6]" target="_blank"> <img alt="Twitter" border="0" src="$stylevar[imgdir_misc]/facebook.png"/></a></if> <vb:if condition="$post['field7']"> <a href="https://twitter.com/$post[field7]" target="_blank"> <img alt="Twitter" border="0" src="$stylevar[imgdir_misc]/myspace.png"/></a></if> </div> </vb:if> |
#3
|
|||
|
|||
![]()
Thanks for the help however it comes up with:
Quote:
|
#4
|
|||
|
|||
![]()
I forgot the vb: after all the images I made them just if statements. Sorry
|
#5
|
|||
|
|||
![]()
lol thanks I sorted it all out and was looking good then realised the links were wrong apparently you cant use $post[field7] or whatever it is so am going to go searching now.
Really thanks for your help though I appreciate it. I have it elsewhere so shouldn't take me long to work this out now my mind is working again --------------- Added [DATE]1278648986[/DATE] at [TIME]1278648986[/TIME] --------------- I don't know if this is correct however it got it working on my website and thought I would post it here incase someone else is looking to do the same thing. For the links I put: Code:
{vb:raw post.field7} |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|