Hello sorry for the late reply,

First of all if you are displaying your news as individual category, you should include a $category to your include code. Add this,

<?PHP
$number=5;
$only_active=TRUE;
$category = "20";
include("news2/show_news.php");
?>

Where $category is the category ID for the category you wish to display. Give this a try and get back to me.

Hi Damoor,

Thanks for replying. I have tried the code that has been posted which is this,

// Actual search result?
                    if (preg_match("~$preg_author~i", $item[1]) == 0 ||
                        preg_match("/$preg_title/i", $item[2]) == 0 ||
                        preg_match("/$preg_story/i", $item[3]) == 0)
                        continue;

Indeed the search works a little better than before. However there are some stuff that still doesn't work. For example, I have a title called "Testing CKEditor Config", and when I key in Testing or testing, it wouldn't display the result.

In addition somehow the search result will also show news that doesn't have the keyword within the search. For example I have a news title called Smile and I keyed in Final Fantasy it gave me the topic Smile too (take note that within the Smile news post, there is not even a single Final Fantasy word inside).

Any idea why is this so?

2. The search works with the regular phrases and shows even partly coincided results.

I will disagree with you.

renato is right, the search functions sometime finds the results which I want and sometime it doesn't. For example, if I have a news title called "Final Judgement", and I typed in judgement into the search box, it wouldn't show the result at all. This happened to the example2.php search too.

Problem solved. https://cutephp.com/forum/style_emoticons/default/smile.gif

Could you show your PHP include code here? Thanks.

Hi there,

Did you manage to get your comments CAPTCHA to work? If you did, how did you get it to work because mine keeps saying that I key in the wrong CAPTCHA when I add comments. :\

Hello,

May I know how can you add more emoticons to the CKeditor (add news)? Thanks!

Hey everyone,

I am wondering how can I remove the "Previous" word from my first page only?

Thanks!

Hi,

I would like to ask how can I direct my URL to another page. For example,

Since my PHP_SELF is index.php.

So my [ Read More ] URL will be http://mysite.com/index.php?subaction=showfull&id=1374855604&ucat=1,2,3,5,6&

And my [ Next Page ] URL is http://mysite.com/index.php?start_from=5

How do I change it so that my [ Read More ] URL will be,

http://mysite.com/more.php?subaction=showfull&id=1374855604&ucat=1,2,3,5,6&

While my [ Next Page ] URL still remain as http://mysite.com/index.php?start_from=5.


Note that if I change the PHP_SELF to more.php, the [ Next Page ] URL will also change. I don't want this to happen.

Thanks

110

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

Thanks, looking forward to the solution.

111

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

Hello,

This is my current settings in conf_rw.php

<?php
$conf_rw_htaccess = "/home3/name/public_html/.htaccess";
$conf_rw_readmore = "/news/view/%id/%title";
$conf_rw_readmore_layout = "/layouttest1.php?subaction=showfull";
$conf_rw_archread = "/news/archive/%archive/showmore.php?subaction=list-archive";
$conf_rw_archread_layout = "/layouttest1.php?subaction=list-archive";
$conf_rw_readcomm = "/news/read/%id/%title/comment";
$conf_rw_readcomm_layout = "/layouttest1.php?subaction=showcomments";
$conf_rw_newspage = "/news/read/%start_from";
$conf_rw_newspage_layout = "/layouttest1.php";
$conf_rw_commpage = "/news/read/%id/%title/comment/%comm_start_from";
$conf_rw_commpage_layout = "/layouttest1.php?subaction=showcomments";
$conf_rw_archreadmore = "/news/archive/%archive/%id/%title";
$conf_rw_archreadmore_layout = "/layouttest1.php?subaction=showfull";
$conf_rw_archreadcomm = "/news/archive/%archive/%id/%title/comment";
$conf_rw_archreadcomm_layout = "/layouttest1.php?subaction=showcomments";
$conf_rw_archpage = "/news/archive/%archive/%start_from";
$conf_rw_archpage_layout = "/layouttest1.php?subaction=list-archive";
$conf_rw_archcommpage = "/news/archive/%archive/%id/%title/comment/%comm_start_from";
$conf_rw_archcommpage_layout = "/layouttest1.php?subaction=showcomments";

112

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

Hello,

Extra information when I hover over at the [Read More] URL, it shows,

http://my-site.com/cms/news/view/137484167...ttest1.php&amp;[L]=[L]

