Results 1 to 7 of 7

Thread: Add custom block

  1. #1
    Join Date
    Dec 2005
    Posts
    10

    Default Add custom block

    Hi.

    I have a hopefully simple question :-)

    How do I add a new block ?
    I want a block with partner links in left

    I made the HTML and added the code block.partner - but smarty fails

    Thx

  2. #2
    Join Date
    Dec 2005
    Posts
    10

    Default

    Quote Originally Posted by snoezel
    Hi.

    I have a hopefully simple question :-)

    How do I add a new block ?
    I want a block with partner links in left

    I made the HTML and added the code block.partner - but smarty fails

    Thx
    I use V5.0 indexu

  3. #3
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    You must add php code in /blocks/ folder and its template in /themes/theme_name/blocks/ folder.

    The easiest way to learn how to coding block is by copy/paste from other similar block files and change the codes as you requred.

    Perhaps i could help you, how many do you have link partners and how you would like to display them.

  4. #4
    Join Date
    Dec 2005
    Posts
    10

    Default thx

    Quote Originally Posted by dody
    You must add php code in /blocks/ folder and its template in /themes/theme_name/blocks/ folder.

    The easiest way to learn how to coding block is by copy/paste from other similar block files and change the codes as you requred.

    Perhaps i could help you, how many do you have link partners and how you would like to display them.
    Thx, I figured it out, and got it working :-)

    Could you tell me how to ADD a new text field on add_form.html
    I want a field "Suggest category" but I cant get it to send the value, the field
    is added now, but I dont get the input from the field :-(

  5. #5
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    You need to codes php in regular file, such as suggest_category.php.
    Block isn't made for that purpose. It's used to displaying information which you can put everywhere as you wish.

  6. #6
    Join Date
    Dec 2005
    Posts
    10

    Default

    Quote Originally Posted by dody
    You need to codes php in regular file, such as suggest_category.php.
    Block isn't made for that purpose. It's used to displaying information which you can put everywhere as you wish.
    Hi dody.

    I didnt ment a block named "suggest category".
    I ment to ADD a text field on the form, that send the new submissions, but
    I dont get the input from that new added field "Suggest category"

  7. #7
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Please post your html code here

Similar Threads

  1. Replies: 6
    Last Post: 05-06-2006, 06:30 PM
  2. Block Spam Submissions - any hack ?
    By ideavirus in forum v3.2
    Replies: 5
    Last Post: 10-30-2005, 09:00 PM
  3. Custom tag
    By desmond in forum v5.x
    Replies: 4
    Last Post: 12-19-2003, 11:52 AM
  4. Replies: 1
    Last Post: 06-24-2002, 06:23 PM
  5. How to block automatic submit?
    By ahmad in forum v5.x
    Replies: 3
    Last Post: 04-10-2002, 04:16 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
  •