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
[CODE] Auto-Default Sig for New Members; By Verminox
Topic Started: Jan 25 2010, 10:55 AM (105 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Verminox
[CODE
 
Auto-Default Sig for New Members]What this code does: Title is self-explanatory.

Code:
 
<script>
/*
Auto-Default Sig for New Members
by Verminox
of iFusion - http://forum.ifcode.com
*/

var boardurl = "http://s15.invisionfree.com/Verminox_Codes/index.php"
var newsig = "[b]My Signature[/b]"

if(document.forms['REG'])
document.forms['REG'].onsubmit = function()
{
if(!Validate())
return false
document.cookie = "newMember=1; expires=" + new Date("1/1/2010")
return true
}

function siggy(){
window.frames['sig'].document.forms['REPLIER'].Post.value = newsig
window.frames['sig'].document.forms['REPLIER'].submit()
document.cookie = "newMember=0; expires=" + new Date()
}

ulinks = document.getElementById("userlinks")

if(ulinks.innerHTML.match("Logged in") && document.cookie.match("newMember=1")){
document.write('<iframe src="' + boardurl + '?act=UserCP&CODE=22" name="sig" onload="siggy()" height="0" width="0" border="0"></iframe>')
}
</script>


Goes in Footers.

Change the following:

Code:
 
var boardurl = "http://s15.invisionfree.com/Verminox_Codes/index.php"
var newsig = "[b]My Signature[/b]"


Change var boardurl to your Board URL.

Change var newsig to the contents of your new signature.

For var newsig just remember the following:

  • For new lines do not press enter and type a new line. Simply type: \n (a slash followed by the letter n). This will convert to a new line for the sig.
  • All BBTags can be used. HTML cannot be used.
  • Do not use double quotation marks ( " ) inside. If you want to use double quotations, simply type \" (that is, a slash followed by the quotations). This will convert it into normal quotations.


Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply