Jump to content

Night Attack


t2t2
 Share

Recommended Posts

Hello guys, long time listener, first time caller (or something like that)

Night Attack is the new independant version of the NSFW show podcast hosted by Brian Brushwood and Justin Robert Young. And I'm sure you'll all be happy to hear it's powered by ProccessWire.

LxPD7ful.jpg

The quick feature list:

  • Processwire 2.4.0, nginx + php 5.5.9 with cloudflare in the front
  • Includes 3 different quality podcast feeds (all based on the data on episode pages)
  • Uses the alternate template filename for render, wrapper has this at the top:
    // Get the page content
    ob_start();
    include "{$page->template}.php";
    $content = ob_get_clean();
    

    and then content is output with <?= $content; ?>. This way the templates can even be just html

  • Made in less than a week (might had started 4~5 days before going live, can't remember)
  • Modules: AIOM+, Page Edit Soft Lock, Piwik Analytics and a custom module to ensure rss feeds have correct content type when cached

I mainly focused on the code side while the design was done by sebgonz.

  • Like 12
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Hi t2t2

You can also do this:

Uses the alternate template filename for render, wrapper has this at the top:

  • // Get the page content
    ob_start();
    include "{$page->template}.php";
    $content = ob_get_clean();
    

    and then content is output with <?= $content; ?>. This way the templates can even be just html

like this if you like:

$t = new TemplateFile("/path/to/your/template.php");
echo $t->render();
  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...