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 9 users online :: 0 Registered, 0 Hidden and 9 Guests :: 1 Bot

None

[ View the whole list ]


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

[SOLVED] Update script

View previous topic View next topic Go down

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

Postjessy on Sun 31 Jul 2016, 13:33

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

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 Heart eyes
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10444
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur on Sun 31 Jul 2016, 14:59

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.

--------

Ange Tuteur
Tips and TricksContact Me
Update - [SOLVED] Update script Latin11
jessy
jessy

Gender : Female
Posts : 102
Points : 1586
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
http://ilgiornaledibordo.forumattivo.com/

Postjessy on Sun 31 Jul 2016, 15:38

@Ange 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 ?
Invision

@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

@Ange 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.
no error
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10444
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur on Sun 31 Jul 2016, 15:48

Thanks, I gave the script a try. Wink

So what you want to do, is make the script search the entire topic, all pages included, yes ?

--------

Ange Tuteur
Tips and TricksContact Me
Update - [SOLVED] Update script Latin11
jessy
jessy

Gender : Female
Posts : 102
Points : 1586
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
http://ilgiornaledibordo.forumattivo.com/

Postjessy on Sun 31 Jul 2016, 15:59

yes, fantastic
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10444
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur on Sun 31 Jul 2016, 21:27

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... Think

--------

Ange Tuteur
Tips and TricksContact Me
Update - [SOLVED] Update script Latin11
jessy
jessy

Gender : Female
Posts : 102
Points : 1586
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
http://ilgiornaledibordo.forumattivo.com/

Postjessy on Mon 01 Aug 2016, 13:41

the pages are abaut 10/15 can you do it ? Update - [SOLVED] Update script 1f618
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10444
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur on Tue 02 Aug 2016, 13:39

Unfortunately not, even that many pages would be sluggish.. Think

--------

Ange Tuteur
Tips and TricksContact Me
Update - [SOLVED] Update script Latin11
jessy
jessy

Gender : Female
Posts : 102
Points : 1586
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
http://ilgiornaledibordo.forumattivo.com/

Postjessy on Wed 03 Aug 2016, 07:58

can you give me an advice ?
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Age : 24
Posts : 4740
Points : 10444
Reputation : 2373
Location : Macungie, PA
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur on Wed 03 Aug 2016, 13:25

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. study

--------

Ange Tuteur
Tips and TricksContact Me
Update - [SOLVED] Update script Latin11
Anonymous
Guest
Guest

PostGuest on Wed 03 Aug 2016, 13:37

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

Postjessy on Wed 03 Aug 2016, 15:32

@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. study

Confused OK thank you very much
@Samantha wrote:Solved... right?
Yes thanks Update - [SOLVED] Update script 1f339
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