No save or cancel button in front-end editor


Author Message
Geert

Posted: 7/2/2009
Quote message 

Hi,
I have a question.
when I want to make a new artikel (in the front end) the save and cancel button disapier, so I cannot save the artikel.

Can somone help please

THANKS
Geert
 
Garry

Posted: 7/2/2009
Quote message 

Are you talking about your joomla admin
 
adri56

Posted: 7/3/2009
Quote message 

idem in frontend
 
Geert

Posted: 7/3/2009
Quote message 

No in the frontend.
I have a login for a user menu where i can ad a new artikel.
I can make the artikel and everything ,but I can not save it
 
PAOLO

Posted: 7/3/2009
Quote message 

SAME FOR ME
 
Paolo

Posted: 7/3/2009
Quote message 

Quote PAOLO:

SAME FOR ME


I think that it's only with internet explorer
 
Geert

Posted: 7/3/2009
Quote message 

I think it was not in my trial version,
I will test it in firefox.

Strange is that the buttons are there in the beginning, but when you enter a tekst they disapear.
 
Roel

Posted: 7/4/2009
Quote message 

Your template might be too small.
Either make it wider, or change the TinyMCE stylesheet to make the editor pane smaller. Then you don't have this problem anymore.


 
geert

Posted: 7/4/2009
Quote message 

The problem seems only to be in Internet Explorer.
Firefox works fine.

Is there maybe a code what I can use to tackle this problem?
 
Steve

Posted: 7/4/2009
Quote message 

I have the answer....the folder html-->com_content-->article-->form.php was altered from older versions of artisteer. The new one uses the stylized buttons, but they do not fit the form space given.

EASIEST FIX:

