|
Reid
|
Jan 23 2010, 12:46 AM
Post #1
|
È una trappola!
- Posts:
- 6,767
- Group:
- Developer
- Member
- #223,645
- Joined:
- October 30, 2006
- I'm Browsing With
- Firefox
|
This topic has been moved from our official support board.
Originally posted by: CastilleV - Extend user options.; v0.2
-
Was made for [Filtered], but It can be used on IF. PreviewHereAuthor:CastilleV description: This code allows users to do certain things that IPB does not let them do, how ever this is my first time using JS functions, so things may be a little buggy! And this is a new style of coding for me. Place this under - Code:
-
<% NAVIGATION %>
- Code:
-
<script type="text/javascript"> //Member options for invision power board //Created by CastilleV of JFB //For a series conversion please contact me at CastilleV@gmail.com if (location.href.match("act=UserCP&CODE=00")){ function change() { alert("The title has been successfully changed!") document.title="Your title here"; } function showdate(){ var d =Date() alert(d) } function hide() { alert("The sub-menu is now hidden!") document.getElementById("submenu").innerHTML="<div id='submenu' style='display:none;'>_</div>"; } function not_installed() { alert("this function has not been installed in this version! ") alert("Please wait til the next version release!") } function version_check() { document.title="Version check"; alert("You are using version 0.2.") alert("Some new features have been installed") alert("There are no new releases yet.") } function addcomment(){ document.getElementById("commentbox").innerHTML="<textarea>leave comment here!<</textarea><button type='button' value='submit'>Submit</button>"; alert("Sorry, but the comment system has been turned off!") } var useroptions ="<div class='maintitle' align='center'>User Options (extended)</div><ul><li><div id='functionsrow'><button type='button' onclick='change()'>Change title!</button> <button type='button' onclick='hide()'>Click to hide sub-menu!</button> <button type='button' onclick='not_installed()'>Change name colour!</button> <button type='button' onclick='showdate()'>Date check</button> <button type='button' onclick='version_check()'>Check version number?</button></li></ul><div class='pformstrip' align='center'>© 2008 -<a href='mailto:CastilleV@gmail.com'>Contact us!?</a></div><span id='commentbox' onclick='addcomment()'>Leave a comment if you like!</span>" document.write(useroptions); } </script>
|