Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#451 2009-04-10 13:33:21
Re: gbp_permanent_links
hoho wrote:
1) Newlines are gone in the compressed 0.14 version making tweaking almost impossible. Or is it part of the compression? Anyway, despite having full access to server configuration, haven’t managed to install uncompressed version by any means :( so newlines in the compressed version would come in handy.
You’re right – that does make harder. From now on I’ll put out 3 versions of my plugins, standard, compressed and minified.
P.S.
post_max_size = 8Mandupload_max_filesize = 10Mseem fairly enough for a 80k plugin but it always gets truncated upon upload.
I think this is due to how PHP handles uploads and believe wet has recently fixed this although I haven’t tested it (r3131)
2) I need an article ‘article-title’ in categories ‘cat1’ and ‘cat2’ to be accessible via URLs … I didn’t find a way to achieve this behaviour in the current implementation – it seems to be context insensitive and tries to generate always the same permanent link no matter where we are in the web tree, a contra-intuitive behaviour to me when it comes to categories. I have tweaked the ‘category’ section in the
_permlinkurlfunction (from line 772 of the uncompressed version) as follows …
I’ve taken you code thanks. I had to add a preference option though as it could break existing rules – Set check_pretext_category_context to yes and you’ll get that functionality
3) Why is “Permanent Links” tab not available from the “Plugins” tab? It was real pain in a body part fighting the truncation and then tweaking the plugin. :)
This is because plugins aren’t loaded on the plugin page – I think the reason for this is so that if a plugin errors and kills textpattern it can always be turned off by directly visiting the plugin page
Offline
#452 2009-04-10 13:34:58
Re: gbp_permanent_links
Oh here are the links to the new version:
Should also fix the problem driz reported here
Last edited by graeme (2009-04-10 14:46:10)
Offline
#453 2009-04-12 12:59:46
Re: gbp_permanent_links
Not sure if this is a bug but its something that seems like it! Basically I have a rule for my blog section that goes like this /section/topics/category1/ this is SET to be only for the blog section and is used for looking at categories of articles. However If I go to my portfolio section and visit an article say this for example: http://driz.co.uk/portfolio/web/smplr-2007/ if you look at the breadcrumbs and check the url of the portfolio link, it will do that rule above, how is this possible? If I have set that rule to ONLY apply in the blog section, how is it effecting my urls in the portfolio section? I can only guess that the option to bind it to a section isn’t working? Thanks
~ Cameron
Offline
#454 2009-04-29 10:14:59
- Agogo
- Member
- From: Sthlm, Sweden
- Registered: 2008-11-27
- Posts: 31
Re: gbp_permanent_links
Im going to have to agree with driz on his latest comment – the condition rule binding to a certain section doesnt work properly. I get the same problem with <txp:newer> – the rule is used when creating a prev link in a different section even though it shouldnt.
I dont know what input you need for bug test but the rules Im using are quite simple. Im using a high precedence with the rule that has got the condition set to only one particular section.
Im using v 0.14 without patches.
Last edited by Agogo (2009-04-29 10:17:55)
Offline
#455 2009-04-30 16:15:55
- insidertravels
- Member
- Registered: 2009-02-26
- Posts: 10
Re: gbp_permanent_links
I haven’t been able to read through all 46 pages of the thread yet. I’m having trouble getting this plugin to do what I want. I stare at my screen for so many hours sometimes, I’m probably just glossing over something obvious. The interface for the plugin is somewhat perplexing to me; it seems there are a bunch of form fields I’m not using. I tried to set up a rule, and my permlinks started behaving erratically. Or maybe not. Forgive me if this is a silly question.
How do I accomplish the following:
1) all “section” archive (list) pages -> domain.com/section-name
2) all “category“archive (list) pages -> domain.com/category-name
3) all “entry” (post) individual permlink pages -> domain.com/the-title-permlink-slug
Assume that I am the only administrator creating sections, categories, and entries, so I know to avoid conflicts by making sure all slugs are unique. My assumption is that this plugin does not check for duplications, so if that is incorrect, please let me know.
I do not want to confuse Google with multiple permlink locations for the same entry. I realize that due to the way Textpattern functions, I will be able to call up any entry using any section or category, which is fine, since I will be creating a special email-friendly section and corresponding template, so I always have a good copy of each entry ready for sending to a mailing list. But I do not want these special sections to be indexed, so none of the permlinks should be dependent on a section or category “fake directory” structure.
Offline
#456 2009-05-06 21:21:39
Re: gbp_permanent_links
hi
i also wasnt able to dig me through all of the thread (i tried a search thought, but couldnt find any similarities..)
when installing the plugin, the server keeps telling
Parse error: syntax error, unexpected $end in /url…/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 1905
The above errors were caused by the plugin:gbp_permanent_links
maybe its some php restriction..?
(i’m trying to make this happen..)
Offline
#457 2009-05-06 22:41:55
Re: gbp_permanent_links
jens31 wrote:
when installing the plugin, the server keeps telling…
Did you try to install the compressed (gzipped) version or the normal non compressed? If you didn’t, then try the compressed. As it sounds that the code is being cut.
Offline
#458 2009-05-06 22:50:57
Re: gbp_permanent_links
korrekt.
i once again downloaded and reinstalled the compressed version. same problem.
used the minified one. works.
thanks for the help.
on a side note: the other problem seems to work now too.
sometimes you just need to let some time pass..
good night. ____
Offline
#459 2009-05-07 16:00:41
- insidertravels
- Member
- Registered: 2009-02-26
- Posts: 10
Re: gbp_permanent_links
Is there a manual for this plugin somewhere that I seem to be overlooking? Trying to figure it out by looking through a disjointed 46-page thread is far from productive. I find the interface to be somewhat counterintuitive. Still no responses to my original post after over a week, so I will have to figure it out by myself.
Last edited by insidertravels (2009-05-07 16:01:17)
Offline
#460 2009-05-12 10:46:09
Re: gbp_permanent_links
I’m having another problem, basically I have set a rule for my blog section whereby the url would be /year/month/title/ for ONLY the blog section. If you look here http://driz.co.uk/blog/ you will see that all the articles have that URL scheme. The problem however is that when I try and view the posts it will break, first of all it will show the home page instead, second display the home page title, and finally kick off about using article tags. So for example the post is http://driz.co.uk/2009/05/roman-numeral-copyright/
If i add the /section/ to the URL it will work fine, sooooo I’m guessing the plugin gets confused if it doesn’t have the section part on it. How do I fix this? Thank you.
EDIT: I’ve turned debugging on to help with the issue.
Last edited by driz (2009-05-12 10:51:22)
~ Cameron
Offline
#461 2009-05-13 14:26:22
Re: gbp_permanent_links
Is this a bug in the plugin or something else?
~ Cameron
Offline
#462 2009-05-26 19:38:13
- psvo
- New Member
- Registered: 2009-05-26
- Posts: 1
Re: gbp_permanent_links
hoho wrote:
P.S.post_max_size = 8Mandupload_max_filesize = 10Mseem fairly enough for a 80k plugin but it always gets truncated upon upload.
graeme wrote:
I think this is due to how PHP handles uploads and believe wet has recently fixed this although I haven’t tested it (r3131)
I think the problem is that column “code” in “txp_plugin” table has type “text”, which is limited to 65k.
Offline
#463 2009-06-22 14:09:37
Re: gbp_permanent_links
I get this error when i install the patch.
Parse error: syntax error, unexpected $end in /home/vmchoirs/public_html/textpattern/lib/txplib_misc.php(574) : eval()'d code on line 1905
The above errors were caused by the plugin:gbp_permanent_links
Any idea where I went wrong. your plug in was working fine before this patch.
Offline
#464 2009-06-25 16:04:48
Re: gbp_permanent_links
Same here
Parse error: syntax error, unexpected $end in /Applications/MAMP/htdocs/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 1905
The above errors were caused by the plugin:gbp_permanent_links
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#465 2009-06-25 16:15:41
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: gbp_permanent_links
Yannis, I’ve heard in the German section that the minified version can be installed on a MAMP 1.7.2
Two options to check :)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline