Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
T

taowang

@taowang
About
Posts
91
Topics
19
Shares
0
Groups
0
Followers
0
Following
2

Posts

Recent Best Controversial

  • YouTube is currently trying to block Invidious instances
    T taowang

    @girish any updates on this implementation?

    so the best potential solution would be ipv6 rotation + openvpn, right?

    Invidious

  • Upgrading to 4.5 is not working
    T taowang

    I am trying to upgrade moodle to 4.5, but it stucks at "starting".

    It has been stuck there for 20 min.

    31ac4009-eff4-4622-abea-1f49e3987608-image.png

    Moodle

  • is this a scam??? Contabo
    T taowang

    Thank you all for sharing. I also read some comments on Reddit. Nobody likes Contabo.
    To be fair, Contabo should probably add "No" to their marketing claims, like "No Germany Quality, Always".

    image.png

    Off-topic

  • is this a scam??? Contabo
    T taowang

    I found out about this hosting provider while learning on Roadmap.sh.

    It is even cheaper than hetzner. I can't believe it.

    b0a69707-aa71-4ae6-8e43-6a8ba6ccfd5c-image.png

    62fdadf1-beae-4a6b-a33b-572455274241-image.png

    Off-topic

  • Frappe LMS
    T taowang

    @girish

    I just found out about this LMS. I might switch from Moodle to this one.

    How do feel about this Frappe LMS (mainly its code quality) compared to Moodle?

    I spent quite amount of time on customizing moodle, it didn't go very well.

    I already saw some bad comments from the developer community about Moodle.

    More than 60% of the comments on hacker news and reddit are quite negative.

    App Wishlist

  • Issue embedding iframes
    T taowang

    I posted this.

    https://forum.cloudron.io/topic/12322/moodle-bug-unable-to-inject-script-javascript-code-script-in-blocks-or-course-activities
    

    You need to go through these steps:
    go to site administration > plugins
    press command + 5 to search for "Convert URLs into links and images"
    click on settings and toggle off the HTML format
    use HTML format when injecting code with urls

    Moodle is quite confusing. Many developers have complaint about it.

    https://www.reddit.com/r/webdev/comments/2l3hy9/moodle_not_even_once_what_is_your_the_worst/
    

    I am thinking about switching to other LMS or simply wordpress.

    Moodle is very hard to customize. You will encounter other werid problems in the future as well.

    Moodle

  • EdgeDB - next gen database built on top of postgresql and invested by OpenAI
    T taowang

    This can be very easy to self host since it is just one single docker image.

    https://github.com/edgedb/edgedb
    https://hub.docker.com/r/edgedb/edgedb
    https://www.edgedb.com/

    App Wishlist

  • Can someone help me embed this editor.md on Moodle?
    T taowang

    Go to preference
    image.png

    Change "editor preference" to "plain text area"
    image.png

    Turn on the "Edit Mode" and add an activity or resource, select page

    image.png

    Then, copy and paste the following code:

    <link href="https://unpkg.com/editor.md/css/editormd.min.css" rel="stylesheet" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script src="https://unpkg.com/editor.md/editormd.min.js"></script>
    
    <div id="editor">
    <textarea style="display: none;"></textarea>
    </div>
    
    <script type="text/javascript">
        $(function () {
            var editor = editormd("editor", { 
            	width: "100%", 
                height: "100%", 
                path: "https://unpkg.com/editor.md/lib/" 
            });
        });
    </script>
    
    
    
    
    
    
    Moodle

  • Can someone help me embed this editor.md on Moodle?
    T taowang

    Still not working:

    <link rel="stylesheet" href="/app/data/editormd/css/editormd.css" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="/app/data/editormd/editormd.min.js"></script>
    
    <div id="test-editor">
        <textarea style="display:none;"></textarea>
    </div>
    
    <script type="text/javascript">
        $(function() {
            var editor = editormd("test-editor", {
                width: "100%",
                height: 500,
                path: "/app/data/editormd/lib/"
            });
        });
    </script>
    
    Moodle

  • Can someone help me embed this editor.md on Moodle?
    T taowang

    I will try the following path:

    /app/data/editormd

    Moodle

  • Can someone help me embed this editor.md on Moodle?
    T taowang

    I downloaded the source code from github:
    https://github.com/pandao/editor.md?tab=readme-ov-file

    Can I upload it via the File Manager?

    image.png

    Will this work?

    If so, what path shoud I use?

    is this it?

    /appdata/3d3f8304-dd19-4222-a4a4-3c739485ea74/editormd

    image.png

    <link rel="stylesheet" href="/appdata/3d3f8304-dd19-4222-a4a4-3c739485ea74/editormd/css/editormd.css" />
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    
    <script src="/appdata/3d3f8304-dd19-4222-a4a4-3c739485ea74/editormd/editormd.min.js"></script>
    
    <div id="test-editor">
        <textarea style="display:none;"></textarea>
    </div>
    
    <script type="text/javascript">
        $(function() {
            var editor = editormd("test-editor", {
                // width  : "100%",
                // height : "100%",
                path   : "/appdata/3d3f8304-dd19-4222-a4a4-3c739485ea74/editormd/lib/"
            });
        });
    </script>
    
    
    Moodle

  • Can someone help me embed this editor.md on Moodle?
    T taowang

    I found the root cause.

    Moodle is not autoloading the dependencies via the path:

    path: "https://unpkg.com/editor.md/lib/"

    But I don't know how to solve it.

    Moodle

  • Can someone help me embed this editor.md on Moodle?
    T taowang

    I want to embed this editor.md on Moodle, but it keeps loading.

    The following code works on any online code editor, such as:

    https://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro
    

    But it does not work on moodle. I don't know why.

    You may try on the Moodle demo site by sign in as Admin.

    https://sandbox.moodledemo.net/
    

    Editor.md

    <link href="https://unpkg.com/editor.md/css/editormd.min.css" rel="stylesheet" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script src="https://unpkg.com/editor.md/editormd.min.js"></script>
    
    <div id="editor">
    <textarea style="display: none;"></textarea>
    </div>
    
    <script type="text/javascript">
        $(function () {
            var editor = editormd("editor", { 
            	width: "100%", 
                height: "100%", 
                path: "https://unpkg.com/editor.md/lib/" 
            });
        });
    </script>
    

    Here is the errors I see in console:

    4877b8bf-a0df-4f35-996f-fb8a8ba8214b-image.png

    Thanks for your help!

    Moodle

  • Firecrawl on Cloudron - Turn any site into LLM data by web scraping
    T taowang

    When can we have this? This is extremely useful to build AI applications, since it can scrape data from nearly any website. And data is valuable these days.

    App Wishlist firecrawl web scraping ai

  • Firecrawl on Cloudron - Turn any site into LLM data by web scraping
    T taowang

    I want this as well!

    App Wishlist firecrawl web scraping ai

  • Moodle Bug: Unable to inject <script>javascript code</script> in blocks or course activities
    T taowang

    image.png

    Moodle

  • Moodle Bug: Unable to inject <script>javascript code</script> in blocks or course activities
    T taowang

    OMG it worked!!!! Thank you very much.

    Here is a site-wide config for all course pages:

    1. go to site administration > plugins
    2. press command + 5 to search for "Convert URLs into links and images"
    3. click on settings and toggle off the HTML format
    4. use HTML format when injecting code with urls
    Moodle

  • Moodle Bug: Unable to inject <script>javascript code</script> in blocks or course activities
    T taowang

    @joseph
    I just tested the following 4 csp blockers but did not work.
    The chatbot is still not showing up.
    I am not sure if these plugins are actually good quality.
    Some comments say it works, while other say it doesn't work.

    https://chromewebstore.google.com/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden
    https://chromewebstore.google.com/detail/anti-cors-anti-csp/fcbmpcbjjphnaohicmhefjihollidgkp
    https://chromewebstore.google.com/detail/allow-csp-content-securit/hnojoemndpdjofcdaonbefcfecpjfflh
    https://chromewebstore.google.com/detail/csp-unblock/lkbelpgpclajeekijigjffllhigbhobd

    Moodle

  • Moodle Bug: Unable to inject <script>javascript code</script> in blocks or course activities
    T taowang

    After deeper investigation, it is likely related to CSP.
    But I don't know how the moodle demo site sets its CSP to allow script and css injection directly into course pages.

    Moodle

  • Moodle Bug: Unable to inject <script>javascript code</script> in blocks or course activities
    T taowang

    I recorded a video to demonstrate the issue.

    https://images.riverhill.ai/王韬·江山学府 2024-08-08 18.34.48.mp4

    Moodle
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search