Results 1 to 4 of 4

Thread: Hooks and Smarty

  1. #1
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default Hooks and Smarty

    Hi,

    1- When adding a block or new page do I have to add a "hook_html_....." some where in the SMARTY file as well so I do not get the following error message?

    Warning: Smarty error: [in cp/sidebar1.html line 23]: syntax error: custom function 'block_suppliers_section' is not implemented (Smarty_Compiler.class.php, line 794) in /home/wedonly/public_html/lib/smarty/Smarty.class.php on line 1088

    What is this error any way?

    2- How can I use the Hooktester Plugin?

    Many thanks in advance
    Mitchell

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

    Default

    I'll let Dody answer these questions.

    As far as I understand if it is not a new hook then nothing should need to be added. If it is a new hook then I'm sure you need to specify it somewhere, otherwise hwo is the script supposed to konwwhatthe new hook is for?

  3. #3
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    that error is because you made a block call to a block that you havent created (not uploaded the php file for) or, have uploaded the php file but didnt change the function name.

    It has nothing to do with hooks, you hae no reason to add or move the hooks - they are just around so those making plugins can choose where something is executed or displayed - most of them arent even used.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  4. #4
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Thank you, great help. It was the function in the PHP file I forgot to change
    function block_information($params)
    Last edited by Mitchell; 05-08-2008 at 12:09 AM.

Similar Threads

  1. Smarty update
    By Antony in forum v5.x
    Replies: 6
    Last Post: 01-18-2008, 11:38 AM
  2. Any Smarty templates available?
    By yorweb in forum Templates
    Replies: 1
    Last Post: 10-04-2007, 09:43 AM
  3. Smarty AND/OR
    By beto in forum v5.x
    Replies: 2
    Last Post: 12-18-2006, 04:29 AM
  4. Smarty error
    By baggiho in forum v5.x
    Replies: 7
    Last Post: 06-17-2006, 05:24 PM
  5. Smarty Errors
    By kevinrstruck in forum v5.x
    Replies: 2
    Last Post: 04-02-2006, 05:55 PM

Posting Permissions

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