Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#313 2008-01-17 01:39:08

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: gbp_permanent_links

graeme wrote:

Worked it out. There was a problem with the compressed version Steve posted:

Could you email me about that so I don’t make the same blunder again :-)


Steve

Offline

#314 2008-01-17 07:56:45

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

Re: gbp_permanent_links

net-carver wrote:

Could you email me about that so I don’t make the same blunder again :-)

Steve, you did nothing wrong with compiling the plugin. It was actually a really strange coincidence.

On the public side I check to see which version of publish.php is installed by using a regexp to check the revision number, this is so I can tell if I can use the ‘new’ in 4.0.5 textpattern_end callback. The regexp I devised was actually being matched as an SVN keywords, oops! Whenever the source was checked out SVN broke the regex and the plugin. SVN was trying to be too cleaver!!!

See lines 671/6 and changeset 652 in our repro.

Offline

#315 2008-01-17 18:04:06

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: gbp_permanent_links

graeme wrote:

Worked it out. There was a problem with the compressed version Steve posted:
Here are the latest version:

Uh, just to let you know that I’m having the exact problem as edemay. Yes, with the updated files :)

Offline

#316 2008-01-17 18:10:57

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

Re: gbp_permanent_links

jodeci wrote:

Uh, just to let you know that I’m having the exact problem as edemay. Yes, with the updated files :)

Impossible! Make sure you refresh the cache or it might be a different line number though, can you paste the exact error you’re getting here.

Thanks

Offline

#317 2008-01-17 18:42:20

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: gbp_permanent_links

Sorry but it’s true… here’s the error message after I refreshed cache, re-launched Firefox and re-installed:

A problem occured while loading the plugin: gbp_permanent_links -> User_Error: Unable to include required plugin “gbp_admin_library” on line 459
Fatal error: Class ‘GBPPlugin’ not found in (censored)/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 13

And oh, both the compressed and full source version do this. Hope this helps :)

Offline

#318 2008-01-17 19:08:35

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

Re: gbp_permanent_links

You’ll be missing gbp_admin_library v0.4.632 (Compressed)

Sorry I didn’t make that clear when I posted those last set of links.

Offline

#319 2008-01-18 01:28:06

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: gbp_permanent_links

Ouch, how could I miss that? Thanks a lot graeme :)

Offline

#320 2008-01-18 19:55:48

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: gbp_permanent_links

(I’d post a URL to demonstrate but all links in question are in Chinese so whatever :p)

TXP default permalink structure: /section/id/title
category links are intended to be domain/category/categoryname/
coded as <txp:category1 title=“1” link=“1” /> on the according forms

I then build a new permalink with the plugin: section/id/ (precedence 0) and it works like a charm. But then I look twice and see that only domain/ and domain/category/categoryname will return the intended category link. On pages structured as domain/section/ or domain/section/id/, the category link will become domain/section/.

Turing off the plugin fixes the problem. Merely removing the permalink rule will make all links “messy” but function as intended. I’m still trying to get familiar with textpattern, so I might be missing something obvious? Thanks :)

Offline

#321 2008-01-24 12:51:19

mapu
Member
From: Munich, Germany
Registered: 2004-03-16
Posts: 141

Re: gbp_permanent_links

Great plugin!

However, whenever I’m accessing my homepage, this plugin seems to add an index.php (also with search results). Is this a bug or am I missing something?

Update: Don’t worry!

Last edited by mapu (2008-01-24 13:16:06)

Offline

#322 2008-01-27 02:36:18

nvision
New Member
Registered: 2008-01-27
Posts: 2

Re: gbp_permanent_links

I’m having some trouble getting this to work. I’m using vdh_flickr to display photos from flickr and I can’t seem to get it to work. I’m using vdh_flickr

My messy links look like http://hs.pcgroundzero.com/?s=photos&set=72057594109535304&img=130201728

Will I be able to even use this with the set and img variable?

Last edited by nvision (2008-01-27 03:11:15)

Offline

#323 2008-01-27 18:59:59

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

Re: gbp_permanent_links

Updated to fix a small problem with the upcoming Txp 4.0.6 release.

Offline

#324 2008-01-27 19:04:47

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

Re: gbp_permanent_links

nvision wrote:

I’m having some trouble getting this to work. I’m using vdh_flickr to display photos from flickr and I can’t seem to get it to work.

Not exactly sure what the problem is I don’t use vdh_flickr. If my plugin is interfering in how that works then try surrounding any vdh_flickr tags with <txp:gbp_disable_permlinks> ... </txp:gbp_disable_permlinks>

Offline

Board footer

Powered by FluxBB