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 36 users online :: 0 Registered, 0 Hidden and 36 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] Update script
Page 1 of 1 • Share
I have this script to post search topic of discussion.but seeks only to page
example : search page 1,search page 2,search page 3
trying on all pages
example : search page 1--->15
thank you all
example : search page 1,search page 2,search page 3
trying on all pages
example : search page 1--->15
- code:
- Code:
$(document).ready(function () {
$('.topic-actions, .pun-crumbs:first, .posting-options.topic-options').after('<form id="pesquisaTopicos" action="" method="post"> <fieldset> <input style="width: 200px;" class="inputbox search" placeholder="Ricerca..." type="text" class="text-input" id="filtroTopicos" value="" /> <span id="filtroNumeros"></span> </fieldset> </form>');
$('#filtroTopicos').keyup(function () {
var filtrarTopicos = $(this).val(),
contagemTopicos = 0;
$('.post').each(function () {
if ($(this).text().search(new RegExp(filtrarTopicos, 'i')) < 0) {
$(this).fadeOut();
} else {
$(this).show();
contagemTopicos++;
}
});
var numeroPesquisa = contagemTopicos;
$('#filtroNumeros').html('<span id="numeroPesquisa">Risultato della ricerca: ' + numeroPesquisa + ' Argomenti.</span>');
var emptyDiv = $('#filtroTopicos').val();
if (emptyDiv == '') {
$('#filtroNumeros').html('');
}
});
});
thank you all
Hi @jessy,
This is a request for help, correct ? Is the script not working ? If so, I'll need more information :
1. What forum version are you applying this script to ?
2. When did the script stop working ?
3. Are there any errors in your console ? Right click > Inspect element > Console tab, and copy / paste the contents, if there are any errors.
This is a request for help, correct ? Is the script not working ? If so, I'll need more information :
1. What forum version are you applying this script to ?
2. When did the script stop working ?
3. Are there any errors in your console ? Right click > Inspect element > Console tab, and copy / paste the contents, if there are any errors.
InvisionAnge Tuteur wrote:Hi @jessy,This is a request for help, correct ? Is the script not working ? If so, I'll need more information :
1. What forum version are you applying this script to ?
Ange Tuteur wrote:
2. When did the script stop working ?
It makes the search for a page at a time I would like to do the research on all pages
search page 1,search page 2,search page 3 = no
search from page 1---> to page 15=yes
no errorAnge Tuteur wrote:
3. Are there any errors in your console ? Right click > Inspect element > Console tab, and copy / paste the contents, if there are any errors.
It's possible, but the result will be extremely sluggish -- especially when there is well over 50 pages. To search the text in each page you need to make a request to the server each time, which can be very slow when there's many pages. I don't think it would be ideal to implement into the script, because it'll make it inefficient and unusable when there's many pages...
On how to do it ? It would require sending consecutive AJAX requests to each page, but first you need to calculate how many pages are in the topic + the posts per page. Very technical stuff and would be a lot to explain.
- GuestGuest
Solved... right?
Ange Tuteur wrote:On how to do it ? It would require sending consecutive AJAX requests to each page, but first you need to calculate how many pages are in the topic + the posts per page. Very technical stuff and would be a lot to explain.
OK thank you very much
Yes thanksSamantha wrote:Solved... right?
- 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