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 Thu 9 Nov - 1:48

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 Thu 9 Nov - 7:51

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 Fri 10 Nov - 3:53

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 Fri 10 Nov - 4:40

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 : 51576
Reputation : 3525
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 Fri 10 Nov - 13:36

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 Fri 10 Nov - 19:58

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 : 51576
Reputation : 3525
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 Fri 10 Nov - 21:28

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 Mon 13 Nov - 1:22

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 Fri 17 Nov - 12:24

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 Fri 17 Nov - 15:57

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 Fri 17 Nov - 16:00

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 Fri 17 Nov - 16:07

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 Fri 17 Nov - 16:16

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 Fri 17 Nov - 16:40

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 Fri 17 Nov - 16:49

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 Fri 17 Nov - 17:01

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 Fri 17 Nov - 18:16

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 Sat 18 Nov - 0:10

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 Sat 18 Nov - 2:15

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 : 51576
Reputation : 3525
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