Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2007-05-06 17:19:13

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

Go to Extensions > Edit Link

Is the cookie set? I recently had to rename mine and reset it to get it to work.


TextPattern user since 04/04/04

Offline

#38 2007-05-06 17:42:56

WebKat
Member
Registered: 2007-01-16
Posts: 301

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

YES! That worked! Wonder what made it unset itself?



WebKat

Offline

#39 2007-05-18 19:25:39

Prax
Member
From: Huntsville, AL
Registered: 2006-09-27
Posts: 24

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

Here’s another (simpler, but maybe I’m missing something) way to add a class option to this plug-in.

Dig down to the last few lines of the plug-in.

You’re looking for:
bc. extract(lAtts(array(

Once you find that you’ll see it has two lines of code after that:
bc. ‘prefix’ => ‘’,
‘suffix’ => ‘’

Add a comma to the end of the suffix line:
bc. ‘suffix’ => ‘’,

Add a new line after that one:
bc. ‘class’ => ‘articleedit’

Modify the code that follows in the plug-in to include the new class:

return isset($_COOKIE[$rss_ae_cookie]) ? $prefix.'<a class="'.$class.'" href="'.hu.'textpattern/index.php?event=article&amp;step=edit&amp;ID='.$thisarticle['thisid'].'">'.parse($thing).'</a>'.$suffix : "";
}

That’s it.

As for this Textile mess.. I give up. :(

Offline

#40 2007-05-29 08:46:06

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,081
Website GitHub Mastodon Twitter

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

Is there a way for this plugin to move to the ‘write’ tab?
The reason is that I would like to allow staff writers and copy editors to utilise the ‘edit’ cookie.
The extensions tab contains plugins parsing sensitive information, rss_admin_db_manager, to mention but one which I would not want anyone else to reach.

Forget it… I figured it out:)

Last edited by colak (2007-05-29 08:56:46)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#41 2007-06-06 02:11:19

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

Prax, thanks for the hack! Works well!
If somebody copies and pastes the line frome above that is not marked as code (‘class’ => ‘articleedit’): won’t work as these are curly quotes. Use your keyboard for straight quotes.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#42 2007-08-10 05:34:25

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

Problem:
Users get confused about how to get back to the page they were on when they clicked the edit link. I know you can press the back button twice, but it’s a pain doing it for every article you edit.

Solution:
I’d like to add the capability to augment the action of the save button to also automatically return the user to the page they were on when they clicked the edit link. I think this could be done by writing and reading a cookie.

Anyone got the skills to code this, I don’t.

Offline

#43 2007-08-10 06:26:29

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

What you intend needs two article editing modes: one for single article editing, when the users are coming in from the rss_edit link, the other one for batch editing articles only on the admin side. If using the “view” link in mode one is too much for them, won’t switching to mode two and back again be even more difficult/theoretical for them?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#44 2008-01-29 23:36:23

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

why does this plugin work when i set my browser address to mydomain.com but when i go to www.mydomain.com i don’t see it?

Offline

#45 2008-01-30 01:41:24

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

Elliot, I think this has nothing to do with this plugin but with the way browsers administer cookies (or is this an FF only behavior?). Just try logging into TXP’s admin side the way you did with the plugin.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#46 2008-02-04 11:08:55

KI
New Member
Registered: 2007-10-17
Posts: 3

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

How do I get copy editors to see it in 4.0.6?

Offline

#47 2008-02-21 14:16:10

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

I’ve installed this set the cookie – put the code in my Footer form.

When I run it I get MySql errors.

Warning:

Error: ‘’ is not an integer

textpattern/include/txp_article.php:751 assert_int()
textpattern/include/txp_article.php:320 checkIfNeighbour()
textpattern/include/txp_article.php:50 article_edit()
textpattern/index.php:116 include()

The link from the edit text is as follows
http://www.mysite.com/textpattern/index.php?event=article&step=edit&ID=
it seems to be missing a value for ID? + any other vars passed after?

Thanks Geoff

Last edited by geoff777 (2008-02-21 14:19:48)


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#48 2008-04-01 13:29:37

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [plugin] [ORPHAN] rss_article_edit - public site edit link

The Solution is here

I’ve installed this set the cookie – put the code in my Footer form.

Not footer, article form is required! From the documentation: Add the rss_editlink tag to your article form


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB