Latest topics
» [HELP] About Profile Cover Code
by MaHwOs Yesterday at 18:54

» bloquer un membre
by berlingo Fri 17 Nov 2017, 18:19

» IconSkouliki Graphics
by skouliki Fri 17 Nov 2017, 03:54

» [IN PROGRESS] Can this code work on pun version
by skouliki Thu 16 Nov 2017, 03:50

» Auto-suggest @mentions as You Type
by skouliki Wed 15 Nov 2017, 14:56

» [TUTORIAL] [ALL VERSIONS] Warning before posting
by demon99 Wed 15 Nov 2017, 08:12

» About Add Reply & New Topic button (popup form)
by omarpop23 Mon 13 Nov 2017, 20:31

» Hello everyone this is Adam from France
by Adam Mon 13 Nov 2017, 13:32

» Add a login popup for the toolbar
by Ape Sun 12 Nov 2017, 18:41

» Post a message automatically when locking a topic
by ThunderTB Sun 12 Nov 2017, 13:51

» Control pannel issue
by Ange Tuteur Sun 12 Nov 2017, 09:49

» BUG... forum members birthday's
by Ape Sat 11 Nov 2017, 11:44

» Display a Preview of Groups on Hover
by ThunderTB Fri 10 Nov 2017, 21:56

» Search box only visible on hover
by Ange Tuteur Mon 06 Nov 2017, 09:57

» [GAME] Animal Game
by SLGray Sun 05 Nov 2017, 15:04

Recent Tutorials
Who is online?
In total there are 7 users online :: 0 Registered, 0 Hidden and 7 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

About Add Reply & New Topic button (popup form)

View previous topic View next topic Go down

avatar
omarpop23

Title :
Gender : Male
Age : 22
Posts : 139
Points : 894
Reputation : 24
Location : Egypt
Language : Arabic , English
Browser : Browser : Google Chrome Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://www.facebook.com/omarpop23

Postomarpop23 on Mon 13 Nov 2017, 20:31

@Ange Tuteur i'm trying to write a code make reply and new topic form popup when click on ADD REPLY IMG or NEW TOPIC 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"/>');
    }
    });
});

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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