PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
dad7732
Worker
Worker


Joined: Mar 18, 2007
Posts: 224

PostPosted: Mon May 12, 2008 9:13 am Reply with quote Back to top

Edit "Messages" with CSS and it's lost when saviing. Load Message format in the editor, click on "Source" and nothing is shown in the <head> tag. So, how do you retain CSS style formatting? I MUST be missing SOMEthing (as usual). Smile

Cheers, Jay
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4853

PostPosted: Mon May 12, 2008 9:30 am Reply with quote Back to top

Confused...messages can't affect what's displayed in the <head> tag. If the css class is lost from the message, that's a different issue.
View user's profile Send private message
dad7732
Worker
Worker


Joined: Mar 18, 2007
Posts: 224

PostPosted: Mon May 12, 2008 9:32 am Reply with quote Back to top

Confusion override .. Smile

My "Messages" has a <head> tag with style. Everything in the <head> tag is lost when viewing the source and/or saving after editing the body of the message.

Cheers
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4853

PostPosted: Mon May 12, 2008 10:08 am Reply with quote Back to top

That's because head isn't defined in the allowableHTML array in config.php. You don't want this because it's defined (overridden) in the header.php file (i.e. even if the editor didn't remove it, it wouldn't work). You can do inline CSS or add the CSS (inline or linked) in the header.php, custom_header.php or javascript.php files.
View user's profile Send private message
dad7732
Worker
Worker


Joined: Mar 18, 2007
Posts: 224

PostPosted: Mon May 12, 2008 10:26 am Reply with quote Back to top

Actually my "Messages" format on this particular site is a holdover from Nuke 6.5 in this example. What I can do is to edit the messages locally and then paste it as "source" and save. That works.

So, the only way to create style is inline in each tag in FCK without having to modify any other configuration file(s) which is fine by me. The least amount of fingers in the pie the better. Smile

Cheers
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4853

PostPosted: Mon May 12, 2008 8:56 pm Reply with quote Back to top

You could also have CSS defined externally, loaded in a link rel tag, and specify the class in the editor.
View user's profile Send private message
dad7732
Worker
Worker


Joined: Mar 18, 2007
Posts: 224

PostPosted: Mon May 12, 2008 9:19 pm Reply with quote Back to top

Yep, can do that as well. Also found out something else interesting. I can enter:
Code:
<style type="text/css">
.hot3 {
    font-family: verdana,arial;
    color: black;
    font-weight: bold;
    background-color: ivory;
    font-size: 14px;
    width : 600px;
    margin-left : auto;
    margin-right : auto;
    border : thin solid red;
    padding : 15px;
    text-align: justify;
   }


body {
background-color:black;
}
</style>

at the top of the regular html, just do NOT add a <head> or anything else including a <body> tag or else the CSS will be stripped upon a re-edit.

Also interesting is that FCK will add a <p> before the <style> tag and a </p> after the </style> tag. All CSS will be intact from edit to edit and that way I don't have to do inline style, etc. However, I do like the use of the link rel tag as that's a bit easier depending on the complexity of the CSS.

Cheers
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7458
Location: Arizona

PostPosted: Mon May 12, 2008 9:26 pm Reply with quote Back to top

Yeah, because embedding CSS in-line the way you are doing here will break compliance (XHTML).
View user's profile Send private message Visit poster's website
dad7732
Worker
Worker


Joined: Mar 18, 2007
Posts: 224

PostPosted: Mon May 12, 2008 10:14 pm Reply with quote Back to top

Dunno what it's breaking, works in FF, Seamonkey, Nav 9, Flock, etc.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7458
Location: Arizona

PostPosted: Tue May 13, 2008 5:33 am Reply with quote Back to top

dad7732, if being XHTML compliant is of no value to you and it renders fine for you in all the browsers that you wish to support, then forget what I said.
View user's profile Send private message Visit poster's website
dad7732
Worker
Worker


Joined: Mar 18, 2007
Posts: 224

PostPosted: Tue May 13, 2008 6:03 am Reply with quote Back to top

No no ... let me restate, sorry!! What I meant was, "what does it break?". If there is a critical issue then I need to fix it, thanks.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue May 13, 2008 7:01 am Reply with quote Back to top

Doing it that way is non-compliant, i.e. it is against the rules of XHTML.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4853

PostPosted: Tue May 13, 2008 11:57 am Reply with quote Back to top

dad7732 wrote:
However, I do like the use of the link rel tag as that's a bit easier depending on the complexity of the CSS.

And, it's XHTML compliant, so you get the Good Housekeeping Seal of Approval (just kidding).

Seriously, you might as well just put the CSS inline (instead of insert the style outside the <head> tag). That will work and keep the compliance police happy, too.
View user's profile Send private message
dad7732
Worker
Worker


Joined: Mar 18, 2007
Posts: 224

PostPosted: Tue May 13, 2008 5:47 pm Reply with quote Back to top

Thanks guys!! It's only the one site brought up from Nuke 6.5 where there was only the basic editor AND my most important support site to boot. So .. keeping the fingers out of the pie will suffice for the moment but I will reformat the messages on THAT site on my local system making sure it works and is compliant and THEN upload it. All the rest based on RN will of course will be formatted correctly from the beginning.

Good Housekeeping Seal accepted .. Very Happy

Cheers
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7458
Location: Arizona

PostPosted: Wed May 14, 2008 5:55 am Reply with quote Back to top

Quote:
and keep the compliance police happy, too


ROTFL

I figured someone has to pick up the charge for 64bitguy.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum