|
|
Re: Wrap text around images [message #164064 is a reply to message #164063] |
Sun, 02 January 2011 11:05 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
add to buddy list ignore all messages by this user
|
|
What he wants are images/buttons for the FUD_CODE in post_common.tmpl to "automatically" insert [imgl] and [imgr] tags.
You can take the images I posted and cut away the background, or you can make your own.
Here is the code that goes into post_common.tmpl -> fud_code_icons
<a onclick="surroundText('[imgl]', '[/imgl]', document.post_form.msg_body); return false;" href="javascript:void(0);" title="Image Left">
<img src="{THEME_IMAGE_ROOT}/b_imagel.gif" alt="Image Left">
</a>
<a onclick="surroundText('[imgr]', '[/imgr]', document.post_form.msg_body); return false;" href="javascript:void(0);" title="Image Right">
<img src="{THEME_IMAGE_ROOT}/b_imager.gif" alt="Image Right">
</a>
Ginnunga Gaming
[Updated on: Sun, 02 January 2011 11:10] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Aw: Re: Wrap text around images [message #165880 is a reply to message #164117] |
Fri, 19 August 2011 09:45 |
JanRei
Messages: 361 Registered: October 2005 Location: Germany
Karma: 0
|
Senior Member Contributing Core Developer Translator |
remove from buddy list ignore all messages by this user
|
|
I have seen the added help section and would like to suggest a slightly improved explanation:
<a name="imglr"><b>Wrap text around images</b></a>
<br />
<table>
<tr>
<td width="300" align="center" valign="middle"><b>BBcode</b></td>
<td width="300" align="center" valign="middle"><b>Result</b></td>
</tr>
<tr>
<td valign="middle" align="center"><font color="#f00"><b>[imgr]</b></font><br /><font color="#060">http://fudforum.org/forum/images/fudlogo.gif<br /></font><font color="#f00"><b>[/imgr]</b></font><br />Some text to the left.</td>
<td valign="middle" align="center"><img class="r" src="http://fudforum.org/forum/images/fudlogo.gif" alt="Image with text wrapped around it" width="140" height="49" />Some text to the left.</td>
</tr>
</table>
<i>Explanation:</i> You can use BBcode to wrap text smoothly around images by enclosing the image url within [imgl][/imgl] "image left" or [imgr][/imgr] "image right" tags. These may also be used in conjunction with other text alignment and styling tags.
<br /><br />
Locally I also have a German translation for this. And I have fixed the URL to the FUDforum logo for all languages. But I thought I ask you before committing it.
[Updated on: Fri, 19 August 2011 09:46] Report message to a moderator
|
|
|
|
|
|