Jump to content

Mercifull

Members
  • Posts

    12949
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by Mercifull

  1. [hide]Thanks for the help in my previous thread. I am at the point now where I have a working script here http://www.fromefm.c...=homelyremedies which does what I need it to do. Now I somehow need to create wordpress so I can embed some shortcode syntax such as [fromefmplayer=homelyremedies] and it will output it into the blog or page I've added it to.

     

    This is a plugin designed to work on only one site so it doesn't matter if I have to hardcode urls into it (with the exception of the show name) but I want it as a plugin so i can change themes and update wordpress without having to remember the changes I made each time.

     

    The plugin will need to add a few extra css and js files to the header and then run the php code within the blog/page.

     

    I'm not asking someone to do it for me but some pointers on how to convert what is essentially a working js/html5/css script into a wordpress plugin.[/hide]

    Scroll down to see latest question. Ta

    http://forum.tip.it/...n/#entry5364325

  2. [hide]Hi all,

     

    Been a long time posting in this forum but I've come across something that I'm stumped at and could do with some advice. Let me explain some bits...

     

    I have running on the server some software called DirCaster which reads the contents of folders to create an RSS feed. e.g. I have a folder on fromefm.co.uk/media/altfactor full of mp3 files. DirCaster created this on the fly when you put the folder in as a variable. See http://fromefm.co.uk...?show=altfactor

     

    I am using an RSS parser called MagpieRSSwhich if I hardcode in the rss url works fine but doesn't work If I try to use _GET to change it.

     

    <?php
    
    require_once 'magpierss/rss_fetch.inc';
    $url = 'http://fromefm.co.uk/archive/dircaster2.php?show=altfactor';
    $rss = fetch_rss($url);
    foreach ($rss->items as $item ) {
    $title = $item[title];
    $url = $item[guid];
    $description = $item[description];
    echo "<li><a href='#' data-src='$url'>$title</a></li>
    ";
    }
    ?>
    

     

    The above code successfully lists all the stuff in the podcast directory by running the magpie script which in turn runs dircaster to get the file listing. The problem arises when trying to make the $url variable dynamic.

     

    I thought I could just do this to create my own new dynamic variable

    $showname = $_GET['show'];
    

     

    But when I put it into the main code it breaks.

     

    <?php
    $showname = $_GET['show'];
    require_once 'magpierss/rss_fetch.inc';
    $url = 'http://fromefm.co.uk/archive/dircaster2.php?show='+$showname;
    $rss = fetch_rss($url);
    foreach ($rss->items as $item ) {
    $title = $item[title];
    $url = $item[guid];
    $description = $item[description];
    echo "<li><a href='#' data-src='$url'>$title</a></li>
    ";
    }
    ?>
    

     

    I hope this makes sense. I've got an example page here which DOES have the variable to get a show name but still has the dircaster url hardcoded. There is an echo of $showname in the description to check it works. e.g http://www.frome.me/....php?show=tipit

     

    Any ideas or advice would be helpful. Perhaps it's something MAgpie can't do. If so are there any other similar RSS->PHP parsers around that could do this?[/hide]

    Solved. Thanks

     

     

    Working (draft) script here: http://www.fromefm.c...er/?show=xxxxxx

     

    examples:

    http://www.fromefm.c...?show=altfactor

    http://www.fromefm.c...=homelyremedies

    http://www.fromefm.c.../?show=ourhouse

     

    Thanks for the help guys.

  3. It's highly unlikely that anyone has any of the PoP stuff legitimately so Jagex should just remove any of those items from the game. Tuff luck to anyone that spend money on them, its on par with handling stolen goods

     

    This is complete nonsense. Unless Jagex is willing to recompense the players who bought these items, why should people who legitimately paid for these items lose their money/items because of Jagex's incompetence? They knew this bug was here for weeks, whether it is due to their inability(maybe they tried to figure it out but couldn't) or incompetence or disregard for it, there's absolutely no reason why players should have to suffer such penalties.

    That's why I said it was on par with handling stolen goods. You said it was a known bug so take this scenario....

     

    You read in in the tabloids (forums) that someone has stolen (bug abused) a shipment of Brand new Ferrari cars which aren't officially for sale yet (tetsu gear). Someone in the pub (World 2) offers you one of these brand new Ferraris at a price which seems too good to be true. You know in your heart that it's probably going to be one of the stolen ones and if you accept the offer then you can't complain if the police (jagex) reclaim it. There should be no recompense other than the knowledge that the person who sold it to you is put behind bars (banned) and can't do it again.

    • Like 1
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.