Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#121 2005-05-19 15:14:54
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
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
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
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
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
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
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
#133 2005-06-02 09:25:39
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
no, it is on sgb_url handler :)
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#134 2005-06-02 17:21:09
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
Hey, what is the latest version of this plugin?
I think it’s 1.5.
I’m Jonesin’ for 1.7 because I need {example.com/section/year/month/day/title}
Anyone got that scheme to work yet? Anyone know of a 1.7? Anyone seen the sun-god?
Last edited by mrdale (2005-06-02 17:24:50)
Offline
#135 2005-06-02 17:46:33
Re: [plugin] [ORPHAN] sgb_url_handler - support all url variations at the same time
I think sgb hasn’t been around for quite some time.
I managed to get example.com/section/year/month/day/title to work. However, I use zem_rewrite for it but it plays well with sgb_url_handler 0.1.5 which is also active (because I also need section/title).
In zem_rewrite, this is my setup:
<code>
$uri_scheme[‘date’] = ‘{section}/{year}/{month}/{day}/{url_title}’;
$uri_scheme[‘article_urltitle’] = ‘{section}/{category}/{url_title}’;
$uri_scheme[‘article_alt’] = ‘{section}/{article}/{url_title}’;
$uri_scheme[‘category’] = ‘{section}/{category}/’;
$uri_scheme[‘article’] = ‘{section}/{url_title}’;
$uri_scheme[‘section’] = ‘{section}/’;
</code>
Offline