7 of 11
7
Standalone Edit Forms
Posted: 17 January 2006 08:27 AM   [ Ignore ]   [ # 109 ]  
Research Assistant
RankRankRank
Total Posts:  540
Joined  02-25-2003

I am working with the form helper plugin to allow members to edit their own weblog entries.
First I list all their entries using a mysql call.

Then I would like them to select one from the list, click on it and edit it on a new page. How should I pass the variable to the edit page? What variable should I pass to then find the right entry?

Thanks!

Profile
 
 
Posted: 17 January 2006 08:39 AM   [ Ignore ]   [ # 110 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Probably the entry id- but possibly the weblog id as well.  I don’t actually use the plugin, so I’m not sure.  What’s the standard url to the edit page look like and what parameters are required?  That will tell you what you need right there.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 17 January 2006 08:54 AM   [ Ignore ]   [ # 111 ]  
Research Assistant
RankRankRank
Total Posts:  540
Joined  02-25-2003
rob1 - 17 January 2006 08:39 AM

Probably the entry id- but possibly the weblog id as well.  I don’t actually use the plugin, so I’m not sure.  What’s the standard url to the edit page look like and what parameters are required?  That will tell you what you need right there.

I have the list so far and I am trying to figure out what would be the best way to link to the edit page. So the edit page does not exist yet. I need to identify the post somehow, then find all the required info in the database, and display it. We are using URL rewrite…

Something will need to be passed (probably the entry_id as you mentioned). I can pass that in the URL, which would be the easiest. Then I will need to read that variable in on the edit page. Is there a standard way EE passes, then reads the variables in?

Profile
 
 
Posted: 17 January 2006 09:13 AM   [ Ignore ]   [ # 112 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23744
Joined  05-20-2002

Yep- see segment globals- they make it very easy to pass variables in the url- basically a matter of tacking them onto the url and then using {segment_x} to pull them out.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 17 January 2006 09:19 AM   [ Ignore ]   [ # 113 ]  
Research Assistant
RankRankRank
Total Posts:  540
Joined  02-25-2003

Wow! Thank you, that is really neat.

Profile
 
 
Posted: 17 January 2006 12:18 PM   [ Ignore ]   [ # 114 ]  
Research Assistant
RankRankRank
Total Posts:  744
Joined  05-15-2004

dombi, could you post a sample template for a stand-alone edit form that uses Form Helper so that members can edit their own posts?

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 17 January 2006 12:28 PM   [ Ignore ]   [ # 115 ]  
Research Assistant
RankRankRank
Total Posts:  540
Joined  02-25-2003

Vik: it is still in the process. I am moving slow with it, because I have lot of other things to do. i was also looking for some tutorial, because it is really not as simple as most people say so. I will try to write something up and then link it in here.

Profile
 
 
Posted: 17 January 2006 12:45 PM   [ Ignore ]   [ # 116 ]  
Research Assistant
RankRankRank
Total Posts:  744
Joined  05-15-2004

I understand. Thanks very much in advance for the write-up.

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 17 January 2006 02:09 PM   [ Ignore ]   [ # 117 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1397
Joined  01-15-2005
Bruce2005 - 09 January 2006 06:10 AM

I’m another one, I find the instructions a little bit of Greek to me…and I don’t know Greek unfortunately. Is there an example working form anyplace to use as a starting point?
It looks great and has many uses I’m sure, and appreciate all the know how and skill and time that went into it.

I was going to write a book, “Stand alone Entry Form, Stand alone entry form helper, and the stand alone entry form edit for dummies”, but I’m the dummy so I can’t. Dang!

There is already a sample edit form available in the zip folder you have downloaded it!

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 17 January 2006 02:16 PM   [ Ignore ]   [ # 118 ]  
Lab Technician
RankRankRankRank
Total Posts:  1023
Joined  03-25-2005

Thanks, true. It took a little thinking and head banging, but fianally made progress and have a custom and customizable form for posting and uploading photos in a template which the client wanted.
Now going to work on the edit form part when time allows. Strained what was left of my brain but it’s working!
Now lets look at Structured Blogging and all this together…!

Totally awesome combination that does a LOT! EE is going to take over the world wink

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 17 January 2006 02:17 PM   [ Ignore ]   [ # 119 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1397
Joined  01-15-2005
Vik - 17 January 2006 12:18 PM

dombi, could you post a sample template for a stand-alone edit form that uses Form Helper so that members can edit their own posts?

{exp:form_helper:member_is_author author_id="{author_id}"}
{if member_not_author}
Sorry
. Only the author of this entry is allowed to edit it.
{/if}
{exp
:weblog:entry_form weblog="weblog1"} blah blah blah {/exp:weblog:entry_form}
{
/exp:form_helper:member_is_author}


{exp:form_helper:member_is_author author_id=”{author_id}”} {/exp:form_helper:member_is_author}
If you want to restrict the editing of an entry to the member who authored the entry, use this tag pair. If the currently logged in member does not have the same author id as the one you supplied in the ‘author_id’ parameter, whatever is wrapped inside the tag pairs will not show. (from plugin’s doc)

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 17 January 2006 04:20 PM   [ Ignore ]   [ # 120 ]  
Research Assistant
RankRankRank
Total Posts:  744
Joined  05-15-2004

Thanks very much, EE lover. I’ll try it out.

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 19 January 2006 06:50 PM   [ Ignore ]   [ # 121 ]  
Research Assistant
RankRankRank
Total Posts:  744
Joined  05-15-2004
EE lover - 17 January 2006 02:09 PM

There is already a sample edit form available in the zip folder you have downloaded it!

What is the name of the file containing the sample edit form?

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 19 January 2006 09:43 PM   [ Ignore ]   [ # 122 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1397
Joined  01-15-2005

sample_edit_form.php

Edit: it is located in form_helper folder. Are you looking for it in the right place?

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 20 January 2006 01:44 AM   [ Ignore ]   [ # 123 ]  
Research Assistant
RankRankRank
Total Posts:  744
Joined  05-15-2004

Thanks. I found the file and installed it in the body section of a template. When I access the template, I get a blank screen.

It’s probably related to how I customized the template to my site. The only line I modified was:

{exp:weblog:entry_form weblog="{master_weblog_name}" return="weblog/edit_entry/{entry_id}"}

...which I changed to:

{exp:weblog:entry_form weblog="{master_weblog_name}" return="weblog/Stand_Alone/{entry_id}"}

(“Stand_Alone” is the name of my template).

What am I missing?

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 20 January 2006 02:31 AM   [ Ignore ]   [ # 124 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1397
Joined  01-15-2005

Are you logged in? You must be logged in to be able to view the content.

And also check that you defined the master_weblog_name in your template.

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 20 January 2006 03:00 AM   [ Ignore ]   [ # 125 ]  
Research Assistant
RankRankRank
Total Posts:  744
Joined  05-15-2004

I am logged in, and my weblog is assigned the short name “weblog1” in CP Home ›  Admin ›  Weblog Management.

Do I need to define the master_weblog_name in a template?

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 20 January 2006 04:07 AM   [ Ignore ]   [ # 126 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12755
Joined  04-29-2002

Do I need to define the master_weblog_name in a template?

Uhhh… yeah.

Otherwise you have to hardcode weblog=“weblog1”

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
   
7 of 11
7
 
‹‹ empty new blog      MoBlog Auto Check? ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66395 Total Logged-in Users: 27
Total Topics: 84728 Total Anonymous Users: 16
Total Replies: 454726 Total Guests: 191
Total Posts: 539454    
Members ( View Memberlist )