Could not upload pictures due to page restrictions. So I linked to another wikidot location.
Er, gerdami, you are an admin, right? —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
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, www.zusi.de (Demo-Video)
Wollen Sie Wikidot helfen im deutschen » 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 | Blog | CycloDS Revolution | Compatibility List | Want me to manage your next wiki? | XBL: leiger40
Can you use HTML in Wikidot?
Not directly. Only as described above by embedding it a code block or uploading it to a page and then iframing it.
-Ed
I can't get it working :(
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.
Rob's patience is legendary. We're planning a new tag, [[html]] that will make this work instantly.
so no more logging out and logging back in to get html to work? that would be sweet!
Uh… since when do you need to log out to get iframed html to work? :S
Am I misunderstanding something here.. ?
— Shane | Blog | CycloDS Revolution | Compatibility List | Want me to manage your next wiki? | XBL: leiger40
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.
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.
What do you mean? How is that so?
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?
http://community.wikidot.com/forum/t-20340/rich-text-html
In the topics I made there I was told HTML is not used to stop malicious code. By that does it mean code malicious to Wikidot, or malicious to the person viewing the site?
HTML used on a different domain/website does no harm to anybody. Even if you iframe it on your website, it still can't do any harm.
But in theory, if you actually place the HTML code as part of your Wikidot webpage (which isn't possible to do, nor will it ever be possible to do, we are just talking hypothetically here), it can do the following:
- Create/Edit/Delete/Rename/Parent/Tag/Upload Files of Wikidot pages
- Modify the user's account settings (possibly changing password/email)
- Change what the person is viewing
It would not be able to:
- Change the Wikidot Engine
Essentially, it would be able to do what a normal user can do with Wikidot — albeit, automated.
Like I said, it's not possible and never will be :-)
So you will be able to embed HTML in Wikidot pages? It will be on another domain so it will be secure, but this will be transparent to the user, just use HTML tags and Wikidot takes care of the rest.
Bingo! Exactly spot on!







