Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2006-12-06 22:11:17

LeeUmm
Member
From: Hamilton, Ontario
Registered: 2005-04-22
Posts: 91
Website

Re: gbp_permanent_links

no worries. this isn’t a rush at all and can wait. just curious as to where it stood. haven’t tested with this new version but with .8 i couldn’t get it working.

Offline

#74 2006-12-07 22:38:33

ghz
New Member
From: Budapest, Hungary
Registered: 2006-10-10
Posts: 4

Re: gbp_permanent_links

hi,

i have just tried this plugin to allow permanent links just like in movabletype. (yes. i have just switched from it due to several reasons.)
the default textpattern link is: section/id/title/
i have set up a new permanent link: section/year/month/title/
i’d like to use it for section ‘blog’ so in conditions and destination i have set ‘blog’. (nothing else.)

http://site.tld/blog/303/he is working (imho it must because of being txp default)
http://site.tld/blog/2006/07/he (gives me 404)

here you can see the debug output:
http://pastebin.co.uk/7175

i am sure it is my fault but i do not really understand how this thing is working. can someone tell me how to set up permanent links for this simple situation?

regards,
andras

Offline

#75 2006-12-08 01:43:49

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

i am sure it is my fault but i do not really understand how this thing is working. can someone tell me how to set up permanent links for this simple situation?

@Andras, It should be working – I can’t reproduce this. Very strange.

Your debugging was helpful but I can’t see exactly why it is failing. I suspect it is to do with the conditions settings. Will you be able to install 0.11b as I have added more debugging to help find out what is going on.

gbp_permanent_links 0.11b

@Lee, I wasn’t very successful with getting sub-sections working. It’ll require some changes to the plugin. I’m not quite sure how it’ll work yet but I would like to get this working, it would be a very useful feature.

Thanks

Offline

#76 2006-12-08 14:11:01

ghz
New Member
From: Budapest, Hungary
Registered: 2006-10-10
Posts: 4

Re: gbp_permanent_links

graeme:
wooo. this extended debug report helped me a lot, thanks very much. by the way, the problem was a misconfiguration.

but i have found a small issue:
i am using movabletype like permalinks: section/year/month/title/
my new default permalink structure: section/year/month/day/title/
what i am doing now is forwarding from the first one to the default one. it is working if i set up the permalink as section/date/title/ where date is the embedded year/month/day/ expression. in case i set up the whole thing manually (so no /date is used) then the page is displayed, but the redirect is not working. this does not affect me at all because i can use the /date solution but might confuse somebody else in the future.

and a question:
is it possible to match and replace with a regexp field? or matching is enough for forwarding? (i’d like to forward titles like ‘word1_word2_word3.html’ to the texpattern default ‘word1-word2-word3’)

update: well i have just seen this show suffix option. :)

Last edited by ghz (2006-12-08 14:23:33)

Offline

#77 2006-12-08 14:38:17

graeme
Plugin Author
Registered: 2004-06-21
Posts: 337
Website

Re: gbp_permanent_links

ghz wrote:

wooo. this extended debug report helped me a lot, thanks very much. by the way, the problem was a misconfiguration.

Great! Glad you were able to figure it out.

but i have found a small issue…

Thanks for letting me know about this. I shall look into it.

is it possible to match and replace with a regexp field? or matching is enough for forwarding? (i’d like to forward titles like ‘word1_word2_word3.html’ to the texpattern default ‘word1-word2-word3’)

Are Movable Type urls like this ‘word1_word2_word3.html’ ? This isn’t possible at the moment but it would make a good option to include. Shouldn’t be too hard, I’ll give it a go once I get home from work.

Offline

#78 2006-12-09 08:35:25

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: gbp_permanent_links

I’ve installed the plugin on my localhost, but after this screen:
You haven’t created any custom permanent links rules yet.
Click here to add one.

I get this error message:
Fatal error: Non-static method PermanentLinksBuildTabView::gbpFInput() cannot be called statically in C:\mylocalpath\textpattern\lib\txplib_misc.php(512) : eval()’d code on line 1495


BB6 Band My band
Gud One My blog

Offline

#79 2006-12-11 11:36:14

grinstead
Member
From: UK
Registered: 2006-10-06
Posts: 19

Re: gbp_permanent_links

Thanks for the Plugin.

All works fine apart from I can not seem to find a way to add the full url to permlinks? Permlinks are showing as /section/category/title this results in my my feed xml file being invalid as its not the full url (http://…..)

Thanks

Offline

#80 2006-12-11 15:31:01

grinstead
Member
From: UK
Registered: 2006-10-06
Posts: 19

Re: gbp_permanent_links

Just an update, I’m using domain/section/category/rss for the feed but if I use domain/section/category/?rss=2 then I’m getting this as the permlinks domain/section/title which is better but missing the category!

I’m using this set up section/category/title/

Does that make sense?

Thanks

Offline

#81 2006-12-12 23:52:08

Rigel
Member
From: España
Registered: 2005-09-02
Posts: 99
Website

Re: gbp_permanent_links

Work with ob1_googlenav?

Edit: Yes, no problem.

Thanks and Great Plugin!

Last edited by Rigel (2006-12-18 18:56:42)

Offline

#82 2006-12-13 10:19:14

grinstead
Member
From: UK
Registered: 2006-10-06
Posts: 19

Re: gbp_permanent_links

[Update]

Thanks Graeme for helping me out yesterday, as an inpatient sod I am I emailed Graeme, in which he provided me with a work around.

Thanks again.

Offline

#83 2006-12-13 18:17:51

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: gbp_permanent_links

I still can’t use this plugin. Can anyone explain?

I get this error message:
Fatal error: Non-static method PermanentLinksBuildTabView::gbpFInput() cannot be called statically in C:\mylocalpath\textpattern\lib\txplib_misc.php(512) : eval()‘d code on line 1495


BB6 Band My band
Gud One My blog

Offline

#84 2006-12-14 13:52:02

johnny_fx
New Member
From: Bulgaria
Registered: 2006-04-27
Posts: 8
Website

Re: gbp_permanent_links

I just want all of my permalinks to be:

section/title.htm

It can’t be done with this plugin.
How can I do this?

Offline

Board footer

Powered by FluxBB