Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues
Author Message
kingjames
Hangin' Around



Joined: Sep 27, 2011
Posts: 33

PostPosted: Tue Sep 27, 2011 12:10 pm Reply with quote

I am sorta a newbie here so maybe this is not a FCKeditor issue at all and I could very well be mistaken but since it happens while in FCKeditor I will put it here for now. If someone wants to move it elsewhere please do.

I just installed RavenNuke and started manually moving over all my old content, well I finished up all my content in the Articles section and everything went fine however when I started adding my content in the Reviews section something odd is happening.

When I am on the page to add the reviews everything looks fine, but when I go to Preview at the bottom all my pictures that were centered in the middle go back to the left side. I have checked the .html and what is happening is that FCKeditor (I think) is removing my "<p style="text-align: center;">" which was centering my image this is very strange because I just added 50 articles and all the images were centered in the very same manner and this never happened.

Since I was getting frustrated I went in to the Cpanel pulled up the Nuke_Reviews table and added the "<p style="text-align: center;">" back in and all my pictures now display properly but this obviously not the correct solution. Maybe I am not even centering my pics in the proper manner but again this method worked for all my content in the Articles section so I am stumped. Any help would be appreciated.


Last edited by kingjames on Tue Sep 27, 2011 4:33 pm; edited 1 time in total 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Tue Sep 27, 2011 1:21 pm Reply with quote

This sounds like a problem with the AllowableHtml array. However, I have some reservation about saying that since the reviews module should work with the same settings in AllowableHtml as the other modules do (and a quick scan through the code doesn't contradict that -- I don't see where reviews is doing anything different. I had a similar problem on my RN 2.40.01 site (that is the version you are using right?). You could try this:

1. Back up your rnconfig.php file.
2. Substitute this code for the allowablehtml array:

Code:
$AllowableHTML = array(

   'a' => array('class' => 1, 'style' => 1, 'id' => 1, 'href' => 1, 'target' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),
   'b' => array(),
   'blockquote' => array('class' => 1, 'style' => 1, 'id' => 1),
   'br' => array(),
   'center' => array(),
   'div' => array('class' => 1, 'style' => 1, 'id' => 1, 'align' => 1),
   'em' => array('class' => 1, 'style' => 1, 'id' => 1),
   'font' => array('face' => 1, 'style' => 1, 'color' => 1, 'size' => array('minval' => 1, 'maxval' => 7)),
   'h1'=>array('class' => 1, 'style' => 1, 'id' => 1),
   'h2'=>array('class' => 1, 'style' => 1, 'id' => 1),
   'h3'=>array('class' => 1, 'style' => 1, 'id' => 1),
   'h4'=>array('class' => 1, 'style' => 1, 'id' => 1),
   'h5'=>array('class' => 1, 'style' => 1, 'id' => 1),
   'h6'=>array('class' => 1, 'style' => 1, 'id' => 1),
   'hr' => array(),
   'i' => array(),
   'img' => array('class' => 1, 'style' => 1, 'id' => 1, 'alt' => 1, 'src' => 1, 'hspace' => 1, 'vspace' => 1, 'width' => 1, 'height' => 1, 'border' => 1, 'align' => 1),
   'li' => array('class' => 1, 'style' => 1, 'id' => 1),
   'ol' => array('class' => 1, 'style' => 1, 'id' => 1),
   'p' => array('class' => 1, 'style' => 1, 'id' => 1, 'align' => 1),
   'pre' => array('style' => 1, 'id' => 1, 'align' => 1, 'class' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),
   'span' =>array('id' => 1, 'class' => 1, 'style' => array('font-family' => 1, 'color' => 1)),
   'strong' => array(),
   'strike'=>array(),
   'sub'=>array(),
   'sup'=>array(),
   'table' => array('class' => 1, 'style' => 1, 'id' => 1, 'align' => 1, 'border' => 1, 'cell' => 1, 'width' => 1, 'cellspacing' => 1, 'cellpadding' => 1),
   'tbody'=>array('class' => 1, 'style' => 1, 'id' => 1),
   'td' => array('class' => 1, 'style' => 1, 'id' => 1, 'align' => 1, 'width' => 1, 'valign' => 1, 'height' => 1, 'rowspan' => 1, 'colspan' => 1 ),
   'tfoot'=>array('class' => 1, 'style' => 1, 'id' => 1),
   'th' => array('class' => 1, 'style' => 1, 'id' => 1, 'align' => 1, 'scope' => 1, 'width' => 1, 'valign' => 1, 'height' => 1, 'rowspan' => 1, 'colspan' => 1),
   'thead'=>array('class' => 1, 'style' => 1, 'id' => 1),
   'tr' => array('class' => 1, 'style' => 1, 'id' => 1, 'align' => 1),
   'tt'=>array(),
   'u' => array(),
   'ul' => array('class' => 1, 'style' => 1, 'id' => 1),
);


Try again and report back. The values I have posted in the array are from the forthcoming RN2.5 release and solved the similar problem I was experiencing.
 
View user's profile Send private message Visit poster's website
kingjames







PostPosted: Tue Sep 27, 2011 4:32 pm Reply with quote

Yes I am using RN 2.40.01. I tried what you said and the images centering in the Review section now seems to work the same as in the Articles section. Thank you for the help! I have to admit though that I am disappointed that not only could I not solve the problem myself, I couldn't even correctly identify what was causing the problem.
 
kingjames







PostPosted: Tue Sep 27, 2011 4:35 pm Reply with quote

BTW since this now seems to be the wrong forum for this post, feel free to move it where it should be. Once again I thank you for your help.
 
fkelly







PostPosted: Tue Sep 27, 2011 7:10 pm Reply with quote

You are welcome Kingjames. I work on the RN team and I am not even sure which of those codes being allowed fixed the problem. Nor am I sure why your version of the problem only occurs in Reviews ... I was having it in blocks created by the blocks editor. It (RN) is a complex product and sometimes we just have to be satisfied to fix the symptoms, at least temporarily.
 
kingjames







PostPosted: Thu Sep 29, 2011 3:52 am Reply with quote

Since you mentioned you work on the RN team I thought I would link this other thread I noticed just now with another user having the same problem (that you resolved). Ironically he also thought it was an issue with FCKeditor. It seems there is some sort of an RN issue here though.

http://www.ravenphpscripts.com/postp156084.html#156084
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©