The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Error in QuickReply JQuery Code

    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Error in QuickReply JQuery Code

    Post by omarpop23 November 9th 2017, 1:48 am

    i'm trying to write a code make QuickReply popup when click on ADD REPLY IMG

    Problem:
    smiley-box and sceditor doesn't appear
    preview img:

    code:
    Code:
    $(function() {
     Â var postURL = $(".i_post").parent().attr("href"),
     Â     replyURL = $(".i_reply").parent().attr("href");
     Â 
     Â     $('head').prepend('<style>div#quickreplyform_overlay{background-color:#333;height:100%;right:0;opacity:.7;position:fixed;top:0;width:100%;z-index:9999999}#quickreplyform{background: #FFF;position:fixed;border-radius: 5px;box-shadow: 2px 2px 10px #333;z-index:99999999;width:500px;right:50%;margin-right:-250px;top:20%;height:410px;overflow:auto}</style>');
     Â 

     Â   $('#content-container #main-content').prepend('<div id="quickreplyform" style="display:none;"><img src="https://i62.servimg.com/u/f62/18/32/73/91/loadin10.gif"/></div><div id="quickreplyform_overlay" style="display:none;"></div>');

     Â   $('.i_reply').click(function() {
     Â       $('#quickreplyform, #quickreplyform_overlay').fadeIn();
     Â       $('#quickreplyform').load(''+replyURL+' form[action="/post"]');
     Â       return false;
     Â   });
     Â   $('.i_post').click(function() {
     Â       $('#quickreplyform, #quickreplyform_overlay').fadeIn();
     Â       $('#quickreplyform').load(''+postURL+' form[action="/post"]');
     Â       return false;
     Â   });
     Â   $(document).click(function(e) {
     Â       if ($(e.target).closest('#quickreplyform').length === 0) {
     Â           $('#quickreplyform, #quickreplyform_overlay').fadeOut();
     Â         $('#quickreplyform').html('<img src="https://i62.servimg.com/u/f62/18/32/73/91/loadin10.gif"/>');
     Â       }
     Â   });
     Â   $(document).keyup(function(e) {
     Â   if (e.keyCode == 27) {
     Â       $('#quickreplyform, #quickreplyform_overlay').fadeOut();
     Â     $('#quickreplyform').html('<img src="https://i62.servimg.com/u/f62/18/32/73/91/loadin10.gif"/>');
     Â   }
     Â   });
    });
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by Van-Helsing November 9th 2017, 7:51 am

    Hello,
    What is your forum version? Are you using another language for your forum except English?
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 10th 2017, 3:53 am

    yes i'm useing Arabic forums.

    my forum version is PHPBB3

    http://egyover.ahlamontada.com
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by SLGray November 10th 2017, 4:40 am

    So the issue is that the editor's toolbar does not appear?



    Error in QuickReply JQuery Code  Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 10th 2017, 1:36 pm

    SLGray wrote:So the issue is that the editor's toolbar does not appear?


    yeah, aslo smiley-box


    @Ange Tuteur
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by SLGray November 10th 2017, 7:58 pm

    In the quick reply editor, there is no smiley box.  It is a button in the editor toolbar.



    Error in QuickReply JQuery Code  Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 10th 2017, 9:28 pm

    btw this is not quick reply box
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 13th 2017, 1:22 am

    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by Van-Helsing November 17th 2017, 12:24 pm

    Hi,
    I am trying to register on your forum but I can't activate my account to check it. It is displaying a message in arabic. I was translated in english with google translate and it says:

    You have entered incorrect data for the username or password

    Click here to try again

    Click here to return home

    I have entered correct my details but because the language is arabic while I am typing my details it reversing username and pass from left-to-right into right to left. Have you a test account to p.m to to check the codes?
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 17th 2017, 3:57 pm

    i actived your acc you can log in now
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by Van-Helsing November 17th 2017, 4:00 pm

    Thank you, I have been connected.

    Have you disabled quick reply feature?

    On normal reply it is available on the left:

    Error in QuickReply JQuery Code  YW2S3f6KS-eO0lapaIK-fg

    Also this forum's version looks like phpbb2.
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 17th 2017, 4:07 pm

    yeah i disabled quick reply box i have permission you admin you can access cp now
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 17th 2017, 4:16 pm

    sorry please try agian now you will know what i want now if u trying now
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by Van-Helsing November 17th 2017, 4:40 pm

    Thanks,
    Tried some different ways to display the smiley box in the quick reply form but I was failed. Is there a tutorial about this?
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 17th 2017, 4:49 pm

    no i wote that code but i had that problem
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by Van-Helsing November 17th 2017, 5:01 pm

    As I was checked the code is loading a quickreply form but it is loading correctly and it is not loading the sceditor's toolbar and smiley-box. Have you try to load the element of normal reply instead quick reply element in JS?

    Update:
    I tested now and disabled temporary the js and then when I am pressing the button reply everything is showing normal and smiley-box too. So the problem is located only in javascript.

    Error in QuickReply JQuery Code  MzbLQ4rhTE_JCiA_aE7FGQ
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 17th 2017, 6:16 pm

    yeah i know
    i want when i click on reply button sceditor popup don't go to other page

    so i wrote that JS code but i have that problem
    omarpop23
    omarpop23
    Forumember


    Male Posts : 182
    Reputation : 3
    Language : Arabic
    Location : Egypt

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by omarpop23 November 18th 2017, 12:10 am

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Error in QuickReply JQuery Code  Empty Re: Error in QuickReply JQuery Code

    Post by SLGray November 18th 2017, 2:15 am

    Please don't double post. Your posts need to be separated by 24 hours before bumping. Please use the edit button, instead!
    SInce this is your fourth reminder about double posting, you have received a warning.

    Please read our forum rules: ESF General Rules



    Error in QuickReply JQuery Code  Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is November 11th 2024, 11:01 pm