Members: 16,996
Threads: 38,831
Posts: 159,349
Online: 47

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 02.08.2005, 16:56   #1 (permalink)
Mamber
 
neilt's Avatar
 
Join Date: Mar 2005
Posts: 68
neilt will become famous soon enough
Question remove some of the <img> tags mosce adds

Hi

I'm using mosCE 1.0 and need to remove some of the tags it adds to images when they are placed in the page using the little 'photo' type icon.

Currently if i select a solder, then image I get the following chucked in my code :

<img title="ebilling.gif" style="width: 197px; height: 129px" alt="ebilling.gif" hspace="0" src="/business-rates/ebilling.gif" width="197" border="0" />

What I want is to take out the style, hspace and border to just get this:

<img title="ebilling.gif" height: 129px" alt="ebilling.gif" src="/business-rates/ebilling.gif" width="197" />

Any ideas how please as I cannot go live until this is done.

Thanks
Neil
neilt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 02.08.2005, 18:57   #2 (permalink)
Expert Mamber
 
scox's Avatar
 
Join Date: Jan 2005
Location: Graz, Austria
Posts: 288
scox is on a distinguished road
Send a message via ICQ to scox
Default AW: remove some of the <img> tags mosce adds

why does this bother you?

i'd remove the width and height tags you want......

but if you really HAVE TO do this, you'll have to find the js function that is creating the inserting code and alter it.... do a grep hspace on the js files

OR try this:
goto the config and edit the extended attributs list with:
img[src|width|alt]
__________________
www.rent-a-ninja.org ... so you don't have to!

Mambo Open Source Development Team
http://opensourcematters.org/
scox is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02.08.2005, 20:02   #3 (permalink)
Mamber
 
neilt's Avatar
 
Join Date: Mar 2005
Posts: 68
neilt will become famous soon enough
Default Re: remove some of the <img> tags mosce adds

Thanks Scox

This "img[src|width|height|alt|class|title]" did 100% what I was after.

I apologise if that sort of thing was obvious but although I've modified the life out of Mambo I've only been doing Mambo/PHP/MySQL for about 5 weeks so I'm on a very great learning curve.

The reason I needed to remove this was for accessibility as some of the tags border, align etc are depricated HTML tags.

We are ranked as a Local Authority and our current site is 3rd out of nearly 500 on HTML compliance and Accessibility upto AAA standard, something I need to get automated into Mambo before it's launch (which is hopefully within the next 1 week)

Best wishes
Neil
neilt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03.08.2005, 08:00   #4 (permalink)
Expert Mamber
 
scox's Avatar
 
Join Date: Jan 2005
Location: Graz, Austria
Posts: 288
scox is on a distinguished road
Send a message via ICQ to scox
Default AW: Re: remove some of the <img> tags mosce adds

well, it's not obvious....
while i was trying to add a CLASS attribut to an anker i realized that he removes every attribute i didn't define, even if it worked before (liek href ^^)
__________________
www.rent-a-ninja.org ... so you don't have to!

Mambo Open Source Development Team
http://opensourcematters.org/
scox is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03.08.2005, 09:09   #5 (permalink)
Mamber
 
neilt's Avatar
 
Join Date: Mar 2005
Posts: 68
neilt will become famous soon enough
Default Re: remove some of the <img> tags mosce adds

thanks

Are all tags allowed unless you specifically enter a tag in this section and give them "fixed" allowable attributes?

Neil
neilt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03.08.2005, 09:43   #6 (permalink)
Expert Mamber
 
scox's Avatar
 
Join Date: Jan 2005
Location: Graz, Austria
Posts: 288
scox is on a distinguished road
Send a message via ICQ to scox
Default AW: Re: remove some of the <img> tags mosce adds

no, you can check mosce.php in mabots directory somewhere around line 209 ... you could jsut remove the class there if you want to
__________________
www.rent-a-ninja.org ... so you don't have to!

Mambo Open Source Development Team
http://opensourcematters.org/
scox is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03.08.2005, 10:15   #7 (permalink)
Mamber
 
neilt's Avatar
 
Join Date: Mar 2005
Posts: 68
neilt will become famous soon enough
Default Re: remove some of the <img> tags mosce adds

Many thanks
Neil
neilt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADS - Tags :: Heilbar? NoVeK Smalltalk 11 30.11.2004 23:44


All times are GMT +2. The time now is 20:01.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.