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

something is wrong with the layout
#11

Repaired - cheers steven.
I guess lastly is the magic quotes, which is what i originally set out to do lol.

Did you take a look at my pip.ini script from my hoster? (url above) it shows magic quotes = off but when i run the php report it shows as its on.

When i add that link to my .htaccess once i save i get a page error 500 on my whole site.

Im stumped
Reply
#12

It sounds like your custom php.ini file isn't overriding the default one.

If you go to Reports -> PHP Info, the 'Loaded Configuration File' value should say which php.ini file is actually being used. Whereas the 'Configuration File (php.ini) Path' value is the default one which you are trying to override.

It's best to ask your host about this.

Have you completed the interview?
Reply
#13

I have issues with magic quotes as well. My server is Yahoo and I cannot access anywhere the file to disable the feature. Yahoo does not allow .htaccess uploads so I am stumped. Any suggestions? What is happening is alot of postings are getting held for approval for having links in them. Any ideas for a solution are greatly appreciated!

(02-Aug-2012, 01:01 PM)Steven Wrote:  Also, it seems that your server has Magic Quotes enabled. This is why there are cases like this:

Quote:Lee\\\'s customer service

You can disable it using this FAQ:
http://www.commentics.org/support/knowle...&suggest=1
Reply
#14

You can allow comments with links by going to Settings -> Processor -> Comment, and deselecting the 'Detect Links' setting.

Regarding disabling Magic Quotes, if you read this page, there's a solution in Example #2.

If you add that code to your page, somewhere above the Commentics integration code, then it should fix it.

For example:

PHP Code:
<?php
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list(
$key, $val) = each($process)) {
foreach (
$val as $k => $v) {
unset(
$process[$key][$k]);
if (
is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset(
$process);
}
?>

<?php
$cmtx_page_id
= "1";
$cmtx_reference = "Page One";
$cmtx_path = "comments/";
define('IN_COMMENTICS', 'true'); //no need to edit this line
require $cmtx_path . "includes/commentics.php"; //no need to edit this line
?>

For the admin panel, add the code at the top of /comments/admin/index.php

Have you completed the interview?
Reply
#15

As always, thank you!!!!

(09-Aug-2012, 12:20 PM)Steven Wrote:  You can allow comments with links by going to Settings -> Processor -> Comment, and deselecting the 'Detect Links' setting.

Regarding disabling Magic Quotes, if you read this page, there's a solution in Example #2.

If you add that code to your page, somewhere above the Commentics integration code, then it should fix it.

For example:

PHP Code:
<?php
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list(
$key, $val) = each($process)) {
foreach (
$val as $k => $v) {
unset(
$process[$key][$k]);
if (
is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset(
$process);
}
?>

<?php
$cmtx_page_id
= "1";
$cmtx_reference = "Page One";
$cmtx_path = "comments/";
define('IN_COMMENTICS', 'true'); //no need to edit this line
require $cmtx_path . "includes/commentics.php"; //no need to edit this line
?>

For the admin panel, add the code at the top of /comments/admin/index.php
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by nsuomine
02-Mar-2024, 05:00 PM
Last Post by Steven
08-Jul-2021, 09:24 AM
Last Post by corculator
25-Feb-2012, 11:17 AM
Last Post by Looking
12-Jul-2011, 12:09 PM
Last Post by Steven
07-Jun-2011, 10:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)