Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorbrady
    • CommentTimeJul 27th 2005 edited
     # 1
    /*
    Extension Name: Feed Button in Panel
    Extension Url: http://lussumo.com/docs/
    Description: Adds XML button to the panel
    Version: 1.0
    Author: BJ
    Author Url: http://lussumo.com/docs/
    */

    if (in_array($Context->SelfUrl, array("index.php"))) {

    $Panel->AddList("Feeds");

    $Panel->AddListItem("Feeds", "<img src=\"http://www.scripting.com/images/xml.gif\" border=\"0\" />", "./feeds/?Type=atom", "", $Position = "1", $Attributes = "");

    }
    • CommentAuthorjonezy
    • CommentTimeJul 27th 2005
     # 2
    nice one!

    p.s. - edit your post and set the type to html
    • CommentAuthorbrady
    • CommentTimeJul 27th 2005
     # 3
    I had it html, but the image URL didn't appear.

    *the image url should probably be changed by the user upon installation, so they host their own XML button*
    •  
      CommentAuthorTiffanyA
    • CommentTimeJul 27th 2005
     # 4
    Brady,

    Do you know how to create a link to something external rather than the feed? I need to link my graphic to another web site.

    Thanks,

    -TiffanyA
    http://www.offpricenetwork.com/Vanilla
    •  
      CommentAuthorjsanders
    • CommentTimeJul 27th 2005
     # 5
    if i understand you correctly, you should be able to just modify brady's original code to include an iframe, or just correct the url's to point to the correct address.
    •  
      CommentAuthorTiffanyA
    • CommentTimeJul 27th 2005
     # 6
    I'm trying to add a banner advertisement to the left column.
    This isn't working for me....
    I'm too new to PHP to know if this is proper syntax for a URL.

    CODE:
    ---------------------------------------------------------------
    if (in_array($Context->SelfUrl, array("index.php"))) {

    $Panel->AddList("Sponsors");

    $Panel->AddListItem("Sponsors", "<img src=\"../images/ttw.gif\" border=\"0\" />", "\"http://www.toptenwholesale.com\"", "", $Position = "1", $Attributes = "");

    ---------------------------------------------

    Thanks for any help!!

    -TiffanyA
    •  
      CommentAuthorjsanders
    • CommentTimeJul 27th 2005
     # 7
    $Panel->AddListItem("Sponsors", "", "http://www.toptenwholesale.com", "", $Position = "1", $Attributes = "");

    the difference is your escaping, with the slashes.
    •  
      CommentAuthornifkin
    • CommentTimeJul 27th 2005 edited
     # 8
    something more like this maybe?
    &lt;?php
    if (in_array($Context->SelfUrl, array("index.php"))) {
    $Panel->AddList("Sponsors");
    $Panel->AddListItem("Sponsors", "&lt;img src=\"../images/ttw.gif\" border=\"0\" /&gt;", "http://www.toptenwholesale.com", "", $Position = "1", $Attributes = "");
    }
    ?&gt;
    •  
      CommentAuthornifkin
    • CommentTimeJul 27th 2005
     # 9
    and yes, what jsanders said :)
    • CommentAuthorbrady
    • CommentTimeJul 27th 2005
     # 10
    •  
      CommentAuthorTiffanyA
    • CommentTimeJul 28th 2005
     # 11
    Perfect! THANKS!
Add your comments
    Username Password
  • Format comments as