Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic Reply to topic
Author Message
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Tue Mar 06, 2007 5:29 pm   Post subject: Re: A first test
Reply with quote

ftruscot wrote:
Has anyone tried out this Japanese plugin? http://japan.nucleuscms.org/wiki/plugins:customurl It seems cool from the google translation. Mabye there are some good ideas in the code.

I've decided to use this CustomURL plugin on a couple new small business sites that are fairly static with a dynamic news category. They aren't yet public. Now that I've starting using the plugin, I wanted to comment on kg's observations:
kg wrote:
Yes I have made a test installation. My first two discoveries are:

- the plugin needs the Multibyte String Functions which are not part of the default PHP installation. (I will try to enable them on my local host)

While the plugin does use the mb_string functions, they don't do anything magical. I replaced a few instances of mb_eregi_replace() with eregi_replace() and commented out a mb_convert_encoding() call that I didn't need for my english language sites.

kg wrote:
- the plugin can change the settings for $CONF['ItemKey'], $CONF['MemberKey'] ... in the backend.

- the plugin uses the item ids to build the item urls, eg 'item_1.html' and 'item_2.html'. I guess that it isn't possible to translate japanesse titles in fancy urls with only 26 different characters (a-z)
Yes it does this by default. But in the options you can tell it to use 'article' or some other string for the base prefix. You can change the defauilt prefix for category as well. Member pages are at member/membername.html. the shortblogname is used inplace of blogid,as needed. For items and categories, there are extra fields on the add item or category forms that allow you to set the name used for that item or category.

So, for example, I have a contact page (item 5) in a About Us category (category 2), the default URL generated would be "/category_2/item_5.html". But I edit item five and set the custom url to 'contact' and I edit category 2 and set the custom name to 'aboutus' and then the generated URL becomes "/aboutus/contact.html". This works well for sites with fairly static content.

kg wrote:
Conclusion: It may not fit to all wishes but it has interesting functions that are not build in my NP_FancierURL2 plugin. For the real magic it is necessary to enable the Multibyte String Functions.

What makes me really happy is that it shows the advantage of using the 'virtualpath' approach to rewrite URLs. :)
With some mods to replace the MultiByte String functions, this becomes a very useful plugin for more static sites where you can reasonably manually set unique file names for each item.

Back to top

View user's profile Send private message Visit poster's website
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Tue Mar 06, 2007 5:31 pm   Post subject:
Reply with quote

moraes wrote:
matt_t_hat wrote:
What I want to see is Nucleus offering a URL formatting tempalte. (like a few other platforms) where the basic url is stored in a 255 varchar

Code:
##SITEURL##/index.php?itemid=##itemid##


I have a plugin under dev that does exactly this. :D It uses configurable "routes" to match and build the URI's according to the user definitions.

Will post it later.
I'm looking forward to seeing this.

Back to top

View user's profile Send private message Visit poster's website
danielck
Nucleus PhD


Joined: 15 Dec 2005
Posts: 668

Post Posted: Tue Mar 06, 2007 11:11 pm   Post subject:
Reply with quote

Leng wrote:
rakaz wrote:
BTW. I have a partially working plugin called PrettyURL, which allows fully configurable fancy URLs. The current limitation is that it only works for items, categories and blogs. It does not yet work for archives and members. I currently use it for my own blog.

You can basically configure your URLs in a method like this:

<amazing array of methods you can configure URLs in>

If you can guys want I can look into it a bit more and release it as an experimental plugin.

Me!! Me!! Me!!! I'm interested! Very Happy Very Happy Very Happy



Me two! Me too!

_________________

Soulworks | Blogcoli | Inspire! | Digital Reminiscence

Back to top

View user's profile Send private message Visit poster's website
Post new topic Reply to topic
Display posts from previous:   

Goto page Previous  1, 2, 3

Page 3 of 3

All times are GMT + 1 Hour

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group