The Arcive of vBulletin Modifications Site. |
|
How to : wrap text around an image... within the news section Details »»
|
|||||||||||||||||||||||||||
|
How to : wrap text around an image... within the news section
Developer Last Online: Jun 2006
Hello all.
I intend to install VBadvanced and I'm trying to find a way to make it so the text is wrapped around the image, in the news section of the frontpage. I guess I have to find a way to do this within the posts (in the NEWS forum) where the news come from, right? I've seen that at a site. Here is a screenie where the text is wrapped around the right side of the image : ![]() Whereas here is a screenie where the text is under the image... (the default situation where the text is restricted above or below the image we post): ![]() I need to find a way to succeed in doing the first one - wrapping the text around the whole right side of the image.... Do I do it by enabling HTML at the forum where the news come from? And how? thanx in advance ![]() Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Well on this site the image is the user avatar. On my site I use the attachment feature for my images. I just did this:
Code:
<if condition="$news['attachmentid']"> <tr> <td align="justify" width="100%" valign="top" class="smallfont"> $attachment $news[message] </td> </tr> Code:
$attachment = '<a href="' . $vboptions['bburl'] . '/attachment.php?' . $session['sessionurl'] . 'attachmentid=' . $news['attachmentid'] . '" target="_blank"><img border="0" src="' . $vboptions['bburl'] . '/attachment.php?' . $session['sessionurl'] . 'attachmentid=' . $news['attachmentid'] . '&stc=1&thumb=1" /></a>'; Code:
$attachment = '<a href="' . $vboptions['bburl'] . '/attachment.php?' . $session['sessionurl'] . 'attachmentid=' . $news['attachmentid'] . '" target="_blank"><img align="left" vspace="3" hspace="3" border="0" src="' . $vboptions['bburl'] . '/attachment.php?' . $session['sessionurl'] . 'attachmentid=' . $news['attachmentid'] . '&stc=1&thumb=1" /></a>'; |
![]() |
|
|