351

Re: Advanced image module for CuteNews

I have a problem with pictures!!

For some time ago the advanced image module couldn't show the pictures i uploaded.
When i check´t the permissions on the images true ftp,  i found out that they where chmod 600 instead of 644
With some search i found out that inserting a line in the original cutenews images.mdu would do the trick

It is explained here
http://forum.php.pl/index.php?showtopic=16...st&p=291046 and http://forum.php.pl/index.php?showtopic=16...st&p=291348

i used google translate to read it.


So my question is https://cutephp.com/forum/style_emoticons/default/smile.gif
Is it possible to make this also chmod 644 after upload like this command do it for the original images.mdu ?
<blockquote>chmod ($ config_path_image_upload ."/".$ image_name, 0644);</blockquote>

Re: Advanced image module for CuteNews

first Question, i believe the hack has various versions. Are you using the latest one? Or an older.

353

Re: Advanced image module for CuteNews

first Question, i believe the hack has various versions. Are you using the latest one? Or an older.


I'am using images_4.0.zip downloaded from the link in first post in this thread https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Advanced image module for CuteNews

add your code after

@copy($image, $config_path_image_upload.'/'.$image_name) or $img_result = "<font color=red>Not able to upload image.</font>
Make sure that file upload is enabled or contact your server administrator.";

355

Re: Advanced image module for CuteNews

add your code after


Got an error when i go in to Options / Manage Uploaded Images / https://cutephp.com/forum/style_emoticons/default/sad.gif

<blockquote>Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /var/www/****/*************/public_html/news/inc/images.mdu  on line 230</blockquote>

356

Re: Advanced image module for CuteNews

Try, instead:

if(!(@copy($image, $config_path_image_upload.'/'.$image_name))){
 $img_result = "<font color=red>Not able to upload image.</font>
Make sure that file upload is enabled or contact your server administrator.";
}

357

Re: Advanced image module for CuteNews

Try, instead:

if(!(@copy($image, $config_path_image_upload.'/'.$image_name))){
 $img_result = "<font color=red>Not able to upload image.</font>
Make sure that file upload is enabled or contact your server administrator.";
}


Still the same result, same error

tried both this
<blockquote>if(!(@copy($image, $config_path_image_upload.'/'.$image_name))){
$img_result = "<font color=red>Not able to upload image.</font>
Make sure that file upload is enabled or contact your server administrator.";
chmod ($ config_path_image_upload ."/".$ image_name, 0644);
}</blockquote>

and this way

<blockquote>if(!(@copy($image, $config_path_image_upload.'/'.$image_name))){
$img_result = "<font color=red>Not able to upload image.</font>
Make sure that file upload is enabled or contact your server administrator.";

}

chmod ($ config_path_image_upload ."/".$ image_name, 0644);</blockquote>

Re: Advanced image module for CuteNews

either way it's teh second code, but i do hope you don't use that space in your variable names. $ config != $config

359

Re: Advanced image module for CuteNews

either way it's teh second code, but i do hope you don't use that space in your variable names. $ config != $config

