Forums

SubmitContent Questions

rob 11 Apr, 2009
Hi

Im slowly starting to get my head around Chronoforms and its a great bit of kit.

My question is with the submitcontent.cfbak, ive followed the instructions on here to change from the default editor to a plain text box, but i want the content submitted to be in the form of a URL, when testing at the moment even if i type in http://.... it is submitted as just plain text and i have to manually change it to a link, is there any way to automate this process?

I've got a few more questions but im trying to work those out myslef, but any help on this would be great.
rob 11 Apr, 2009
O.K few more questions now as I'm starting to struggle.

It doesn't seem to be recognizing the author of any article I'm submitting. My users need to be logged in so i just want it to grab the user id info and post it in the relevant field in the Database, I'm guessing it needs to be in the following code but i just can't figure out exactly what piece of code i need.

<?php
$_POST['catid'] = '1';
$_POST['id'] = '';
$_POST['created_by_alias'] = ' ';  <-------------------------
$_POST['sectionid'] = '1';
$_POST['state'] = '1';
$_POST['created'] = date("Y-m-d H:i:s");
?>


Also i have a drop down box on my form listing categories, but it is just posting to a single category regardless of what is selected, i know this relates to the above code - [catid] but what do i need to change the "1" to in order for it to recognize the drop down menu.


Again many thanks for any help
GreyHead 12 Apr, 2009
Hi Rob,

I'm not sure what you are doing here, but the value of catid needs to come from the drop-down, at present it's being forced to '1' (as is sectionid).

You can access the User Object to get the user name or id - search the forums here for many examples [forumsb]getUser[/forumsb]

Bob
Max_admin 13 Apr, 2009
and when you add the dropdown which will have the name "catid", you need to move the static variable in the onsubmit code box!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.