Jump to content

benbyf

Members
  • Posts

    811
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by benbyf

  1. I dont think you can. In the previous forum we had years ago, it was "questions and answers" which meant a question could be marked as solved (or having an answer). However, the new system is now a "forum" and is thus a discussion which can not have a definitive answer.
  2. This has now been addressed. I've also spent some time spedning up the load of the site by lazy loading alot of the images, however I havent found a nice way of this playing well with Isotope, but works well enough currently.
  3. Thanks, and glad you're finding the module useful. If you have any other bugs or fixes, please submit a issue or pull request on github
  4. Just checked on: http://castfeedvalidator.com/ and still not delivering partial headers, anyone have any experience on this, I'm running PW on nginx. Here is my current php code for the file request: <?php namespace ProcessWire; if($page->mp3){ $page->of(false); $page->counter += 1; $page->save(); $page->of(true); // // adapted from GIST: https://gist.github.com/codler/3906826 // $options = array( // boolean: halt program execution after file send 'exit' => true, // boolean|null: whether file should force download (null=let content-type header decide) 'forceDownload' => false, // string: filename you want the download to show on the user's computer, or blank to use existing. 'downloadFilename' => '', ); $file_path = $page->mp3->filename; $fp = @fopen( $file_path, 'rb' ); $size = filesize( $file_path ); $length = $size; $start = 0; $end = $size - 1; header("Content-type: audio/{$page->mp3->ext}"); header( "Accept-Ranges: 0-$length" ); header( "Content-Length: $length" ); // find request headers for partial content if ( isset($_SERVER['HTTP_RANGE']) ) { // if the HTTP_RANGE header is set we're dealing with partial content $partialContent = true; } else { $partialContent = false; } if ( $partialContent ) { $c_start = $start; $c_end = $end; // Extract the range string list(, $range) = explode( '=', $_SERVER['HTTP_RANGE'], 2 ); // If the range starts with an '-' we start from the beginning // If not, we forward the file pointer if ( $range{0} == '-' ) { // The n-number of the last bytes is requested $c_start = $size - substr($range, 1); } else { $range = explode( '-', $range ); $c_start = $range[0]; $c_end = ( ( isset( $range[1] ) && is_numeric( $range[1] ) ) ? $range[1] : $size ); }; // End bytes can not be larger than $end. $c_end = ($c_end > $end) ? $end : $c_end; $start = $c_start; $end = $c_end; $length = $end - $start + 1; fseek( $fp, $start ); // Start buffered download $buffer = 1024 * 8; while ( ! feof( $fp ) && ( $p = ftell($fp) ) <= $end ) { if ( $p + $buffer > $end ) { $buffer = $end - $p + 1; }; set_time_limit( 0 ); echo fread( $fp, $buffer ); flush(); }; header( "Content-Range: bytes $start-$end/$size" ); header( 'HTTP/1.1 206 Partial Content' ); fclose( $fp ); }else{ // send file wireSendFile($page->mp3->filename, $options); } }
  5. Hey @flydev would love someone to add this as im very much confused about how to edit the CKeditor well, I usaully hack it abit till it works
  6. AHHHH IM SOOO stupid! thank you, hidden away I missed it.
  7. Ah sorry, yes I was thinking that it might be nice to have a module that you can choose a template and for each field available to that template choose default values to pre-populate a page on creation. So the values are template depend not field depend.
  8. Hello, sure there is something stupid im doing here but cant seem to get the pagination to work. The page list appears but clicking on any of the next template has Allow URL segments? checked and contains: $results = $page->children("limit={$limit}"); $pagination = $results->renderPager(); $out .= "<section class='blog-posts'>"; foreach($results as $result) { $out .= "<h3><a href='{$result->url}'>{$result->title}</a></h3>"; } $out .= $pagination;
  9. Ha, I mean like that other module, but with more functionality, like level 2 in a game (its a saying, like leveling up).
  10. Awesome not seen that. Looks like my idea would be that but level 2.
  11. HELLO! Thought of a super interesting module and wondered if anyone had created it or not, and some feedback on the idea. New page field defaults - on creating a new child page, you choose a template and page title and click submit -> the resulting page is prepopulated with content dependent on the template you chose. Not sure about implmentation yet just thought was an interesting idea.
  12. Actions bar still not working. I'm running Batcher 1.0.4 and PW 3.0.62. https://www.dropbox.com/s/642ps72mz3apf83/batcher-no-click.mov?dl=0
  13. Hi, Been updating fields on a live site from my dev site to get them in synch and I noticed repeater pages visible in my pagetree on teh live site. What might I have done to have this happen? The repeater module was enabled on both sites.
  14. HELLO! I always struggle adding additional functionality, buttons and other settings to the CKeditor and I guess other people might have the same issue at times. For those who are CKeditor aces would you share your settings in this post to help others with what I guess should be a simple task to extend the default settings. Extra color select and text formating toolbar Format, Styles Bold, Italic, Underline, -, RemoveFormat TextColor, BGColor JustifyLeft , JustifyCenter, JustifyRight, JustifyBlock NumberedList, BulletedList, -, Blockquote PWLink, Unlink, Anchor PWImage, Table, HorizontalRule, SpecialChar PasteText, PasteFromWord Scayt, -, Sourcedialog extra allowed content small[*] section font[style] span[style]{!color} code[*] custom config options colorButton_colors: ec4626,ffde43,00aaeb,004a87,7b9320,ffffff extra plugins colorButton
  15. Think your right, but part of the design decession was from the client trying to produce a site which was mostly about seeing all the images fast, rather than doing a lot of zooming in to an image. @szabesz what browser are you seeing that on? thanks, will fix now.
  16. http://www.karenthomasphotography.com/ modules: AIOM+, ProcessPageDelete, TextformatterVideoEmbed. js: isotope, imagesloaded, fitvids, scrollTo, and Jquery with custom AJAX magic.
  17. Literally Phonegap, Marmalade or Cordova, does this... soooooooo give it a go
  18. HELLOOO!!!!! If its mainly text, then an offline web app with service worker would be fine as most devices allow yo to save upto 50mb without being prompted and then usually more if you give permission. A web app would work too for offline use if you had it all as flat html, css and js files. Using Cordova you can bascially convert directly to native app if its a simple site. You can also use things like PhoneGap or Ionic (others are available), but they are all mostly layers on Cordova which actually is the library for the conversion. Hope that helps
  19. Fair comment but didnt forget as tested in edge and ff and was fine, If anyone has browserstack loggings could they please check?
  20. Ive got some bits here: https://benbyford.com/works/?f=games and here: https://benbyford.com/experiments/?f=games Haven't done lots of game stuff yet commerically, and I'm mainly focused on 2d games as 3d requires TIMEEEEEEEEE and money, and i think im just more interested in 2d
  21. making games on Unity3d trying to find work from other web designers and clients playing with my baby going through the long list of backlog tasks and personal projects to see if i have the time/money to start any (usually games, code learning, or writing)
  22. One of my clients found a bug when viewing the PW admin on chrome using windows - the admin tab nav doesn't appear, they could only see the tool icon either though they were a superadmin user. When viewed on Edge the tabs where present. The site is running on PW 3.0.62 with the default admin. I was screen sharing with my client when we found the bug, I don't actually have anyway to test this and see what's wrong myself as I dont run windows and dont currently have a cross broswer testing suite. Could someone please look into it briefly?
×
×
  • Create New...