copy the old version of form.php (use the joomla default version OR replace everything in that file with the code below:

<?php
defined('_JEXEC') or die('Restricted access'); // no direct access
require_once dirname(__FILE__) . str_replace('/', DIRECTORY_SEPARATOR, '/../../../functions.php');
?>
<?php ob_start(); ?>
<script language="javascript" type="text/javascript">
function setgood()
{
return true;
}

var sectioncategories = [];
<?php
$i = 0;
foreach ($this->lists['sectioncategories'] as $k => $items) {
foreach ($items as $v) {
echo "sectioncategories[" . $i++ . "] = ['$k', '" . addslashes($v->id) . "', '" . addslashes( $v->title ) . "'];\n\t\t";
}
}
?>

function submitbutton(pressbutton)
{
var form = document.adminForm;
if (pressbutton == 'cancel') {
submitform(pressbutton);
return;
}
try {
form.onsubmit();
} catch (e) {
alert(e);
}

// do field validation
var text = <?php echo $this->editor->getContent( 'text' ); ?>
if (form.title.value == '') {
return alert ("<?php echo JText::_( 'Article must have a title', true ); ?>");
} else if (text == '') {
return alert ("<?php echo JText::_( 'Article must have some text', true ); ?>");
} else if (parseInt('<?php echo $this->article->sectionid;?>')) {
// for articles
if (form.catid && getSelectedValue('adminForm','catid') < 1) {
return alert("<?php echo JText::_( 'Please select a category', true ); ?>");
}
}
<?php echo $this->editor->save('text'); ?>
submitform(pressbutton);
}
</script>
<form action="<?php echo $this->action ?>" method="post" name="adminForm" id="adminForm" onsubmit="setgood();">
<fieldset>
<legend><?php echo JText::_('Editor'); ?></legend>
<table class="adminform" width="100%">
<tr>
<td><div style="float: left;">
<label for="title"><?php echo JText::_( 'Title' ); ?>:</label>
<input class="inputbox" type="text" id="title" name="title" size="50" maxlength="100" value="<?php echo $this->escape($this->article->title); ?>" />
<input class="inputbox" type="hidden" id="alias" name="alias" value="<?php echo $this->escape($this->article->alias); ?>" />
</div>
<div style="float: right;">
<button type="button" onclick="submitbutton('save')"><?php echo JText::_('Save') ?></button>
<button type="button" onclick="submitbutton('cancel')"><?php echo JText::_('Cancel') ?></button>
</div></td>
</tr>
</table>
<?php echo $this->editor->display('text', $this->article->text, '100%', '400', '70', '15'); ?>
</fieldset>
<fieldset>
<legend><?php echo JText::_('Publishing'); ?></legend>
<table class="adminform">
<tr>
<td class="key"><label for="sectionid"><?php echo JText::_( 'Section' ); ?>:</label></td>
<td><?php echo $this->lists['sectionid']; ?></td>
</tr>
<tr>
<td class="key"><label for="catid"><?php echo JText::_( 'Category' ); ?>:</label></td>
<td><?php echo $this->lists['catid']; ?></td>
</tr>
<?php if ($this->user->authorize('com_content', 'publish', 'content', 'all')) : ?>
<tr>
<td class="key"><label for="state"><?php echo JText::_( 'Published' ); ?>:</label></td>
<td><?php echo $this->lists['state']; ?></td>
</tr>
<?php endif; ?>
<tr>
<td width="120" class="key"><label for="frontpage"><?php echo JText::_( 'Show on Front Page' ); ?>:</label></td>
<td><?php echo $this->lists['frontpage']; ?></td>
</tr>
<tr>
<td class="key"><label for="created_by_alias"><?php echo JText::_( 'Author Alias' ); ?>:</label></td>
<td><input type="text" id="created_by_alias" name="created_by_alias" size="50" maxlength="100" value="<?php echo $this->article->created_by_alias; ?>" class="inputbox" /></td>
</tr>
<tr>
<td class="key"><label for="publish_up"><?php echo JText::_( 'Start Publishing' ); ?>:</label></td>
<td><?php echo JHTML::_('calendar', $this->article->publish_up, 'publish_up', 'publish_up', '%Y-%m-%d %H:%M:%S', array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19')); ?></td>
</tr>
<tr>
<td class="key"><label for="publish_down"><?php echo JText::_( 'Finish Publishing' ); ?>:</label></td>
<td><?php echo JHTML::_('calendar', $this->article->publish_down, 'publish_down', 'publish_down', '%Y-%m-%d %H:%M:%S', array('class'=>'inputbox', 'size'=>'25', 'maxlength'=>'19')); ?></td>
</tr>
<tr>
<td valign="top" class="key"><label for="access"><?php echo JText::_( 'Access Level' ); ?>:</label></td>
<td><?php echo $this->lists['access']; ?></td>
</tr>
<tr>
<td class="key"><label for="ordering"><?php echo JText::_( 'Ordering' ); ?>:</label></td>
<td><?php echo $this->lists['ordering']; ?></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo JText::_('Metadata'); ?></legend>
<table class="adminform" width="100%">
<tr>
<td valign="top" class="key" width="120"><label for="metadesc"><?php echo JText::_( 'Description' ); ?>:</label></td>
<td><textarea rows="5" cols="50" style="width: 95%; height: 120px" class="inputbox" id="metadesc" name="metadesc"><?php echo str_replace('&','&amp;',$this->article->metadesc); ?></textarea></td>
</tr>
<tr>
<td valign="top" class="key" width="120"><label for="metakey"><?php echo JText::_( 'Keywords' ); ?>:</label></td>
<td><textarea rows="5" cols="50" style="width: 95%; height: 50px" class="inputbox" id="metakey" name="metakey"><?php echo str_replace('&','&amp;',$this->article->metakey); ?></textarea></td>
</tr>
</table>
</fieldset>
<input type="hidden" name="option" value="com_content" />
<input type="hidden" name="id" value="<?php echo $this->article->id; ?>" />
<input type="hidden" name="version" value="<?php echo $this->article->version; ?>" />
<input type="hidden" name="created_by" value="<?php echo $this->article->created_by; ?>" />
<input type="hidden" name="referer" value="<?php echo isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="task" value="" />
</form>
<?php echo JHTML::_('behavior.keepalive'); ?> <?php echo artxPost(artxPageTitle($this), ob_get_clean()); ?>

GOOD LUCK!
 
Geert

Posted: 7/4/2009
Quote message 

Thanks Steve it works great.

The only (litle) thing is that the collor from the buttons is not the same as the other ones, but its ok, Thanks again.

Great forum , great program
Geert
 
Kamal

Posted: 7/25/2009
Quote message 

I am having the same problem. While trying to diagnose it (using built IE8 web developer tools), I found that if I disabled a style (any style) the buttons would show up and would remain there if I enabled it again. I made a video of it. Here it is: http://www.youtube.com/watch?v=aWqy3SXTvj0

Not sure what is going on but the problem is with Artisteer templates in IE. If I switch to a non-Artisteer template, everything works fine.


 
Garry

Posted: 7/26/2009
Quote message 

If you install the Joomla FCK Editor,
http://extensions.joomla.org/extensions/edition/editors/90/details
You can actually choose the background color of the text entry field for creating articles in Joomla.
 
Bionda

Posted: 8/21/2009
Quote message 

Thanks Steve, works great!
 
James

Posted: 8/29/2009
Quote message 

:-)Thanks Steve that solved my problem.
 
Renate

Posted: 9/1/2009
Quote message 

Thanks Steve!

Solved my problem too!

:-D
 
Jesse

Posted: 9/1/2009
Quote message 

I followed the intruction from Steve and it worked...but how can I get back the button's color?
The buttons return but not the color :-(
 
Ferbit

Posted: 9/8/2009
Quote message 

If it's helpful to anyone else, I just edited the following HTML table code that begins in line 54 of html --> com_content --> article --> form.php. It just removes all of the styling around the buttons themselves, but leaves the rest of the styled form intact.

<table class="adminform" width="100%"> 		<tr> 			<td> 				<label for="title"><?php echo JText::_( 'Title' ); ?>:</label> 				<input class="inputbox" type="text" id="title" name="title" size="50" maxlength="100" value="<?php echo $this->escape($this->article->title); ?>" /> 				<input class="inputbox" type="hidden" id="alias" name="alias" value="<?php echo $this->escape($this->article->alias); ?>" /> 			</td> 			<td align="right"> 				<input type="button" onclick="submitbutton('save')" value="<?php echo JText::_('Save') ?>"/> 				<input type="button" onclick="submitbutton('cancel')" value="<?php echo JText::_('Cancel') ?>"/> 			</td> 		</tr> 		</table>