Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#229 2007-08-28 03:48:34

diuk
Member
Registered: 2007-08-21
Posts: 15

Re: gbp_permanent_links

BIIIINGO!!!!!!

I got it, I’m answering my own question: in preferences, turn “join_pretext_to_pagelinks” to “no, that way the category url name won’t get appended to the permalink. Now I can take nap.

Regards,

D

Offline

#230 2007-08-28 09:37:15

rwbaker
New Member
From: FL
Registered: 2007-02-11
Posts: 6
Website

Re: gbp_permanent_links

Likewise, as diuk, if figured out my issue too. Turns out i didn’t have the right permissions set to my .htaccess file.

Offline

#231 2007-08-29 23:19:37

premek.b
Member
From: Pilsen, CZ
Registered: 2006-05-17
Posts: 18
Website

Re: gbp_permanent_links

Zanza wrote:

had to quickly revert to 0.11.566, because my url ‘name.htm’ in the url title got converted to ‘namehtm’.

I had the same problem, and while trying to hunt down its source, I found it’s connected with replacing the original urlencode() function in building the permling URL (rev 0.11.566 and earlier) with the sanitizeForUrl() somewhere down the road to 0.11.617. The latter function, found in Textpattern’s lib/txplib_misc.php, removes dots from the string.

So far, my quick-and-dirty hack (wouldn’t call it solution) is to modify the library function by adding \. to the character classes in the last two regexps, lines 641 and 643 in the file in Textpattern 4.0.5 distro.

A better solution is needed – graeme, please, could you help? I can’t see any reason why dots should be banned from URLs.

Premek


“So, where is the patch?”
((former nick pbrada))

Offline

#232 2007-08-29 23:31:12

premek.b
Member
From: Pilsen, CZ
Registered: 2006-05-17
Posts: 18
Website

Re: gbp_permanent_links

tinyfly wrote:

Can I use this plugin to simulate nested sections in the URL? I’m having a hard time wrapping my head around this. What I would like is for my url to be: domain.com/section/section/ for landing pages.

graeme wrote:

Currently no. But I’m looking it to supporting this in the future.

I cast my vote for this feature – for over two years now, I wish Textpattern could handle sites with basically unlimited depth of nested (sub)sections since I use it on a couple of sites with fairly rich structure. If gbp_permanent_links could help to fake this functionality through sections or categories (which can be nested ad libitum) or whatever, I’d be really happy.

Premek

PS: Graeme, thanks for this plugin, it really rocks.


“So, where is the patch?”
((former nick pbrada))

Offline

#233 2007-08-30 00:01:01

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

Re: gbp_permanent_links

tinyfly wrote:

Can I use this plugin to simulate nested sections in the URL? I’m having a hard time wrapping my head around this. What I would like is for my url to be: domain.com/section/section/ for landing pages.

graeme wrote:

Currently no. But I’m looking it to supporting this in the future.

Ok, this solves my problem: It’s insolvable :-)


Textpattern projects: Maxvoltar, Made by Elephant, Twunch

Offline

#234 2007-09-05 13:48:28

jmk
Member
Registered: 2006-09-04
Posts: 49

Re: gbp_permanent_links

what a really nice and well coded plugin! thank you

Offline

#235 2007-09-06 14:13:12

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

Found a cute little bug :

break;
case 'id':
if ($rs = safe_row('ID', 'textpattern', "`ID` = '$uri_c' $context_str...

should be

break;
case 'id':
if ($rs = safe_row('ID, Posted', 'textpattern', "`ID` = '$uri_c' $context_str...

Feature request : allow to set what status you’d like to be searched for, per rule. (sticky, live, draft,…). Perhaps as a radio-list?

Offline

#236 2007-09-06 14:48:21

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: gbp_permanent_links

Hi guiguibonbon,

what does that little cute fix do?

Last edited by maniqui (2007-09-06 14:50:40)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#237 2007-09-06 14:49:44

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

at the moment, it generates an error when you’re on a page whose permlink contains an article id, because $rs['Posted'] is called a few lines further.

Note : it may well be that I actually deleted the posted myself by accident previously. Unlikely though, but should be checked. Checked : it’s a bug.

Last edited by guiguibonbon (2007-09-06 15:34:54)

Offline

#238 2007-09-06 19:20:16

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

And another bug :

				if (is_numeric(@$pretext['id'])) {
					$a = safe_row('*, unix_timestamp(Posted) as uPosted', 'textpattern', 'ID='.intval($pretext['id']).' and Status = 4');
					populateArticleData($a);
				}

should be :

				if (is_numeric(@$pretext['id'])) {
					$a = safe_row('*, unix_timestamp(Posted) as uPosted', 'textpattern', 'ID='.intval($pretext['id']).' and Status >= 4');
					populateArticleData($a);
				}

Otherwise sticky articles don’t show up, but don’t generate 404 either. Seems to have been inspired by this strange phenomena.

And if that little feature request of mine three posts above would be implemented, the end of that query should be adapted accordingly.

Last edited by guiguibonbon (2007-09-06 19:21:00)

Offline

#239 2007-09-06 21:31:51

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: gbp_permanent_links

Unfortunatelly, I am having some trouble again.
It turns out that the plugin will break pagination with article_lists, allthough all the rules I have defined are only applied to sections that are not paginated and are restricted to other sections.

It took me quite some time, to figure out, what exactly is going on.
With the default older newer tags, that are used on the template, the page only paginates until page 2,
Any numPages Value greater then two returns a 404, allthough I have a Total of 4 Pages.

A possible suspicion : The total pagenumber count from the textpattern_end function isn’t right.
But why does the plugin influence a section, that is totally isolated from the rules, that I have set up?

Also:

  • Around line 600 the plugin calls the txp_die function, which unfortunately is no longer available in taghandlers as of version (4.0.5)

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#240 2007-09-06 21:52:08

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

marios try clearing out _textpattern_end () around line 654

	function _textpattern_end ()
	{
		while (@ob_end_flush());
	}

Last edited by guiguibonbon (2007-09-06 21:52:18)

Offline

Board footer

Powered by FluxBB