Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Friendly URL, RSS & Comment Issues
arashkya
Posted on 11 Dec 2013, 19:50:15

Access: Member
Total Posts: 4
Joined: 2013-12-11

I am currently having two problems with N13. I've installed 4.0.2 and have implemented it into my site with little problem. The problems that I am having are with turning on Friendly URLs and with the comments system.

When ON, the friendly url causes the "full news" to open a 404 window instead of the actual news. Here is what I have set up for the Friendly URL:

Enable friendly URLs: Yes

File extension: .php

Prefix: /news/

Directory filename: http://www.rfcomply/pc/news.php

The directory is the exact location of the PHP include for the news to show up in. I was a bit confused about the prefix.. but I can't remember what the default was for that field. I've also edited the .htaccess file and placed it into the folder that hosts the news.php page (PC folder). I'm wondering if this is the problem? Because it's not in the main root directory, and instead in a sub folder?? Here is the set up for .htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /news.php [L]

The second problem, with the comments, is that when creating a new comment you will always get the "Nice Try" error message. I have comments turned on for the news, and have set it so that it does not require login or registration to post a comment. So you would think that by simply entering a name, email and message you would be able to submit your comment.

Is anyone else having that issue with the comments? If it can't be resolved I'll simply remove the ability to leave a comment all together.

The final problem is the with RSS. I've tried setting it up via the Options panel and each time I try to create I get the following error:


Forbidden You don't have permission to access /N13News/news/admin.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.24 (Unix) modssl/2.2.24 OpenSSL/1.0.0-fips modauthpassthrough/2.1 modbwlimited/1.4 FrontPage/5.0.2.2635 PHP/4.4.9 Server at rfcomply.com Port 80


The last news system that I used (FusionNews) created the RSS automatically. So I never had to create it before. I'd like to know if I'm doing something wrong. Here is what I'm entering into the RSS fields:


Feed name: rss

News location: http://www.rfcomply.com/pc/news.php

Title of your RSS feed: RSI Corp RSS

Description of your RSS feed: (blank)

Character encoding: UTF-8

Language: en-us

Amount of posts to display: 10

Display posts which haven't been assigned a category? Yes


The friendly URL is something that I really need to work. This news is set on a website owned by a corporation in my area. They are very strict about search engine optimization and want this function to work properly. And and all help is greatly appreciated!

#4064
Last edited by arashkya at 2013-12-16 15:45:39 Reason: clicked to accept email notifications
seiryu6
Posted on 14 Dec 2013, 05:34:00

Access: Member
Total Posts: 7
Joined: 2012-09-18

Hi! For the frienly url you can check some old threads like:

http://network-13.com/thread/3772-Help-with-The-Infamous-Not-So-Fiendly-URL-s-will-be-much-appreciated

http://network-13.com/thread/3792-NOT-SO-FRIENDLY-URL-S

I use:

Enable friendly URLs: yes

File extension: .php

Prefix: /newseng/

Directory filename: index.php

In the prefix I suggest you to use the same name of the folder you have created and uploaded... plus, I placed the .htaccess in the root (worked for me)

For the RSS... I actually use the version 4.0.2 but I think it work even with your version:

  • search for rss.php that you find in the folder

  • search for:

[code]if(FRIENDLY){ $fullurl = $newslocation . $prefix . $row['id'] . "-0-" . makefriendly($row[title]);[/code]

And change it to:

[code] if(FRIENDLY){ $fullurl = "http://www.nameofyoursite.com" . $prefix . $row['id'] . "-0-" . makefriendly($row[title]);[/code]

  • remember to change the http://www.nameofyoursite.com (I don't know where your folder is so you have to try a few times to find the url but with this it will work :)

For the comments... I don't know.. with 4.0.2 it work (try in Options -> System Configuration -> Comments)... but maybe is a problem linked with the friendly URL.

#4066
Last edited by seiryu6 at 2013-12-14 05:37:18 Reason: wrong impagination
arashkya
Posted on 16 Dec 2013, 15:45:39

Access: Member
Total Posts: 4
Joined: 2013-12-11

Thanks for the tips, I tried again today to get the friendly URL issue fixed. I think I tried at least half a dozen different paths before something suddenly worked. Not going to argue with why or how.. but it works.

The comments are still not working for me. I still have no idea at all why. I continue to get the same response (Nice Try) when posting. Currently I set "Allow only registered users to comment: Yes" and it removed the comment box from my news pages. So for now that will be my temporary solution. Comments aren't necessary for our website anyway.

The RSS is still giving issues. When in the Options area of the admin panel I'm unable to create an RSS feed. It continues to give me the same error messages as before. I think right now, this is my biggest problem.

I know that there are other people who may have been having a problem with their Friendly URLs. Here was my exact problem and then the code that worked for me.

News was located in a sub directory of the root folder, with the PHP include being located in yet a different sub directory.

www.sitename.com/N13News/news (location of news files)

www.sitename.com/pc/news.php (location of include to view news)

Here are the settings for the Friendly URLs in admin:

Enable Friendly URLs: Yes
File extension: .php
Prefix: /news/
Directory filename: /pc/news.php

And the .htaccess file is now in the root directory of our server with the following code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /pc/news.php [L]

I think by adding the /pc/ to the RewriteRule this helped it to find the location of the news. And by fixing the prefix to be /news/. My boss was very happy to learn that this is now working.

#4067
Network-13.com © 2013