Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2006-10-22 17:43:48

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

Re: gbp_permanent_links

kimili wrote:

Graeme – This is fantastic work! I do have one question though. Do you plan to introduce the Page Template override to this plugin that you have in gbp_faux_static? It’s the one piece that’s missing for me…

Yes. In fact I added that feature this morning! While working on transferring an existing site to TxP 4.0.4 and to gbp_permanent_links.
Here is a pre-release of version 0.9

:)

Offline

#38 2006-10-23 10:26:05

kimili
Plugin Author
From: Massachusetts, USA
Registered: 2004-06-17
Posts: 108
Website

Re: gbp_permanent_links

Wow – that was fast service!

I’m having a bit of an issue with it though. I have one of my rules set up as /section/tags/category with tags set as static text. Although it does work, it throws the following error to the page:

Notice: missing_article_tag: tags in /Users/michael/Sites/__kimili__/2006/www/textpattern/publish.php on line 462

I’m running TXP 4.0.4 and I’ve tried it with the plugin’s debug mode both on and off with the same result. Any ideas?

Offline

#39 2006-10-23 14:18:16

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

Re: gbp_permanent_links

kimili wrote:

Wow – that was fast service!

I’m having a bit of an issue with it though. I have one of my rules set up as /section/tags/category with tags set as static text. Although it does work, it throws the following error to the page:

Notice: missing_article_tag: tags in /Users/michael/Sites/__kimili__/2006/www/textpattern/publish.php on line 462

I’m running TXP 4.0.4 and I’ve tried it with the plugin’s debug mode both on and off with the same result. Any ideas?

That error isn’t related to my plugin. I believe it is due to a new feature in 4.0.4 to do with, as you might be able to guess, not having an article tag on page templates. Not sure what can be done about that.

Maybe include <txp:article pgonly="1" /> which won’t output anything. I’m not sure tho.. I can’t test it at the moment.

Offline

#40 2006-10-24 10:36:56

kimili
Plugin Author
From: Massachusetts, USA
Registered: 2004-06-17
Posts: 108
Website

Re: gbp_permanent_links

Thanks Graeme – I had TXP’s debugging mode turned on when I got that error. I have a raw php call to output the article list on that template, which is why the error was being thrown. Your suggestion to include <txp:article pgonly="1" /> worked like a charm though.

Thanks again for the great plugin!

Offline

#41 2006-10-26 18:44:33

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: gbp_permanent_links

I have run against a problem :) I just tried your pre release v9 hoping to cure my ill, but alas, no good. The plug seems to be breaking video output from bas_flv, which grabs a movie file id from a custom field, wraps it and places it on the page. The plugin is not stopping the markup being output, but seems to be stopping the file output.

(not working) output with your plugin enabled:

<div class="mov"><object type="application/x-shockwave-flash" data="http://localhost/txp-4.4/index.php?s=file_download&amp;id=60?file=http://localhost/txp-4.4/index.php?s=file_download&amp;id=46&amp;autoStart=false" width="320" height="240"> <param name="movie" value="http://localhost/txp-4.4/index.php?s=file_download&amp;id=60?file=http://localhost/txp-4.4/index.php?s=file_download&amp;id=46&amp;autoStart=false" /> <param name="wmode" value="transparent" /> </object></div><!--end class mov-->

(working) output with your plugin disabled:

<div class="mov"><object type="application/x-shockwave-flash" data="http://localhost/txp-4.4/file_download/60?file=http://localhost/txp-4.4/file_download/46&amp;autoStart=false" width="320" height="240"> <param name="movie" value="http://localhost/txp-4.4/file_download/60?file=http://localhost/txp-4.4/file_download/46&amp;autoStart=false" /> <param name="wmode" value="transparent" /> </object></div><!--end class mov-->

“http://localhost/txp-4.4/index.php?s=file_download&amp;id=60?file=http://localhost/txp-4.4/index.php?s=file_download&amp;id=46&amp;autoStart=false” width=“320” height=“240”

vs.

“http://localhost/txp-4.4/file_download/60?file=http://localhost/txp-4.4/file_download/46&amp;autoStart=false” width=“320” height=“240”

and…

“http://localhost/txp-4.4/index.php?s=file_download&amp;id=60?file=http://localhost/txp-4.4/index.php?s=file_download&amp;id=46&amp;autoStart=false”

vs.

“http://localhost/txp-4.4/file_download/60?file=http://localhost/txp-4.4/file_download/46&amp;autoStart=false”

The url output difference is pretty dramatic, so I am not even sure this is solvable, but I figured I would ask anyway.

Thanks!
Jamie

[edit] Thats is using default url scheme of section/cat/title (plug) vs section/title (txp)

Last edited by soulship (2006-10-26 18:47:42)

Offline

#42 2006-10-26 19:29:23

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

Re: gbp_permanent_links

soulship wrote:

I have run against a problem :) I just tried your pre release v9 hoping to cure my ill, but alas, no good.

<snip>

The url output difference is pretty dramatic, so I am not even sure this is solvable, but I figured I would ask anyway.

Interesting, thanks for reporting it. Although I can’t initially reproduce this I but have some ideas which I will try.

I’m sure this is solvable. Give me a couple of days.

Offline

#43 2006-10-26 19:48:32

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: gbp_permanent_links

Thanks, I’ll subscribe to the thread and see what you come up with.

Jamie

Offline

#44 2006-10-27 03:41:03

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: gbp_permanent_links

Graeme,

First off amazing plugin. I can only imagine the amount of work that went into this and it is just so easy to get going with it.

I’m running into an issue using the redirect function. I have one rule set to generate /section/category/title links (I know how amazingly original) with a precedence 0.

I then have another rule with a precedence of 1 set to /section/id/title and telling it to redirect to the /section/category/title rule above. The redirect works but in the process of redirecting it strips the hostname replacing it with the ip address. For example it redirects http://hakjoon.test/words/43/textile-for-upmquicktags/ to http://127.0.0.1/words/43/textile-for-upmquicktags/ which fails in a name based virtual host environment.

This was with 0.9a

Hope that makes sense. Again amazing piece of work.

What are suffix and prefix for?


Shoving is the answer – pusher robot

Offline

#45 2006-10-27 04:00:08

matthewwithanm
Member
Registered: 2006-09-28
Posts: 12

Re: gbp_permanent_links

Awesome plugin!

Any chance of an option that omits the trailing slash from links?

Offline

#46 2006-10-28 20:12:25

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: gbp_permanent_links

Sorry Graeme, but I found another plugin that this seems to interfere with. Well only part of the plugin actually. The rss_unlimited_categories_related tag has all output stopped when the gbp_permanent_links is enabled. I can send you a tag trace if you need.

Jamie

Offline

#47 2006-10-29 04:56:10

matthewwithanm
Member
Registered: 2006-09-28
Posts: 12

Re: gbp_permanent_links

Is it just me or does having things in the query string (i.e. the “?commented=1” that posting a comment adds) cause you to be directed to the wrong page?

This should be as simple to fix as adding a split(), but I don’t want to go poking around in the code unless I’m sure I’m not causing the problem somewhere else.

Offline

#48 2006-10-29 11:00:15

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: gbp_permanent_links

Hi graeme!

Very nice plugin and very easy to get up and running, thanks for a great work and your time your spent on writing it.

On line 260 (the id case) in gbp_permanent_links version 0.8 there are an replacement for Posted but Posted is not available here, i guess this is just a copy paste error from the row above, i commented out the row and the plugin worked just like i expected it without any notices poping up.

Regards johan


Johan Nilsson

Offline

Board footer

Powered by FluxBB