Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#98 2005-11-29 17:48:16

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

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

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

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

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

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

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

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

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

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

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

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

#106 2006-01-18 10:06:41

wesseltoft
Member
From: Dortmund, Germany
Registered: 2005-08-03
Posts: 108
Website

Re: rsx_frontend_edit: Frontend Edit Link

Well, the plugin does not show the edit link. What should I do?

Offline

#107 2006-07-31 12:06:41

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_frontend_edit: Frontend Edit Link

Make sure you have cookies enabled. Make sure you “rsx_frontend_on.php” to set the cookie. Not sure what else might cause trouble.

Offline

#108 2006-10-26 14:12:30

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: rsx_frontend_edit: Frontend Edit Link

I will post an updated version of this plugin tonight that uses <txp:php> tags instead of raw php. I have been using it on my site since last night, and it hasn’t blown up yet. This will get rid of the “raw php deprecated” error message. If you like, you can just replace the open and close php tags, with the open and close txp:php tags.

Offline

Board footer

Powered by FluxBB