Jump to content

Joss

PW-Moderators
  • Posts

    2,870
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by Joss

  1. Just for interest, this is what I did: I created a textarea field called jingles_upbeat (as an example) and then exploded it by line and then by comma: <?php $players = explode("\n", $page->jingles_upbeat); foreach($players as $player){ $player = explode(',', $player); $count++; ?> ignoring the modal bit, I then ran out the html within the loop using the <audio> element followed by the <source> element that Media Elements looks for: <audio id="player2" controls="controls" style="width:350px;"> <source id="mp3_src" src="/site/assets/audio/single-jingles/<?php echo $player[0]; ?>.mp3" type="audio/mp3"> <source id="ogg_src" src="/site/assets/audio/single-jingles/<?php echo $player[0]; ?>.ogg" type="audio/ogg"> </audio> <?php } ?> In the above array, $player[0] is the file name without an extension, $player[1] is the title and $player[2] is a short description, which can be used anyway you want. They looked like this in the field: RCCoppins-30-full-with-front,RC Coppin,Kitchen Tops Elmers-full,Elmers- Hardware Store Concorde-full,Concorde,Tyres & Exhausts And that was that - very easy.
  2. OH, you can blame Bootstrap for the modal.
  3. Yes, I used media elephants on my main site http://www.dancingbear.co.uk Because I was using a lot of files and needed ogg, mps and zip download, what I did is just scribble out a bit of php to expode the contents of a textarea where I listed the tracks needed for a particular page. So, I uploaded tons of files, then listed the file names without endings in the text area et voila - one great big music page http://www.dancingbear.co.uk/music/individual-jingles/ Boring as hell if you are not into advertising, however....
  4. There is no reason that you have to have any hard coded text at all really - if you are creating tabs, for instance, you can have the tab headers as fields, either generated by the page that is supplying the pane content or, if you are using them more globally, from some sort of global settings page. Then you can use multi-language fields quite happily.
  5. To help anyone that takes this on, this is very useful http://stackoverflow.com/questions/11252579/how-can-i-duplicate-pinterest-websites-modal-effect What they are saying is that when you open a lightbox (and it is still just a lightbox type effect, though dynamically loaded), the browser address bar is simply populated with the URL, probably using something like history.pushState. This is probably just one line of code, I think (no expert though!) Pushstate will put the url into the browser bar, but the browser will not load that url; the user has to complete the action by, for instance, clicking in the bar and pressing return. https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history
  6. That is a simple light box functionality or modal window that takes content rather than just an image. There are loads of jquery plugins out there that do it - search for "jquery modal" Here is a very basic one I have just found - haven't tested it! http://leanmodal.finelysliced.com.au/ One note: you need to double check what JQuery you are using - For instance Foundation 5 uses JQuery 2, but not all plugins are working with that.
  7. I doubt it would be that long before we move to TinyMCE 4 which has far more modern styling. That is where a hidden left menu is useful so that you can just bring it in on smaller resolution screens, or even just on everything but the largest, perhaps.
  8. Like the greys When I mess around with colours I often go for greys mixed with certain blue-greys Two colours I like are #6D8CA8 and #4A629C One thing I would look at with this sort of shape is the offcanvas menu from Foundation for the left menu column, http://foundation.zurb.com/docs/components/offcanvas.html
  9. And its a really nice site too!
  10. Yes, the original BBC article is here: http://www.bbc.co.uk/news/technology-18819338 The entire world of internet advertising is, I think, very dodgy. I have had two clients over the last couple of years who I have lost because they moved from traditional advertising to internet advertising. Both have now returned as their internet advertising failed to live up to the hype - these guys were using proper agencies too, not just doing it themselves. The problem is that response does not necessarily turn into sales. Personally, I think a major issue is the company Facebook page. If an advert drags you to a facebook page, you are faced with something that is not unique, has predictable tools and basically, looks pretty much like the competition. Also, any calls to action are relying on live posting (which slides down the page) and the written reaction from other posters. If the advert drags you to a bespoke website that is well designed, it can be stuffed with information, calls to actions, love and honey. Look at it this way. If you were Amazon.xx would you want people to be taken to Facebook or to Amazon?
  11. Just updated my version to Foundation 5.1.1 See notes on original post
  12. I will have a look at that. I use a bit of jquery to test heights of elements within another elements (so divs within divs, for instance) and then set the heights of all divs to the largest one.
  13. I used to play Adventure (original text game) on an old Prime main frame which still had card readers. That was Proper computing!
  14. Yes, simply use a page field in conjunction with ASM and autocomplete (er, I think) and set up parent and child templates for the actual tags - so each tag is a page. If you set the page field to allow the creation of pages, and make sure your parent template can only use one template for children, then as you type it will autosearch for existing tags and if none exist then it will create one on return.
  15. Have you any settings under Max Width in the settings for the image field?
  16. If you were doing this as a crud system without processwire involved, you would do this as two actions - create a rate type (whatever that consisted of) and then use that type. So, do the same thing here. Your rates can be pages which are created under a parent and then can be selected using a page select as part of the repeater. What I am not sure about is how you can do that on an individual basis so that each user has their own selection.
  17. You can create a detailed table of data using a repeat field for each of your "rows" So create a repeater field that has the following fields: 1. Rental Period (season?) 2. Daily Rate 3. Weekly Rate 4. Mothly Rate plus any other options. Now, first of all, loop through them and sort them by rental period. Having done that, loop through those results to display the other fields You can do this ad-infinitum, really. Somewhere on this forum someone helped me with an events list that had to do the same thing (though we had to split the date apart first) First, it looped by year, then by month, then by event. The result was a Year heading, followed by the list of months (only those actually used) and under each month the list of events for the month. Does that help you in the right direction?
  18. There is the difference here that the format dropdown inserts tags where as the styles dropdown inserts styles INTO tags.
  19. Well, much to my surprise I actually found a white ergonomic keyboard in the uk http://www.amazon.co.uk/Perixx-PERIBOARD-512W-Ergonomic-Split-Keyboard/dp/B0076KUTKS/ref=sr_1_2?s=computers&ie=UTF8&qid=1391725524&sr=1-2&keywords=perixx+ergonomic I had been looking for one for years - I like ergonomic, but I hate black keyboards. Really bad when you are a writer trying to churn out 10,000 words. It is a US board, but with some custom keyboard profiles and a cheap pack of sticky labels, I have forced it to be UK
  20. @totoff Not particularly. Unless you are investing in top end solutions like Nuendo and Nuage - but even then, the DAW part of the system is standalone and can run on either Mac or Windows, as far as I know (though they tend to illustrate it with a Mac) The original upsurge in Mac use in audio has two historical events. ProTools , which was originally Sound Designer and ran on Atari, was bought by Avid and developed for the Mac only. Logic (another Atari original as Creator), ran on Mac and Windows till Apple bought it and effectively threw away 50,000 users who were on Windows. The migration to Cubase in Europe was quite spectacular! Also, with many video formats being developed associated with Mac, it made sense to keep them all joined together. But the industry is not so obviously streamlined now and networking between different systems is not the same headache as previously. So people tend to go for the system they like, or the software runs well on. I am on Windows using Cubase at home (and Nuendo at a studio I am still involved with). But my system is not exactly off the shelf with 64mb ram, 6 core intel and 2 TB of SSDs (plus 6 TB of HD). Then there is additional DSP furnished by other boards and interfaces. It can get quite warm in my office when I have it all running! I don't overclock, by the way (which some home users do) - there is absolutely no need (I have never run out of CPU and Ram) and if I really want to fry an egg I have a nice new Smeg cooker downstairs.
  21. Interesting what you said (many months ago) about the media business. On the audio front, though many still err towards Macs, there has been a steady move to windows - ProTools, which used to be Mac only, has now built a very large windows market. And Logic (which was bought by Apple) seems to have lost favour at least in part because they no longer support windows. Part of this is pricing (Macs are very over priced at top levels) but also that you can build some pretty huge PC systems! Mind you, even domestic, lowerpriced PCs can run most software-only DAWS quite happily now.
  22. And yes yes yes! The man is cooking on gas!!!! Got it working.... well, so far. Once I finish I will bung together a quick tutorial together because this is a really complicated JQuery plugin (as far as sliders go) and it might be useful for people to know how to weld it together with PW.
  23. Oh Good It was one of those things that I stared at just a little too long and my head went out of focus .... without any wine as well!
  24. Ah, that is because I am comparing Bootstrap 3 and Foundation 5 - both of which are significantly different from their predecessors (well, particularly Bootstrap)
  25. Not so much a question but just seeing if what I am planning to do makes sense. I need to implement Layerslider on a site. This is a responsive, layered slider with parralax effects and stuff. Each slide can be made up of various images and text, each element being given its own style (which has to be inline) and data info. This is for things like position, transitions, and other stuff. So, what I thought I would do is make up a repeater for each slide element where you can chose the type of element (image or P) and then add the style and data info as required. The repeater would then be added to a page template - each page being a slide. So, under a parent, I would have a pile of pages representing slides, and each page has a repeater that lists the elements of each slide. I would then either just call in the pages directly into the template (just listing through them) or, I would add a page field to whichever template they are going to appear in, and you can choose the slides (er, pages) using ASM. Does that sound about right? Joss
×
×
  • Create New...