Quote:
Originally Posted by Spika
Great work!
Works fine in 3.6.5!
My banners are now clickable, and I Have put I forumhome template below $navbar
but I have another question: How I can open the link in a new Window? Where I have put the code?
Thanks in advanced.
|
If you did the changes WarLion pointed, find:
Code:
} else {
$banner = "<a href='".$ban['link']."'><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></a>";
}
and replace to
Code:
} else {
$banner = "<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'></a>";
}
Quote:
Originally Posted by php4ever
I honestly dont see where you add banners. I've searched every single area of the admin cp and cant find a single place to upload images for the banners.
|
Check attached image.
Quote:
Originally Posted by brvheart
I did that and now I get a DB error
MySQL Error : Unknown column 'link' in 'field list'
Error Number : 1054
|
After making the changes pointed by WarLion you have to reinstall the modification with the changed xml.
Quote:
Originally Posted by mescalin
Its a perfect mod thank you..!
I would liketo see code rotating options (for bannerexchanges etc.) in the future releases..
|
Can you explain more please?
And to WarLion: Thanks for helping out
Just one thing: there were no need to create a new field in database (link), since i already had set the 'url' field for future releases. But if it works fine, leave as it is. Thanks a lot for adding the feature