![]() |
My first hack, a humble contribution in case anyone has a use for it.
Purpose: Encourage new members to post. Eventually will be used to run contests, promotions, etc. What it does: When a member posts a new message, the main forum page will display a flying animation. For our diet forum, the "whoosh fairy" was appropriate (and cute). The user will see this animation until someone else posts to that forum. In terms of rules: If the user is the last poster in any forum that is "on" the animation will show. Can be easily modified to be more complex, but as a new forum, I hope it encourages participation. Note: Can't figure why it doesn't work for Netscape. If you find the bug, please post here. Needed files: animate.js from tutorial at: http://www.webreference.com/js/column18/index.html -- One php file to edit index.php Find: $lastposter="by $forum[lastposter]"; Add below: Code:
//myhack eval("echo dovars(\"".gettemplate("forumhome")."\");"); Add above it: Code:
//myhack Code:
<DIV id=whoosh $greeting That's it. Edited: Changed $username to $bbusername [Edited by tamarian on 12-03-2000 at 11:22 PM] |
The reason why it doesn't work for Netscape is because it's DHTML, and a lot of DHTML is not supported by NN, btw I think it would be a better idea to have a flash animation of some sort, but I liked the hack, good job!
|
BTW I created an account for test purposes called guest, so people can test it with out having register:
Account infor for tests: Username: guest Password: guest |
I just tested it, and I'm sorry man but I found it very annoying, especially on a large board!
|
Quote:
Keep in mind, if you use this account, you have to delete previous recent messages by guest. If the test forum has guest as last poster and the lightbulb is "on" the animation will occur without any new post. |
Quote:
If the frequency is annoying, add a randomizer to the js scricp, something like: var cur=Math.round(19*Math.random()); function start() { if (cur>=17){ If the animation itself is annoying, find another one :) This particular animation is very relavent to our members, and they loved it. |
All times are GMT. The time now is 09:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|