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.

Error in QuickReply JQuery Code

3 posters

Go down

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"/>');
    }
    });
});
omarpop23
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

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?
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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
omarpop23
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51453
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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
omarpop23
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51453
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

http://devs.ahlamontada.com

Back to top Go down

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

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

omarpop23
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

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?
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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
omarpop23
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

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.
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

http://devs.ahlamontada.com

Back to top Go down

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
omarpop23
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

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?
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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
omarpop23
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

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
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

http://devs.ahlamontada.com

Back to top Go down

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

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

omarpop23
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51453
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum