Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
I see two things worth considering:
- 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).
- 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
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
okay thank you very much! can’t believe I overlooked that one.:p
Offline
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
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
I’d also like to add a class to my article edit link. to avoid extra html in my form. this plugin is great. so simple and essential. thanks!
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
Is there a way to add a front end edit for comments too?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#33 2007-04-13 08:58:31
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
All those wishing to add a class to it, click on the edit option in the plugin tab. Find the bottom three lines that look like this…
return isset($_COOKIE[$rss_ae_cookie]) ? $prefix.'<a href="'.hu.'textpattern/index.php?event=article&step=edit&ID='.$thisarticle['thisid'].'">'.parse($thing).'</a>'.$suffix : "";
}
Replace them with something like this
return isset($_COOKIE[$rss_ae_cookie]) ? $prefix.'<a class="admin_link" href="'.hu.'textpattern/index.php?event=article&step=edit&ID='.$thisarticle['thisid'].'">'.parse($thing).'</a>'.$suffix : "";
}
This is what i added…
id="admin_link" target="_blank"
An ID for styling, target blank so it opens in a new window or tab.
This is my form…
<txp:rss_article_edit>Edit Article: <i><txp:title /></i> : <txp:ob1_modified format="author" starttext="Last modified by " /><txp:ob1_modified format="since" starttext=" - " /></txp:rss_article_edit>
Uses ob1_modified plugin to let me know when it was last edited and by who.
And this is my CSS…
a[id='admin_link'] {opacity: 0.4; position: fixed; width:100%; bottom: 0px; right: 0px; background-color: #fff; text-align: center; border-top: 1px dotted #000;}
#admin_link:hover {opacity: 1;}
This produces a nice transparent, fixed bar it the browsers that support it and a normal link in the ones that don’t
Last edited by FireFusion (2007-04-13 09:02:00)
Offline
#34 2007-05-06 15:32:36
- WebKat
- Member
- Registered: 2007-01-16
- Posts: 301
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
I had this working for a while and then suddenly I noticed that my edit link no longer showed up. The tag is still there in my form, but it just doesn’t show up. I’m logged into Textpattern.
—
WebKat
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
I’m having the exact same problem as OpalCat ^^
Offline
#36 2007-05-06 16:56:13
- WebKat
- Member
- Registered: 2007-01-16
- Posts: 301
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
I wonder if it’s a conflict with another plugin? Mine are listed here.
—
WebKat
Offline