We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Extend user options.; v0.2; By CastilleV
Topic Started: Jan 23 2010, 12:46 AM (109 Views)
Reid
Member Avatar
È una trappola!

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.
PreviewHere
Author: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>
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply