Recent content by Andrew

  1. Andrew

    How to create a plugin

    One last error including this in my global_start.php gives me an error $TMPL['sidebar_1_bottom'] .= $this->do_plugin_skin('./plugins/HomepageTextLinks','text_links_homepage'); PHP Fatal error: Using $this when not in object context in /var/www/html/index.php(156) : eval()'d code on line 3
  2. Andrew

    How to create a plugin

    I used this instead $urlpath = $_SERVER['REQUEST_URI']; if($urlpath == "/" || $urlpath == ""){
  3. Andrew

    How to create a plugin

    So here is my code to display on the homepage only except the first if statement is always evaluated as true on all pages. Any help would be appreciated. I am using the global_start hook. if(empty($FORM['a']) && empty($FORM['app']) && empty($FORM['method']) && empty($FORM['cat'])){...
  4. Andrew

    How to create a plugin

    How would I target a plugin to display only on the homepage?
  5. Andrew

    Random Banner Display and Impression Tracker

    I guess I meant in an automated fashion instead of manually uploading everything.
  6. Andrew

    Limit Display to Homepage

    Is there a way to limit a php include in wrapper.html to display in the homepage only?
  7. Andrew

    Random Banner Display and Impression Tracker

    Yeah, it is just value add for being apart of the site to have free banner impressions for active members. You can also tweak the sql to display premium members only.
  8. Andrew

    Random Banner Display and Impression Tracker

    I built this so we can show customer banners randomly in unfilled ad space. It calls the random_banner.php via iframe which we embedded into the ad_break.html We added a integer column to the sites table called bannerimpressions to track the total number of impressions a free banner gets. We...
  9. Andrew

    Working On It Add BASE URL Variable in CONFIG to support CDN

    Hello, I would like to request the addition of URL variables for all JS, Skin Files, and Screenshots so that we can easily implement a CDN like MaxCDN to serve static files. For example <script type="text/javascript" src="{$JS_URL}/js/jquery-1.4.4.min.js"></script> Then in the config we...
  10. Andrew

    BUG - sources/admin/edit.php

    In the source/admin/edit.php towards the very end of the file - there is a redirect URL after the form is processed header("refresh:1; url={$TMPL['list_url']}/index.php?a=admin&b=edit&u={$TMPL['owner']}"); Should that be header("refresh:1...
Top