ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Is there a way to go from form to Article? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Is there a way to go from form to Article?
#8334
fbc (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Is there a way to go from form to Article? 1 Month, 3 Weeks ago Karma: 0  
Before I waste any time and install the component, I was wondering if there was anyway to go from form to article? Using a template?

Like I wanted people to submit poetry to a section of my joomla 1.5 site.

Once they hit the submit button I would like for the poem to appear as an article in a specific format like:

Poem name= article title & altertnate title

Article Body = Poem + sumitted by <name> + etc.etc.etc

Can it be done with this?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8335
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:Is there a way to go from form to Article? 1 Month, 3 Weeks ago Karma: 59  
Hi fbc,

It's possible but not 'built-in'. You;d need to find or write the code to save the results into the articles table.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8336
fbc (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Is there a way to go from form to Article? 1 Month, 3 Weeks ago Karma: 0  
Awesome!! thanks.. I will look for the code..

any hints of where to start looking? article name?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8370
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:Is there a way to go from form to Article? 1 Month, 3 Weeks ago Karma: 59  
Hi fbc,

There's been a recent thread about posting from a form into the FireBoard forums. The code there would be a good starting place, then you'll need to dig into the Joomla code to find out which tables need to be updated to post a new article.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8376
fbc (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Is there a way to go from form to Article? 1 Month, 3 Weeks ago Karma: 0  
great! I'll check it out.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8501
fbc (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Re:Is there a way to go from form to Article? 1 Month, 2 Weeks ago Karma: 0  
This a piece of code another program uses to create content in joomla. What would I need to alter to make it write the form data to jcontent?

Code:

$db =& JFactory::getDBO(); //extraemos la noticia $query = "SELECT * FROM #__periodico_noticia WHERE IDNoticia = '$nid'"; $db->setQuery( $query ); $noticia = $db->loadObject(); //construimos la consulta para insertarla como contenido en Joomla $query = "INSERT INTO #__content(title,alias,title_alias,introtext,sectionid,catid,state,created,publish_up) VALUES (" . "'$noticia->Titulo'," . "'$noticia->Titulo'," . "'$noticia->Link'," . "'$noticia->Descripcion'," . "'$sid'," . "'$cid'," . "'$noticia->published'," . "'$noticia->Fecha_de_publicacion'," . "'$noticia->Fecha_de_publicacion'" . ")"; $db->setQuery( $query ); //ejecutamos la consulta $db->query(); //si todo va bien devolvemos cero return 0;
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials