Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-09-07 00:50:19

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

[archived] gbp_faux_static - uri forwarding.

The much improved gbp_permanent_links has now replaced this plugin.

Cheers. :-)

-Download: gbp_faux_static v0.6.3
Fully customisable URI forwarder for Textpattern 4.0.1 from the presentation tab.

  • Pattern matching for request URIs (either by string or regular expressions) redirecting them to alternative sections, categories, articles and/or page templates.

See the plugin help page for more information and examples.

A lot of time has gone into developing this plugin I hope someone finds it useful. If you have comments, annoyances, feature suggestions or bug reports please post to this forum thread.

Last edited by els (2009-04-24 22:52:22)

Offline

#2 2005-09-07 07:58:05

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: [archived] gbp_faux_static - uri forwarding.

this looks really useful!


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#3 2005-09-07 07:58:33

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

Re: [archived] gbp_faux_static - uri forwarding.

Oh… I should also say that by using this plugin you can make your own permalinks format.

Offline

#4 2005-09-07 14:19:34

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] gbp_faux_static - uri forwarding.

This looks very interesting! I’ll certainly look into it.

Offline

#5 2005-09-08 16:25:19

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: [archived] gbp_faux_static - uri forwarding.

Sounds great! But when I activate the plugin on the home page I get this message before the content:

Warning: Invalid argument supplied for foreach() in /home/ecologia/public_html/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 840

I’m in test mode. I have 4.0.1 version.

Z-

Offline

#6 2005-09-08 17:36:51

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

Re: [archived] gbp_faux_static - uri forwarding.

> Zanza wrote:

> Sounds great! But when I activate the plugin on the home page I get this message before the content:
> Warning: Invalid argument supplied for foreach() in /home/ecologia/public_html/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 840
> I’m in test mode. I have 4.0.1 version.

Zanza, I think I know whats happening here and have updated the plugin. Could you try the new version (0.6.1) and let me know if it fixes that error.

Cheers.

Offline

#7 2005-09-09 07:46:54

playpiggy
Member
From: Changchun, China
Registered: 2004-11-23
Posts: 55

Re: [archived] gbp_faux_static - uri forwarding.

It works well for me, and I see how powerful this is. :) Now I can have a url like /about/me/…/… .
Thank you, graeme.


Welcome to the REAL World…

Offline

#8 2005-09-09 08:16:46

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: [archived] gbp_faux_static - uri forwarding.

This is really a super-duper plugin!!

Will this plugin have any effect on messy urls? I’m sure this is dependent on mod_rewrite for url scheming. One of my hosts doesnt allow .htaccess files and so I am forced to use messy urls. Will this plugin favour messy urls in anyway?

Regards,
Vasanth


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#9 2005-09-09 10:51:45

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: [archived] gbp_faux_static - uri forwarding.

> graeme wrote:

> Zanza, I think I know whats happening here and have updated the plugin. Could you try the new version (0.6.1) and let me know if it fixes that error.

It works great now! Great plugin. Thank you! :)

Z-

Offline

#10 2005-09-09 12:31:19

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

Re: [archived] gbp_faux_static - uri forwarding.

> creativesplash wrote:
> Will this plugin favour messy urls in anyway?

Well if you’re forced to use messy URLs you can try something like this:

  • Add an URI forwarder like %^\/\?(?#section)\/$%
  • This will match any section which is prefixed by an ? like this: www.domain.com/?about/

Last edited by graeme (2005-09-09 12:31:36)

Offline

#11 2005-09-12 23:19:48

jonhicks
Member
From: Oxfordshire UK
Registered: 2004-03-22
Posts: 256
Website

Re: [archived] gbp_faux_static - uri forwarding.

Graeme – everywhere I look, you’re there on a forum making stuff I need! You’ve already come up with Caminicious , and now this! Thanks!


Cheers,
Jon VC#9

Offline

#12 2005-09-12 23:56:06

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

Re: [archived] gbp_faux_static - uri forwarding.

> jonhicks wrote:
> Graeme – everywhere I look, you’re there on a forum making stuff I need! You’ve already come up with Caminicious , and now this! Thanks!

Thanks Jon, it means a lot to hear that :)

Offline

#13 2005-09-13 00:01:05

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

Re: [archived] gbp_faux_static - uri forwarding.

I’ve just update the plugin to v0.6.2.

  • As all the data is stored in the txp_prefs table data was limited to a certain lenght. This is now fixed.
  • I’ve also added a new textpattern tag, see the plugin help page for more detail.

Offline

#14 2005-09-13 09:51:32

boblet
Member
Registered: 2005-08-08
Posts: 53

Re: [archived] gbp_faux_static - uri forwarding.

Hey Graeme,

just a few questions, as I’m not smart enough to work it out from the source code & help docs :-/

  • what should the permanent link mode be set to under admin > prefs > site prefs?
  • how can we make the txp:permlink tag use these urls? is there an equivalent of txp:sgb_url_handler_permlink?
  • would it be possible to provide a few more regexp examples? While I kinda understand the one you’ve got, I’m not sure if I understand it enough to extrapolate ;-)
  • does this plugin produce error pages (404 et al) for failed matches? If not do you have any plans for an sgb_error_documents equivalent?
  • what does “allow category forwarding” do (plugin prefs)?

My aim is to make the faux static urls /section/category/title for 3 sections and /section/date/title for one section of the site I’m building. I’m really interested in this plugin as ole’ sgb seems to have moved on, and this seems like it should be able to replace it.

Thanks in advance!

peace – boblet

Offline

#15 2005-09-13 17:05:42

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [archived] gbp_faux_static - uri forwarding.

I’m afraid I don’t understand how to use this.

What would I do if I want an URL scheme like /section/category/title ?

Thanks for any hints.

Offline

Board footer

Powered by FluxBB