Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#211 2005-07-01 16:51:27

sungodbiff
Archived Plugin Author
Registered: 2004-03-23
Posts: 57
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

michaelkpate -

Hmm, I’ve got my site set to debug and I can’t get it to output any errors/warnings/notices. If you don’t mind, can you add the following code to sgb_url_handler:

Insert <code> $section = null; $category = null;</code> after <code>function sgb_url_handler_match_url($url, $config) {</code>.

Change (line 79) <code>} else if ($_SERVER[‘PATH_INFO’]) {</code> to <code>} else if (isset($_SERVER[‘PATH_INFO’])) {</code>.

Thanks,

- sgb

Offline

#212 2005-07-01 17:20:41

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

I made the changes and as you can see the errors went away. Cool!

Now if only it would display the article and not the 404. But I know that is a completely different issue.

Offline

#213 2005-07-03 14:31:51

sungodbiff
Archived Plugin Author
Registered: 2004-03-23
Posts: 57
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

michaelkpate -

Add a scheme to the schemes list: <code>$schemes[‘date_title’] = ‘/&#37;year&#37;/&#37;month&#37;/&#37;day&#37;/&#37;title&#37;’;</code> in the config function.

That should be part of the default distro (section_date_title is), I’ll add it in a later revision.

- sgb

Last edited by sungodbiff (2005-07-03 14:33:37)

Offline

#214 2005-07-03 17:40:36

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

SGB,

You are fantastic. It works great.

I also added one for a blogger style url.

<code>$schemes[‘month_title’] = ‘/%year%/%month%/%title%’;</code>

Last edited by michaelkpate (2005-07-03 17:41:09)

Offline

#215 2005-07-03 19:15:55

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

SGB, I’m going to go out on a limb here and ask a newbie question.

I want to add the categories: Colophon, Contact and Services under the About section. How do I use this plugin so I can link to:

mywebsite.com/About/Colophon

Do I need something specific on the page itself also?

Sorry to waste your time, I must be overlooking something as when I try I just see the homepage (like when you access a URL that doesnt exist).

Offline

#216 2005-07-04 20:53:12

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

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

I think I’m missing something here. I’ve uploaded both plugins, but the url_handler is outputting errors to the site itself, with this new fangled production status thing:

Notice: Undefined index: PATH_INFO in /usr/home/hicksde/public_html/textpattern/lib/txplib_misc.php(379) : eval()’d code on line 79
Notice: Undefined index: id in /usr/home/hicksde/public_html/textpattern/lib/txplib_misc.php(379) : eval()’d code on line 360
Notice: Undefined index: category2 in /usr/home/hicksde/public_html/textpattern/lib/txplib_misc.php(379) : eval()’d code on line 368

Disabling the plugin stops the errors


Cheers,
Jon VC#9

Offline

#217 2005-07-04 20:57:24

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

I had that Jon, re-installation of the plugin removed the problem this end.

Offline

#218 2005-07-04 21:11:00

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

I reinstalled sgb_url_handler and all of a sudden my CSS didn’t work. Had to turn off the plugin to get it working again.

Offline

#219 2005-07-04 21:30:47

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

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

Reinstalling didn’t work, and neither did these changes

Does the url_handler plugin need any configuration? Or should it be able to work out of the box?

Last edited by jonhicks (2005-07-04 21:42:57)


Cheers,
Jon VC#9

Offline

#220 2005-07-04 21:56:19

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

No idea, I asked the same question in the post above yours. SGB seems to be ontop of helping people, so I guess it’s just a game of patience.

Offline

#221 2005-07-05 06:49:26

Souljacker
Member
From: Terra Brasilis
Registered: 2005-06-20
Posts: 47
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

I think I’m too dumb to make this work. Don’t understand what I have to do besides installing the pluging and making it ON.

Can anyone PLEASE help me?

Offline

#222 2005-07-05 20:19:37

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

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

> Souljacker wrote:

> I think I’m too dumb to make this work. Don’t understand what I have to do besides installing the pluging and making it ON.

> Can anyone PLEASE help me?

Thats kind of how I feel! Are you stuck with the error handler or URL handler plugin?


Cheers,
Jon VC#9

Offline

#223 2005-07-05 20:59:24

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

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

AFAIK, you should install the plugin, then edit it to set the configurations:
send_errors: whether/not you want sgb_error_docs to handle error documents
mode: exact/best not sure what the exact definition of these is, but exact will give you more 404s, best will try to make sense of what it gets
send 301/404s: pretty self explanatory

and then you should change around the order of the url schemes to the preferred order
you can optionally define whether you want specific sections to use specific schemes.

then activate the plugin, and voila!


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

Offline

#224 2005-07-05 23:42:20

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

this was working beautiful for me, but after upgrading to rev468, i’m getting those errors:

<code>
Notice: Undefined index: id in /home/…/public_html/textpattern/lib/txplib_misc.php(379) : eval()’d code on line 361

Notice: Undefined index: category2 in /home/…/public_html/textpattern/lib/txplib_misc.php(379) : eval()’d code on line 369
</code>

i tried some of those modifications suggested above… no luck so far :-/ i need this plugin!
any new ideas? i’ll be happy to guinea pig them :)

*edit (i did make sure to update to the latest version 0.1.8.4 of this plugin… still sadness tho..)

Last edited by alicson (2005-07-05 23:44:47)


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#225 2005-07-06 02:38:05

sungodbiff
Archived Plugin Author
Registered: 2004-03-23
Posts: 57
Website

Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time

BlueMamba –

‘tis no waste of my time, sorry it’s not working out. sgb_url_handler is designed to let you access those URLs, e.g. http://mighthitgold.net/journal/txp/ accesses the txp category while under the journal section. You shouldn’t have to do anything aside from installing and activating the plugin. Do you get any errors/warnings/notices? What server are you running (apache/lighthttp or iis) and version of PHP?

paularms -

I thought that issue had been worked out — when you installed and activated the plugin, did you hit refresh after visiting the site and not getting any CSS?

jonhicks -

Yeah, that new production mode dealie certainly throws a wrench in things… Those aren’t technically errors they’re notices but annoying none-the-less. Try the changes outlined <a href=“http://forum.textpattern.com/viewtopic.php?pid=62074#p62074”>here</a>.

I need to go in an make some updates to the code to prevent those notices, I’ll try to get a 0.1.8.5 released today/tomorrow — I just bought a house, so I’m sorta stuck meeting with realtors and lawyers and magicians and what not.

In the meantime you can try switching to a different production mode.

Souljacker –

You just activate the plugin and it should work. Once activated your TxP install will respond to any of the included schemes, provided TxP Clean URLs work on your server, if they don’t sgb_url_handler can still help but it’s more complicated I’d be happy to walk you through the process just let me know.

alicson –

Yeah it’s that pesky production mode, I’ll fix that in the next release which will be out tonight or tomorrow or the next day as soon as I get some time. In the meantime you can try switching to a different production mode.

All -

I hope some of this helps, I’ll get an update out as soon as I can (to eliminate those notices), I’ll try to address any other problems as they come up.

Thanks!

- sgb

Offline

Board footer

Powered by FluxBB