barry99705 Posted November 9, 2013 Share Posted November 9, 2013 (edited) Yeah, I must tell you guys that obviously editing the infusion to add rolls is your own responsibility, so if you mess it up, its on you to make backups. Automatic showing of rolls that are added I will attempt to add and is on my list :) It took me a bit to figure out that I needed to change the functions.php as well as the large_tile.php files, but once I got that, I can bounce between my infusions as well as the included infusions. Edited November 9, 2013 by barry99705 Quote Link to comment Share on other sites More sharing options...
cFire Posted November 10, 2013 Share Posted November 10, 2013 <?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past echo("<html>"); $loop = 0; foreach(glob("/www/*.php") as $roll){ $rolls[$loop] = $roll; //[debug] echo " $roll "; $loop++; } $element = rand(0, count($rolls)-1); require($rolls[$element]); ?> </html> I would like to recommend setting the cache directives in php rather than as a html meta tag. This way they're actually set as http headers which is better supported. (I had some issues with music not being dropped from cache when refreshing) Quote Link to comment Share on other sites More sharing options...
Lockon Posted November 14, 2013 Share Posted November 14, 2013 (edited) I'm finding that with the new 1.0.1 firmware, using RandomRoll sends the browser to the pineapple's login page. Possible that it's firmware related. Edited November 14, 2013 by Lockon Quote Link to comment Share on other sites More sharing options...
Z4ub4d3 Posted November 14, 2013 Share Posted November 14, 2013 i am also finding this. Quote Link to comment Share on other sites More sharing options...
thesugarat Posted November 14, 2013 Share Posted November 14, 2013 (edited) There's definitely something going on in the RR functions.php file. My favorite roll AfroCircus kept refusing to load but a quick change from 'afro' to 'afroroll' seems to have fixed that.... As for the login page issue Seb of course provided the fix. :) Edit: Sniped out my incorrect assumptions/ramblings on what was causing it. Edited November 14, 2013 by thesugarat Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted November 14, 2013 Share Posted November 14, 2013 The firmware upgrade DID break randomroll, but it was intentional. It is part of a set of security fixes we implemented. The fix is very simple though: Just install randomroll as you normally would. Before setting it set up, SSH in and edit the following file: /sd/infusions/randomroll/assets/files/index.php. Go to the VERY end of the file and add <?php exit(); ?> to it. This needs to be the last entry in the file. Once you have completed that step, proceed setting up randomroll (especially the enable index.php). If you have already set up randomroll, first disable index.php and then do the above changes. Then re-enable it. Done. Best Regards, Sebkinne Quote Link to comment Share on other sites More sharing options...
Lockon Posted November 14, 2013 Share Posted November 14, 2013 Thank you Seb! Quote Link to comment Share on other sites More sharing options...
hfam Posted November 14, 2013 Share Posted November 14, 2013 (edited) Edited: local issue, disregard. :) Edited November 14, 2013 by hfam Quote Link to comment Share on other sites More sharing options...
hfam Posted November 14, 2013 Share Posted November 14, 2013 Im fixing it now.. In future please reply to the RandomRoll thread. Lemme know if you want someone to test, i'm in IRC. Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted November 14, 2013 Author Share Posted November 14, 2013 (edited) 1.1 is out, fixing bugs and now works with 1.0.1. Edited November 16, 2013 by Foxtrot Quote Link to comment Share on other sites More sharing options...
hfam Posted November 14, 2013 Share Posted November 14, 2013 1.0.1 is out, fixing bugs and now works with 1.0.1. Confirmed, thanks FT! Quote Link to comment Share on other sites More sharing options...
King Crimson Posted November 15, 2013 Share Posted November 15, 2013 Favorite RandomRoll: Trollololol XD Quote Link to comment Share on other sites More sharing options...
Lockon Posted November 15, 2013 Share Posted November 15, 2013 This isn't a big deal but I noticed that the pbjtroll doesn't have any sound. When I looked at the PHP file, I noticed it points to a mp3 file that doesn't seem to exist either in the SD card or the Pineapple infusion folders. Is this intentional? Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted November 15, 2013 Author Share Posted November 15, 2013 No, it looks like the pbjt.mp3 is missing from that build. Ill release a fix tonight, hopefully with a couple new features. Quote Link to comment Share on other sites More sharing options...
Z4ub4d3 Posted November 16, 2013 Share Posted November 16, 2013 No, it looks like the pbjt.mp3 is missing from that build. Ill release a fix tonight, hopefully with a couple new features. Ohhh can't wait to see what the new features are. Quote Link to comment Share on other sites More sharing options...
cFire Posted November 16, 2013 Share Posted November 16, 2013 I've collected .swf files for Rickroll, PBJT and Trolololol if you're interested in including them. They seem to work more reliably for me. Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted November 16, 2013 Share Posted November 16, 2013 Flash is a bad idea though, not compatible with many devices. A gif+sound is the best and smallest option imo. Quote Link to comment Share on other sites More sharing options...
cFire Posted November 17, 2013 Share Posted November 17, 2013 Well, yes and no. gif+music is the better option if it works reliably across platforms and the music caching is done right. As it is right now, it seems fairly broken. Often music isn't discarded and reloaded from cache along with a new page and it plays two tracks. Quote Link to comment Share on other sites More sharing options...
barry99705 Posted November 17, 2013 Share Posted November 17, 2013 Here's my updated to work with the MK5 Nedry roll. https://db.tt/KFSsKJGl Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted November 17, 2013 Author Share Posted November 17, 2013 cFire, the way the rolls are displayed and are worked will be enhanced soon, I have some ideas on the drawing board, I'm just a little busy right now. Quote Link to comment Share on other sites More sharing options...
Lockon Posted November 18, 2013 Share Posted November 18, 2013 Noticed that when you select "Remove All Rolls", the checkboxes for each roll remains visually checked, even though they are no longer functioning. Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted November 18, 2013 Author Share Posted November 18, 2013 Yeah. That button just removes the rolls, not unchecks them. Should be fairly easy to do, Thanks! Quote Link to comment Share on other sites More sharing options...
Athanema Posted November 20, 2013 Share Posted November 20, 2013 Foxtrot does your infusion work with 1.0.3 ? No issues reported ? By the way great job and thanks a lot for the help last week ^^ Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted November 20, 2013 Share Posted November 20, 2013 Foxtrot does your infusion work with 1.0.3 ? No issues reported ? By the way great job and thanks a lot for the help last week ^^ All MKV infusions work with all firmwares :) Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted December 15, 2013 Author Share Posted December 15, 2013 1.2 Has been released! See the main post for a changelog. Hopefully this eliminates most bugs found to date and and enhances the infusion. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.