The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Get immediately to the advanced search?

View previous topic View next topic Go down

Solved Get immediately to the advanced search?

Post by Bigtuber on March 29th 2016, 2:17 pm

Technical Details


Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox
Who the problem concerns : All members
Forum link : http://kingsroadforum.forumieren.com/

Description of problem

Hello,

first I want to say that I couldn't find anything about this in the search.

It is possible to get immediately to the advanced search, if you click "Search" on the navbar?
So it shouldn't come the little pop-up search.


Thanks in advance and best regards


Last edited by Bigtuber57 on April 3rd 2016, 3:18 am; edited 3 times in total

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Ange Tuteur on March 29th 2016, 3:26 pm

Hi,

Add the script below to javascript codes management with placement in all the pages.
Code:
$(function() {
  var search = $('a.mainmenu[href^="/search"]')[0];
  if (search) search.onclick = null;
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Bigtuber on March 29th 2016, 7:52 pm

Thanks Ange,

works perfectly! Smile


Edit: Do you have the code for the sticky navbar too? Very Happy

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by SLGray on March 29th 2016, 8:16 pm

Code:
  $(function() {
  var search = $('fa_sticky_nav a.mainmenu[href^="/search"]')[0];
  if (search) search.onclick = null;
  });


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Bigtuber on March 30th 2016, 2:52 pm

Hey @SLGray

unfortunalety that doesn't work. ( I also thought that will work, but nothing :o )

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Draxion on March 30th 2016, 3:22 pm

Hello there,

Just follow this link to the Navbar Sticky.

Regards.

Draxion
Helper
Helper

Male Posts : 554
Reputation : 79
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Bigtuber on March 30th 2016, 5:25 pm

@Draxion wrote:Hello there,

Just follow this link to the Navbar Sticky.

Regards.

Huh?
I already have the sticky navbar, but I try to get immediately to the advanced search, if I click on "Search" on the sticky navbar.

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Draxion on March 30th 2016, 6:05 pm

Oh my bad. Disregard that post then. Sorry, misread the topic.

Draxion
Helper
Helper

Male Posts : 554
Reputation : 79
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Bigtuber on April 1st 2016, 3:28 pm

Bump Smile

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Ange Tuteur on April 1st 2016, 5:01 pm

Hey,

Sorry for the delay, replace the script I gave you with this one :
Code:
$(function(){$(function(){
  for (var search = $('a.mainmenu[href^="/search"]'), i = 0, j = search.length; i < j; i++) {
    search.onclick = null;
  }
})});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Bigtuber on April 1st 2016, 10:59 pm

Hey Ange,

no problem. Smile

Unfortunalety that script does not change anything. (Yep I placed in all the pages)



Best regards

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by SLGray on April 1st 2016, 11:01 pm

Are members the only ones allowed to see the search link in the navigation bar? I do not see it.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Bigtuber on April 2nd 2016, 5:00 am

Hey @SLGray

Yea they were the only ones, but I changed it to guests till this problem is solved. Smile

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Ange Tuteur on April 2nd 2016, 6:59 pm

That's odd. Delete the script I gave you, and then proceed to edit your sticky navigation script. Paste this script at the top of the sticky nav :
Code:
$(function(){
  for (var search = $('a.mainmenu[href^="/search"]'), i = 0, j = search.length; i < j; i++) {
    search.onclick = null;
  }
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Bigtuber on April 2nd 2016, 11:00 pm

Hi Ange,

unfortunalety that doesn't work too. Sad



I paste latest script you gave me at the top of the sticky navbar script but nothing. (And yes, the other scripts are deleted)


Strange?

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Ange Tuteur on April 2nd 2016, 11:22 pm

Sorry, I made a small mistake in the loop. Replace the script with this :
Code:
$(function(){
  for (var search = $('a.mainmenu[href^="/search"]'), i = 0, j = search.length; i < j; i++) {
    search[i].onclick = null;
  }
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Bigtuber on April 3rd 2016, 12:16 am

Hi Ange,

now it goes immediately to the advanced serach on the normal navbar.
But on the sticky navbar, the search pop up appears again. Crying or Very sad

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Ange Tuteur on April 3rd 2016, 12:20 am

You placed it in the same script as the navbar, correct ? If so, it should have worked. Think

Use this as a last resort :
Code:
$(window).load(function(){
  for (var search = $('a.mainmenu[href^="/search"]'), i = 0, j = search.length; i < j; i++) {
    search[i].onclick = null;
  }
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by Bigtuber on April 3rd 2016, 3:17 am

Heya Ange,

with your last script it works Smile

Solved. banana

Bigtuber
Forumember

Male Posts : 134
Reputation : 4
Language : German, English
Location : Germany

http://kingsroadforum.forumieren.com/

Back to top Go down

Solved Re: Get immediately to the advanced search?

Post by brandon_g on April 3rd 2016, 4:58 pm

Thanks for your awesome help @Ange Tuteur . Very Happy

Topic solved and archived ~ brandon_g


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5345
Reputation : 488
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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