Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#133 2013-02-18 17:14:12

springworks
Member
Registered: 2005-01-06
Posts: 172
Website

Re: stm_article_order: Arbitrary sort order for your articles

GugUser wrote:

I like the smt_article_order plugin and I am happy that people like uli (smt_article_order 2.4) and you continue to develop it. And I hope that there will be not different branches in the development, but rather a single line of development, so that it will be no longer a orphaned (abandoned) plugin.

Thanks for your work.

I started with Uli’s 0.2.4 version of the plugin before I added my extra bits. Like you I find this plugin very useful and I’m happy for anyone else to include my additions in future versions of it.

Offline

#134 2013-02-18 23:36:46

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 809
Website

Re: stm_article_order: Arbitrary sort order for your articles

Yes, it’s a great plug-in … all my clients think so too. Thanks @springworks for developing this one into the future. However … I’ve just installed v0.3 on a recent site (Txp v4.5.4) and the articles doesn’t show up in the Article order tab … :(

Last edited by RedFox (2013-02-19 07:21:12)

Offline

#135 2013-02-19 00:31:24

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: stm_article_order: Arbitrary sort order for your articles

RedFox wrote:

(…) the articles doesn’t show up in the Article order tab … :(

The same in my Textpattern 4.5.4, and the button in the extensions tab does nothing.

What are we doing wrong?

Offline

#136 2013-02-19 06:43:17

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: stm_article_order: Arbitrary sort order for your articles

I concur – both errors on the nightly build too

Offline

#137 2013-02-19 10:23:04

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: stm_article_order: Arbitrary sort order for your articles

hi and thanks for keeping this alive!
i also do have a problem..
i installed the 0.3 on a txp 4.5.4 and i get error messages.
in the extensions tab, there alerts:
internal error “Undefined variable:db_sections” & internal error “Invalid argument supplied forech()”
in the article order tab it alerts:
internal error “Unknown column ‘spr_exclude’ in ‘where clause’”
sounds like the tables are missing, eh? where do these get created..?

Offline

#138 2013-02-19 13:35:48

springworks
Member
Registered: 2005-01-06
Posts: 172
Website

Re: stm_article_order: Arbitrary sort order for your articles

Hi all

Apologies for the errors. My local copy was working but on checking through the code, I’ve noticed a few issues with it! (Not quite sure how it was working on my install at all!)

Anyway, I’m working on it and should have a revised version up by the end of today.

Thanks for your patience and for the positive reception – it’s good to know I’m not the only one benefiting from this old plugin and that there is demand to keep it going longer.

Keep an eye out for more news later and a revised version that should (hopefully!) work as described.

Offline

#139 2013-02-19 16:02:53

springworks
Member
Registered: 2005-01-06
Posts: 172
Website

Re: stm_article_order: Arbitrary sort order for your articles

OK, hopefully problems now sorted.

I’ve tried this with a clean install of txp 4.5.4 and it works for me. Please let me know if you have any problems with it.

I’ve kept the version number the same as it is only a bug fix and the earlier version didn’t work!

Installing the plugin creates the extra column in the txp_section table of the database. Deleting the plugin removes the extra column, returning the db table back to the state it was in before the plugin was installed.

I’ve purposely excluded the default section from the Article Order Sections tab since it can’t hold any articles.

Download link: stm_article_order 0.3

Thanks for your patience while I sorted out the issues. I hope this is now of use to you all.

Last edited by springworks (2013-02-19 16:05:49)

Offline

#140 2013-02-19 16:08:22

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 809
Website

Re: stm_article_order: Arbitrary sort order for your articles

It’s working … :))

Thanks Steve

Last edited by RedFox (2013-02-19 16:09:02)

Offline

#141 2013-02-19 16:51:59

springworks
Member
Registered: 2005-01-06
Posts: 172
Website

Re: stm_article_order: Arbitrary sort order for your articles

Good stuff!

Enjoy :-)

Offline

#142 2013-02-19 22:20:57

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: stm_article_order: Arbitrary sort order for your articles

Yup – a quick look and it seems to be working on the nightly too :)

Thanks Steve

Offline

#143 2013-02-20 01:06:17

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: stm_article_order: Arbitrary sort order for your articles

Now it works fine. Thank you.

Offline

#144 2013-02-22 16:20:11

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: stm_article_order: Arbitrary sort order for your articles

high.

works fine on my end as well.
i often do use multiple article images, and if so, the list wont come up with them, instead its skipping them all.
here is my fix: Please ignore, even better fix below.

if (is_numeric($article['Image'])) {
	$tmp .= '<span class="article_title status_'.$article['Status'].'"><a href="index.php?event=image&step=image_edit&id='.$article['Image'].'" title="Edit image" class="image-edit"><img class="article-img" src="'.hu.$img_dir.'/'.$article['Image'].'t.jpg" /></a>'.$article['Title']." <em class='article_id'><a title='Edit article' href='index.php?event=article&step=edit&ID=".$article['ID']."'>(".$article['ID'].")</a></em></span>";
} else if (is_string($article['Image'])) {
	$img = explode(",", $article['Image']);
	$tmp .= '<span class="article_title status_'.$article['Status'].'"><a href="index.php?event=image&step=image_edit&id=' . $img[0] . '" title="Edit image" class="image-edit"><img class="article-img" src="'.hu.$img_dir.'/' . $img[0] . 't.jpg" /></a>'.$article['Title']." <em class='article_id'><a title='Edit article' href='index.php?event=article&step=edit&ID=".$article['ID']."'>(".$article['ID'].")</a></em></span>";
} else {
	$tmp .= '<span class="article_title status_'.$article['Status'].'">'.$article['Title']." <em class='article_id'><a title='Edit article' href='index.php?event=article&step=edit&ID=".$article['ID']."'>(".$article['ID'].")</a></em></span>";
}

Last edited by uli (2013-05-10 22:02:15)

Offline

Board footer

Powered by FluxBB