Quick note for ppl that want the banner to open in a new window.
In product-rotator.xml:
Replace:
Code:
} else {
$banner = "<center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center>";
}
Replace with:
Code:
} else {
$banner = "<center><a href='".$ban['link']."' target='_blank'><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0' target='_blank'></a></center>";
}
or
In the plugin "Banner Rotator Generator" after its installed:
Replace:
Code:
} else {
$banner = "<center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center>";
}
Replace with:
Code:
} else {
$banner = "<center><a href='".$ban['link']."' target='_blank'><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0' target='_blank'></a></center>";
}
Also i'd like to thank both andrefedalto (for the addon) & warlion (for the modification)
Note:
Warlion removed the center tags, i added them back, if you dont want the banner to automagically center, remove the center tags from the code.
Anthony