WOW?! O_O LOL
Get the latest news and updates on SimpleDesk!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: cristianlf on January 18, 2011, 08:50:31 PMDisplaying the remaining characters can be done with Javascript. Just Google for a characters countdown.Quote from: Gruffen on January 18, 2011, 05:44:58 PM
Well, the validation is going to be needed in shd_save_ticket (which is when the error handling is done) - look for the array building of $context['shd_errors']. Add to that, then it'll trigger being redisplayed to the user. Make sure to repopulate $context['ticket_form'] though so it's put back into the template.
Thanks for the answer, I did before you answer but I apreciate your help, i do something like this:
@SimpleDesk-Post.php
@shd_save_ticket
if (!isset($_POST['myvariable']) || $smcFunc['htmltrim']($smcFunc['htmlspecialchars']($_POST['myvariable'])) === ''
||$_POST['producto']=="..." ) // this is because my variables ...
{
$context['shd_errors'][] = 'no_myvariable'; // this is the name of the error
$_POST['myvariable'] = '';
}
then
@Error.english.php
$txt['no_myvariable'] = 'My Error Message ...';//'';
and then everithing works like a charm![]()
Wel Im traying to write all I done because maybe later I will need it again or maybe help to someone else.
by the way Im trying to add some function to the text area, I need to limit to a # and nee to display how characters are remaining, Im stuck with the display the remaining chars ... if someone could help pleaase !!!
Regards,
<?php echo '<script type="text/javascript">alert("' . $_REQUEST['myvariables'] . '");<script>'; ?>
<?php echo '<script type="text/javascript">alert("' . print_r($_REQUEST) . '");<script>'; ?>
Quote from: Gruffen on January 16, 2011, 06:04:39 AMWell actually, these functions are in the files listed above by Cookie Monster.
There's also 6 separate functions you'll have to modify, which is basically every place that $context['ticket_form'] is created.
Quote from: Arantor on February 26, 2010, 09:27:47 AMLess bandwidth = for the win.
that assumes you just want the % figure, not any of the images, right?
Quote from: hadesflames on February 23, 2010, 02:27:59 PMThat would be a good idea, IMO.Quote from: Arantor on February 22, 2010, 09:16:34 PM
No, the confusion is simply over how the front page is arranged. Tickets can only be assigned to one person at a time.
Well, we can throw the language files at you but we'd rather have a translation tool in place first. Trouble is, Nas and I have been busy working on SD itself and not had time to work on the language editor.
Might have to just issue the language files somewhere in the forum for you to get cracking... not sure yet. I'm still adding language strings on an almost daily basis right now!
Perhaps you should expand the team...one or two more people wouldn't hurt, and you'd be able to get them to do things like translation editor or anything else that needs to be done while you and Nas work on the core project. You could even make a "customizer" group for such a task.
Quote from: Arantor on February 22, 2010, 09:16:34 PMOkay, well, it's up to you.
No, the confusion is simply over how the front page is arranged. Tickets can only be assigned to one person at a time.
Well, we can throw the language files at you but we'd rather have a translation tool in place first. Trouble is, Nas and I have been busy working on SD itself and not had time to work on the language editor.
Might have to just issue the language files somewhere in the forum for you to get cracking... not sure yet. I'm still adding language strings on an almost daily basis right now!
Page created in 0.023 seconds with 13 queries.