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
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
Top Achievers
Who is online?
In total there are 39 users online :: 0 Registered, 0 Hidden and 39 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
[SOLVED] Help tutors ange Tuteur
Page 1 of 1 • Share
I found this script does not work (invision) ... help
source
http://help.forumotion.com/t143260-a-popup-module-for-your-forum
- 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
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;
}
};
})();
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.
thank you @SLGray @Ange Tuteur all right Thanks!
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum