1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Request] Reddit Sidebar Widget to show New posts

Discussion in 'Resource and Add-on Requests' started by BrokenChaos, Apr 29, 2016.

  1. BrokenChaos

    BrokenChaos Active Member

    There is a facility to add a Reddit Widget using the generated code from https://www.reddit.com/widget

    But, when I add my subreddit it breaks the page

    I added the script
    <script src="https://www.reddit.com/r/RimbitCrypto/new/.embed?limit=5&t=all&sort=new" type="text/javascript"></script>
    but that does not bring up the NEW content on reddit.
    What it shows is this https://www.reddit.com/r/RimbitCrypto/
    What I want it to show is this https://www.reddit.com/r/RimbitCrypto/new/

    I have contacted Reddit weeks ago and continued contacting them with no success, so I come here now asking if anyone has a solution that will show the NEW content on a sidebar widget
  2. EQnoble

    EQnoble Well-Known Member

    It works just fine it's just that those two links literally show the same exact content because there is only 3 threads to show.

    As far as your mention breaking the page I have to assume you are talking about reddit's widget creator tool which indeed does break their page when you try to add your link to it (showing a 404 error which itself is sometimes broken displaying a 404404 ).

    If you go test this with something more broad with more content available it seems to work fine.

    <script src="https://www.reddit.com/r/Jokes/.embed?limit=5&t=all&sort=new" type="text/javascript"></script>
    <script src="https://www.reddit.com/r/Jokes/new/.embed?limit=5&t=all&sort=new" type="text/javascript"></script>
    Those have lists with different content and if you test these two out you will see it loads different different lists of content within the widget.

Share This Page