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 06-15-2007   #1 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Subitems ~ Pesky \\\ lines appearing again

Sergey, in a thread a while back I was having problems with \\\ lines, think I mentioned that it happens in Subitems but we didn't do anything about it. Course now i am adding more it's starting to be come irritating (Pesky by the way means "causing irritation or annoyance" Just thought I would teach you some new exciting English vocabulary! LOL) Anyway,

1) When I first create a subitem there is no problem, however if I missed something and have to modify, the result is like this below which then gets saved and is displayed like the next example.

Code:
<p><font size=\"2\">The report said recent government campaigns had failed to 
recognise the link between drink, drugs and sexual health. </font></p>
<p><font size=\"2\">The IAG also points out that the UK has the highest rates of 
teenage pregnancy and sexual infections in Europe. </font></p>
<p><font size=\"2\"><b>\'Glamorising celebrity\'</b> </font></p>
<p><font size=\"2\">Increasing numbers of young teenagers are defining their lives 
by taking drugs, drinking alcohol and having under-age sex encouraged by today\'s 
celebrity culture, it says. </font></p>
Which results in this:
Quote:
The report said recent government campaigns had failed to recognise the link between drink, drugs and sexual health.
The IAG also points out that the UK has the highest rates of teenage pregnancy and sexual infections in Europe.
\'Glamorising celebrity\'
Increasing numbers of young teenagers are defining their lives by taking drugs, drinking alcohol and having under-age sex encouraged by today\'s celebrity culture, it says.
Please could you advise me on how I can stop this.

2) Is there a way of adding that very handy wysiwig editor to the subitems description box too. It's very helpful, I tried to figure out from looking at the admin/create-category.php but I am not very clued up on php and didn't want to make a mess of code.

Well thank you once again, for all your help!

LorenGK is offline   Reply With Quote
Old 06-15-2007   #2 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Subitems ~ Pesky \\\ lines appearing again

Hello Loren. I disable feature 'Pesky Slashes For Subitem' on your site
But nevertheless, don't forget us
Sergey Hmelevsky is offline   Reply With Quote
Old 06-21-2007   #3 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: Subitems ~ Pesky \\\ lines appearing again

Oh it's only me again

Quote:
2) Is there a way of adding that very handy wysiwig editor to the subitems description box too. It's very helpful, I tried to figure out from looking at the admin/create-category.php but I am not very clued up on php and didn't want to make a mess of code.
Realised you missed this, teach me to put it in the same thread as another...is this possible? Coz at mo I have my editor open to make changes
LorenGK is offline   Reply With Quote
Old 06-21-2007   #4 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Subitems ~ Pesky \\\ lines appearing again

Here is how to do this in admin CP.
1. Open file admin/create-subitem.php and find nex lines
PHP Code:
<td><textarea name="body" rows="10" cols="50"><?php echo isset($_POST) ? clr_slash($_POST['body']) : $subitem['description']; ?></textarea></td>
replace it with next
PHP Code:
<?php
    
echo '<td>';
    require_once(
"../classes/xaFckeditor.class.php");
    
$Editor = new FCKeditor('body') ;
    
$Editor->Value    $_POST $_POST['body'] : $subitem['description'];
    
$Editor->Height    150;
    
$Editor->Create();
    echo 
'</td>';
?>
Sergey Hmelevsky is offline   Reply With Quote
Old 06-21-2007   #5 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: Subitems ~ Pesky \\\ lines appearing again

Quote:
Originally Posted by Sergey Hmelevsky View Post
Here is how to do this in admin CP.
1. Open file admin/create-subitem.php and find nex lines
PHP Code:
<td><textarea name="body" rows="10" cols="50"><?php echo isset($_POST) ? clr_slash($_POST['body']) : $subitem['description']; ?></textarea></td>
replace it with next
I didn't have this code you told me to change mine looked like this:

Code:
<td><textarea name="body" rows="20" cols="100"><?php echo $_POST['body'] ? $_POST['body'] : $subitem['description']; ?></textarea></td>
So I placed this code where the above code goes, and it works, but the box width is too wide and doesn't fit on the screen so some of the buttons are not visible.

How can I correct that using replacing my code above?

Thank You Petal
LorenGK is offline   Reply With Quote
Old 06-21-2007   #6 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Subitems ~ Pesky \\\ lines appearing again

It is what you need.
Only change in example above line
PHP Code:
$Editor->Value    $_POST $_POST['body'] : $subitem['description']; 
with
PHP Code:
$Editor->Value    $_POST clr_slash($_POST['body']) : $subitem['description']; 
it's about 'pesky' slashes
Sergey Hmelevsky is offline   Reply With Quote
Old 06-21-2007   #7 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: Subitems ~ Pesky \\\ lines appearing again

Oh those 'Pesky' slashes!

Yes well that would certainly help, thank you for that but it hasn't improved the editing buttons being cut off

Here see what I mean

Oops forgot to mention my lappy screen is 15" but my monitor is 19" ~ it displays cut off on the 15" but displays correctly on the 19" monitor...course I could just add on the big screen just you know you get into a routine of how you do things to utilize time and all that...Okay waffling now

Last edited by LorenGK; 06-21-2007 at 04:38 AM. Reason: Forgot something
LorenGK is offline   Reply With Quote
Old 06-21-2007   #8 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: Subitems ~ Pesky \\\ lines appearing again

Check it now
Sergey Hmelevsky is offline   Reply With Quote
Old 06-23-2007   #9 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: Subitems ~ Pesky \\\ lines appearing again

Wooohoo! Does a little wiggle Thanks Hun! Much appreciated
LorenGK is offline   Reply With Quote
Old 07-07-2007   #10 (permalink)
Senior Member
 
Join Date: May 2007
Posts: 105
LorenGK is on a distinguished road
Default Re: Subitems ~ Pesky \\\ lines appearing again

Sergeeeeeeeeeeey...this is frustration setting in...I hate this friggin things!

1) A person edited their article and what happened was the lines appeared again.

Not only this, I set up the article admin side, it happened there too, so i have to make sure it's exact, I used the editor to add the hyperlink, well of course when the lady added a different url to the original hyperlink this is what appeared, and gives error page.

see lines!
Code:
Do you sometimes feel as if you\'re \'burnt out\'? It\'s a common problem in 
modern society. We do a full day\'s work, and then may come home to DIY, 
housework, meal preparation, elderly parents and/or taxi duties for the 
children. Everyone knows it\'s good to spend quality time with the family – but 
have you considered whether you\'re spending quality time with YOU? At work, 
have at least a 20 minute break each day. At home, schedule periods of rest and 
relaxation into every day. It\'s important for your mental and physical health. 
You\'ll perform better and feel better.<br>
see probs with url?
Code:
<a _fcksavedurl="\&quot;&quot;http://www.life-coaching-london.co.uk/reduce-stress.html&quot;\&quot;" href="http://www.gaiapulse.co.uk/res/js/fckeditor/editor/\%22%22http://www.life-coaching-london.co.uk/reduce-stress.html%22\%22">
<u>http://www.life-coaching-london.co.uk/reduce-stress.html</u></a></p>
I have to say that this is the only script that and the directory script that suffers this problem why? It's so untidy and unprofessional looking...

Please help me eradicate this nuisance, because I am tired of having to add notes to do this and emails to say this.

2) Need an wyziwig editor on the member (front end) Edit article by the way please.


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


Similar Threads

Thread Thread Starter Forum Replies Last Post
No Content Appearing shunny Subrion Core Discussion 9 06-21-2007 01:57 AM


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


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