I don't use utf8-cutenews so I cannot give a precise answer but:

This error can occur when the argument received by 'foreach' is not an array or the array has not been set.
$all_news may have a null value instead of being empty.
You willl need to trace back and find where $all_news is being set (or why it isn't).

xcache and eAccelerator are both scripts running on your server to cache php files in a compiled state.
Neither are part of cutenews and you need to ask your server admin to fix the problem.

I don't know which script it comes from but if you google for [xfgiven_pics] you will find that it is used to post an image on a website.
Search the code of the page where you are calling the cutenews shownews.php file and remove any unnecessary includes or php code.
Or - upload a blank page with just the include
<?PHP
include("cute/show_news.php");
?>

Or run the example  which came with cutenews
linktoyourwebsite/cutenews/example1.php

In your case is seems to be
cute/example1.php

If the text [xfgiven_pics] is not there then the problem is in the code of your webpage and include.

You are running another php script which interferes with cutenews.?

Ok i downloaded the image.mdu from the topic addet the Code you postet and copied highslide to my webspace but i does not work.
i´ve got a different window for inserting images but can´t insert from that.
i am affraid i need further advises.

Argentum


Have you uploaded the highslide folder with the javascript routines to your server? You also need the css and javascript in the page on which you are showing the news. The high slide forum will show you how to integrate highslide into your web pages. Highslide.com
Clicking on the insert thumbnail from the add image in cutenews will then add in a thumbnail which will expand with highslide when clicked on. If you need complete tutorial then it will take me a while to write. I will pm you a link to one of my sites to see how it works.

You will need to upload a new image so that the thumbnails are created.

(this forum does not like my iPad - I am having a problem sending the pm. I will try later.)

https://cutephp.com/forum/index.php?showtopic=81

Damoor & Communty i am afraid i need your help again.
I can´t find the script you have postet in the inc/images.mdu for adding highslide into cutenews.
is ist possible that you post your complete image.mdu so that i can import it to mywebsite?

Argentum

Sorry that was my fault. I did not explain that  I am using the advanced images.mdu by FI-DD from here:
https://cutephp.com/forum/index.php?showtopic=12087
You should be able to make all the changes in that version.

I don't use Lightbox but I do use Highslide.
I am not familiar with lightbox syntax.
You should be able to add the code into inc/images.mdu
Find  $link1 = htmlspecialchars
and add in your code

//Else
else {
$link1 = htmlspecialchars('<a target="_blank" href="'.$config_http_script_dir.'/data/upimages/'.($folder == '' ? '' : $folder.'/').$file.'">');
}

and add in your script for lighbox

I use this for Highslide:

else {
$link1 = htmlspecialchars('<a id="thumb1" class="highslide" onclick="return hs.expand(this)" href="'.$config_http_script_dir.'/data/upimages/'.($folder == '' ? '' : 
$folder.'/').$file.'">');
}

Assuming that you are using the original images.mdu file in cutenews 1.4.7

Open inc/images.mdu,  find the insertion code then add in the paramenters that you want like this:

Find

$config_http_script_dir/data/upimages/" + selectedImage + "\" alt=\"" + alternativeText + "\" border=\"" + imageBorder + "\" align=\"" + imageAlign;

Replace with

$config_http_script_dir/data/upimages/" + selectedImage + "\" alt=\"" + alternativeText + "\" border=\"" + imageBorder + "\" width=\""+ 650 +"\" height=\""+ 450 +"\" align=\"" + imageAlign;

Edit: problem with posting this as the forum removes the escape codes!  follow the syntax in the original code for escaping the quotes when adding in the new parameters.

https://cutephp.com/forum/index.php?showtopic=42629

Login as admin.
Go to Options>Edit Categories
Add a new category.
Select the category access for each category you add.
The restriction column will show what access is set for each category.
Post all your news to the categories of your choice using Edit News

If you need to change the category access later then
Go to Edit Categories and
Select the category you wish to change
click on
Action - edit
and change the Category options from
Only Admin
to
Only Editors and Admin
or
Everyone can write

Move over the complete data folder.
Not the config file if anything has been changed.
If you have only upgraded to 1.4.7 then everything in the data folder can be moved.

Open the cutenews index.php file in an editor.
Look a few lines down and check that $config_path_image_upload=./data....
Is set to the folder that you are using for uploading the images.
On one of my servers I had a similar problem when I had set it to
data/upimages
The images uploaded but the insert would not work.
The JavaScript routine in images.mdu only worked when I reset it to
./data/upimages

Make sure you set
$config_path_image_upload
correctly in
index.php

Just tested it here with a  new installation of cutenews 1.4.7 and it worked with no problems.

I have tried them all and have  found on my websites that the best one to stop spambots, was this hack.
https://cutephp.com/forum/index.php?showtop...mp;#entry141697.
For human spammers I use the comments approve hack.
https://cutephp.com/forum/index.php?showtopic=33768

For example, when I insert an image and give it a border from 2px than de
standard colour of the border is black. Is there any way to change this into
an other colour? I need all the image borders into green.

grt, Wim

I have added a routine into FI-DD's advanced images hack
for adding a coloured border to an image as you upload it.

Open inc.images.mdu
find:

//////////////
//Upload Form
//////////////
?>

Add above:

//Border
if($border){
    
    $file_ending = strtolower(end(explode('.', $image_name)));
    if ($file_ending == "jpg" or $file_ending == "jpeg" ){        
            $img = ImageCreateFromJPEG($config_path_image_upload."/".$image_name);
            $color = imagecolorallocate($img, $red, $green, $blue);
            drawBorder($img, $color, $thickness);    
            imagejpeg($img, $config_path_image_upload."/".$image_name);
            
            $img = ImageCreateFromJPEG($config_path_image_upload."/thumbs/".$image_name);
            $color = imagecolorallocate($img, $red, $green, $blue);
            drawBorder($img, $color, $thickness);    
            imagejpeg($img, $config_path_image_upload."/thumbs/".$image_name);
        }
        else if ($file_ending == "gif" ){
            $img = ImageCreateFromGIF($config_path_image_upload."/".$image_name);
            $color = imagecolorallocate($img, $red, $green, $blue);
            drawBorder($img, $color, $thickness);    
            imagegif($img, $config_path_image_upload."/".$image_name);
            
            $img = ImageCreateFromGIF($config_path_image_upload."/thumbs/".$image_name);
            $color = imagecolorallocate($img, $red, $green, $blue);
            drawBorder($img, $color, $thickness);    
            imagegif($img, $config_path_image_upload."/thumbs/".$image_name);
        }
        else if ($file_ending == "png" ){
            $img = ImageCreateFromPNG($config_path_image_upload."/".$image_name);
            $color = imagecolorallocate($img, $red, $green, $blue);
            drawBorder($img, $color, $thickness);    
            imagepng($img, $config_path_image_upload."/".$image_name);
            
            $img = ImageCreateFromPNG($config_path_image_upload."/thumbs/".$image_name);
            $color = imagecolorallocate($img, $red, $green, $blue);
            drawBorder($img, $color, $thickness);    
            imagepng($img, $config_path_image_upload."/thumbs/".$image_name);
        }
}

Find:

 <label for="corners"><input style="border:0px; background-color:#F7F6F4;" type="checkbox" name="corners" id="corners" onclick="java script:ShowOrHide('make_corners')"<?=(!

extension_loaded('gd') ? ' disabled' : ''); ?>>Create rounded corners</label>

   <span id="make_corners" style="display: none;">
   <table width="250" align="right">
   <tr><td><input type="checkbox" name="corners_image" checked="checked" />Image</td><td>
   <input type="text" name="corners_image_radius" size="5" value="25" /> Radius

   <input type="text" name="corners_image_background" size="5" value="ffffff" /> Background</td></tr>
   <tr><td><input type="checkbox" name="corners_thumb" checked="checked" />Thumbnail</td><td>
   <input type="text" name="corners_thumb_radius" size="5" value="15" /> Radius

   <input type="text" name="corners_thumb_background" size="5" value="ffffff" /> Background</td></tr>
   </table>
   
</span>
   </td></tr>


Add below:

 <tr><td>
   <label for="border"><input style="border:0px; background-color:#F7F6F4;" type="checkbox" name="border" id="border" onclick="java script:ShowOrHide('make_border')"<?=(!

extension_loaded('gd') ? ' disabled' : ''); ?>>Add border (jpeg gif png)</label>

   <span id="make_border" style="display: none;">
   <table width="250" align="right">
   <input type="text" name="thickness" size="5" value="2" /> border thickness

   <input type="text" name="red" size="5" value="255" /> red

   <input type="text" name="green" size="5" value="255" /> green

   <input type="text" name="blue" size="5" value="255" /> blue</tr></td>
   </table>
   
</span>
   </td></tr>


Add at the bottom of the file above the closing ?>

function drawBorder(&$img, &$color, &$thickness = 1)
{
    $x1 = 0;
    $y1 = 0;
    $x2 = ImageSX($img) - 1;
    $y2 = ImageSY($img) - 1;

    for($i = 0; $i < $thickness; $i++)
    {
        ImageRectangle($img, $x1++, $y1++, $x2--, $y2--, $color);
        
    }
}

There is probably a more elegant way of coding it but it works.

You can change the default thickness and red green blue parameters if you want.

Do you mean the colour of the shadow border?
If so change the RGB values in images.mdu

find:

$background = array("r" => 255, "g" => 255, "b" => 255);

Change to the colour you want.
So for Emerald Green use

$background = array("r" => 80, "g" => 200, "b" => 120);

For Sea Green use the RGB values
46 139 87
For Viridian use
64 130 109

Change the CSS on your news page

img {
border: 2px solid green;
}

I think you can also replace session_start();

<?php session_start(); ?>

with

<?php session_save_path(“/tmp”); session_start(); ?>

But:
If the /tmp file did not already exist you would also get the error
Warning: Unknown(): open(/tmp/sess_**********, O_RDWR) failed: No such file or directory

Could be that your /tmp is full and the sessions need clearing.
Are you running another other scripts that use sessions?

$CNLike or  $CNlike ?

Whats the content of
$counter[$id][$ip][3]

You can assign a different avatar for each category of news. Won't this do what you want?

Your index.php file should be in the public_html directory, the same directory as your cutenews folder.

Look in the template that you are using (the default one?).