<blockquote>{
if(!(@copy($image, $config_path_image_upload.'/'.$image_name))){
$img_result = "<font color=red>Not able to upload image.</font>
Make sure that file upload is enabled or contact your server administrator.";
chmod ($config_path_image_upload."/".$image_name,0644);
}
</blockquote>


So does it look like and give no errors but nothing happens to the images i tried to upload they still become ch mod 600 instead if 644. ?? https://cutephp.com/forum/style_emoticons/default/blink.gif

Re: Advanced image module for CuteNews

then you'll have to take this issue with your host.
The reason why it's 600 after upload must be on their end.

the chmod function is a usefull thing, but in my experience it hasn't worked succesfully for me in the past.
Sometimes you need 644 as a value while otehr times 0644.
That's probably also the reason why you need to manually chmod files when installing CN
and why flexer hasn't integrated this function into the CN installer.

361 (edited by 2010-05-05 01:18:10)

Re: Advanced image module for CuteNews

then you'll have to take this issue with your host.
The reason why it's 600 after upload must be on their end.

the chmod function is a usefull thing, but in my experience it hasn't worked succesfully for me in the past.
Sometimes you need 644 as a value while otehr times 0644.
That's probably also the reason why you need to manually chmod files when installing CN
and why flexer hasn't integrated this function into the CN installer.

Actually i got it to work but only for the main image not the thumbnail created.  https://cutephp.com/forum/style_emoticons/default/smile.gif https://cutephp.com/forum/style_emoticons/default/smile.gif

Any idea ?

Re: Advanced image module for CuteNews

find

//Rounded corners

add above

chmod($config_path_image_upload."/".$image_name, $config_path_image_upload."/thumbs/".$image_name,0644);

363

Re: Advanced image module for CuteNews

findadd above

chmod($config_path_image_upload."/".$image_name, $config_path_image_upload."/thumbs/".$image_name,0644);

I got this error msg when i try that

Warning: Wrong parameter count for chmod() in /var/www/8981/hallstad-kronogard.se/public_html/news/inc/images.mdu on line 254
Upload Image

I did add it exactly as you typed it. and also tried with a space between chmod ($config_...

Thanks for all the help, really appreciated https://cutephp.com/forum/style_emoticons/default/smile.gif

Re: Advanced image module for CuteNews

chmod($config_path_image_upload."/thumbs/".$image_name,0644);

365 (edited by 2010-05-06 03:29:42)

Re: Advanced image module for CuteNews

chmod($config_path_image_upload."/thumbs/".$image_name,0644);

It works perfectly https://cutephp.com/forum/style_emoticons/default/smile.gif Thank you again.

366 (edited by 2010-06-10 18:17:42)

Re: Advanced image module for CuteNews

... it gives me this error, when I'm trying to add a new image to short/full story and when I'm trying to manage uploaded images in options;

Parse error: syntax error, unexpected $end in /mbnet/o/oboy/cutenews/inc/images.mdu on line 1229

It's quite funny 'cause images.mdu doesn't have line 1229, it has only 1227 lines. I'm trying to use the newest (4.0) version.

Re: Advanced image module for CuteNews

yeah, i have that problem to. Somewhere in thos 1220 lines there's a } missing.
Eventhough many people don't seem to have a problem with V4, i did, and i'm not going to check 1220 of someones code trying to find where the missing } belongs.

Version 3 works just fine.
And it's not like you're really missing out on the rounded corners thing, as the corners aren't even transparent.

368 (edited by 2010-06-10 19:00:46)

Re: Advanced image module for CuteNews

v 3.0 gives me same kind of error;

Parse error: syntax error, unexpected $end in /mbnet/o/oboy/cutenews/inc/images.mdu on line 1124

... this file doesn't have line 1124 either  https://cutephp.com/forum/style_emoticons/default/biggrin.gif Well, maybe I just have to stick with the original.

//edit:

I also tried 2.0. It didn't give any nil line error, but it gave this, with all the images, in the module;

Warning: getimagesize() [function.getimagesize]: Unable to access ./data/upimages/thumbs/cutenews-banner.gif in /mbnet/o/oboy/cutenews/inc/images.mdu on line 448

Warning: getimagesize(./data/upimages/thumbs/cutenews-banner.gif) [function.getimagesize]: failed to open stream: No such file or directory in /mbnet/o/oboy/cutenews/inc/images.mdu on line 448

On line 448 there is this code;

$img_info_thumb = getimagesize($config_path_image_upload."/thumbs/".$file);

https://cutephp.com/forum/style_emoticons/default/huh.gif

Re: Advanced image module for CuteNews

Unable to access

sounds like a permission problem. Try deleting the .htaccess folder from the upimages folder (hidden file)
or if it's missing reupload it.

If the .htaccess thing didn't work, chmodd all images in the folder to 777. But his will alos mean trouble in the future

370 (edited by 2010-06-12 11:27:18)

Re: Advanced image module for CuteNews

Tried both, didn't work...  https://cutephp.com/forum/style_emoticons/default/mellow.gif Can I set something in images.mdu so that images will open in lightbox? https://cutephp.com/forum/style_emoticons/default/ohmy.gif

371

Re: Advanced image module for CuteNews

Oh, problem solved! https://cutephp.com/forum/style_emoticons/default/biggrin.gif The problem was that my server doesn't support short php commands (<?). I replaced them and now 4.0 works fine.

Re: Advanced image module for CuteNews

Hi, i hope someone could help me out with this problem.  Bascially when i add an image the thumb shows up fine on the new post but for some reason forces any text entered after the image and also the posted by info, to the right.

Example: http://www.salforducrc.co.uk/

Is there a way to have anything entered after the image align itself properly as if entered above and also to reposition the posted by info to the bottom of the news post?

Thanks in advance for any help in this matter.

Re: Advanced image module for CuteNews

<div style="float: right;"><!-- no full story-->  0 Comments</div>


and you wonder why this floats right from your image O_o

Re: Advanced image module for CuteNews

Excuse my ignorance and VERY basic knowledge of this stuff.

But where is the above located?  Obviously when i view the page source i can see it, but its located within the php include for the news.  So where abouts in the cutenews files is it located?

Re: Advanced image module for CuteNews

It's the template you're using https://cutephp.com/forum/style_emoticons/default/wink.gif

Posts: 351 to 375 of 426

Pages Previous 1 13 14 15 16 17 18 Next

You must login or register to post a reply

CutePHP Forums → Script Feedback and Suggestion → Advanced image module for CuteNews



The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.