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 How To Automatic resizing images
1 2
Neotomaz
Posted on 01 Feb 2010, 22:17:39

Access: Member
Total Posts: 3
Joined: 2010-02-01

Well, thanks. Now i have other problem.
When i put that code to my page and try open page i get this massage:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 393216 bytes) in C:\wamp\www\NEWS2\news\index.php on line 385
#1806
Chris
Posted on 01 Feb 2010, 22:55:14

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Edit your php.ini file, search for memory_limit, and set it to a higher value, something like

memory_limit = 256M;
#1807
Frohlich
Posted on 17 Feb 2010, 11:17:10

Access: Member
Total Posts: 9
Joined: 2010-01-04

Quote:
1. The code I mentioned in my previous post, if you change it to this all images will be aligned to the right and text will be aligned to the left around the images.

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


Or if you don't want to edit the code again you can add a bit of css code to your stylesheet that will make all images aligned to the right

Code:
#allbody img {
    float: right;
}



Sorry, it doesn't seem to work for me. I have this code in line 41


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

And the other thing with the stylesheet doesn't help either.... :new_huh:
#1913
Last edited by Frohlich at 2010-02-17 11:21:22 Reason:
Chris
Posted on 17 Feb 2010, 16:44:54

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

If you can link me to your site so I can see exactly what is happening I should be able to work out why it's not working properly.
#1917
Frohlich
Posted on 19 Feb 2010, 08:48:18

Access: Member
Total Posts: 9
Joined: 2010-01-04

It is a danish website, so I will guide you where to look.

http://laasby-kro.dk/index.php?page=3

- In the right column you see the event-headlines and if you go to:

"Fede Finn & Funny Boyz
Lørdag d. 2. oktober
Dem med hittet: "Kærligheden brænder" m.fl.
Kr. 455,-
Se mere her" <<=== then click on this one

Now you see that the images is aligned right, but the text is not wrapped around the image. Hard to explain but i hope you get the point. Anyways, thanks for helping! :grin:
#1929
Chris
Posted on 19 Feb 2010, 17:38:06

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Code:
.image_container {
    float: right;
}


Add this to your CSS file CSShiarchMenu.css and the text should wrap around the image.
#1933
Frohlich
Posted on 19 Feb 2010, 19:40:30

Access: Member
Total Posts: 9
Joined: 2010-01-04

I will try tomorrow :tongue:

By the way, I am right now translating the system into danish, maybe you are interested in a copy?

So long

Morten
#1934
Chris
Posted on 19 Feb 2010, 19:45:44

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Quote:
I will try tomorrow :tongue:

By the way, I am right now translating the system into danish, maybe you are interested in a copy?

So long

Morten

Absolutely. The more translations the better :-)
#1935
Frohlich
Posted on 23 Feb 2010, 08:29:46

Access: Member
Total Posts: 9
Joined: 2010-01-04

That's a blast!

Now the entire system works great, and everyone is happy :)

You will get the translation soon.
#1947
1 2
Network-13.com © 2013