Hi Support,

I want to show in the unique headlines (10 news) for example the category 4 and the category 5.

The target for the category 4 is actu/news.php
The target for the category 5 is actu/video.php

So, is it possible to show the last 10 news in unique headlines and when I click for example to a news (cat 4), the target will be actu/news.php, the 5 the other target...

Thanks you.

Hi,

Is it possible with a condition if, else if in php ?

Tnahks you for your help

78

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

Great news!

Nobody ?

Thanks you.

Hi Support and everyone,

I would like to show differents categories in a unique headlines (total of 10 news), how to make this ?
The php self is different between news.php and the second one, video.php

Example :

<?PHP                                                                                                                                                                                                                                                                                                                                                                                     
$static = TRUE;
$number = "10";   
$category = "1,3,5,6,7,8";
$template = "headlines";
$PHP_SELF ="actu/news.php";
$category = "4";
$template = "headlines";
$PHP_SELF ="actu/video.php";
include("../news/show_news.php");
?>

Thanks you for your help

81

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

Hello Support Team,

In CN 1.5.3, when i click on the url rewrited, i've a white page...

Here the code of .htaccess :

RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ cn_friendly_url.php?rew=$1&%{QUERY_STRING}[L]

And the code of file conf_rw.php :
<?php
$conf_rw_htaccess = "/homez.504/nomdesite/www/test/.htaccess";
$conf_rw_readmore = "/test/view/%id/%title";
$conf_rw_readmore_layout = "/test.php?subaction=showfull";
$conf_rw_archread = "/news/archive/%archive";
$conf_rw_archread_layout = "/example2.php?subaction=list-archive";
$conf_rw_readcomm = "/news/read/%id/%title/comment";
$conf_rw_readcomm_layout = "/example2.php?subaction=showcomments";
$conf_rw_newspage = "/news/read/%start_from";
$conf_rw_newspage_layout = "/example2.php";
$conf_rw_commpage = "/news/read/%id/%title/comment/%comm_start_from";
$conf_rw_commpage_layout = "/example2.php?subaction=showcomments";
$conf_rw_archreadmore = "/news/archive/%archive/%id/%title";
$conf_rw_archreadmore_layout = "/example2.php?subaction=showfull";
$conf_rw_archreadcomm = "/news/archive/%archive/%id/%title/comment";
$conf_rw_archreadcomm_layout = "/example2.php?subaction=showcomments";
$conf_rw_archcommpage = "/news/archive/%archive/%id/%title/comment/%comm_start_from";
$conf_rw_archcommpage_layout = "/example2.php?subaction=showcomments";

Thanks you for your help, I've made many tests, it doesn't work for me...

82

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

The same...

Hi Support team,

How to install rewrite module ? What is the good files to install it ?

Regards.

84

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

Hi,

For Support Team, it works like a charm !

Thanks you.

No problem with 500 news, I've 12000 news https://cutephp.com/forum/style_emoticons/default/wink.gif

Hi everyone,

Is it possible ton insert in news a video like this embeded code :

<div style="width:960px; height:760px; margin:0 auto;"><div id='perf1x56d5tjkpxtm1x25ny1thvcro-1oa7vehcrpz791b2crj0dghxnb'> &lt;img  src=&#039;http://images.eplayer.performgroup.com/namedImage/12637/install_flash.gif&#039; alt=&#039;Get Adobe Flash player&#039; /&gt;</div> <script type='text/javascript' src='http://static.eplayer.performgroup.com/flash/js/swfobject.js'></script><script type='text/javascript' src='http://static.eplayer.performgroup.com/flash/js/performgroup.js'></script><script type='text/javascript'>addCustomPlayer('1x56d5tjkpxtm1x25ny1thvcro', 'f81bab18-0699-4d77-9103-fefdac638de9', '1oa7vehcrpz791b2crj0dghxnb', 960, 760, 'perf1x56d5tjkpxtm1x25ny1thvcro-1oa7vehcrpz791b2crj0dghxnb', 'eplayer16');</script></div>

It doesn't work, a solution is possible ?

Thanks you.

87

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

Hi Support Team,

Since 1 week, here the result on the server :

120  618 ligns and 5,6 Mio

With the modification, it seems to be good :

$q = mysql_query("SELECT * FROM cn_visit_counter WHERE id = $ID", $cn_connection);
while ($a = mysql_fetch_assoc($q)) $news[ $a['accesstime'] ] = $a;
ksort($news);

I've deleted this :

$output = str_replace("{unique-views}", count($unique), $output);
$output = str_replace("{your-views}", $your_views, $output);
$output = str_replace("{online}", count($online), $output);
$output = str_replace("{first-view}", date($config_timestamp_active, $first_view), $output);

And finally I don't use this :

$the_old_time = 60*60*24*3; // 3 day
mysql_query("DELETE FROM cn_visit_counter WHERE id = $ID AND accesstime < UNIX_TIMESTAMP(NOW()) - $the_old_time", $cn_connection);

Regards,

88

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

I've deleted it and rebuild it this morning so I can say that since 2 hours :
cn_visit_counter 1  393    MyISAM    utf8_general_ci    101,9 Kio   

I've approximately 3000 news (but I archive it manually regularly : archive : 11173 news).

I've made all modifications in the file visit_counter.php like you said.

Do you think it's possible to replace 3 days by 2 like that : $the_old_time = 60*60*24*2; // 2 day

I use only {page-views}, can you think I can deleted this code :

$output = str_replace("{unique-views}", count($unique), $output);
    $output = str_replace("{your-views}", $your_views, $output);
    $output = str_replace("{online}", count($online), $output);
    $output = str_replace("{first-view}", date($config_timestamp_active, $first_view), $output);

I say you if the problem is still present.

Thanks you for your help.

89

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

Hi Support Team,

Finally, I think there is a small problem with hit counter (MySQL). In fact, there is a fonction in the script who execute and block the server.

Response of OVH in French :

Votre base est actuellement suspendue ceci vient du fait que vous surchargez le serveur mysql51-71
Vous avez des requêtes qui s'exécutent en boucle et qui bloquent le serveur.

===========================
SELECT * FROM cn_visit_counter WHERE id = 1361700169 ORDER
BY accesstime ASC
=============================

So, have you got a solution for this problem ?

The base MySQL :

http://img854.imageshack.us/img854/4654/26541878.jpg

Thanks for all.

90

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

Hello,

The script is good. No reboot with MySQL. Perfect !

Thanks you.

91

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

Thanks you for your precision.

92

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

For the moment (since 2 hours), it works like a charm !

93

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

Thanks you so much, I test it and I make a feedback tomorrow...

94

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

Hi Support Team,

Perfect!

Thanks you.

95

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

Nobody has the same problem ?

Hi support and everyone,

I 'm wondered about the date of the release of CN 1.5.4. Any ideas ?

Thanks you.

97

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

Thanks filou83 but I just want a simple counter of hits and this website is not free...

98

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

Hi Support Team,

Thanks you.

Yes, I can connect to MySQL... Could you think you can create a plugin like this ?

99

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

Hi Support,

After another test and chmod 755 (max OVH) on folder "news", many files (1700) are created now like that ".nfs00000000066b55d80001c37a"

For the moment, it doesn't works, the counter has no implemented it for a unknown reason... the size of the file counter.txt is bloqued to : 100 572

Maybe is due to the number of news, more than 2500... for the moment...

Thanks for your help...

100

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

I don't think the problem is the chmod because the files counter.txt and usersonline.pid are created...