The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Error in QuickReply JQuery Code

View previous topic View next topic Go down

Error in QuickReply JQuery Code

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

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

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

Hello,
What is your forum version? Are you using another language for your forum except English?
avatar
Van-Helsing
Hyperactive

Male Posts : 2348
Reputation : 96
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: Error in QuickReply JQuery Code

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

yes i'm useing Arabic forums.

my forum version is PHPBB3

http://egyover.ahlamontada.com
avatar
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

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

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40871
Reputation : 2774
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: Error in QuickReply JQuery Code

Post by omarpop23 on 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
avatar
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

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

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40871
Reputation : 2774
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: Error in QuickReply JQuery Code

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

btw this is not quick reply box
avatar
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

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

avatar
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

Post by Van-Helsing on 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?
avatar
Van-Helsing
Hyperactive

Male Posts : 2348
Reputation : 96
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: Error in QuickReply JQuery Code

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

i actived your acc you can log in now
avatar
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

Post by Van-Helsing on 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:



Also this forum's version looks like phpbb2.
avatar
Van-Helsing
Hyperactive

Male Posts : 2348
Reputation : 96
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: Error in QuickReply JQuery Code

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

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

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

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

sorry please try agian now you will know what i want now if u trying now
avatar
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

Post by Van-Helsing on 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?
avatar
Van-Helsing
Hyperactive

Male Posts : 2348
Reputation : 96
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: Error in QuickReply JQuery Code

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

no i wote that code but i had that problem
avatar
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

Post by Van-Helsing on 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.

avatar
Van-Helsing
Hyperactive

Male Posts : 2348
Reputation : 96
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: Error in QuickReply JQuery Code

Post by omarpop23 on 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
avatar
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

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

avatar
omarpop23
Forumember

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

http://devs.ahlamontada.com

Back to top Go down

Re: Error in QuickReply JQuery Code

Post by SLGray on 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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 40871
Reputation : 2774
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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