Greetings from Norway!
I just wanted to give my users a simpler form to create Joomla articles, but I just can't get it to work, and at this point I'm close to giving up. š
(Ok, maybe not that dramatic yet...)
Using the submitcontent.cfbak without any modifications, other than linking it to my _content table and change the ID's for the categoy and section, everything seems to work. No error messages anywhere, and I can find my article in the db in the _content table using phmypadmin. But it refuses to show up anywhere else! Not even backend in the article manager.
Could this be an article ID problem? I did notice that my CF article's ID seemed to be the same as an older Joomla made article. If my CF article is 183, and I use this syntax to force it to display: index.php?option=com_content&view=article&id=183 ...an older article shows, which has the same ID, but exist in another category/section. (Maybe this is a stupid question, but why does phpMyadmin tell me that I have 107 rows/articles in _content, while the backend article manager displays 153? Is there more than one content table for articles? The mentioned old article with an ID of 183 doesn't exist in _content, but shows as a normal article on my website nevertheless.)
Here's my "On Submit code - after sending email"-code:
I'm using Joomla 1.5 and CF v3. I've bought CF, the CF Cookbook and several other articles, I've made a few other forms that should be more complicated. They all work as intended, but I'm frustrated that I just can't get what I thought would be a simple "create Joomla article"-form to work.
I'm probably missing the obvious here, and would be grateful for any hints pointing me in the right direction. :-)
I just wanted to give my users a simpler form to create Joomla articles, but I just can't get it to work, and at this point I'm close to giving up. š
(Ok, maybe not that dramatic yet...)
Using the submitcontent.cfbak without any modifications, other than linking it to my _content table and change the ID's for the categoy and section, everything seems to work. No error messages anywhere, and I can find my article in the db in the _content table using phmypadmin. But it refuses to show up anywhere else! Not even backend in the article manager.
Could this be an article ID problem? I did notice that my CF article's ID seemed to be the same as an older Joomla made article. If my CF article is 183, and I use this syntax to force it to display: index.php?option=com_content&view=article&id=183 ...an older article shows, which has the same ID, but exist in another category/section. (Maybe this is a stupid question, but why does phpMyadmin tell me that I have 107 rows/articles in _content, while the backend article manager displays 153? Is there more than one content table for articles? The mentioned old article with an ID of 183 doesn't exist in _content, but shows as a normal article on my website nevertheless.)
Here's my "On Submit code - after sending email"-code:
<p><span style="color: #0000ff;"><strong>Thank you for submitting your story, we will review it shortly and if approved it will be published!</strong></span></p>
<p><strong>Cheers</strong></p>
<p><span style="text-decoration: underline;"><strong>ChronoEngine.com team!</strong></span></p>
<?php
$_POST['introtext'] = 'Test pƄ introtekst...';
$_POST['catid'] = '83';
$_POST['id'] = '';
$_POST['sectionid'] = '5';
$_POST['state'] = '0';
$_POST['created'] = date("Y-m-d H:i:s");
$_POST['attribs'] = 'show_title=
link_titles=
show_intro=
show_section=
link_section=
show_category=
link_category=
show_vote=
show_author=
show_create_date=
show_modify_date=
show_pdf_icon=
show_print_icon=
show_email_icon=
language=
keyref=
readmore= ';
?>
I'm using Joomla 1.5 and CF v3. I've bought CF, the CF Cookbook and several other articles, I've made a few other forms that should be more complicated. They all work as intended, but I'm frustrated that I just can't get what I thought would be a simple "create Joomla article"-form to work.
I'm probably missing the obvious here, and would be grateful for any hints pointing me in the right direction. :-)