Quote:
Originally Posted by ShackMaster
I'm not able to get this to work, either with a single banner or with the script for random banners.
Instead of placing the $add_banner in Forumdisplay and Showthread, could it be added in the Navbar template?
|
Yes you can but it will only show the banner image on forumdisplay and show thread.
EX:
On the forumdisplay:
Code:
$search_text = '$navbar';
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace($search_text,
$search_text.fetch_template('add_banner'), $vbulletin->templatecache['FORUMDISPLAY']);
This looks @ the template FORUMDISPLAY for
$navbar and if found it places the content of add_banner under it. If you have a custom style that has removed $navbar there is a option to place $add_banner.
Quote:
Originally Posted by Replicators
What don't make sense is the 3.5.x version works just fine for the 3.6, so whats the sense in a update?
|
Many do not look in old 3.5 area.
Quote:
Originally Posted by firstrebel
Installed then uninstalled, for a few reasons.
1] Could not get it to work, just got red X's, in fact got 2 red x's, and I had 5 image files in the scripts. Tried full URL and relative URL.
2] Putting this in each forum is a bit of a long job as I have 40+ forums and I could not get it to work on the forum homepage at all. I would have thought putting the code in the navbar template would be better, then they appear in forumhome and all other forums. I tried that but that didn't work either.
I am obviously doing something wrong, but what. One thing I can't work out is
Code:
href='http://www.yoursite1.com'
href='http://www.yoursite2.com'
what do I put if it's all on one site.
Bob
|
Take a look: Google image, Google News, Froogle
Code:
<script language="javascript" type="text/javascript">
<!--
function banner() {
};
banner = new banner();
number = 0;
// bannerArray
banner[number++] = "<a href='http://www.google.com/' target='_blank'><img src='http://www.google.com/intl/en_ALL/images/logo.gif' alt='' border='0' /></a>"
banner[number++] = "<a href='http://news.google.com/' target='_blank'><img src='http://news.google.com/images/news.gif' alt='' border='0' /></a>"
banner[number++] = "<a href='http://froogle.google.com/' target='_blank'><img src='http://froogle.google.com/froogle/intl/en_us/images/froogle_110tall.gif' alt='' border='0' /></a>"
// keep adding items above here...
increment = Math.floor(Math.random() * number);
document.write(banner[increment]);
//-->
</script>