Gallery plugin help with permalinks

Creating and modifying plugins.
Post Reply
hyejohn
Regular
Posts: 37
Joined: Mon Jun 22, 2009 4:04 pm
Location: Michigan, USA
Contact:

Gallery plugin help with permalinks

Post by hyejohn »

How do I change the permalink structure for the gallery plugin?

What's currently coming up:
http://lucassian.com/index.php?serendip ... ext_Level/

what I'd like to have instead:
http://lucassian.com/index.php?/gallery ... Level.html
OR
http://lucassian.com/index.php?/gallery ... Level.html
OR
http://lucassian.com/index.php?/Portfol ... Level.html

Most importantly, I'd like to get rid of the "=" and the "&" from the link.

When I run my mainpage through an xhtml validator, it flags those links!
~John
That Photographer guy in Michigan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Gallery plugin help with permalinks

Post by garvinhicking »

Hi!

The current gallery plugin does not support customization of the permalink structure, so you'd need to manually edit the serendipity_event_usergallery.php file, change the permalinks, and add the rewrite rules to your .htaccess.

The HTML code of your portfolio is actually okay, what exactly do you validate that gives you errors? As long as '&' is encoded as '&' in the HTML, everything should be okay and perfectly valid...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
hyejohn
Regular
Posts: 37
Joined: Mon Jun 22, 2009 4:04 pm
Location: Michigan, USA
Contact:

Re: Gallery plugin help with permalinks

Post by hyejohn »

It's the links from the homepage that create havoc with the w3c xhtml validator. It chokes on the '&' and the '=' in the href links.
hyejohn
Regular
Posts: 37
Joined: Mon Jun 22, 2009 4:04 pm
Location: Michigan, USA
Contact:

Re: Gallery plugin help with permalinks

Post by hyejohn »

Fixed it with

Code: Select all

&
for & and

Code: Select all

=
for =

Thanks for the help!
~John
That Photographer guy in Michigan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Gallery plugin help with permalinks

Post by garvinhicking »

Hi!

"=" is valid in URLs. Please tell me the exact validator and URL. The W3C validator does not complain about "="...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
hyejohn
Regular
Posts: 37
Joined: Mon Jun 22, 2009 4:04 pm
Location: Michigan, USA
Contact:

Re: Gallery plugin help with permalinks

Post by hyejohn »

It was the W3c validator, but it was only complaining about the '&'s - It was identifying the missing ';' when it hit the = and I misinterpreted that as another issue. :oops:
~John
That Photographer guy in Michigan
Post Reply