SnippetMaster Support Forums
Return to main website
 
January 27, 2008, 01:35:54 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 27, 2008, 01:35:54 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Image Maps & Paths « previous next »
Pages: [1] Print
Author Topic: Image Maps & Paths  (Read 214 times)
Chae

Posts: 3


[-] Image Maps & Paths
« on: November 25, 2007, 01:53:28 AM »

Hi Yah,

Just wondering if anyone has come across this problem with the LITE version. The problem happens in both IE & Firefox...

We create the site for a customer & 9 times out of ten we keep it simple with a basic header image using an image map for any internal links. Now the problem is every time the customer edit the page snippetmaster seems to kill all the links on the image maps. When we open the page up after editing, the image map code is still there except for the fact all the co-ordinates seem to go missing.

We've also tried creating absolute paths to the internal links & then tried relative links...and as I said everytime the customer edits the page or we do, save the page & the image map dies.

Any suggestions or pointers in the right direction would be great.

Thanks in advance

Chae
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 331



[-] Re: Image Maps & Paths
« Reply #1 on: November 25, 2007, 04:00:29 AM »

Two things come to mind. Ensure that the map code is valid XHTML 1.0 - and preferably strict rather than transitional. A check list for client side mapping in XHTML is here.

Secondly, why is the client editing header/menu areas? Sounds like they are doung a full page edit. I suggest you put the snippet tags around the actual content they should be editing, and assign them to a group which does not have the ability (permissions) to edit the whole page.
Report to moderator   Logged

Kelvyn
Chae

Posts: 3


[-] Re: Image Maps & Paths
« Reply #2 on: November 25, 2007, 11:46:33 AM »

Hi Yah,

Firstly the client isn't changing the header area, they can't. Secondly the pages were designed using XHTML 1.0 Transitional, so we'll change those to see if it makes any difference, pages were initially designed in CS3, then uploaded to server for customer to change only the body text nothing else.

The image map code when designed is this...

<map name="Map">
  <area shape="rect" coords="6,13,72,33" href="../index.html" title="Back Home...">
  <area shape="rect" coords="5,37,100,59" href="../about_us.html" title="About Us...">
  <area shape="rect" coords="7,62,154,85" href="../rooms_rates.html" title="Rooms &amp; Rates...">
  <area shape="rect" coords="8,91,123,107" href="../whats_new.html" title="Whats New...">
  <area shape="rect" coords="8,112,117,133" href="../contact.html" title="Contact Us...">
</map>

After the customer edits a page (body text area only) then code on the page changes the image map to this...

<map name="Map">

<area href="index.html" />

<area href="about_us.html" />

<area href="rooms_rates.html" />

<area href="whats_new.html" />

<area href="contact.html" />

</map>

Totally confused as to why it would do this. The customer uses the WYSIWYG editor not the HTML part

Regards

Chae
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 331



[-] Re: Image Maps & Paths
« Reply #3 on: November 25, 2007, 03:40:49 PM »

Since my earlier reply I popped over to the Moxiecode forum, where the developers of the tinyMCE editor used in SnippetMaster are found, and a bit of investigation turns up reports of just what you describe - but only in IE, while you report it also in Firefox.

If you are going to include the map code within the editable snippet (and I would exclude it, as there is nothing for the client to edit) then you may need to try adding the map elements you need to be ignored into the  Extended Valid Elements field on the SnippetMaster Admin/General tab. You could try:

map[name],area[shape|coords|href]

Report to moderator   Logged

Kelvyn
Chae

Posts: 3


[-] Re: Image Maps & Paths
« Reply #4 on: November 25, 2007, 04:31:06 PM »

I'd already come across their post & had previously told customer to use Firefox.

Anyway's looks like I have the problem solved, but will know for sure once customer starts editing again. It was actually something extremely simple...

The initial problems he was getting was the IE issue, the 2nd problem was the image map part. This is how I resolved it (fingers crossed)

In the General/Admin settings where it states "Editor Link Type" I changed the default setting to "Absolute http://"

That was it.   Laughing
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Image Maps & Paths « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!