UBB.Dev
Posted By: DarkFormula Now for a Java question - 12/17/2004 12:41 AM
I'm trying to add a java billboard to my UBB at the top. I've placed it in the header, and conversely, into the header insert.

Now, the banner shows up. But the Java will not load, and the banner stays blank. Any reason why the Java won't load? I've tried adding "Java Script" tags to boot the banner, but that doesn't work.


Thanks smile
Posted By: Charles Capps Re: Now for a Java question - 12/17/2004 12:57 AM
URL to the board in question? We'd need to see it to diagnose the problem.

Do note that putting a Java applet at the top of every page is not likely to win you any friends in your community. Java frequently slows down page loading time.
Posted By: DarkFormula Re: Now for a Java question - 12/17/2004 1:24 AM
http://www.cofba.org/cgi-bin/ultimatebb.cgi

Now, there's one integrated to /messageboard in the HTML. However, I'd like to have this same banner actually in the UBB itself so people can't bypass the banner by going straight to /cgi-bin/ultimatebb.cgi.

As for the loading, the banner has been there for years embedded into the HTML. No complaints yet smile
Posted By: Charles Capps Re: Now for a Java question - 12/17/2004 2:40 AM
The frameset is actually a better solution here, because it won't involve loading the applet on every page load. If users are bypassing it, it's probably for good reason.

Perhaps you should look at using a normal banner system instead of the Java dynamic thing. It would be less annoying to the users.

As for getting the applet working... you'd just need to use the full URLs to everything in the paramaters. For example, instead of "images/whatever.gif", it would need to be "/messageboard/images/whatever.gif", or whatever the real URLs would end up being.

Do the same for the URL to the .class file and/or the classpath. That should do the trick. But it's still a bad idea.
Posted By: DarkFormula Re: Now for a Java question - 12/17/2004 11:21 AM
I was missing the source URL to the .class and .js files.

What do you mean by a "normal banner system"? Is this something that will work like the Java, but not involve the load time (but still be integrated into UBB without using a seperate frameset)?
Posted By: Charles Capps Re: Now for a Java question - 12/17/2004 10:38 PM
I mean a normal, HTML-based banner package... for example, phpMyAds. You'd just put a bit of Javascript in the header, and it will call the script and it will include the banner image.

No need for a slow-loading Java applet.
Posted By: 1QuickSI Re: Now for a Java question - 12/18/2004 12:55 AM
phpAdsNew
Posted By: Gizmo Re: Now for a Java question - 12/18/2004 2:26 AM
I like PHPAdsNew, it's a very nice system
© UBB.Developers