I have a javascript code that when placed in my Main Header creates the following buttons Rider Birthdays, Latest Rider Posts, Recent Rider Post and Recent Rider Threads.
This is the Code:
You can see the buttons here:Code:<script> $(function(){ (function(){ return { init: function(){ var recent = $("a.recent-threads-button"); var recent_threads = recent.clone().attr("href", "/threads/recent").attr("id", "recent-threads-new").html("Recent Rider Threads"); var boards_new_posts = $(".icon img[alt='New Posts']"); var threads_new_posts = $("tr.item.thread.new"); var new_icon = $("<span></span>").attr("class", "new-icon").hide(); if(boards_new_posts.length || threads_new_posts.length){ new_icon.html("New").show(); new_icon.css("position", "relative").css("top", "2px"); } recent_threads.append(new_icon).insertBefore($("#navigation-tree")); recent.clone().attr("href", "/posts/recent").html("Recent Rider Posts").insertBefore($("#navigation-tree")); if (proboards.data("route").name == "home") { var lastUpdated = $(".last-updated > a").attr("href"); recent.clone().attr("href", lastUpdated).html("Latest Rider Post").insertBefore($("#navigation-tree")); recent.clone().attr("href", "/members?dir=asc&sort=name&view=birthdays").html("Rider Birthdays").insertBefore($("#navigation-tree")); }; } }; })().init(); }); </script>
http://itistheride.boards.net/
The Buttons are right under the News Feed which include the Buttons It Is The Ride that is a drop down button and the Home button. Those are standard buttons and I didn't add them.
Now if you scroll down to the bottom right hand corner of the forum right under View Today's Birthdays You'll see a drop down button labeled FRIENDS. The code for it is in the Home Template and is follows:
Also both codes are made so that one has to be a member and logged in to see the buttons. I would like to add the last drop down FRIENDS to the Navigation code and need help doing so. I probably won't have room for all of those buttons and if so I'll just remove the Birthdays Button.Code:{if $[current_user.is_member]} <tr><td><form name="jump"> <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO"> <option value="">Friends</option> <option value=http://thescooterprofessor.proboards.com//>The Scooter Professor Forum</option> <option value=http://itistheride.boards.net/>It Is The Ride Forum</option> <option value=http://scooterrebels.proboards.com/>Scooter Rebels Forum</option> <option value=http://49ccscoot.proboards.com/>49ccScoot Forum</option> <option value=http://trueblueliberty.com/>True Blue Liberty Forum</option> <option value=http://www.dansgaragetalk.com/>Dan's Garage Forum</option> </select></form></br></td></tr> {/if}
Thanks.



Reply With Quote



Bookmarks