Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Positioning image
Rschneider
Posted on 09 Mar 2010, 16:43:28

Access: Member
Total Posts: 15
Joined: 2010-03-03

Hey guys,

New question,

First, I would like to know, how can I position my image to the left, using aling="left" or something similar (want to have image on the left and text wraped around it).

Secondly, I inserted the picture on my shortstory section, and it doesn't show on the page. It just shows a small link box with a link to the image, that when clicked gives me a forbiden access error.

EDIT: The problem with the picture not showing on my shortstory, is because I used $image_maxwidth = '100'; $image_maxheight = '100'; When I remove the resize order, it shows the picture, even though I still need to align it.

Appreciate your help
#2072
Last edited by Rschneider at 2010-03-09 17:03:28 Reason:
Rschneider
Posted on 09 Mar 2010, 17:46:51

Access: Member
Total Posts: 15
Joined: 2010-03-03

Alright, even though I wasn't able to fix my problem using the script, I managed to work around it using css. I didn't get the $image_maxheight / and $image_maxwidth to work either, so it was all css.

What I did, was to add to my css worksheet the following code:

Code:
#imageNews img {
float:left;
height:80px;
width:80px;
padding:1px; //personal preference here
}

Then, I went to my template, and on the place where I want my news to show:

Code:
<div id="imageNews">
{shortstory}
{story}
</div>

Now all I had to do, was go to the bbparser.php file, and edit line #41 to remove the actual linebreak the script adds after the image (it does to add caption), changing this:

Code:
return "<div class=\"image_container\" style=\"width: $new_width" . "px\"><a href=\"$str\"><img class=\"fullnewsimage\" alt=\"image\" src=\"" . $adminpath . "?action=options&mod=imageuploads&width=$new_width&height=$new_height&thumb=$str\" /></a><br style=\"clear: both\" /><span class=\"image_caption\">$caption</span></div>";

to this:

Code:
return "<div class=\"image_container\" style=\"width: $new_width" . "px\"><a href=\"$str\"><img class=\"fullnewsimage\" alt=\"image\" src=\"" . $adminpath . "?action=options&mod=imageuploads&width=$new_width&height=$new_height&thumb=$str\" /></a></div>";

Now, that's what worked for me.

Hoping to hear from Chris if there is another way to accomplish this.

thanks
#2073
Network-13.com © 2013