FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

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

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

[SOLVED] Help tutors ange Tuteur

View previous topic View next topic Go down

jessy
jessy

Gender : Female
Posts : 102
Points : 3132
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
http://ilgiornaledibordo.forumattivo.com/

Postjessy Mon 23 May 2016, 15:00

I found this script does not work (invision) ... help

Code:
$(function() {
  if (!window.FA.Popup) return;
 
  $('form[action^="/search"]').submit(function(e) {
    var keywords = this.search_keywords;
 
    FA.Popup.open('/search?' + $(this).serialize(), 'Searching' + (keywords.value ? ' : ' + keywords.value : ''));
 
    keywords.blur();
    e.preventDefault();
  });
});

source
http://help.forumotion.com/t143260-a-popup-module-for-your-forum
SLGray
SLGray
Valued Member
Gender : Male
Age : 51
Posts : 2465
Points : 7128
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray Mon 23 May 2016, 16:22

You have to install this first:
Code:
        (function() {
          var version = 0;
          /* COMPATIBLE FORUM VERSIONS
          ** 0 : PHPBB2
          ** 1 : PHPBB3
          ** 2 : PUNBB
          ** 3 : INVISION
          */
        
          if (!window.FA) window.FA = {};
          if (FA.Popup) {
            if (window.console) console.warn('FA.Popup has already been initialized.');
            return;
          }
        
          FA.Popup = {
        
            lang : {
              button_close : 'X',
              default_title : 'Popup',
              loading : 'Loading...',
        
              error_getPage : 'An error occurred while getting the page. Please try again later.',
              error_connection : 'A connection error occurred. Please check your internet connection and try again later.'
            },
          
            active : false,
          
            forum : {
              version : version,
              content : version ? '#main-content' : '#content-container > table > tbody > tr > td[width="100%"]',
              pages : ['.gensmall:has(.sprite-arrow_subsilver_left, .sprite-arrow_subsilver_right) a[href^="/"], .nav:has(.sprite-arrow_subsilver_left, .sprite-arrow_subsilver_right) a[href^="/"]', '.pagination:not(strong) span a', '.paging a[href^="/"]', '.pagination a[href^="/"]'][version]
            },
          
            /* open a new popup window */
            open : function(href, title, callback) {
              if (FA.Popup.active) FA.Popup.close(); // close opened windows
            
              var box = document.createElement('DIV'),
                  overlay = document.createElement('DIV'),
                  content = document.createElement('DIV'),
                  close = document.createElement('INPUT');
        
              close.type = 'button';
              close.value = FA.Popup.lang.button_close;
              close.className = 'fa_popup_button fa_popup_close';
              close.onclick = FA.Popup.close;
        
              content.id = 'fa_popup_content';
              content.innerHTML = '<div class="fa_popup_loading">' + FA.Popup.lang.loading + '</div>';
            
              overlay.id = 'fa_popup_overlay';
              overlay.style.zIndex = '99998';
              overlay.onclick = FA.Popup.close;
        
              if (FA.Popup.forum.version == 2) box.className += ' pun';
              box.id = 'fa_popup';
              box.style.zIndex = '99999';
              box.innerHTML = '<div class="fa_popup_title">' + (title ? title : FA.Popup.lang.default_title) + '</div>';
              box.appendChild(close);
              box.appendChild(content);
        
              if (href) {
                $.get(href, function(data) {
                  content.innerHTML = '';
                  if (callback) callback(data, content);
                  else {
                    var main = $(FA.Popup.forum.content, data)[0];
                    if (main) {
                      content.appendChild(main);
        
                      var page = $(FA.Popup.forum.pages, content);
                      if (page[0]) page.click(FA.Popup.getPage);
                    }
                  }
                }).fail(function() {
                  content.innerHTML = '<div class="fa_popup_error">' + FA.Popup.lang.error_connection + '</div>';
                });
              } else if (callback) {
                content.innerHTML = '';
                callback(content);
              }
        
              document.body.style.overflow = 'hidden';
              document.body.appendChild(overlay);
              document.body.appendChild(box);
            
              FA.Popup.active = true;
            },
          
            /* close an opened popup window */
            close : function () {
              var box = document.getElementById('fa_popup'),
                  overlay = document.getElementById('fa_popup_overlay');
            
              box && document.body.removeChild(box);
              overlay && document.body.removeChild(overlay);
              document.body.style.overflow = '';
            
              FA.Popup.active = false;
            },
        
          
            /* get the page when a pagination link is clicked */
            getPage : function() {
              var content = document.getElementById('fa_popup_content');
        
              $.get(this.href, function(data) {
                var main = $(FA.Popup.forum.content, data)[0], page;
        
                if (main) {
                  content.scrollTop = 0;
                  content.innerHTML = '';
                  content.appendChild(main);
                
                  page = $(FA.Popup.forum.pages, content);
                  if (page[0]) page.click(FA.Popup.getPage);
                } else {
                  content.innerHTML = '<div class="fa_popup_error">' + FA.Popup.lang.error_getPage + '</div>';
                }
              }).fail(function() {
                content.innerHTML = '<div class="fa_popup_error">' + FA.Popup.lang.error_connection + '</div>' ;
              });
              return false;
            }
          
          };
        })();
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12035
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Tue 24 May 2016, 11:08

Yes, make sure to install the popup API first BEFORE installing any plugins. If you already installed the API and it's not working, let me know your forum URL. Wink
jessy
jessy

Gender : Female
Posts : 102
Points : 3132
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
http://ilgiornaledibordo.forumattivo.com/

Postjessy Tue 24 May 2016, 12:00

thank you @SLGray [SOLVED] Help tutors ange Tuteur 1f339 @Ange Tuteur all right Thumb left Thanks!
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12035
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 25 May 2016, 09:36

Anytime, if anymore problems feel free to let us know. Doff
Sponsored content

PostSponsored content

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