Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN All Other Issues
Author Message
Brujo
Regular
Regular



Joined: Jun 04, 2004
Posts: 84
Location: Germany

PostPosted: Sun Mar 22, 2009 11:33 am Reply with quote

since the fckeditior is integrated & and used also in the faq module I think the following line in the index.php breaks XHTML because the editor set normaly the p tag and therefore it would be twice.

in the function ShowFaqAll

Code:
 .'<p align="justify">'.$answer.'</p>'


Brujo
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sun Mar 22, 2009 1:19 pm Reply with quote

What is the exact error that the validator is showing? Can you post the HTML code that is displayed on the page rather than from the files.
 
View user's profile Send private message
Brujo







PostPosted: Sun Mar 22, 2009 2:19 pm Reply with quote

OK, so I created a new test Categorie with the Question "Test Question" and the Answer "Test Answer" with the fckeditor

here the snip from Sourcecode
Quote:
<b>Test Question</b><p align="justify"><p>Test Answer</p></p>[ <a href="#top">Zur&uuml;ck zum Anfang</a> ]


tidy says: Warning inserting implicit <p>
xhtml validator: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

as I understand the 2 p tags are the problem

Brujo
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sun Mar 22, 2009 4:50 pm Reply with quote

We could just remove it and people will just have to do there own justification?

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
horrorcode
Involved
Involved



Joined: Jan 17, 2009
Posts: 272
Location: Missouri

PostPosted: Sun Mar 22, 2009 7:04 pm Reply with quote

Just an opinion, but I vote for removing it, I actually go back and remove them manually anyways as it looks better without the p.
 
View user's profile Send private message
Palbin







PostPosted: Sun Mar 22, 2009 10:56 pm Reply with quote

Probably replace it with a div tag.
 
Brujo







PostPosted: Tue Mar 24, 2009 3:38 am Reply with quote

i tested it without the p & justify tag and with the div, both are fine and valid and i personal tend to the div tag.

Another small issue is in the function ShowFaq with the ">"

Code:
        

._CATEGORY.': <a href="modules.php?name='.$module_name.'">'._MAIN.'</a> -> '.$categories

should be:
._CATEGORY.': <a href="modules.php?name='.$module_name.'">'._MAIN.'</a> -&gt; '.$categories



and another one in the modules/Topics/index.php

Code:
        

echo '<big><strong>&middot;</strong></big>&nbsp;<a href="modules.php?name=News&amp;new_topic='.$topicid.'"><b>'._MORE.' -->;</b></a>';

should be:
echo '<big><strong>&middot;</strong></big>&nbsp;<a href="modules.php?name=News&amp;new_topic='.$topicid.'"><b>'._MORE.' --&gt;</b></a>';



Brujo
 
Palbin







PostPosted: Thu Apr 02, 2009 5:46 pm Reply with quote

Fixed and fixed! Thanks for the input.
 
Brujo







PostPosted: Sat Apr 04, 2009 12:05 am Reply with quote

@palbin, thanks good to know that also the small issues are now fixed

Brujo
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN All Other 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 ©