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

XF 1.2 Does Xenforo have "plugins" like VB?

Discussion in 'Styling and Customization Questions' started by WoodiE, Jan 21, 2014.

  1. WoodiE

    WoodiE Well-Known Member

    Maybe I'm overlooking it, but does Xenforo use "plugins" like vBulletin (admincp > Plugins & Products > Plugin Manager) does?

    I ask because I have a plugin I made that I use to display banners of sponsors on my website.

    $image[0]['src'] = 'http://www.mydomain.com/banner/ad1.jpg';
    $image[0]['link'] = 'http://www.sponsor1.com';
    $image[0]['title'] = 'Sponsor 1';
    $image[1]['src'] = 'http://www.mydomain.com/banner/ad2.jpg';
    $image[1]['link'] = 'http://www.sponsor2.com';
    $image[1]['title'] = 'Sponsor 2';
    $image[2]['src'] = 'http://www.mydomain.com/banner/ad3.jpg';
    $image[2]['link'] = 'http://www.sponsor3.com';
    $image[2]['title'] = 'Sponsor 3';
    shuffle( $image );
    $rand125 = '';
    foreach( $image as $arr )
      $rand125 .= '<a href="' . $arr['link'] . '" title="' . $arr['title'] . '" rel="nofollow" target="_blank"><img src="' . $arr['src'] . '" alt="' . $arr['title'] . '" width="125px" height="125px"></a>';
    With this plugin on my vB forum I simply then go to the template I want and have it display "rand125" and my advertisements are there.

    Does Xenforo offer this same ability and if so where?

  2. James

    James Well-Known Member

    Yes, search for code event listeners and add-ons.

Share This Page