Hover on the link to see the full URL

113

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

Hi,

I have moved the file layouttest1.php to the same folder.

When I click on [Read More], the URL simply changed to this

http://my-site.com/cms/news/view/137484167...ttest1.php&amp;[L]=

instead of this,

http://my-site.com/cms/news/view/1374841674/5

Furthermore, the loaded page (http://my-site.com/cms/news/view/1374841674/5?rew=layouttest1.php&[L]=) is exactly the same as my index page (meaning the page didn't change at all except for the URL).

114

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

Hello,

Thanks. As you instructed, my current .htaccess is at the root directory and my cn_friendly_url.php is at the same folder as my show_news.php in /cms folder.

However, I am getting this error when I load a page,


Warning: include(/home3/name/public_html/cms/layouttest1.php) [function.include]: failed to open stream: No such file or directory in /home3/name/public_html/cms/cn_friendly_url.php on line 66

Warning: include() [function.include]: Failed opening '/home3/name/public_html/cms/layouttest1.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home3/name/public_html/cms/cn_friendly_url.php on line 66

Note that my /layouttest1.php is where my news are displayed at and it is located at my root directory.

My current .htaccess is this,

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

115

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

Hi there,

I have changed the conf_rw.php that is still located inside my /сdata/plugins/rewrite/ folder.

The $conf_rw_htaccess has been changed to where my .htaccess is located at. However, the "cant find the conf_rw.php file" still remains when I load the page.

Take note that inside the Rewrite Manager, ".htaccess path" has already been changed to /home3/name/public_html/.htaccess.

116

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

Hi,

First thanks alot for the constant and quick reply, I appreciate it.

I have moved cn_friendly_url.php and .htaccess to my root directory.

The page now show and load,

"cant find the conf_rw.php file"

instead of a 404 error page.

This is my current .htaccess

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

117

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

Hi,

If the .htaccess look like the one you wrote, this means the cn_friendly_url.php and .htaccess has to be in the cms main folder. (Please correct me if I am wrong).

Hence, I moved cn_friendly_url.php and .htaccess to /cms folder from /cdata/plugins/rewrite folder and rewrote the .htaccess to,

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

Unfortunately, the page still load out an error 404.

118

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

Hello,

I changed the .htaccess path back to /public_html/cms/cdata/plugins/rewrite.

The .htaccess file in the folder generated this,

Order Deny,Allow
Deny From All
<Files ~ "cn_friendly_url\.php$">
Order Deny,Allow
allow from all
</Files>

Please take note that this .htaccess file permission is set as 0644.

Edit: Upon changing to this, the page now load back error 404 again.

119

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

Sorry for posting again. New information, after changing the showmore to showmore.php, the page now load a 500 Internal error page instead of 404 error page.

120

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

I would like to ask, is it necessary to have /news/view/ inside the template value?

121

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

Here Use Layout (your *.php) - /showmore?subaction=showfull
Correct showmore --> showmore.php

Hello, thanks for the fast reply.

I corrected this showmore.php after I posted the extra information and it still doesn't work.

122

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

Extra information,

Taking [Read Full Story] as an example

Template Value - /news/view/%id/%title
Use Layout (your *.php) - /showmore?subaction=showfull


Original URL is this,
http://my-site.com/showmore.php?subaction=...1374841674&amp;

URL Rewrites to this,
http://my-site.com/cms/news/view/1374841674/5


The rewrites URL direct me to a 404 error page. Additionally, if you look at the rewrites URL, there is a /cms/. This is my folder name for my CuteNews and I doesn't want people to know.

This is the .htaccess generated by the Rewrite Manager,

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

123

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

Hello,

.htaccess file is present. It is located at my root directory and I directed the .htaccess path in the Rewrite Manager to the root directory path.

As for 2 and 3, could you kindly explain more on it? Where exactly do I find this "mod_rewrite". Also, what is the correct module setting then? (In fact, what is module setting)

Thanks

124

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

Thanks.

I managed to install the plug-in but when I use it, my the news URL are directed to a 404 error. Why is this so?

125

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

May i know where can i find the URL rewriter manager? I can't find it at the Option page. I am using CuteNews 1.5.3. Thanks

Posts found: 101 to 125 of 128

Pages Previous 1 2 3 4 5 6 Next

CutePHP Forums → Posts by sun_day