Jump to content

Marty Walker

Members
  • Posts

    629
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Marty Walker

  1. @steve - Cheers - no rush at all. Kind of a side point: I have a YOURLS setup on a short domain that I use through my twitter account which gives me short links like: http://stlmv.in/4l. I'm not a fan of 3rd party url shorteners because there's no guarantee they'll bee around in the future. YOURLS just works. Perhaps I'll sponsor a module that can automatically create a shortened URL from your YOURLS install. The API is here if anyone is interested: http://yourls.org/#API. And other side point is that some of my web clients actually print newsletters (crazy, I know) and reference urls in them. Having shorter urls makes that easier. @antti: Oh yeah. I never thought to use it like that! Regards Marty
  2. Hey Steve, Could the full_link field be changed to a Page type? I have a site with some really long urls and it'd be a cinch to create short url links with this. Regards Marty
  3. While you're at it could you lose the 'loading' overlay that shows up on mobile devices. Sometimes it sticks and doesn't go away.
  4. Hi everyone, A wee site for dream2beats who believe that music can change your life. I subscribe to this idea given that I have my headphones on all day. http://www.dream2beats.com/ Regards Marty PS: This is the first time I've built a blog with categories from scratch in PW so a big thanks to everyone who helped out here.
  5. Nice and clean! You might want to think about using smaller images for your thumbnails. It might speed load times up.
  6. Yes it does from what I can see.
  7. I got it: <?php if($page->comments->count() > 0) { echo "something"; }
  8. Hi, Is there a way to check if any comments have been posted on a page? I've tried this is no avail: <?php if($page->comments) { echo "something"; } Regards Marty
  9. Thanks again Antti. That pointed me in the right direction. I ended up with: <?php if($cat->name == $input->urlSegment2) echo " class='current'"; Regards Marty
  10. One more thing to finish this off would be to ask how I would go about highlighting the current category. Regards Marty
  11. What a lovely gesture by Michael. Thanks Michael! I might get some t-shirts printed up. And if anyone has the need to print an iPhone case (example) /tshirt etc these guys do them: http://www.redbubble.com.au/
  12. Ahhhh! I've got it now. Thanks for the explanation. Regards Marty
  13. Excellent. Thank you! I modified it a little and it works how I want it to. Noob question: One line I don't get is this one: <? if($withThisCat->count() > 0) ?> Why does it not echo a category multiple times? Regards Marty
  14. Hi Antti, My page tree goes like this: -Notes -- post -- post -- post - Categories -- Notes --- Design --- Development --- etc But if I loop through the categories instead how do I list only the categories that are contained in posts? Regards Marty
  15. Hi, I've nearly got my coded worked out in setting up a basic blog-style categories system. I'm stuck on how to pull a list of categories into my sidebar. My category Page tree is setup thusly: - Categories -- Notes --- Design --- Development --- etc This is what I have so far: <?php $cat = $pages->get("/notes/")->find("template=notes, sort=-sort, publish_date<$today"); foreach ($cat as $category) { echo "<p><a href='{$page->path}categories/{$category->note_category->name}'>{$category->note_category->title}</a></p>"; } ?> ... which pulls the category names and links correctly. But if I've assigned a category to multiple articles (which I would) I get duplicate category links like this: Design Design Design Development + some empty lines How do I limit for eg, my Design category to just one? Or do I need to approach this differently? Thanks & regards Marty
  16. I used to get clients to do it themselves but sometimes they forget. Now I do it automatically with a PHP script and cron job that copies all files and databases over to AmazonS3. There's a few like that around.
  17. Although my posts to this forum would suggest otherwise, I'm really not that clever. That's why. Can you expand on this please? Regards Marty
  18. Thank you both. @vitor I think those settings are just overrides. It might be that I'm working on a subdomain but I had to hard-code the path into the main .js file. Regards Marty
  19. Hi everyone, I'm not if this is a PW problem or not so bear with me. I've got UbaPlayer working nicely with PW on a project. So far i works well on Safari Mac but I'm having an issue with getting it working right on Mac Firefox. I test up a 2 tests pages with the same code. First is the UberPlayer demo: http://d2b.clientsite2.net.au/ubaplayer/ - works on Mac Safari and FF. ... and this is the same code sitting in a PW template: http://d2b.clientsite2.net.au/test/ - works on Mac Safari but NOT FF. I can't work out why. If anyone has the slightest clue I'd be very grateful. Regards Marty
  20. I sometimes get that error although not on a Litespeed-based server. I've clicked through it and it goes away.
  21. Even though I'm in Australia I have a VPS with KnownHost in the US (VPS hosting in Australia is a compete rip off). They're support is excellent. Regards Marty
  22. Hi everyone, Here's a site for Bettina Guthridge, a talented book illustrator from Melbourne. http://bookillustrator.com.au/ Regards Marty
  23. Hey Ryan, Is there a ETA for the launch of this? Regards Marty
×
×
  • Create New...