Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2005-05-19 15:14:54

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

johan, what is that line supposed to look like w/o textile?


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

Offline

#122 2005-05-20 12:01:59

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

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

that line will look exactly like the line that is used under the case // Might be /Section/Category


Johan Nilsson

Offline

#123 2005-05-20 20:46:18

jiraiya
Member
Registered: 2005-05-15
Posts: 13

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

Is the sgb_url_handler file corrupted? When I download it and view it with a txt editor, everything is in the first line and it’s all in random text.

UPDATE: er, nvm. When I install it into TXP, it works. Weird.

Last edited by jiraiya (2005-05-20 20:47:59)

Offline

#124 2005-05-20 20:55:15

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

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

That random text is encoded and meant to be posted into the plugin textarea for installation.

Offline

#125 2005-05-25 18:08:40

t1m
Member
From: Massachusetts, USA
Registered: 2004-09-11
Posts: 17
Website

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

I’m using ‘example.com/year/month/day/title’
Is there any way we could get the same url config but with the section name first as in ‘example.com/section/year/month/day/title’


“You know you’ve achieved perfection in design, not
when you have nothing more to add, but when you have
nothing more to take away.” -Antoine de Saint-Exupery

Offline

#126 2005-05-25 18:14:48

sewm
New Member
From: Toronto, Canada
Registered: 2004-05-08
Posts: 9
Website

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

> t1m wrote:

> I’m using ‘example.com/year/month/day/title’
Is there any way we could get the same url config but with the section name first as in ‘example.com/section/year/month/day/title’

Seconded. I would love to have this URL scheme.

-Sam

Offline

#127 2005-06-01 00:10:50

kszostek
New Member
Registered: 2004-11-18
Posts: 4

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

I can’t seem to get sgb_error_documents to work. I’m using 1.0rc3 and the only other plugin I’m using is glx_hl_current. Here’s my configuration array:

function sgb_error_documents_config() // array
{ // 404 File Not Found $sgb_config[‘error_documents’][‘404’][‘id’] = 6; $sgb_config[‘error_documents’][‘404’][‘url’] = ‘mydomain.com/e404.html’; $sgb_config[‘error_documents’][‘404’][‘file’] = null; $sgb_config[‘error_documents’][‘404’][‘text’] = null;

// 403 Forbidden $sgb_config[‘error_documents’][‘403’][‘id’] = 7; $sgb_config[‘error_documents’][‘403’][‘url’] = ‘http://mydomain.com/e403.html’; $sgb_config[‘error_documents’][‘403’][‘file’] = null; $sgb_config[‘error_documents’][‘403’][‘text’] = null;

return $sgb_config;
}

Is there an error in my configuration? I also tried single and double quotes around the id, and double quotes around the url. No luck with any of it.

Thanks!

Offline

#128 2005-06-01 01:08:51

zoeglingjulian
Member
From: London, UK
Registered: 2004-12-23
Posts: 52
Website

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

Perhaps this is your problem:

http://forum.textpattern.com/viewtopic.php?pid=48996#p48996

Had the same problem as described there. After replacing that mentioned slash, everything worked fine for me.

Offline

#129 2005-06-01 02:18:34

kszostek
New Member
Registered: 2004-11-18
Posts: 4

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

It could be – I’m not sure. Do you know where I can find that line of code?

Offline

#130 2005-06-01 05:43:09

zoeglingjulian
Member
From: London, UK
Registered: 2004-12-23
Posts: 52
Website

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

In the plugins tab, click on “edit” in the right row and then you’ll see the plugin code.

Offline

#131 2005-06-01 06:25:42

kszostek
New Member
Registered: 2004-11-18
Posts: 4

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

It’s working perfectly now, thank you. I appreciate your help :)

Offline

#132 2005-06-02 06:22:02

Vitruvius
Plugin Author
Registered: 2004-09-21
Posts: 125

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

I’m having the same problem with sgb_error_documents and tried to follow the advice above, mainly to edit this line of code:
<pre>
$script_path = trim(dirname($_SERVER[‘SCRIPT_NAME’]), ‘/’);
</pre>

to

<pre>
$script_path = trim(dirname($_SERVER[‘SCRIPT_NAME’]), ‘\\’);
</pre>

But that line of code is not in sgb_error_documents when I click ‘edit’ to edit the plug in. Am I missing something?

SH

Last edited by Vitruvius (2005-06-02 06:22:58)

Offline

Board footer

Powered by FluxBB