"Please wait" message

Hallo,

this should be simple, but I could not find an answer in the forum.

I like to make it clearer for users when they have to wait that an action is complete

For example, I have the "add Profile photo" on the join form, and when an user upload a photo that is a bit "big" (like 1MB), I like him to see that he have to wait until the upload process is completed - Otherwise they think it is not working an reload the page.

 

The same in contact.php, it take so much time for the "Message send" notification, that users click fews time on " Send" and I get the message 3 or 4 times

 

Anybody having a solution ? 

 

Thank you

Quote · 4 Nov 2013

Hello,

For contact.php you can use a javascript code that will show your waiting message when submit button is clicked. Find the following code in Dolphin root/contact.php file near line 145:

$sForm = $sActionText . $oForm->getCode(); 

Add the following code below:

$sFog = '<div style="position:absolute; z-index:8000; top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.7);"></div>';

$sMsgdiv = "<div style=\"position:absolute; top:50%; left:50%; margin-left:-70px; padding:20px; background:#FFFFD7; z-index:9000;\">"._t('_Please_wait')."</div>";

$sForm .= '

<script type="text/javascript" language="javascript">

$(\'input[type="submit"]\').click(function(){

$(this).parents(\'.disignBoxFirst\').append(\''.$sFog.$sMsgdiv.'\');

});

</script>';

 Add a "_Please_wait" language key without quotes in admin panel and you are done. 

Free and premium Dolphin templates. Custom design services.
Quote · 5 Nov 2013

 

Hello,

For contact.php you can use a javascript code that will show your waiting message when submit button is clicked. Find the following code in Dolphin root/contact.php file near line 145:

$sForm = $sActionText . $oForm->getCode(); 

Add the following code below:

$sFog = '<div style="position:absolute; z-index:8000; top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.7);"></div>';

$sMsgdiv = "<div style=\"position:absolute; top:50%; left:50%; margin-left:-70px; padding:20px; background:#FFFFD7; z-index:9000;\">"._t('_Please_wait')."</div>";

$sForm .= '

<script type="text/javascript" language="javascript">

$(\'input[type="submit"]\').click(function(){

$(this).parents(\'.disignBoxFirst\').append(\''.$sFog.$sMsgdiv.'\');

});

</script>';

 Add a "_Please_wait" language key without quotes in admin panel and you are done. 

 

This is perfect !!! Thank you very much :-)

 

It is not possible to add this code in join.php ?

Quote · 5 Nov 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.