MyBB Community Forums

Full Version: Code [Advanced. Maybe?]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Righeto this is my postbit right now.

http://i.imgur.com/9SEYT.png

What would be fantastic is for example Twitter: JamieBondinKing and you could click the JamieBondinKing which would redirect to www.twitter.com/JamieBondinKing

Is this even possible? I'd have no chance with the codes so any help would be grateful!!
you want it in the author area or in the posts to be linked?
Edit : not seen above response Smile

what is the present code you have to show the twitter id on postbit template ..
Just want it so you can click the JamieBondinKing text.

These are the codes for all the images, twitter etc.

<if !empty($post['fid14']) then>

<img src="images/twittxbox360/facebook.png" alt="" /><b>:</b> &nbsp;{$post['fid14']}

</if>

<br />
<if !empty($post['fid6']) then>

<img src="images/twittxbox360/twitter.png" alt="" /><b>:</b> &nbsp;{$post['fid6']}<br />

</if>

<if !empty($post['fid8']) then>

<img src="images/twittxbox360/360.png" alt="" /><b>:</b> &nbsp;{$post['fid8']}<br />

</if>

<if !empty($post['fid9']) then>

<img src="images/twittxbox360/ps3.png" alt="" /><b>:</b> &nbsp;{$post['fid9']}<br />

</if>

<if !empty($post['fid10']) then>

<img src="images/twittxbox360/youtube.png" alt="" /><b>:</b> &nbsp;{$post['fid10']}<br />

</if>

<if !empty($post['fid13']) then>

<img src="images/twittxbox360/skype.png" alt="" /><b>:</b> &nbsp;{$post['fid13']}<br />

</if>

<if !empty($post['fid11']) then>

<img src="images/twittxbox360/steam.png" alt="" /><b>:</b> &nbsp;{$post['fid11']}<br />

</if>

<if !empty($post['fid12']) then>

<img src="images/twittxbox360/lastfm.png" alt="" /><b>:</b> &nbsp;{$post['fid12']}<br />

</if>
that is standard HTML. Use

<img src="images/twittxbox360/ps3.png" alt="" /><b>:</b> &nbsp;<a href="http://www.twitter.com/#!/{$post['fid9']}" target="_blank">{$post['fid9']}</a><br />
Hmm dont seem to be working.
Dont matter sorted!
glad its working, but my code should have worked unless you have some setting in the php in templates plugin that does not allow a tags. also, the fidX needs to be changed for the correct Twitter field you have.