Results 1 to 5 of 5

Thread: plugin drives me crazy

  1. #1
    Join Date
    Mar 2007
    Posts
    26

    Default plugin drives me crazy

    Hi there,

    I'm familiar with php and I wrote plugins for other software, too. But writing a plugin for indexu drives me crazy

    When I activate the plugin, I always got a whole page of "������x�]�s۸����+pj{�u...."

    Even when the plugin only contains:
    Code:
    <?
    /*
    	Plugin name: 	Foo Bar
    */
    ?>
    any ideas?

    regards
    Paps

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    No clue, but all plugins typically start off the same way.

    First comes this line which sets where the plugin menu will appear and the path to the plugin menu
    $plug->SetHtmlHook

    Next up is usually this line, which starts to detail the functions of the plugin
    function

    Each plugin also requires templates to display properly. If there is no template I'm sure this wil lcause IndexU to freak out. That's probably why you're seeing the issue.

  3. #3
    Join Date
    Mar 2007
    Posts
    26

    Default

    - edit -
    outsourced the html parts. now it works but I still dont know where the error was...


    - original -
    sound's logical.
    I've added some html code in the plugin.php. Maybe thats the point.

    I'll write you an pm with the souce, instead of posting the code here because it's a plugin like some other paid plugins.

    Maybe you'll have a look on it and you will say: what an idiot...
    Last edited by Paps; 04-24-2009 at 03:20 PM. Reason: I am an idiot

  4. #4
    Join Date
    Apr 2009
    Posts
    5

    Default

    hello all,

    reference my experience, after install or modify source code, specially the templates, you should clear_template_cache.
    because the template is loaded from cache (template_c) "smarty style".

    that is just information for plugin in indexu.

  5. #5
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by simplebrain View Post
    hello all,

    reference my experience, after install or modify source code, specially the templates, you should clear_template_cache.
    because the template is loaded from cache (template_c) "smarty style".

    that is just information for plugin in indexu.
    Good point!

    It should be a general rule of thumb that if you make any changes to the site ( template related or code related ) that you clear the /template_c folder
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. Do you use the VB plugin?
    By Bruceper in forum Customers Lounge
    Replies: 16
    Last Post: 03-13-2009, 12:47 AM
  2. Need help with new plugin
    By mpdaddy in forum Plugins
    Replies: 10
    Last Post: 02-04-2009, 04:00 AM
  3. Problem with WP Plugin
    By misingshot in forum INDEXU DELUXE v1.x
    Replies: 10
    Last Post: 01-18-2009, 07:58 PM
  4. Plugin HELP
    By Rockyuk in forum INDEXU DELUXE v1.x
    Replies: 3
    Last Post: 01-01-2009, 11:59 AM
  5. crazy
    By fattymen in forum Templates
    Replies: 7
    Last Post: 02-05-2006, 06:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •