From categories:
page 1123...next »

Again thanks for quick reply.

Yes, the theme itself correctly uses imports without the http or https protocols, and that is, I guess, the work to which @michal-frackowiak was referring to. But there is this one request ‘http://css.wikidot.com/theme:standard-cover/code_` and I don’t know where it comes from and I don't know how to replace it.

It would be great if you can test this issue. I would imagine in the new environment where search engines prioritize websites with SSL over the ones without SSL, it would be helpful to the whole wikidot community.

Thanks.

I just spent a couple of minutes looking at this and stumbled upon this discussion from a couple of years ago that might help:
http://css.wikidot.com/theme:standard-theme/comments/show#post-2466837

You might try replacing any @import url('http://css.wikidot.com/…'); with @import url('css.wikidot.com/…');// and see if that solves the problem.

If that doesn't work, I would think you could replace your @import url lines with the actual CSS. It sounds like you may have tried that, but in theory that should work if there are no other references to HTTP.

I should be able to test this myself and report back. Might not be able to get to it today, but I'll try it when I can.

Yes, the approach that Ed mentioned is probably your best option.

I tried to follow your advice with mixed results. I am able to replace theme CSS successfully, but there a second request to ‘http://css.wikidot.com/theme:standard-cover/code_`, which I have no idea how to replace. I naively tried to combine the content of the second 2nd CSS into 1st one, but it doesn’t quite work. Any other suggestions?
Thanks.

Thanks for the reply. Is this the only option to do it? Have you tried it yourself?

I would copy the css theme page to your own site ( the source) and in the site_admin the setup of this css theme change to your page… ( than https)


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 ?

Hello,

Is there an easy way to fix ‘Mixed Content: The page at ’https://omscs.wikidot.com/home:home' was loaded over HTTPS, but requested an insecure stylesheet 'http://css.wikidot.com/theme:standard-blue/code_'. This request has been blocked; the content must be served over HTTPS.` errors?

I want to enable both HTTP and HTTPS (I made the necessary changes in Admin panel), but can't figure out how to make it serve CSS and other assets with HTTPS if the request was made over HTTPS?

Can someone help?

Yerke

The simplest way to do this and minimize editing would be to create 2 pages:
http://www.istorijskabiblioteka.com/snippets:audio
http://www.istorijskabiblioteka.com/snippets:audio-backend

This replicates the 2 pages from the snippets site that Timothy created and also includes Janne's tweak to hide the download option.

/audio source

[[include snippets:audio-backend
|URL={$URL}
|type={$type} |type=mpeg
]]

/audio-backend source

[[html]]
<div style="height: 8px;"></div>
<audio controls controlsList="nodownload">
  <source src="{$URL}" type="audio/{$type}" />
</audio>
[[/html]]

Edits to your existing pages

In order to switch to the snippets you just re-created on your site, you just need to remove the leading ":" from any of your existing includes that call the snippet.

Before

[[cell style="background-color: transparent;"]]
[[include :snippets:audio |URL=http://www.istorijskabiblioteka.com/local--files/zvuk:{$url}/{$url}]]
[[/cell]]

After

[[cell style="background-color: transparent;"]]
[[include snippets:audio |URL=http://www.istorijskabiblioteka.com/local--files/zvuk:{$url}/{$url}]]
[[/cell]]

Removing the colon points the include to the pages on your site and not snippets.wikidot.com.

Let us know how if this works. I haven't had a chance to actually test it. ;-)

Re: Audio player by Ed JohnsonEd Johnson, 19 Apr 2018 23:35

Hi, Ed, thank you for your answer, sorry for not answering earlier, but I dont pass here too often.
Recreating the snippet on my site would be great. Could you provide me with the code? Or tell me how to look for it?
I have only one page in which it is included, and then this page is included in two more pages and then these two pages are included in hundreds of others. So, I would just have to create my own page with the code and change the original code with it on the initial page.
Thank you very much!


If slaughterhouses had glass walls, everyone would be vegan. - Paul McCartney

Re: Audio player by BrunhildaBrunhilda, 19 Apr 2018 20:13

Thanks Shane

Can I contact you on Monday? I am travelling for work.

Does the API pull the html from the page? Or the underlying wikidot code? If it is just pulling the html code from the %content pages, it might be perfect.

Will


Black Belt Wiki - A Free Martial Arts Wiki

Hey there!

You can use the API to do this. Both Wikidot and Wordpress have an API, which means a script can run between them - pulling data from one, and transferring it to the other.

I'm happy to help you with this ( send me a Wikidot PM for info ), or you can hire any other developer that has worked with both XML-RPC and REST APIs to do it for you. The videos can likely be detected and converted automatically as well. You may also run into a similar issue with attached images, unless you're happy to leave those attached to the Wikidot site and just refer to them from Wordpress as a URL.

Re: Transfer Site to Wordpress by leigerleiger, 19 Apr 2018 00:13

Thanks Ed

I am hoping that someone knows some type of "copying" software. I tried copying by hand but the copy & paste does not pick up the videos that are in each wiki page (so you have to do even more copying of the underlying video code). So this takes forever.

How to "scrapers" copy everything so quickly & smoothly? :) Perhaps I should outsource this transition to a professional?

Will


Black Belt Wiki - A Free Martial Arts Wiki

Honestly, I felt like pages and categories weren't the right way to do this, and 60 seconds between results was way too slow. XD So I hired someone to actually write the generator in HTML for me. This code includes a border, a button, and random results from a list. The border color and size can be adjusted, the button text can be changed, and - obviously the most important bit - the results (string one, string two, etc.) can be changed.

I'm posting this here for the benefit of anyone else who has this issue. I also have no problem if anyone wants to add this code to a snippets database or something. ^^/

[[html]]
<style>
    * {
    margin: 0;
    padding: 0;
    }
    #container {
    width: 90%;
    margin: 90px auto;
    padding: 10px;
    border: 1px solid #606060;
    }
    .alignleft {
    float: left;
    }
    .alignright {
    float: right;
    }
</style>
<div id="container">
    <p class="alignright" id="randomResult">&nbsp;</p>
    <button class="alignleft" id="button">Click here to see random string of text!</button>
    <div style="clear: both;"></div>
</div>
<script>
    function randString(){
        return stringArray[~~(rand()*stringArray.length)];
    }
    function randText(){
        var tx = randString();
        var txt = document.createTextNode(tx);
        var sp = document.createElement('span');
        sp.appendChild(txt);
        randomResult.innerHTML = '';
        randomResult.appendChild(sp) = tx;
    }
    rand = Math.random;
    stringArray = ['string one', 'string two', 'string three', 'string four', 'string five', 'string six', 'string seven', 'string eight', 'string nine', 'string ten'];
    randomResult = document.getElementById('randomResult');
    document.getElementById("button").addEventListener('click',randText,false);
</script>
[[/html]]

You should be able to "break" the includes in your template by placing a space as the first character on the line or do something like "[ [include…" (put a space between the double brackets). and then fix the broken pieces before saving your new page based on the template.

It's not an elegant solution, but should work as long as you add instructions for the users in the template comments.

I feel your pain. I did the same thing, but moved a bunch of content to Google Docs. I just hunkered down with my dual monitor setup on my PC. I opened Wikidot on one monitor and Google Docs on the other and did the copy/paste work. I had over 200 Wikidot pages to move into GDocs and it really didn't take that long once I got into the swing of things. Since Google Docs is web-based, it did quite well preserving the HTML formatting, including tables. I had some minor re-formatting to do, but it wasn't bad.

I haven't done this with Wordpress, but suspect the formatting will translate pretty well as long as you have the Wordpress editor in "visual" (wysiwyg) mode and not "text".

Awesome, thanks.

The Include is on the template, but if I start a new page in log: - it removes the include and just pulls in the info from the pages. Is there a way to have a new page not do that in the editing?

Edit: I looked at it seems it cannot be done, but there is mention of getting around it through use of iframe, is there an example of how that works somewhere?

Thus, these are meant to be displayed with other content (sort of like you might display a table between some bits of text), not be separate pages all by themselves. Does that help narrow things down a bit?

In this case the code above should do the trick. You'll need to create (or rename) the pages to be randomized in a category, then select the category with listpages -module (replace "yourcategory" -text).

Wikidot documentation: Categories, ListPages

The ListPages -module then shows the content of a random page in the category (which can be displayed with other content, even if it's located on separate pages).

Edit: …and if you want it to be clickable, you could insert the ListPages -module in a Collapsible Block. The page needs to be refreshed for a new result though. And as Helmut said, it's cached for 60 seconds.


___TTT___/ http://www.trumpetexercises.net
 (_|||_) \ - Janne

We are running a number of wikis on wikidot. We want to transfer one of our smaller sites over to Wordpress (as the site is not really a wiki). However, the site has 300-400 pages.

Is there an easy way to do this without manually copying & pasting? I assume the backup files won't work because they will be only in wikidot "code" (and thus each page would have to be edited in order to convert to a wordpress format). Copying & pasting works but it is very time consuming.

Thanks for your help.

Will


Black Belt Wiki - A Free Martial Arts Wiki

Interesting… though, I should probably note that I'm definitely looking for "widget" style things that can be added onto a page and not require reloading anything when users ask for a result. XD Basically, I have some long tables of randomized results I'm going to be adding soon, and I had a request from a user to also include an interactive generator to spit out results when people click.

Thus, these are meant to be displayed with other content (sort of like you might display a table between some bits of text), not be separate pages all by themselves. Does that help narrow things down a bit?

You can use in a ListPages module in the selection part ( See also http://www.wikidot.com/doc-modules:listpages-module#toc2
created_by="user-name" ( like created_by="Helmut_pdorf

You will see all your pages from the selected user, but not the updated pages, created by another user.

You can see the old user profile page like the living one: http://www.wikidot.com/user:info/xcninety


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 ?

page 1123...next »

Bookmark and Share