I've done a search, and gone a little cross-eyed trying to figure this out, coming close, but not close enough
A friend suggested this code -
Though as it was from an older version of vb didn;t work on mine :s
So I had a play and came up with this, thinking it might work as it was purely extending the logic of the other bits of my postbit legacy and applying them as above
Well, trying to save that throws a fatal error in my face -
where /....../ is the begiing of the url
So..... What, where & how? I gotta be close, but have I got to define something else somewhere or somehow, if so, would really appreciate a pointer or two on this!
Also, as I wanna do the same for 2 other clickable links, but with images, how much different would that be from the code my buddy provided here -
A friend suggested this code -
Code:
<if condition="$post['field5']">Twitter: <a href="http://twitter.com/$post[field5]" target='_blank' style="text-decoration: none;"> @$post[field5] </a> <br /> </if>
So I had a play and came up with this, thinking it might work as it was purely extending the logic of the other bits of my postbit legacy and applying them as above
Code:
<vb:if condition="$post['field5']"><dt>{vb:rawphrase twitter}</dt> <dd><a href="http://twitter.com/{vb:twitter post.field5}" target='_blank' style="text-decoration: none;"> {vb:twitter post.field5}</a></dd></vb:if>
Code:
Fatal error: Uncaught exception 'Exception' with message 'Unable to find a class to validate: vB_TemplateParser_Curlytwitter' in /....../forum/includes/class_template_parser.php:1028 Stack trace: #0 /....../forum/includes/adminfunctions_template.php(2750): vB_TemplateParser->validate(Array) #1 /....../forum/admincp/template.php(2108): compile_template('{vb:raw templat...') #2 {main} thrown in /....../forum/includes/class_template_parser.php on line 1028
So..... What, where & how? I gotta be close, but have I got to define something else somewhere or somehow, if so, would really appreciate a pointer or two on this!
Also, as I wanna do the same for 2 other clickable links, but with images, how much different would that be from the code my buddy provided here -
Code:
<if condition="$post['field6']"><a href="http://www.facebook.com/$post[field6]" target='_blank' "> <img alt="My Facebook" border="0" src="..../images/misc/facebook.png" border="0"/> </a> </if>
Comment