Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2006-01-23 23:22:16

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

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

This is a lovely plugin! Thank you!

One minor issue: you have to be admin (i.e. user role publisher) to set the cookie.

I’m running a website with a lot of authors, so they cannot use this plugin. Would there be a possibility to integrate the cookie maker somewhere else?

Offline

#17 2006-01-24 02:14:02

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

The plugin should allow all roles to set the cookie. Try downloading the version 0.1 again. The version didn’t change but there was a problem with early downloads that I fixed at some point.

Offline

#18 2006-01-24 08:53:48

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

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

It is not the cookie-maker, but the tab. “Authors” do not have the extension tab and you can only access the extension tab and subtabs, when you are publisher.

Offline

#19 2006-02-19 03:59:49

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

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

Uhh I don’t understand; wouldn’t it be just as useful and much simpler for a plugin to use textpattern’s own cookie?


Yes, I have tried turning it off and on.

Offline

#20 2006-02-24 17:56:02

p_see
Member
Registered: 2006-02-24
Posts: 17

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

Prob with the ID:
The link is well parsed except for the ID. I got something like “http://127.0.0.1/textpattern/textpattern/index.php?event=article&step=edit&ID=” —>The ID number is missing.
(Textpattern 4.0.3)

Offline

#21 2006-02-25 10:58:13

p_see
Member
Registered: 2006-02-24
Posts: 17

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

Well, I’m a newbie in TextPattern and I have just understood certainly one of the basic elements: the Id is an “article” attribute and it must be called from a “form” not from a “page”. Hope this can help another new comer.

Last edited by p_see (2006-02-28 23:02:42)

Offline

#22 2006-03-11 10:23:46

p_see
Member
Registered: 2006-02-24
Posts: 17

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

I think of a way to delete an article from the write/edit page of each article.
A button after “Reset time to now”

—> “DELETE
(I’ve post a request in the features request forum).
I don’t have any idea of the difficulty to do this, it is just a suggestion (honestly I am sure that others already thought of it. Thus that should not be so easy to make…).
It would have sense with the front-editing concept.

Offline

#23 2006-06-07 04:14:37

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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

Rob,
Any chance its not difficult to add a wraptag and wrap class to this?
It would allow me to style it.

Thanks man,

Matthew


Offline

#24 2006-07-12 20:49:32

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,192
Website GitHub

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

wouldn’t it be just as useful and much simpler for a plugin to use textpattern’s own cookie?

I was asked today why one needs to set an extra cookie for this and was stumped for an answer, particularly as the “edit” link depends upon you being logged in.

Would it be possible to make it use the ‘remember me on this machine’ cookie txp sets when you’re logged in or not?

BTW: as “The Exit” said, you need to give rights to lower user-levels to show the extension tab. This is no problem, unless you have other extension tab plug-ins which should not be available to all.


TXP Builders – finely-crafted code, design and txp

Online

#25 2006-07-30 15:34:07

wordgasm
Member
Registered: 2006-05-17
Posts: 83
Website

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

how come it wouldn’t work on my site? I’ve set the cookie and followed the instructions, even checked and rechecked the template and the article form, but it wouldn’t work? =/

Offline

#26 2006-07-30 16:20:32

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

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

wordgasm wrote:

how come it wouldn’t work on my site? I’ve set the cookie and followed the instructions, even checked and rechecked the template and the article form, but it wouldn’t work? =/

It would help if you showed us what your relevant template and form code is.

By the way, you did turn the plugin on, right?

Last edited by Destry (2006-07-30 16:21:20)

Offline

#27 2006-07-31 15:38:25

wordgasm
Member
Registered: 2006-05-17
Posts: 83
Website

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

the plugin was and is still turned on, the cookie was set, etc. this is my article form:
<code>
<a href=”<txp:permlink />” title=”<txp:title />”><div id=title><txp:title /></div></a>
<div id=entry><txp:ied_replacer what=“body” /></div>
<div id=comment><txp:rss_article_edit>edit</txp:rss_article_edit> <txp:posted format=”%d.%m.%y | %R” /> | <img src=”/blue/comment.gif”> <txp:comments_invite /></div>
</code>

is there something wrong with it that I don’t know of?? I’m sure I know what I’m doing with my layout, putting the right forms in the right place and such… I’m using txp 4.03 by the way. thanks for helping out :D

Offline

#28 2006-07-31 18:36:04

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

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

I see two things worth considering:

  1. Divitis in affect (use of more divs than necessary). Maybe start by simplifying your code, dropping unneeded divs and using other selectors where appropriate (e.g <code><h1></code>, <code><h2></code>, <code><h3></code>, whatever).
  2. I think the plugin tag, <code><txp:rss_article_edit> … </txp:rss_article_edit></code> is supposed to be tied to an actual article body that is under Textpattern’s control. I don’t see an actual <code><txp:body /></code> in your code. You’re using another plugin tag for the body and that’s not how the “edit” plugin was designed.

Here’s one idea about redoing that form (CSS not included):

<code><a href=”<txp:permlink />” title=”<txp:title />”><h1><txp:title /></h1></a></code>
<code><txp:body /></code>
<code><div id=“comment”><p><txp:rss_article_edit>edit</txp:rss_article_edit> <txp:posted format=”%d.%m.%y | %R” /> | <img src=”/blue/comment.gif”></code> <code><txp:comments_invite /></p></div></code>

Ultimately you can do what you like with the divs, but I think the <code><txp:body /></code> tag is the root of the real problem here. Just a guess.

Last edited by Destry (2006-07-31 18:38:48)

Offline

#29 2006-08-01 12:49:18

wordgasm
Member
Registered: 2006-05-17
Posts: 83
Website

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

okay thank you very much! can’t believe I overlooked that one.:p

Offline

#30 2006-08-01 14:39:19

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

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

Sorry, this line should have been written like this…

<code><h1><a href=”<txp:permlink />” title=”<txp:title />”><txp:title /></a></h1></code>

(header tags on the outside of the anchor)

Offline

Board footer

Powered by FluxBB