1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add widgets in top of the forum

Discussion in 'XenForo Development Discussions' started by tocheli, Sep 17, 2013.

  1. tocheli

    tocheli Member

    Hi. I migrated my forum from vb4 to xf. in vb4 i made a lot of adaptions.
    What i want do do first ist to add 3 blocks below the menu as you can see here:
    Jasc Paint Shop Pro - Image1_2013-09-17_18-56-10.png
    In this blocks i like to show some announcements generated with a php functionthat gets the html code to show a image ( showLatestPic() ).
    how is the concept to hook in my php functions? where i have to place this function call?
    thanks for help!
  2. Jeremy

    Jeremy Well-Known Member

    Is this happening everywhere or only on the forum index?
  3. tocheli

    tocheli Member

  4. tocheli

    tocheli Member

    ok, code will be generated, but not shown on page :(

    if i place the code into the footer template (just for testing):
    <xen:callback class="HiTe_SimpleCallback" method="getSimpleOutput">XenForo ist cool</xen:callback>
    that generates this html code who looks correct in my opinion:
    <a target="_blank" href="http://www.maximum-surf.de"><img src="http://www.surfbasar.ch/forum/data/hite/images/65_88_maximum-surf2_468x60.gif" alt="Klick auf das Banner um zu der Homepage zu gelangen" title="Klick auf das Banner um zu der Homepage zu gelangen" border="0" width="468" height="58"></a>
    do i need to enhance also the footer.css to show the banner correct?

    this is the banner i like th show:
    Last edited: Sep 18, 2013
  5. Nobita.Kun

    Nobita.Kun Well-Known Member

    I don't using callback but i recommend you should use Template Hook for that :) This is simply to way
  6. Digital Doctor

    Digital Doctor Well-Known Member

  7. tocheli

    tocheli Member

    adblock plus blocked de banner....
    adblock plus deactivated and it works perfekt!
    Last edited by a moderator: Sep 19, 2013

Share This Page