1

(2 replies, posted in Problem Solving / Help & Support)

Yep, support team is not very supportive or active in anyway. UTF8 version of the old cutenews was way better on that side. Too bad that nothing is left now than some crumbs...

Ok so, for now, i'm stuck with the 1.5.3 version because the 2.0.1 is breaking every bit of customizing i did, since my website is multilingual.

First of all, why oh why is custom php variables not working anymore inside templates?

Before, with the 1.5.3, templates were separate .tpl files, witch mean that any php code inside will be interpreted on display.
Example:

$lang['NEWS_WRITTEN_BY'].' {author}

would give (depending on language):

News written by (name of author)

in english

Article écrit par (name of author)

in french

Articolo scritto da (name of author)

in italian
etc...

This doesn't work now, it is not interpreted correctly. Even if i put <?php echo $lang['NEWS_WRITTEN_BY'];?> it doesn't work.
Why? why did you do this, saving everything inside conf.php? it is just a big mess for me, separate files were much better...

Hello!

I have been at google for a couple of times now, without finding any answer to how i change language so i can use Swedish language in my news feed, äåö.

Found a guide but that was for an older version, i cant even find the supposed language menu they where referring to in the new version.

Any help is much appreciated!

When you say news feed, is it the RSS feed ? In that case you need to do the RSS integration wizard, go to options > Integration wizard > Rss Setup and Integration. When you proceed, at some point there are fields to complete and the last on the bottom is  Language (default: en-us). Change it to your needs and it should work.

Hello again,
What is the code for google plus ? {google} doesn't work and it's not in the help links.
Thank you

Try {gplus}.

Ok, after tweaking around in the code, i managed to restore Quicktags link in addnews and editnews in cutenews 1.5.3 and also some other things.

So if you're like me and don't use ckeditor, and want that useful link back, here is the deal.

Replace in
skins/base_skin/addnews/index.tpl, on line 74
and in
skins/base_skin/editnews/editnews/index.tpl, on line 83
this line
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<p>[url= onclick=]
[insert image][/url]</p>
</div>

with this
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<p>[quick tags]
        [url= onclick=]
[insert image][/url]</p>
</div>

Replace in
skins/base_skin/addnews/index.tpl, on line 89
and in
skins/base_skin/editnews/editnews/index.tpl, on line 110
this line
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<p>[url= onclick=]
[insert image][/url]</p>
</div>

with this
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<p>[quick tags]
        [url= onclick=]
[insert image][/url]</p>
</div>

Next in skins/base_skin/about/cutecode.tpl, replace on line 16 to 70 the whole javascript with this
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<script type="text/javascript">
        <!--
            function insertcode(type,var1,var2) {

            if(var1 != null){
            if(var2 == null){ var2='  '; }

            switch(type) {
            case 'link':
                code = '[url=]' +var2+ '[/url]';
                break;
            case 'image':
                code = '<img src=\"' +var1+ '\" alt=\"\" />';
                break;
            case 'bold':
                code = '<span class=\"bolding\">' +var1+ '</span>';
                break;
            case 'italic':
                code = '<span class=\"italing\">' +var1+ '</span>';
                break;
            case 'underline':
                code = '<span class=\"underlying\">' +var1+ '</span>';
                break;
            case 'color':
                code = '<span style=\"color: ' +var1+ '\">' +var2+ '</span>';
                break;
            case 'size':
                code = '<span style=\"font-size: ' +var1+ 'pt\">' +var2+ '</span>';
                break;
            case 'font':
                code = '<span style=\"font-family: ' +var1+ '\">' +var2+ '</span>';
                break;
            case 'align':
                code = '<div style=\"text-align: ' +var1+ '\">' +var2+ '</div>';
                break;
            case 'quote':
                code = '[qu0te]' +var1+ '[/qu0te]';
                break;
            case 'list':
                code = '
\\n * Text1
\\n * Text2
\\n * Text3
\\n
';
                alert('Sample List will be inserted into the textarea');
                break;
            default:
            }


            code = ' ' + code + ' ';
            opener.document.addnews.{$area}.value  += code;
            if(document.my.ifClose.checked == true){
                opener.document.addnews.{$area}.focus();
                window.close();
                opener.document.addnews.{$area}.focus();
            }
            }
            }
        //-->
        </script>
</div>
On this last one, remember to replace the "0" in qu0te and /qu0te by regular "o". I had to do this because the code interpreter here was messing it.

Done, now it should be back and working.

Also if you want a valid img tag, with a regular /> closing slash, when you insert an image, go in
skins/base_skin/image/quick.up.tpl, replace line 44 with :
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
finalImage = ' <img '+ appends +' align=\"'+ imageAlign +'\" alt=\"'+ alternativeText +'\" src=\"{$config_http_script_dir}/uploads/'+ selectedImage +'\" />';
</div>

Now finishing with captcha.
I think you all see that the captcha bit when you want to insert a comment is appearing under the whole form and that you can't decide where to put it. That's the feeling i have and i don't like it, it is less flexible than the old ones.
To resolve this, here is what i have done.
Open skins/base_skin/captcha_comments.tpl and take the bit you want, like :

If your server don't have GD enable use this code :
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<td width="64"> <div>Captcha</div> </td>
        <td>
            <div><iframe src="captcha.php" style="border: 0" scrolling="no" width="200" height="70"></iframe></div>
            <div> <input type="text" name="captcha" value="" /></div>
        </td>
</div>
Remember to verify the adress of the captcha.php file here and modify it to match yours.

If your server have GD enable use this code :
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<td width="64">
            <div>Captcha</div>
            <div>Refresh</div>
        </td>
        <td>
            <div> <img id="comments_captcha" src="{$config_http_script_dir}/captcha.php?r={$captha_rand}" alt="" /> </div>
            <div> <input type="text" name="captcha" value="" /></div>
        </td>
</div>
On this last one, remember to replace the {$config_http_script_dir} with your cutnews installation path (e.g. http://www.yoursite.com/cutenews). It won't work otherwise.

After taking the code bit you want to use, put it in your cdata/default.tpl (or the skin you're using) at the place you want in the comment form.

To finish, cancel everything in skins/base_skin/captcha_comments.tpl so that the captcha won't appear twice.

Hope this help some of you.

The rating doesn't work for me in Internet Explorer either...
In Firefox a popup appears where I have to login to Cutenews. After logging in I can rate the articles:
http://filou83.bplaced.net
But there is no option to see the ratings in the Cutenews panel, is there?

So much things like that doesn't work in cutenews by now and worst of all, there is so little documentation about all the functions.
Come on Support Team, we actually need your support !

A little up on my thread !

Come on Support Team, give us the ressources to help your product be better !

It is all for your (and our) profit after all.

Hi everyone.

So there is a new version of cutenews out there  and i'm glad for that (good job guys !) and a key feature for me is plugins !

But, and there is my question, how do you do a plugin for cutenews ?

Is there a tutorial somewhere ?

Thanx.