Forums

Understanding the Submit Content Package Plugin

billandre 11 Mar, 2009
Hi,

Thanks for the great work on all of your products. I believe that the Submit Content Package Plugin may do exactly what I need but I want to check. Is this how it works?

1. Design a form
2. Put a link to the form (as you have done on this site with the "Submit Story" menu item)
3. When someone fills in the form and submits it, an article (content item) is created which requires that the article be published by an administrator.
4. Once the article is approved and published, it can be accessed like any other article.

Is this correct?

Who can make changes to the article once it is published? Is there a way to have a link to a submitted article in the Users Menu of the person who submitted the form so that they can access the article to make updates?

Thanks in advance for any information you can provide on this plugin.

Bill in Woodstock, Georgia, USA
GreyHead 11 Mar, 2009
Hi Bill,

First off, "submit content" is a form so you don't need to design it (though you can alter it if you like).

After that yes, yes, and yes. The result is just a standard article so who can do what depends on your Joomal Content settings.

Bob
billandre 12 Mar, 2009
Hey Bob,

Thanks for the quick reply.

You are right, I didn't understand that "submit content" is a form. When you say "(though you can alter it if you like)", can you alter the form completely and as easily as you can any other form? Here is my application. Many of the visitors to my site are about to get married. Once they register on the site, I would like them to be able to fill out a form with information about the time, date, and location of the ceremony and reception, where they are registered for gifts, and other information about the wedding. Once the form is submitted, I would like the bride (or whoever submits the form) to be able to send a link to family and friends so that they can access the information. I would also like the bride to be able to update the information if needed. Maybe there is an easier way to do this without sending the submitted information to a content item. Any advice is appreciated.
GreyHead 12 Mar, 2009
Hi Bill,

Here's how I think it works . . . to be saved as a standard Joomla article there are only a few fields that you can use.

You can collect as much info in the form part as you like - but you must then use the OnSubmit Before box to build that input data into the standard article fields for submission to the Joomla Content manager.

If you don't want to use standard Joomla articles then there - which you might not - then you might want to create a second 'form' that has no input fields but gets the data back from the database and displays it.

Using the first route you plug directly into the Joomla content management capabilites so you can control who can edit etc.

Using the second route you have more flexibility but you have to build your own rules for display, access, etc.

Presumably this information isn't publicly available so controlling access is going to be quite important?

Bob

And there's a third route to build a Joomla Application, or adapt an exisiting one.
Max_admin 12 Mar, 2009
Hi,

doing it the article way is a good way, just after you have the data as an article, create a new chronoform, with 1 textbox, and embed it in the created article using the mambot, use a simple PHP line to hide this content box for guests or the non author, which means that only the bride can see the box, in this one box form, ask the bride to enter the emails of her friends, then you can use the dynamic emails to send the the link to everybody, you will need 3 or 4 small PHP pieces while you are advancing through this, feel free to ask when you reach to this stage!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dianaj59 23 Apr, 2009
I'm using Joomla 1.5
ChronoForms.

You stated here:

If you don't want to use standard Joomla articles then there - which you might not - then you might want to create a second 'form' that has no input fields but gets the data back from the database and displays it.

Using the first route you plug directly into the Joomla content management capabilites so you can control who can edit etc.

Using the second route you have more flexibility but you have to build your own rules for display, access, etc.



Please tell me HOW to do this.
I have a search box on a form. When criteria is entered I want it to display on the page.
With the following code I just get a blank page. I don't know how to write the display this after the keyword is entered.

HTML FORM CODE:
<head><title>Teacher LookUp Page</head> 

<method="POST" action="<? echo PHP_SELF; ?>">
<p> </p>
<table border="0" width="100%" id="table1">
<tr>
<td align="center"> </td>
<td width="119" align="center">
<address align="right">
<span style="font-style: normal">
<input type="text" name="keyword" size="33" class="text"></span></address>
<address align="right">
<span style="font-style: normal">
<font face="Verdana" size="2" color="#FFFFFF">
<input type=submit value="Search By Last Name" style="color: #6A0204; font-family: verdana; font-weight: normal; font-size:10px; background-color: #FFFFFF; float:center" name="search"></font></span></address>
</td>
<td width="30"> </td>
</tr>
</table>


ONSUBMIT CODE:
if (isset($_POST['search'])){
$keyword=$_POST['keyword'];
$sql="SELECT * FROM jos_chronoforms_teacher_registration WHERE `lastname` LIKE '%$keyword%' ORDER BY id DESC";
$result = mysql_query($sql);

$query = mysql_fetch_array($result);

echo $query['id'].' ';

echo $query['lastname'];

}



Any help will be greatly appreciated!
GreyHead 24 Apr, 2009
Hi dianaj59,

I've just replied to something very similar in another thread in the ChronoComments Forum.

Bob
dianaj59 24 Apr, 2009
Okay, yes I see it. Thank you.
This topic is locked and no more replies can be posted.