vForums Support :: Programming & Coding :: Code Requests & Support :: [Request] Happy Birthday in news fader - View Topic
 |  |
| Nick Very Senior Member
    
![[Avatar]](http://uploads.vforums.co.uk/forums/support/f_5e7b1402b305d883af97446b2fedc6c2_1-eog.jpeg) Posts: 3,013 Status: Offline Gender: Male Location: vForums Age: 35 Joined:
pmwww | [Request] Happy Birthday in news fader (27th Jan 08 at 2:10am UTC) | | Im requesting, a Happy Birthday thing in the news fader, just like the code, that says. Welcome to new member [user]
Darkmage | |
| Ross Administrator
    
![[Avatar]](http://uploads.virtualforums.co.uk/forums/pokemon/vforums-qr1.png) Posts: 3,709 Status: Offline Gender: Male Age: 9 1⁄4 Joined:
Additional Groups: Support Team
  
pmwwwgtalkvForum | Re: [Request] Happy Birthday in news fader (31st Jan 08 at 10:01am UTC) | |  Code: JavaScript - <script type="text/javascript">
- <!--
- /* Show Todays Birthdays in the News Fader - Open Source */
- if(bdays = get('birthdays', ID)) {
- var birthdays = bdays.getElementsByTagName('div').item(0).innerHTML;
- } else {
- var birthdays = "<i>Nobody</i>";
- }
- if("undefined" != typeof news) {
- for(n=0; n<news.length; n++) {
- news[n] = news[n].replace(/\[birthdays\]/, birthdays);
- }
- }
- else if(get('forum_news', ID)) {
- news_table = get('forum_news', ID);
- news_table.innerHTML = news_table.innerHTML.replace(/\[birthdays\]/, birthdays);
- }
- //-->
- </script>
Place that in the main footer. Then place [birthdays] in the news fader to display the birthdays | |
|
| |
 |  |
|