Pages: [1] |
|
|
Author |
Topic: Background colour problem (Read 608 times) |
makenote
Posts: 3
|
I've added snippet tags to a page that I want a friend to be able to update at times when I'm away.
When I login as administrator, the page displays correctly in Snippetmaster wysiwyg editor - white text on a black background.
When I login as a regular user, the background colour is white & I can't change it. The text is there (white) but when I save, the background colour becomes white permanently.
I've tried putting the snippet tags in different places in the html but the problem still occurs. I've also tried setting the background colour using the snippetmaster background colour button but it doesn't work at all. Any ideas would be welcome. Here's the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<!-- #BeginSnippet name="giglistedit" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Mighty Rockers</title>
<meta name="generator" content="WYSIWYG Web Builder - http://www.wysiwygwebbuilder.com">
<style type="text/css">
a:hover
{
color: #0000FF;
}
</style>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<div id="wb_Text1" style="position:absolute;left:7px;top:10px;width:492px;height:780px;z-index:0" align="left">
<font style="font-size:19px" color="#FFFFFF" face="Arial"><b>Where you can see the MIGHTY ROCKERS in action...<br>
</b></font><font style="font-size:13px" color="#FFFFFF" face="Arial"><b><u><br>
JULY 07</u></b></font><font style="font-size:16px" color="#FFFFFF" face="Times New Roman"> <br>
</font><font style="font-size:13px" color="#FFFFFF" face="Arial">Sat 14 - Mollymook Golf Club - Rock This Country - Elvis & Shania</font><font style="font-size:16px" color="#FFFFFF" face="Times New Roman"> <br>
</font><font style="font-size:13px" color="#FFFFFF" face="Arial">Fri 21 - Fairfield RSL - Time Cap</font></div>
</body>
<!-- #EndSnippet -->
</html>
|
|
|
|
admin
Forum Administrator

Posts: 2559
SnippetMaster Author
|
You need to move the Snippetmaster start and end tags to the other side of the head.
So I would place them just after and before the BODY tags.
(So they can edit everything "inside" the body tag.)
I hope that helps...
Let me know.
|
|
|
|
admin
Forum Administrator

Posts: 2559
SnippetMaster Author
|
The problem is that when Snippetmaster loads the code you've placed as "editable" into the editor.. it is messing it up, because the Snippet you have specified is not valid HTML code right now.
If you make the snippet be everything inside the BODY tag, and then make sure your friend chooses the SNIPPET (not the "whole file") when selecting to edit.. then it should work perfectly for them.
|
|
|
|
makenote
Posts: 3
|
By the way - Snippetmaster is a great thing - I spent days looking for something like this. Congrats.
I put the snippet tags in side the body tags but I still get the same problem. I'm not quite sure what you mean by 'only editing the snippets, not the files' - when I login as regular user I get 2 options -
1. SNIPPETS - nothing happens when I select this
2. giglist.html - this is the file I'm having probs with
Perhaps I've missed something in the install?
|
|
|
|
Jenkinhill
|
Make sure that you have selected "If user is listed in Snippet Tag ACL or if no ACL exists for the Snippet Tag" under Regular User Privileges (When Can Regular Users Edit Snippets?) in the Admin area. From your example you are not using ACL.
As for the background color, a problem here is that you are using "old" HTML 4.01 which is an 8 year old standard, while the editor in SnippetMaster tries to use and to create valid XHTML (introduced in 2000). Rather than define the background within the <body> tag it should be within a style sheet so it is accessible to the editor - you may need to add in editor specific styles, too, see http://www.snippetmaster.com/forums/index.php/topic,1234.0.html
I suspect the body tag color definitions are being removed on saving so you see the browser default white background on the saved page.
|
Kelvyn
|
|
|
makenote
Posts: 3
|
Thanks Jenkinhill, I did have my permissions set correctly, although I did double check them.
I'm not much on CSS but I think I've spotted the problem - for some reason the wysiwyg editor doesn't like black as a background colour (as #000000).
Any other colour seems to work so I came up with a workaround - as the page I want to edit is to appear in an inline frame, I've made the page transparent & the colour of the text box "really close to black" (as#0000ff). This makes the background colour in the editor dark enough to see the white text. When I save, it keeps this colour and it's black enough to not be noticeable on the final webpage. This is a pretty strange anomalie that I'm sure can be addressed in future updates (hopefully).
|
|
|
|
|
Pages: [1]
|
|
|
|