Forum » Hidden / Per page discussions » WORKING SEARCH for open and closed Wikidot sites
Started by: Wikidot
Date: 13 Aug 2024 03:49
Number of posts: 11
rss icon RSS: New posts
This is the discussion related to the wiki page WORKING SEARCH for open and closed Wikidot sites.
Original Post
Eye14 Eye14 13 Aug 2024 03:53

I also put this information here: http://community.wikidot.com/forum/t-16875483/what-time-allow-the-search#post-6599164.

by Eye14 Eye14 , 13 Aug 2024 03:53

The Search engine works surprisingly well, except It seems that clicking on the actual link does not send you to said page, instead, it gives you a choice to either go to the Bing search app or open in browser and neither seem to work. I am unaware of this is because of a folly on my part, or it could be my device, but I am unable to properly use this thing.


5
"But as for me and my house, we shall serve the Lord."
by Director Erzahler Director Erzahler , 16 Sep 2024 02:42
Browser
Eye14 Eye14 17 Sep 2024 01:49

I realized now that I was using Edge as a browser when I figured this out, so then I tried the search in Google Chrome and got the same result you described. I don't know if there is a way around this; if someone else with more knowledge sees this, please let us know any workarounds.

Last edited on 17 Sep 2024 01:50 by Eye14
by Eye14 Eye14 , 17 Sep 2024 01:49
Some change I did
AWriterOn AWriterOn 23 Sep 2024 19:48

I edited the code so that it only show results of your wiki. I prove it, for me it did work (though, didn't show me all the reults of my wiki, but well, that is because my wiki is not very indexed and is something that already happened with the original code).

[[html]]
<html>
<head>
<title>SearchMySite</title>
<style>
.search-box{border:1pxsolidblack;
 padding:10px;
 width:90%; /*Adjustthewidthasneeded*/
 height: fit-content;
}.search-input{width:75vw; /*Maketheinputfieldtakethefullwidth*/
 padding:10px; /*Addsomepaddingforbetterappearance*/
 font-size:16px; /*Increasethefontsize*/
}.search-button{padding:10px20px; /*Addpaddingtothebutton*/
 font-size:16px; /*Increasethefontsize*/
}.results-box{padding:10px;
 height:500px; /*Adjusttheheightasneeded*/
 margin-top:20px;
}
</style>
<scripttype="text/javascript">
functionsearchSite() {varquery = document.getElementById('searchQuery').value;
 varresultsDiv = document.getElementById('results');
 resultsDiv.innerHTML = '<iframesrc="https://www.bing.com/search?q=site:alternate-sandbox.wikidot.com ' + query + '" width="100%" height="100%"></iframe>';
 returnfalse;
}
</script>
</head>
<body>
<formonsubmit="returnsearchSite();">
 <divclass="search-box">
 <inputtype="text" id="searchQuery" name="q" class="search-input" placeholder="SearchingtheWiki . . ." /><inputtype="submit" value="🔍" class="search-button" /><divid="results" class="results-box"></div>
 </div>
</form>
</body>
</html>
[[/html]]

Nobody, No one, a shadow and a bad writer.

https://unwritten-mythos.wikidot.com — wether you want to visit or not is up to you, I want to see if this gets indexed more well.

Last edited on 03 Dec 2024 03:49 by AWriterOn
by AWriterOn AWriterOn , 23 Sep 2024 19:48
Re: Some change I did

I'm afraid that all it did for me was show the code. Maybe I made a typo or something. But here's the code I used:

<html>
<head>
<title>Search My Site</title>
<style>
.search-box {
 border: 1px solid black;
 padding: 10px;
 width: 90%; /* Adjust the width as needed */
 height: fit-content;
}
.search-input {
 width: 75vw; /* Make the input field take the full width */
 padding: 10px; /* Add some padding for better appearance */
 font-size: 16px; /* Increase the font size */
}
.search-button {
 padding: 10px 20px; /* Add padding to the button */
 font-size: 16px; /* Increase the font size */
}
.results-box {
 border: 1px solid black;
 padding: 10px;
 width: 90%;
 height: 500px; /* Adjust the height as needed */
 margin-top: 20px;
}
</style>
<script type="text/javascript">
function searchSite() {
 var query = document.getElementById('searchQuery').value;
 var resultsDiv = document.getElementById('results');
 resultsDiv.innerHTML = '<iframe src="https://www.bing.com/search?q=site:s-a-p.wikidot.com ' + query + '" width="100%" height="100%"></iframe>';
 return false;
}
</script>
</head>
<body>
<form onsubmit="return searchSite();">
 <div class="search-box">
 <input type="text" id="searchQuery" name="q" class="search-input" placeholder="Search the wiki . . ." />
 <input type="submit" value="Search" class="search-button" />
 </div>
</form>
<div id="results" class="results-box"></div>
</body>
</html>
Help | Terms of Service

5
"But as for me and my house, we shall serve the Lord."
by Director Erzahler Director Erzahler , 25 Sep 2024 00:08
Re: Some change I did
AWriterOn AWriterOn 26 Sep 2024 05:44
I don't know nothing of this type of problem at all, sorry can't help you. Now, when you put the code, this does not appear?
Screenshot_20240926-014047_Chrome.jpg

I put the code on my Sandbox site and it did showed results of the wiki.

There is also this thing: When you search for an article in the search engine, it will not take you to the link, you must either copy it or open the article in another tab since it will not work if you just tap on it.


Nobody, No one, a shadow and a bad writer.

https://unwritten-mythos.wikidot.com — wether you want to visit or not is up to you, I want to see if this gets indexed more well.

Last edited on 26 Sep 2024 05:53 by AWriterOn
by AWriterOn AWriterOn , 26 Sep 2024 05:44
Re: Some change I did
Eye14 Eye14 25 Sep 2024 00:43

Did you put the Wikidot code in the module for HTML? The Wikidot syntax for this is shown below

[[html]]
code here
[[/html]]

by Eye14 Eye14 , 25 Sep 2024 00:43
Re: Some change I did

Okay, I did that. It works but once again, everytime I press on the weh link(s) provided in the search results box, I'm met with a
"Continue on

  • Browser
  • Open in Bing app

"


5
"But as for me and my house, we shall serve the Lord."
by Director Erzahler Director Erzahler , 25 Sep 2024 02:09
Re: Some change I did

Which, again, both end in a "wiki refused to connect" message.


5
"But as for me and my house, we shall serve the Lord."
by Director Erzahler Director Erzahler , 25 Sep 2024 02:12
It said that I needed to upload an XML file to the root directory of my site
Notebook Won Notebook Won 16 Jan 2025 00:56

Microsoft Bing said that I needed to download an XML file from Bing Webmaster Tools and then upload it to the root directory of my wiki, to verify my site.

Last edited on 16 Jan 2025 22:17 by Notebook Won
by Notebook Won Notebook Won , 16 Jan 2025 00:56
hotarucifer hotarucifer 05 Mar 2025 22:53

THis worked for me, thank you!

by hotarucifer hotarucifer , 05 Mar 2025 22:53
/forum/t-16906318/working-search-for-open-and-closed-wikidot-sites#post-
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /