Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Generating XHTML 1.0 strict & tableless output...  (Read 9444 times)

0 Members and 1 Guest are viewing this topic.

jul

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 17
Generating XHTML 1.0 strict & tableless output...
« on: October 05, 2004, 01:08:36 pm »

Hi all,


I'm almost finished with my xhtml tableless template, but two problems prevent it from validating: the powered by coppermine target blank code ( I know you won't help me on this) and the ampersands in the urls generated. For compliance to xhtml, I have to replace & by & in every url, and I don't find the place where urls are generated. I looked in the functions.inc.php file, did the modif on every & which I thought generated the url, but the number of errors is still the same.

I know cvs files fix this but I dont want to change everything else... Could you tell me what to change?

Thanks a lot for your help,

Jul
« Last Edit: October 08, 2004, 04:56:41 pm by jul »
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #1 on: October 05, 2004, 01:16:35 pm »

replace in theme.php
Logged
SANIsoft PHP applications for E Biz

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #2 on: October 06, 2004, 01:27:55 am »

Hi all,


I'm almost finished with my xhtml tableless template, but two problems prevent it from validating: the powered by coppermine target blank code ( I know you won't help me on this) and the ampersands in the urls generated. For compliance to xhtml, I have to replace & by & in every url, and I don't find the place where urls are generated. I looked in the functions.inc.php file, did the modif on every & which I thought generated the url, but the number of errors is still the same.

I know cvs files fix this but I dont want to change everything else... Could you tell me what to change?

Thanks a lot for your help,

Jul

Could you send your url to see your tableless version ?

jul

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 17
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #3 on: October 06, 2004, 02:56:34 pm »

Hi,

Thanks for your help... In fact, I had to do change not only in theme.php, bat also index, thumbnails, displayimage... Long and boring but now every ampersand is fixed... 2 error remain: attribute "align" and target in the footer. I hope I'll find how to delete them one day!

If you want to have a look, I am still testing the gallery, I did not transfer much pics and  its not public yet. I removed a lot of features I did not want and  the admin part is not tableless yet, but everything you'll see is absolutely table less, even the thumbnails page. (link in profile)

Regards

Jul
« Last Edit: October 07, 2004, 05:16:10 pm by jul »
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #4 on: October 06, 2004, 03:19:11 pm »

Thanks for your help... In fact, I had to do change not only in theme.php, bat also index, thumbnails, displayimage...
Oh! I thought that you had already done that part index thumbnails etc
Good work - would you like to share it with the community?
Logged
SANIsoft PHP applications for E Biz

jul

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 17
Help needed to create an xhtml tableless mod from my changes...
« Reply #5 on: October 07, 2004, 10:40:39 am »

Hi,

I would be glad to share with the community, but there are three issues:

It's rather a hack than a theme, as I had to modify a lot of files other than theme files, so how should it be published?

I disabled a lot of functions in the theme to suit my desires, so if anybody wants to use these functions, there will be work to put them back in the theme.php (and change them to validate).

And I was to lazy to edit all the admin and config pages to remove tables and create divs, as I m' the only one to use them, it's really chaotic... It would take a good couple hours to do it...


I'm quite running out of time, exams are coming up, but if somebody want to help building a complete hack for this, I'd be glad to give the files I changed and answer questions about them.

Would anybody with knowledge or will to learn xhtml/css want to join this project or should I just release the files in the nature and let everybody do the work for themselves?

Thanks for your replies!

Jul
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #6 on: October 07, 2004, 02:54:26 pm »

I'm ready to work with you if you want : I have another "way" of the tableless version : maybe could you able together to not separate all is "customization" between displayimage and theme ?

jul

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 17
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #7 on: October 07, 2004, 04:37:28 pm »

Hi Rodinou,

I did not get what you wrote, would you want to change only the theme and displayimage.php? It wont validate and won't be really tableless in this case... If I work on something, I want to be sure that it will be w3c standard compliant, so that every visitor can see the same thing, whatever the browser is...

If you want to write in french, feel free to post a pm

regards

Jul
Logged

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #8 on: October 07, 2004, 04:57:59 pm »

OK pour moi
> rod@fantasya.net (c mon MSN)

Mais quand tu dis "chaque navigateur voit la meme chose", je suppose que tu parles de tout navigateur datant de moins de 1 an :)

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #9 on: October 07, 2004, 06:27:04 pm »

Rodinou, he said a PM.  Please keep all public posts in english.  Thanks.

Dave
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

biff

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • Biff's Lyrics Archive
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #10 on: October 07, 2004, 11:17:21 pm »

