I originally posted this at Infopop, and Josh suggested I post it over here instead:
In ubb.classic, my members could add to their signatures countdown timers showing the amount of time left until their vacations. Since the move to ubb.threads, they cannot -- I think it has to do with the "unsecure" characters in their old countdown timer URLs. Has anyone figured out how to allow countdown timers to ubb.threads posts and signatures, without also allowing HTML? Could it be done with Javascript in the generic header and a non-HTML call to that in a post? Could a modification be written to do this? Any ideas are much appreciated!
Jennifer if this was a custom ubbcode you could attach the REGEX here and I am sure someone here could look and give it a whirl.
I have some ideas just like Josh but it would be nice to see the regex that was being used. This is the actual addin UBBCODE insert for the code you inserted to have the code.
Thanks, but I need to do this without allowing HTML in the posts or signatures. Unless I'm mistaken, the attached scripts would need HTML enabled. I'd like to just do it with UBBcode. Is that possible? This was never a custom ubbcode -- previously our members were linking to another site that provided graphical countdown counters. That site is going offline and the URLs don't work in UBB.threads anyway.
OK - I thought about taking the UBBCode route with this, and it was pretty complex. Not the creation of it, but the editing of it etc. And I hated to "open up" any direct javascript doors.
Plus in reading some of the boards you sent me too, alot of people had trouble getting the exact date/time syntax of the timer right and got frustrated. I wanted this to be user friendly.
So I took a different route. I created a new field in the database (U_Timer) and users can create their timer, which will display below their signature, when they edit their profile, easily selecting dates and times from pull down menus. So there's no confusion with "how" to create the timer.
Users who turn off their ability to see other signatures in their display prefs will not see the timers. So if the javascript annoys anyone, they can turn them off with the sigs.
I've written this up for UBB.Threads 6.3 although I suspect the instructions will be very similar for 6.4 (I'll be testing myself soon) and I've posted the mod here:
I'd like to put a java count down clock in my generic footer. The countdown.class works fine on any page, except the footer. I tried placing the files in the main www, ubbthreads, includes directory's, with no go
If the java you need has a header insert code then maybe the problem is that it is in the wrong footer file. Try appending the code to the bottom of ubbt_footer.php instead of footer.php.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.