Post by Aaron on Oct 9, 2004 1:12:22 GMT
Hi-Tech Welcome Table v.1
Some of you may know of the Hi-Tech Mini-Profile code.. well I'm sorry to say, but I probably won't be making another version for a long time.. Since I haven't made a code in a couple months, I decided to make a welcome table. So here it is:
TOP OF MAIN HEADER:
<script type="text/javascript">
<!--
/*
Hi-Tech Welcome Table v.1
Created by Naruto
hatakeforum.proboards30.com/index.cgi
This code cannot be posted without the creator's permission
*/
// Guest Notice
var GuestMsg = "Naruto Test Offers free graphics, tutorials, scripts, and a whole lot more";
// News - Remember ' has to be \'
var News = "This is where you put any news you want.";
// Width of Welcome Table
TableWidth = "710";
var TD = document.getElementsByTagName("TD");
if(TD[1].innerHTML.match(/« (.+?) »/i)) {
var Page = RegExp.$1
}
if(TD[2].innerHTML.match(/Hey, (.+?),/i)) {
var Username = RegExp.$1
}
if(TD[2].innerHTML.match(/action=im">(\d+) /i)) {
var TotalPM = RegExp.$1
}
if(TD[2].innerHTML.match(/<\/a>, (\d+) /i)) {
var NewPM = RegExp.$1
}
if(TD[5].innerHTML.match(/profile&username=(.+?)">/i)) {
var profilename = RegExp.$1
}
if(TD[5].innerHTML.match(/admin/i)) {
var CP = "<a href=\"index.cgi?action=admin\">Admin CP</a>";
} else {
var CP = '<a href="index.cgi?action=profile&username='+profilename+'">User CP</a>';
}
var Date = TD[2].getElementsByTagName("Font")[0].innerHTML.split(/<br>/i)[1];
if(location.href.match(/(com\/|com|index.cgi|logout|login2|search|calendar)$/i)){
if(TD[2].innerHTML.match("Welcome Guest")){
document.write('<div align="center"><table class="bordercolor" width="'+TableWidth+'" cellspacing="0" cellpadding="0" bgcolor="000000" border="0" style="position: relative; top: 14px;"><tr><td><table width="100%" cellpadding="4" cellspacing="1"><tr><td class="titlebg" align="center" colspan="3"><font color="000000" size="2"><b>Welcome</b></font></td></tr><tr><td width="65%" valign="top" class="windowbg">Welcome Guest ( <a href="index.cgi?action=login">Login</a> | <a href="index.cgi?action=register">Register</a> )<br /><br /><font size="1">'+GuestMsg+'</font></td><td width="35%" valign="top" class="windowbg2"><font size="1">You must login to use our PM feature.</font></td></tr></table></td></tr></table></div>');
} else {
document.write('<div align="center"><table class="bordercolor" width="'+TableWidth+'" cellspacing="0" cellpadding="0" bgcolor="000000" border="0" style="position: relative; top: 14px;"><tr><td><table width="100%" cellpadding="4" cellspacing="1"><tr><td class="titlebg" align="center" colspan="3"><font color="000000" size="2"><b>Welcome</b></font></td></tr><tr><td width="65%" valign="top" class="windowbg"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" align="left">Welcome back '+Username+'.</td><td valign="top" align="right"><font size="1">'+Date+'</font></td></tr></table><table width="85%" cellpadding="3" cellspacing="3" border="0"><tr><td><font size="1">'+News+'</font></td></tr></table><center><font size="1"><a href="index.cgi?action=markallboardsread">Mark Boards as Read</a> | <a href="index.cgi?action=mlstaff">View Forum Leaders</a> | <a href="index.cgi?action=mltop">Top 20 Posters</a> | '+CP+'</font></center></td><td width="35%" valign="top" class="windowbg2"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left"><font size="1">Total PMs: '+TotalPM+' - New: <a href="index.cgi?action=im">'+NewPM+'</a><br /></font></td><td align="right"><font size="1">[ <a href="index.cgi?action=imsend">Send a PM</a> ]</font></td></tr></table><hr class="hr" size="1"><font size="1">Current Location: '+Page+'</font></td></tr></table></td></tr></table></div>');
}}
//-->
</script>
TOP OF MAIN FOOTER:
<script type="text/javascript">
<!--
/*
Hi-Tech Welcome Table v.1
Created by Naruto
hatakeforum.proboards30.com/index.cgi
This code cannot be posted without the creator's permission
*/
if(location.href.match(/(com\/|com|index.cgi|logout|login2|search|calendar)$/i)){
var img = document.getElementsByTagName("IMG");
for(b=0;b<img.length;b++){
if(img[b].src.match(/open.gif/gi)){
img[b].parentNode.parentNode.parentNode.style.display="none";
}}}
//-->
</script>
What to edit
If you look at the script, you'll see:
var GuestMsg = "Naruto Test Offers free graphics, tutorials, scripts, and a whole lot more";
Edit the text between the quotes. I give directions right above each variable, so hopefully you'll know what edits what.
Be sure that on the main page, that folder icon at the top left, right above "Forum Name" is named "open.gif".. if it's not, the code will look kind of weird.
Preview: narutotesting.proboards36.com/index.cgi
User: test
Pass: test
#nosmileys#nosmileys#nosmileys#nosmileys#nosmileys#nosmileys#nosmileys#nosmileys
Some of you may know of the Hi-Tech Mini-Profile code.. well I'm sorry to say, but I probably won't be making another version for a long time.. Since I haven't made a code in a couple months, I decided to make a welcome table. So here it is:
TOP OF MAIN HEADER:
<script type="text/javascript">
<!--
/*
Hi-Tech Welcome Table v.1
Created by Naruto
hatakeforum.proboards30.com/index.cgi
This code cannot be posted without the creator's permission
*/
// Guest Notice
var GuestMsg = "Naruto Test Offers free graphics, tutorials, scripts, and a whole lot more";
// News - Remember ' has to be \'
var News = "This is where you put any news you want.";
// Width of Welcome Table
TableWidth = "710";
var TD = document.getElementsByTagName("TD");
if(TD[1].innerHTML.match(/« (.+?) »/i)) {
var Page = RegExp.$1
}
if(TD[2].innerHTML.match(/Hey, (.+?),/i)) {
var Username = RegExp.$1
}
if(TD[2].innerHTML.match(/action=im">(\d+) /i)) {
var TotalPM = RegExp.$1
}
if(TD[2].innerHTML.match(/<\/a>, (\d+) /i)) {
var NewPM = RegExp.$1
}
if(TD[5].innerHTML.match(/profile&username=(.+?)">/i)) {
var profilename = RegExp.$1
}
if(TD[5].innerHTML.match(/admin/i)) {
var CP = "<a href=\"index.cgi?action=admin\">Admin CP</a>";
} else {
var CP = '<a href="index.cgi?action=profile&username='+profilename+'">User CP</a>';
}
var Date = TD[2].getElementsByTagName("Font")[0].innerHTML.split(/<br>/i)[1];
if(location.href.match(/(com\/|com|index.cgi|logout|login2|search|calendar)$/i)){
if(TD[2].innerHTML.match("Welcome Guest")){
document.write('<div align="center"><table class="bordercolor" width="'+TableWidth+'" cellspacing="0" cellpadding="0" bgcolor="000000" border="0" style="position: relative; top: 14px;"><tr><td><table width="100%" cellpadding="4" cellspacing="1"><tr><td class="titlebg" align="center" colspan="3"><font color="000000" size="2"><b>Welcome</b></font></td></tr><tr><td width="65%" valign="top" class="windowbg">Welcome Guest ( <a href="index.cgi?action=login">Login</a> | <a href="index.cgi?action=register">Register</a> )<br /><br /><font size="1">'+GuestMsg+'</font></td><td width="35%" valign="top" class="windowbg2"><font size="1">You must login to use our PM feature.</font></td></tr></table></td></tr></table></div>');
} else {
document.write('<div align="center"><table class="bordercolor" width="'+TableWidth+'" cellspacing="0" cellpadding="0" bgcolor="000000" border="0" style="position: relative; top: 14px;"><tr><td><table width="100%" cellpadding="4" cellspacing="1"><tr><td class="titlebg" align="center" colspan="3"><font color="000000" size="2"><b>Welcome</b></font></td></tr><tr><td width="65%" valign="top" class="windowbg"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td valign="top" align="left">Welcome back '+Username+'.</td><td valign="top" align="right"><font size="1">'+Date+'</font></td></tr></table><table width="85%" cellpadding="3" cellspacing="3" border="0"><tr><td><font size="1">'+News+'</font></td></tr></table><center><font size="1"><a href="index.cgi?action=markallboardsread">Mark Boards as Read</a> | <a href="index.cgi?action=mlstaff">View Forum Leaders</a> | <a href="index.cgi?action=mltop">Top 20 Posters</a> | '+CP+'</font></center></td><td width="35%" valign="top" class="windowbg2"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left"><font size="1">Total PMs: '+TotalPM+' - New: <a href="index.cgi?action=im">'+NewPM+'</a><br /></font></td><td align="right"><font size="1">[ <a href="index.cgi?action=imsend">Send a PM</a> ]</font></td></tr></table><hr class="hr" size="1"><font size="1">Current Location: '+Page+'</font></td></tr></table></td></tr></table></div>');
}}
//-->
</script>
TOP OF MAIN FOOTER:
<script type="text/javascript">
<!--
/*
Hi-Tech Welcome Table v.1
Created by Naruto
hatakeforum.proboards30.com/index.cgi
This code cannot be posted without the creator's permission
*/
if(location.href.match(/(com\/|com|index.cgi|logout|login2|search|calendar)$/i)){
var img = document.getElementsByTagName("IMG");
for(b=0;b<img.length;b++){
if(img[b].src.match(/open.gif/gi)){
img[b].parentNode.parentNode.parentNode.style.display="none";
}}}
//-->
</script>
What to edit
If you look at the script, you'll see:
var GuestMsg = "Naruto Test Offers free graphics, tutorials, scripts, and a whole lot more";
Edit the text between the quotes. I give directions right above each variable, so hopefully you'll know what edits what.
Be sure that on the main page, that folder icon at the top left, right above "Forum Name" is named "open.gif".. if it's not, the code will look kind of weird.
Preview: narutotesting.proboards36.com/index.cgi
User: test
Pass: test
#nosmileys#nosmileys#nosmileys#nosmileys#nosmileys#nosmileys#nosmileys#nosmileys