Subrion CMS Support Forums   Follow Subrion on Twitter Join Us on Facebook

Go Back   Subrion CMS Support Forums > Subrion CMS Core Discussion > Subrion Core Discussion

Subrion Core Discussion Here we discuss everything that is related to Subrion CMS core functionality. Additional features related to plugins and templates engines. New features that are related to Manage Pages functionality or anything that's not related to Subrion packages.

Reply

 

LinkBack Thread Tools Display Modes
Old 05-03-2007   #1 (permalink)
Senior Member
 
Join Date: Apr 2007
Location: YOZGAT[TR]-StraSbourg[Fr]
Posts: 167
TurXaliM is on a distinguished road
Send a message via ICQ to TurXaliM Send a message via MSN to TurXaliM Send a message via Skype™ to TurXaliM
Exclamation problem of this character \ before ' when i have posted a Subitem

problem of this charahter \ before ' when i have posted a Subitem...

I have writed on your site;
(http://www.xooarticles.com/demo/subitems/hello-12.htm)
Quote:
Hello, i'm a WebMaster amator


but i see;
Quote:
Hello, i\'m a WebMaster amator
__________________
Excuse me all, My English isn't good
TurXaliM is offline   Reply With Quote
Old 06-04-2007   #2 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: problem of this character \ before ' when i have posted a Subitem

has this one been answered coz i am having the same problem
LorenGK is offline   Reply With Quote
Old 06-04-2007   #3 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: problem of this character \ before ' when i have posted a Subitem

Yes, here is 2 ways:
1. Easy: ask your hosting administrator to disable magic_quotes_gpc in php.ini
or
2. A little more complicated:
a) add to file admin/util.php
PHP Code:
function clr_slash($string)
{
    if (
get_magic_quotes_gpc())
        
$string stripslashes($string);
    return 
$string;

b) in file admin/create-subitem.php find lines
PHP Code:
<input type="text" name="title" size="45" maxlength="150" value="<?php echo $_POST['title'] ? $_POST['title'] : $subitem['title']; ?>" />
--- and ---
<textarea name="body" rows="10" cols="50"><?php echo $_POST['body'] ? $_POST['body'] : $subitem['description']; ?></textarea>
and replace its in accordance
PHP Code:
<input type="text" name="title" size="45" maxlength="150" value="<?php echo $_POST clr_slash($_POST['title']) : $subitem['title']; ?>" />
--- and ---
<textarea name="body" rows="10" cols="50"><?php echo $_POST clr_slash($_POST['body']) : $subitem['description']; ?></textarea>
Sergey Hmelevsky is offline   Reply With Quote
Old 06-05-2007   #4 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: problem of this character \ before ' when i have posted a Subitem

Okay done this used coding and changed, although, i found the text editor puts them back in if your not careful

But much better though cheers petal
LorenGK is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 06:29 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0