This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Comment form formatting doesn't appear
#1
Question 

We have this page

http://daily.ealantamagazine.com/

which uses this line

PHP Code:
<?php require($_SERVER['DOCUMENT_ROOT'] . "/2011/Jan24-Jan28/sunday-test-post/edition.txt") ?>

to include this page

http://daily.ealantamagazine.com/2011/Ja...test-post/. <-- This page contains:
PHP Code:
<?php
$page_id
= "23Jan11";
$path_to_comments_folder = $_SERVER['DOCUMENT_ROOT']. "/comments/";
define ('IN_COMMENTICS', 'true'); //no need to edit this line
require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line
?>


Why does the comment form appear correctly on the index page of the "daily" subdomain but not within the "sunday-test-post" folder?
Reply
#2

Hi,

It's not working correctly for the "sunday-test-post" folder because it's trying to source the stylesheet from here:
http://daily.ealantamagazine.com/2011/Ja...esheet.css

As the stylesheet is not at the above address, it's resulting in a '404 Not Found' server error.

If you open the page and change the stylesheet location to the following URL then it will work:
http://daily.ealantamagazine.com/comment...esheet.css

More importantly I got banned for attempting to preview a comment. It's probably an incorrect referrer ban. You can disable that check in Settings -> Security.

Have you completed the interview?
Reply
#3

(24-Jan-2011, 06:03 PM)Steven Wrote:  Hi,

It's not working correctly for the "sunday-test-post" folder because it's trying to source the stylesheet from here:
http://daily.ealantamagazine.com/2011/Ja...esheet.css

As the stylesheet is not at the above address, it's resulting in a '404 Not Found' server error.

If you open the page and change the stylesheet location to the following URL then it will work:
http://daily.ealantamagazine.com/comment...esheet.css

More importantly I got banned for attempting to preview a comment. It's probably an incorrect referrer ban. You can disable that check in Settings -> Security.

Thanks! It's all fixed.

Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
23-Apr-2019, 09:22 PM
Last Post by mtnlvy
06-Jan-2019, 06:29 PM
Last Post by allseo
19-May-2018, 08:03 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)