callback widget put item in wrong place. oops.

Discussion in '[bd] Widget Framework' started by drastic, Apr 11, 2015.

  1. drastic

    drastic New Member

    I used the callback widget and selected it to appear in "all" for the sidebar.

    It placed the item on the top of the site instead. Anyone know how to fix that? dafuq.jpg
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    What is the HTML output of that callback?
     
  3. drastic

    drastic New Member

    a list of 10 links separated by a < br >
     
  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Can you post the exact output HTML here?
     
  5. drastic

    drastic New Member

    Sure. the same callback works fine in regular templates, just not the sidebar widget where I preferred it.

    this is in the library:
    Code:
    <?php
    
    class TE3_toplists_index
    {
        public static function getHtml()
        {
            include("/home/celebcra/public_html/crankers.com/trades/toplist/top10.html");
        }
    }
    
    ?>
    This is in top10.html
    Code:
    <a href="http://www.leenks.com" target="_blank">Leenks</a><br>
    
    <a href="http://www.ehowa.com" target="_blank">EHOWA (18+)</a><br>
    
    <a href="http://drastic99.hostedgalleries.me/" target="_blank">My Galleries</a><br>
    
    <a href="http://www.destinychat.com" target="_blank">Destiny Chat</a><br>
    
    <a href='/trades/signup.php' target='_blank'>Add your site!</a><br>
    
    <a href='/trades/signup.php' target='_blank'>Add your site!</a><br>
    
    <a href='/trades/signup.php' target='_blank'>Add your site!</a><br>
    
    <a href='/trades/signup.php' target='_blank'>Add your site!</a><br>
    
    <a href='/trades/signup.php' target='_blank'>Add your site!</a><br>
    
    <a href='/trades/signup.php' target='_blank'>Add your site!</a>
     
Loading...