test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Mo0nlight Moderator
    #1025685

    Hi,

    Edit the file : /components/com_jacomment/controllers/comments.php

    Look for

    function addNewComment()
        {
            global $jacconfig, $session_auth;

    Add this under.

    sleep(10);

    Change 10 to number of seconds you want.

    juant600t Friend
    #1025770

    Thank you for your answer.

    But your solution, Is not a good solution.

    The function ‘sleep’ stop the action during 10 secondes and we have the loading message with 10 seconds in add. After that, the message of confirmation is too short.

    I need to inscrease only the time to display the blue message of confirmation and not the yellow message of loading.

    Have you a solution ?

    Thannk you in advance for your answer !

    Mo0nlight Moderator
    #1025881

    You can try this.

    Edit the file : components/com_jacomment/asset/js/ja.comment.js

    Change

    $(divId).html(value);

    To

    $(value).appendTo($(divId)).hide().fadeIn(1000);

    Change 1000 to number you want.

    juant600t Friend
    #1026350

    Sorry,

    But If I change this line with your new proposition, the blue message system desappears.

    Any other solution ?

    Thank in advance.

    Mo0nlight Moderator
    #1026380

    You can try this.

    Edit the file : components/com_jacomment/asset/js/ja.comment.js

    Look for

        setTimeout('jacclosemessage('+ IDE +')', 2500); 

    Change 2500 to any number you want.

    For center the message. Open the file :
    components/com_jacomment/themes/default/css/style.css

    Look for

    # jac-msg-succesfull 

    at line 1342

    Change

    left: 50%; 

    To

    left: 35%;
    juant600t Friend
    #1026553

    Thank you,

    Now its ok.

    Have a good WE.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  juant600t 7 years, 8 months ago.

The topic ‘Increase the time and place in center the system message’ is closed to new replies.