...two problems prevent it from validating: the powered by coppermine target blank code ( I know you won't help me on this)...

Are we not allowed to edit this section?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #11 on: October 08, 2004, 12:11:51 am »

You are allowed to edit it, providing the credit and link are still clearly viewable on your page.  This is basically the only thing we require for the use of coppermine.

But due to the number of people who seem to want to deny us even this, or even claim it as their own, we will not post how to edit this code.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #12 on: October 08, 2004, 08:06:22 am »

The "Powered by Coppermine" tag will be / is changed in the next coppermine version (devel/cpg1.4.0) already, although it doesn't interfere with xhtml compliance anyway. I'm not sure why it has to be discussed on this thread once more.

Joachim
Logged

biff

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • Biff's Lyrics Archive
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #13 on: October 08, 2004, 08:32:43 am »

...although it doesn't interfere with xhtml compliance anyway...

In the version I have (1.3.2) the "Powered By..." link has a target attribute. That will prevent it from validating as Strict XHTML. (I think it will validate with Transitional XHTML)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #14 on: October 08, 2004, 08:39:19 am »

anyway, it has been changed in the devel version (as stated above) like this
Code: [Select]
<a href="http://coppermine.sourceforge.net/" title="Coppermine Photo Gallery" rel="external"> - should validate perfectly well. Having the whole coppermine gallery validate as xhtml strict is quite a task though, I'd rather go for transitional for now.

Joachim
Logged

jul

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 17
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #15 on: October 08, 2004, 09:59:35 am »

Hi,

Sorry to have lit up another post about the footer... However, it is a problem for validating, because of the target  and the align tags. And by the way, adding a rel external doesnt open the page in a new window, so what is the point?

I am almost validating everything in xhtml strict 1.0, and I started to learn xhtml a month ago. It really isnt a great deal if you have a bit of time to do the changes. I'd be happy to share what I allready done, tell me if you are interested...

Regards,

Jul 
Logged

biff

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
    • Biff's Lyrics Archive
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #16 on: October 08, 2004, 04:09:58 pm »

And by the way, adding a rel external doesnt open the page in a new window, so what is the point?

If the <a> tag has a 'rel' attribute, you can use javascript to modify the target of links with a specific 'rel' value. That way it can open in a new window (in browsers using javascript) and still validate as strict xhtml.
Logged

jul

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 17
Re: [Xhtml compliance] How to remove change the & in the urls generated??
« Reply #17 on: October 08, 2004, 04:52:30 pm »

Hi,

I didn't know that, I just tested it on Tarique's gallery... But however, won't this action be blocked by an anti pop up software? And wouldn't a visitor clicking on this link be experienced enough to open a link in another window?

Anyway, this is not the most important...

My coppermine gallery is now validating in xhtml strict 1.0, the only problem I couldn't solve yet is 6 errors due to the javascript code when you launch a slideshow. But apart from this, every page I tried to validate was valid, as you can check with the link I placed at the bottom of the pages...

I will pack the files I've altered and post them here when I will have cleaned up the pages in the admin part, but this might take a few days...

Jul
Logged

jul

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 17
Help needed: minor incompatibilities in slideshow and exif picinfo...
« Reply #18 on: October 13, 2004, 12:52:23 pm »

Hi all,


I turn back to the community for some problems I couldn't solve myself.

I have two problems with the slideshow javascript (in include/slideshow.inc.php):

-the javascript seems to require that the image name is "slideshow" on the displayimage.php page, but an image can't have a name attribute. I  searched on www.CodeLifter.com but there seems to be no update for this javascript. anyone has an idea to convert this "name" into an "id", for example ??

-the end slideshow function is not working on non-ie browsers when I replace the ampersands by &amp; . if I leave them, they generate htmal errors but the function apparently works... Don't like the 10 errors though!

I removed the cat  in order to reduce them but don't know what to do with the ampersand for the pos, tried to change it by %26 but it wasn't converted as it should be...

Maybe the problem is that it's php in a javascript? Clueless...

Heres the code as I changed it:
Code: [Select]
function endSlideShow(){
        self.document.location = 'displayimage.php?album=<?php echo isset($HTTP_GET_VARS['album']) ? $HTTP_GET_VARS['album'] : ''?>&pos='+pos
}


preLoadPic(j)

</script>


- Last problem, when the picinfo is displayed on displayimage, one error is generated by the datetaken exif info: the w3 validator says the last figure for seconds is a "non SGML character number 0"... Didn't find out what it means and how to correct this, even if it is minor...

Any help would be greatly appreciated...


The rest of the gallery seems to be validating (you can still check, I stil haven't put a lot of pics but it will give an idea), still have to clean off the tables in admin pages and I will post all my modified files, probably this week end... I noticed that the pages generate were on average 40 to 50% lighter without the tables... not bad!  ;)

Best regards and thanks in advance for your help

Jul
« Last Edit: October 14, 2004, 01:57:28 pm by jul »
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 16 queries.