Hey Guys,
I just installed the "Popular Entries" plugin and I was wondering what it would take to get it to use permalinks rather than the old format. I've looked around the forums with no avail, but I know it can be done and don't know where to start.
If someone has done this in the past I would love to see it. If not, then if someone could just point me in the correct direction; such as the code to print out a permalink.
Thanks in advance.
Popular Entries Plugin and Permalinks Plugin
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Popular Entries Plugin and Permalinks Plugin
Hi!
But it does use the usual serendipity permalinks!?
Best regards,
Garvin
But it does use the usual serendipity permalinks!?
Best 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/
# 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/
Yes, it uses a slightly bad permalink. What I mean by this is that most of the links work, just my most popular story is not working. You can see the plugin in action on my site, most of the stories work just fine, just the top one does not as it has special characters in the title.
Link in the plugin: http://zacgarrett.com/2006/11/14/XFCE-+ ... Beautiful/
Working Link: http://zacgarrett.com/2006/11/14/XFCE-X ... Beautiful/
Link I would prefer from permalink plugin: http://zacgarrett.com/permalink/XFCE-XG ... tiful.html
I just want to note that I have no problem with forking the plugin for my own needs. I just want to make sure I am not recreating the wheel.
Link in the plugin: http://zacgarrett.com/2006/11/14/XFCE-+ ... Beautiful/
Working Link: http://zacgarrett.com/2006/11/14/XFCE-X ... Beautiful/
Link I would prefer from permalink plugin: http://zacgarrett.com/permalink/XFCE-XG ... tiful.html
I just want to note that I have no problem with forking the plugin for my own needs. I just want to make sure I am not recreating the wheel.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Did you patch your s9y permalink creation? Because s9y by default generates these URLs:
http://zacgarrett.com/2006/11/14/XFCE-+ ... Beautiful/
Because the "+" character is okay in the URL. So I wonder why you get something different.
I didn't know you were using custom permalinks. Actually there's currently no way to make that plugin use those permalinks instead of the "official" s9y permalinks in the popular entries plugin. You'd thus have to hack the popular entries plugin, that much is true. You would need to replace the serendipity_archiveURL() function in that plugin to fetch your custom permalink.
But nevertheless, I'd like to understand why the plugin and the s9y mechanism creates different links for you.
Regards,
Garvin
Did you patch your s9y permalink creation? Because s9y by default generates these URLs:
http://zacgarrett.com/2006/11/14/XFCE-+ ... Beautiful/
Because the "+" character is okay in the URL. So I wonder why you get something different.
I didn't know you were using custom permalinks. Actually there's currently no way to make that plugin use those permalinks instead of the "official" s9y permalinks in the popular entries plugin. You'd thus have to hack the popular entries plugin, that much is true. You would need to replace the serendipity_archiveURL() function in that plugin to fetch your custom permalink.
But nevertheless, I'd like to understand why the plugin and the s9y mechanism creates different links for you.
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/
# 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/
ooohhhh, I remember what it was... When I first started using s9y I wanted to use wordpress links. I posted asking for the code and you offered a solution by editing one of the core files. When I upgraded after that it replaced my changes and I didn't notice any problems until now. I just resaved the entry via editing it and it now works with the plugin.
I would try some mod_rewrite stuff to fix the old link into working, but google is using my custom permalink for that url.
I am going to play around with the plugin later today to see if I can get it working exactly how I would like.
Thanks.
I would try some mod_rewrite stuff to fix the old link into working, but google is using my custom permalink for that url.
I am going to play around with the plugin later today to see if I can get it working exactly how I would like.
Thanks.