8 of 11
8
Standalone Edit Forms
Posted: 20 January 2006 04:30 AM   [ Ignore ]   [ # 127 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005
Vik - 20 January 2006 03:00 AM

Do I need to define the master_weblog_name in a template?

Hmm, did you ever read my reply?!

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 10:33 AM   [ Ignore ]   [ # 128 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004

Oh,  I thought it was an EE variable. It looks like an EE variable. Okay, I’ll look up the syntax for defining it.

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 20 January 2006 10:37 AM   [ Ignore ]   [ # 129 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004
EE lover - 20 January 2006 04:30 AM
Vik - 20 January 2006 03:00 AM

Do I need to define the master_weblog_name in a template?

Hmm, did you ever read my reply?!

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

Yes; that’s why I asked the question, to verify that that was necessary.  I’d never seen a template that required doing that before, and master_weblog_name looked to me like a variable that EE maintains internally.

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 20 January 2006 11:25 AM   [ Ignore ]   [ # 130 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004

I added in this line:

{assign_variable:master_weblog_name="weblog1"}

Accessing the stand-alone form, now shows a page containing the following error messages:

Notice: Only variables should be assigned by reference in /home/bigpi2/public_html/exp/lxw_system/plugins/pi.form_helper.php on line 223

Notice
: Only variables should be assigned by reference in /home/bigpi2/public_html/exp/lxw_system/plugins/pi.form_helper.php on line 224

Notice
: Only variables should be assigned by reference in /home/bigpi2/public_html/exp/lxw_system/plugins/pi.form_helper.php on line 227

Here’s the top of my template, containing the only lines where my template differs from the one supplied with form_helper. Differences from the one supplied with form_helper are highlighted in green:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
      “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<title>Stand-Alone Entry Form </title>
<meta name=“generator” content=“BBEdit 8.0” />

<link rel=‘stylesheet’ type=‘text/css’ media=‘all’ href=’{stylesheet=weblog/weblog_css}’ />

<style type=‘text/css’ media=‘all’>@import “{stylesheet=weblog/weblog_css}”;
</style>
</head>

<body>
{assign_variable:master_weblog_name=“weblog1”}

<!—Begin Edit Form—>
<table width=“100%” cellspacing=“1” cellpadding=“3” border=“0”>
{exp:weblog:entries weblog=”{master_weblog_name}” status=“not closed” show_expired=“yes” rdf=“off”}

{exp:form_helper:member_is_author author_id=”{author_id}”}
{if member_not_author}
<tr><td>Sorry. Only the author of this entry is allowed to edit it.</td></tr>
{/if}

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

The template preferences have PHP allowed, and parsed on input. What am I missing?

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 20 January 2006 01:35 PM   [ Ignore ]   [ # 131 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

Do you see that notice only on your edit page?

What version of EE are you using?

It sounds that your host has updated to PHP v4.4.0 or newer. See this KB entry.

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 20 January 2006 01:40 PM   [ Ignore ]   [ # 132 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

BTW: this is not related to your problem but you don’t need php on your edit page. If you don’t have other codes that need php, you can turn it off.

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 20 January 2006 02:00 PM   [ Ignore ]   [ # 133 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004
EE lover - 20 January 2006 01:35 PM

Do you see that notice only on your edit page?

Yes, it only appears on the stand-alone edit page.

What version of EE are you using?

I’m using EE 1.4.1, with a new version of core.template.php which I received yesterday from Paul, which includes a fix for protecting javascript included in templates.

It sounds that your host has updated to PHP v4.4.0 or newer. See this KB entry.

As noted, I’m using the latest version of EE. I’m using Form Helper 1.1, which is the latest version on the pMachines EE plugin page.

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 20 January 2006 02:07 PM   [ Ignore ]   [ # 134 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

Aha, you should use form helper 1.9 . Go get the latest version from solspace’s site. Updating the plugin will solve your problem.

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 20 January 2006 02:36 PM   [ Ignore ]   [ # 135 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004

Thanks very much. The stand-alone edit form is now being displayed. Is there a way to support a preview button with this form?

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 20 January 2006 02:51 PM   [ Ignore ]   [ # 136 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

You’re welcome.

Is there a way to support a preview button with this form?

I don’t think so, at least I never tried that my self neither heard of any one doing a preview from the edit form.

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 20 January 2006 03:06 PM   [ Ignore ]   [ # 137 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

In your General Configuration section, what do you have as your index?

Name of your site’s index page

Edit : Oopse! Wrong place.  (link)

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
Posted: 20 January 2006 05:23 PM   [ Ignore ]   [ # 138 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004
EE lover - 20 January 2006 02:51 PM

You’re welcome.

Is there a way to support a preview button with this form?

I don’t think so, at least I never tried that my self neither heard of any one doing a preview from the edit form.

Very good. Thanks very much for your help on this!

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 21 March 2006 10:00 AM   [ Ignore ]   [ # 139 ]  
Research Assistant
RankRankRank
Total Posts:  845
Joined  08-05-2005

I am having some trouble with the Edit form - it’s described on this thread. If anyone has a minute to take a look, I’d appreciate it.

Profile
 
 
Posted: 02 April 2006 11:45 PM   [ Ignore ]   [ # 140 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  417
Joined  12-15-2005

Yup, I’m having similar issues. It either comes up completely blank, or I get this error:

You must specify a weblog in order to use the entry form.


This despite the fact I’ve included the weblog name like so:

{exp:weblog:entries weblog="default_site" status="not closed"}
{exp
:weblog:entry_form weblog="default_site" return="home/my_entries"}


I’m likely going to do my own form with a sql query to update instead of using the plugin, seems a bit touchy.

 Signature 

System Info: Production

EE Version:  1.66
Build
:       20081114
PHP Version
: 5.2.5

Profile
 
 
Posted: 03 April 2006 06:52 AM   [ Ignore ]   [ # 141 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6067
Joined  08-04-2002

DEA…appears (from another thread) that you have solved your problem with the Form Helper…true?

Profile
 
 
Posted: 03 April 2006 10:36 AM   [ Ignore ]   [ # 142 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  417
Joined  12-15-2005

Yes, forgive me, haven’t had an opportunity to close the loop. I’m not really sure why, but as soon as I added in the ‘{if member_not_author}’ pieces, it all started working. Is this a required element?

 Signature 

System Info: Production

EE Version:  1.66
Build
:       20081114
PHP Version
: 5.2.5

Profile
 
 
Posted: 20 June 2006 05:14 PM   [ Ignore ]   [ # 143 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1441
Joined  09-16-2004

I see that the Freeform Form Tag is still being worked on, nice!
I have a (perhaps dumb) question: Is there anyway of hiding/obfuscating your e-mail address (here: you@yourdomain.com) when you use this?

{exp:freeform:form form_name="zeus" required="name,email" notify="you@yourdomain.com" template="brief_version"} content {/exp:freeform:form}

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. LinkedIn profile

Profile
 
 
Posted: 20 June 2006 09:58 PM   [ Ignore ]   [ # 144 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1401
Joined  01-15-2005

e-man, this is the topic for form helper plugin not the free form module. wink

BTW: good question, I just viewed the source and realized that my email address is being unveiled there, I think we should contact Solspace!

 Signature 

EE Duration Tags | {view_count_total}

Profile
 
 
   
8 of 11
8
 
‹‹ 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: 64532 Total Logged-in Users: 27
Total Topics: 81108 Total Anonymous Users: 19
Total Replies: 436420 Total Guests: 188
Total Posts: 517528    
Members ( View Memberlist )