Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#91 2005-11-02 14:43:47
- alice_c
- Plugin Author

- From: Karlsruhe, Germany
- Registered: 2004-07-03
- Posts: 33
Re: rsx_frontend_edit: Frontend Edit Link
@ramanan: Any Updates concerning the Edit-Link on the Frondend for Admins? Is this plugin now 4.0.x-compatible?
Offline
Re: rsx_frontend_edit: Frontend Edit Link
I think the variable I am using to generate the URL is incorrect. Someone had mentioned earlier in this thread I need to use
$huin Textpattern 4.0, and I had assumed they were correct. I now think they are wrong.
There is no $hu, there is only hu. (It’s a constant, not a variable). As mentioned earlier
Offline
#93 2005-11-29 13:58:50
- -rr-
- Member
- Registered: 2005-09-11
- Posts: 73
Re: rsx_frontend_edit: Frontend Edit Link
Is it possible to use the frontend link to make a [add new article] link that takes you to a blank write screen?
I tried this:
<code>
<txp:rsx_frontend_edit_link >[add new article]</txp:rsx_frontend_edit_link>
</code>
<br>
but it created these errors after clicking on Publish:
<br>
<code>Notice: Undefined index: Status in ../textpattern/include/txp_article.php on line 175</code>
<code>Notice: Undefined index: Status in ../textpattern/include/txp_article.php on line 176</code>
<code>Notice: Undefined index: Status in ../textpattern/include/txp_article.php on line 177</code>
<code>Notice: Undefined index: Status in ../textpattern/include/txp_article.php on line 269</code>
<br>
Any ideas?
Offline
Re: rsx_frontend_edit: Frontend Edit Link
Sencer thanks, I don’t know how I missed that. So I should go back to using hu then? I haven’t had any complaints recently about the plugin, but people may just be changing things themselves, or not using it.
RR that won’t work. You can only use the plugin within an article form template. I can add a new tag that does what you want though.
Last edited by ramanan (2005-11-29 15:21:47)
Offline
Re: rsx_frontend_edit: Frontend Edit Link
> ramanan wrote:
> people may just be changing things themselves, or not using it.
Hi ramanan
we are using it!!!:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: rsx_frontend_edit: Frontend Edit Link
Glad to know. So do you have a problem with my not using hu? It seems some people do, some people don’t. I’m surprised this plugin isn’t more popular actually, it’s very handy. My plugin listing plugin seems to be my most popular, and it’s also my most boring.
Offline
#97 2005-11-29 17:40:12
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: rsx_frontend_edit: Frontend Edit Link
There is no such variable named $hu, it does not exist; hu is a constant (no $). Your plugin currently works for some people because they are using it from their front page. The url output is:
textpattern/index.php...
So from my test install, if I’m on the front page, the full url is
http://localhost/txp-stable/textpattern/index.php...
but, if I go into any section, including individual posts, the full url is:
http://localhost/txp-stable/article/textpattern/index.php...
which is incorrect.
Offline
Re: rsx_frontend_edit: Frontend Edit Link
Yep. Mary’s right. I’m having the same problem. My article page gets included in the edit link i.e. <code>article/textpattern/index.php?event=article&step=edit&ID=54</code>. Any idea how I can solve this?
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline
#99 2005-11-29 18:08:02
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: rsx_frontend_edit: Frontend Edit Link
Edit the plugin and replace $hu with hu; just remove the dollar sign.
Offline
#100 2005-11-29 18:46:02
Re: rsx_frontend_edit: Frontend Edit Link
I’ll fix it shortly then. It’s strange though because the plugin works for me regardless of whether i’m clicking a link from the front page or not.
Offline
#101 2005-11-29 18:59:39
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: rsx_frontend_edit: Frontend Edit Link
Maybe your particular install is more forgiving. I know that if you call, say $_POST[varname], older installs would guess that you meant a variable, rather than a constant, if one wasn’t found. It might still do that, I don’t know, haven’t tried.
Offline
#102 2005-11-29 19:04:39
Re: rsx_frontend_edit: Frontend Edit Link
> ramanan wrote:
> Glad to know. … I’m surprised this plugin isn’t more popular actually, it’s very handy. My plugin listing plugin seems to be my most popular, and it’s also my most boring.
I agree! My site is getting bigger and bigger and I have to edit the entries constantly as they expire. Your plugin helps me save tons of time.
Last edited by colak (2005-11-29 19:06:27)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#103 2005-11-29 19:08:11
Re: rsx_frontend_edit: Frontend Edit Link
Mary, many thanks to you. That worked perfectly. And ofcourse! Thanks to ramanan for making life easier!
Vasanth
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline
#104 2005-11-29 20:35:34
Re: rsx_frontend_edit: Frontend Edit Link
I’ll try and fix things tonight, or during the week. I actually didn’t know PHP had constants. You learn something new everyday. I’ve tested using hu instead of $pfr on my install (which worked with $pfr) and all is well. So expect an update soon. I’ll add a link to the empty article page as well, though it doesn’t seem as useful (since you can just bookmark http://yourdomain/path/to/txp).
Any other features people have been dying for?
Last edited by ramanan (2005-11-29 21:14:21)
Offline
#105 2005-12-01 03:46:56
Re: rsx_frontend_edit: Frontend Edit Link
I’ve added a quicklink to the empty article entry page (the default page when you load up textpattern), and i’ve switched the plugin so that it correctly uses the hu constant when building URLs.
Offline