Get immediately to the advanced search?
5 posters
Page 1 of 1
Get immediately to the advanced search?
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
Re: Get immediately to the advanced search?
Hi,
Add the script below to javascript codes management with placement in all the pages.
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;
});
Re: Get immediately to the advanced search?
Thanks Ange,
works perfectly!
Edit: Do you have the code for the sticky navbar too?
works perfectly!

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

Re: Get immediately to the advanced search?
- Code:
$(function() {
var search = $('fa_sticky_nav a.mainmenu[href^="/search"]')[0];
if (search) search.onclick = null;
});


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Get immediately to the advanced search?
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.
Re: Get immediately to the advanced search?
Oh my bad. Disregard that post then. Sorry, misread the topic.
Re: Get immediately to the advanced search?
Hey,
Sorry for the delay, replace the script I gave you with this one :
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;
}
})});
Re: Get immediately to the advanced search?
Hey Ange,
no problem.
Unfortunalety that script does not change anything. (Yep I placed in all the pages)
Best regards
no problem.

Unfortunalety that script does not change anything. (Yep I placed in all the pages)
Best regards
Re: Get immediately to the advanced search?
Are members the only ones allowed to see the search link in the navigation bar? I do not see it.


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Get immediately to the advanced search?
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;
}
});
Re: Get immediately to the advanced search?
Hi Ange,
unfortunalety that doesn't work too.

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?
unfortunalety that doesn't work too.


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?
Re: Get immediately to the advanced search?
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;
}
});
Re: Get immediately to the advanced search?
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.
now it goes immediately to the advanced serach on the normal navbar.
But on the sticky navbar, the search pop up appears again.

Re: Get immediately to the advanced search?
You placed it in the same script as the navbar, correct ? If so, it should have worked.
Use this as a last resort :

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;
}
});
Re: Get immediately to the advanced search?


Remember to mark your topic

General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Team Leader
Review Section Rules | Request A Review | Sticker Points

» A search option to search member's user names in search
» BIG PROBLEM! HELP IMMEDIATELY PLEASE
» affiliate help needed IMMEDIATELY
» Changes To Javascript Almost Immediately Reset...
» GLITCH - Please Patch Immediately
» BIG PROBLEM! HELP IMMEDIATELY PLEASE
» affiliate help needed IMMEDIATELY
» Changes To Javascript Almost Immediately Reset...
» GLITCH - Please Patch Immediately
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum