Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-06 20:52:43

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

nck_olm and r1542

Although the plugin seemed to work, I was plagued by multiple error messages. I made the follow changes:

1) added two globals to nck_olm_permlinkurl

global $thisarticle, $s;

2) commented out the two lines under // define section of article and added this

$section = $thisarticle[‘section’]; if (empty($section)) $section = $s;

As far as I can tell the plugin still works and the error messages have gone away. Use at your own risk!

Michael

Offline

#2 2006-09-06 22:25:58

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: nck_olm and r1542

I’m pretty sure the global $s is deprecated, and only left in for backwards plugin compatability. You should be using $pretext[‘s’].


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#3 2006-09-07 15:41:16

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

Re: nck_olm and r1542

Did that happen recently? I lifted the code from a copy of taghandlers.php, specifically the section function.

Offline

#4 2006-09-07 19:48:16

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

Re: nck_olm and r1542

Uhm, I’m not sure when it happened, but it is indeed deprecated, as seen here in publish.php.


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#5 2006-09-08 00:26:47

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: nck_olm and r1542

Yes, we’re getting too many global variables floating about. :)

Offline

Board footer

Powered by FluxBB