Could not upload pictures due to page restrictions. So I linked to another wikidot location.
Er, gerdami, you are an admin, right? —hartnell
"Early in life I learned that I was a firestarter. When I learned that I could light fires of passion I became a pyromaniac. My greatest desire is to set the world on fire." — Shawn Hartnell
Get an ajax error when putting this embed statement into a page…
"The ajax request failed. Please check your internet connection or report a bug if the error repeats during your work". Keeps repeating…
Do you have your own google search coop code to embed? —hartnell
"Early in life I learned that I was a firestarter. When I learned that I could light fires of passion I became a pyromaniac. My greatest desire is to set the world on fire." — Shawn Hartnell
Hey does this work with the adsense search automatically (as it's set up in wikidot) or would you have to go set up an adsense search specifically?
Not sure what you mean with "specifically adsense search"?
This has nothing to do with wikidot!
1. You have an account at google and can
2. setup your OWN search machion for specific sites & or sub pages…
3. The adsense coming ( if allowed by you) on such search machine output has nothing to do with wikidot or YOUR adsense setup on wikidot account / site manager.
This is only a search machine limited to specified domains…
Try our search machine on the Search Center and you will see the outcome…
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
<script src="http://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1'); google.setOnLoadCallback(function(){ new google.search.CustomSearchControl('013549970210526421991:uywkjw_znii').draw('cse'); }, true); </script>
This is the snippet I got from google. When I pasted onto my webpage I get an error message ' sorry no match for the embedded content'. I use the [[embed]] code block. Can anyone tell me what's wrong? Do I need to specify code type?
This is a workaround, but it should work…
Open notepad or some other text editor and add this to the editor:
<html> <body> <script src="http://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1'); google.setOnLoadCallback(function(){ new google.search.CustomSearchControl('013549970210526421991:uywkjw_znii').draw('cse'); }, true); </script> </body> </html>
Then save the file as code.html, and upload the file to the wikidot page you're adding it to.
Next, edit the wikidot page, and type this:
[[iframe http://SITENAME.wikidot.com/local--files/PAGENAME/code.html width="100%" height="500px" frameborder="0"]]
Remember to replace the "SITENAME" with your wiki's name, and "PAGENAME" with your wikidot page's name.
I've done the exact same thing here with different code and that method worked fine :)
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
Not directly. Only as described above by embedding it a code block or uploading it to a page and then iframing it.
-Ed
http://bestwikiever.wikidot.com/code-blocks
It's not working for me
I want the search to appear on this page:
http://bestwikiever.wikidot.com/mpglinks
You're missing the [[iframe ...]] piece of the puzzle.
[[iframe http://bestwikiever.wikidot.com/code-blocks/code/1 width="400px" height="75px" frameborder="0" scrolling="no"]]
yields this result from your page:
You should also surround your code block with comment tags to hide it on the page:
[!--
[[code type="html"]]
<html>
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#000000;color:#FFFFFF">
<div class="cse-branding-form">
<form action="http://operation420.net/search" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-3003393768631515:x62wrv-ofyc" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
</div>
<div class="cse-branding-logo">
<img src="http://www.google.com/images/poweredby_transparent/poweredby_000000.gif" alt="Google" />
</div>
<div class="cse-branding-text">
Custom Search
</div>
</div>
</html>
[[/code]]
--]
-Ed
No one mentioned I had to add "/code/1" after the URL…
Anyways, thank you for your quick help…
You should have a look at this:
http://community.wikidot.com/blog:html-within-wikidot-type-2
Techniques for iframing code blocks are all over the forums, help and how-to pages. I think RobElliott spends 3/4 of his time responding to "How do I embed xxx?" and the answer is always about the same. Once you understand how html code blocks and iframes work together, you'll have added an excellent weapon to your Wikidot arsenal (pun intended!)
-Ed
I think RobElliott spends 3/4 of his time responding to "How do I embed xxx?" and the answer is always about the same.
Rob's patience is legendary. We're planning a new tag, [[html]] that will make this work instantly.
We're planning a new tag, [[html]] that will make this work instantly.
You probably already know this, and it's probably the reason you are planning the tag, but just so I'm on the record, that sounds fantastic.
Uh… since when do you need to log out to get iframed html to work? :S
Am I misunderstanding something here.. ?
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
Rhombus, you should never need to log out and back in to get a codeblock to work. It just needs the browser cache clearing then a refresh. So on Firefox it's ctrl+shift+delete then in the details section of the popup window make sure the cache (only) is checked, then click OK. Then ctrl+r to refresh.
Rob Elliott - Strathpeffer, Scotland - member of the Wikidot first line support team.
Strathview ~ Wikidot-based wikis, websites & intranets and online database development
community groups, villages, charities, business and government.
Anyways, thank you for your quick help…
You're welcome. Sometimes it works out that way. I was posting responses almost as fast as you were asking questions! :)
Wouldn't allowing HTML be a security risk?
Not if it is iframed on a different domain. That is what the planned HTML block will do.
λ James Kanjo
Blog | Wikidot Expert | λ and Proud
Web Developer | HTML | CSS | JavaScript
Well, all web browsers have inbuilt security which prevents a webpage from controlling a different webpage in your browser.
If you create code on Wikidot.com, then you can use it to control Wikidot.com. However, if you create code on Google.com, you will not be able to control Wikidot.com with it. Google code can only control the Google website. Wikidot code can only control the Wikidot website.
So the HTML module will put your code on a different website so that it can't control Wikidot.com. Does this make more sense now?
λ James Kanjo
Blog | Wikidot Expert | λ and Proud
Web Developer | HTML | CSS | JavaScript






