InterOcean Designs
« Welcome Table Basic Customize »

Welcome Guest. Please Login or Register.
May 21, 2013, 12:30pm




InterOcean Designs :: ProBoards Codes :: ProBoard Code Database :: Welcome Table Basic Customize
Page 1 of 3 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Welcome Table Basic Customize (Read 4,089 times)
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Welcome Table Basic Customize
« Thread Started on Aug 12, 2009, 7:51am »

Welcome Table Basic Customize by SubDevo
Tested in IE, FF, Opera, Safari and Chrome.

Ok, not much new here.
Except for putting most of the Welcome Table customizations you need in one place! You also have options for moving the Google Ads above your banner and making your Welcome Table (and/or your Menu Bar) transparent! Ready for use with transparent/animated images.
Now you don't need all the separate codes for the welcome table, google ads and transparency. ;)

Variable Descriptions:
Edit the Yellow portions.
Except for the width, answer the questions with a 1=Yes, 0=No.

var wWdth=700; // Welcome Table Width.
Enter your desired width for your welcome table/banner in pixels.

var wTrans=0; // Transparent Welcome Table?
Option to make your welcome table transparent, so you can use transparent/animated gif/png images. This is also nice if you just want to display the words in your welcome table and let your forum background show through. The menu bar will not be transparent unless you enable the next option.

var mTrans=0; // Transparent Menu Bar?
Option to make your menu bar transparent. The above two transparency options can be used together or individually. Experiment! ;D
If you have Auto Gradients turned on for your forum (Modify Skin page) and you want your menu to be transparent, you must put the following CSS in your Global Header.

<style type="text/css">
.menubg {background-image: none;}
</style>


var moveAds=0; // Banner Below Ads?
Option to move the Google Ads above your banner.

var rSpc=0; // Remove Space Above Banner?
Option to remove the space above the banner so it is tight against the top of your forum. If you move the Google Ads, normally set this to "0".

var rBrdrs=0; // Remove Borders?
Option to remove the borders around your banner.

var rTitle=0; // Remove Forum Title?
Option to remove your forum title/name from the banner. Set this to "1" ONLY if you did NOT set a logo image in your "Modify Skin" page or you are using a background image added by another code or CSS. Otherwise, your logo will disappear...

var rHeyX=1; // Remove "Hey X" message?
Exactly what it says... Removes the "Hey X, you have X messages".

var rHome=1; // Remove "« Home »"?
Option to remove the "« Home »" portion from your banner.

var rBraces=0; // Remove "[]" From Menu Buttons?
Option to remove the "[]" from your menu buttons. If you are using menu images, the brackets are removed from the tooltip text (hover text).

NOTE: If you use Charles Stover's Proboard Arcade, you may need to keep this option at "0" in order for the arcade to work.

var rBan=0; // Remove Banner?
Option to hide the Welcome Table/banner. If this is enabled, only the menu bar will be visible. If you also enable the next option (rMenu), it will completely remove your welcome table!

var rMenu=0; // Remove Menu Bar?
Totally remove the menu bar. Use if you are using other code to replace the menu bar. Basically this is here for completeness only.

Enjoy!!!
SubDevo :)

Location: Global Header
Code:
<script type="text/javascript">
/* Welcome Table Basic Customize by SubDevo */
/* Global Header - Please leave this header intact. Do not repost. */
/* [url]http://interoceandesigns.com[/url] or [url]http://lsdp.proboards.com[/url] */

var wWdth=700; // Welcome Table Width.
/* 1=Yes, 0=No for the Options Below. */
var wTrans=0; // Transparent Welcome Table?
var mTrans=0; // Transparent Menu Bar?
var moveAds=0; // Banner Below Ads?
var rSpc=0; // Remove Space Above Banner?
var rBrdrs=0; // Remove Borders?
var rTitle=0; // Remove Forum Title?
var rHeyX=1; // Remove "Hey X" message?
var rHome=1; // Remove "« Home »"?
var rBraces=0; // Remove "[]" From Menu Buttons?
var rBan=0; // Remove Banner? (only Menu bar will be visible)
var rMenu=0; // Remove Menu Bar?

var tb,td=document.getElementsByTagName("td"),tm,tn,x=0;
while(td[x].className!="welcomebg"){x++;}
tb=td[x];while(tb.className!="bordercolor"){tb=tb.parentNode;}
tb.width=wWdth; td=tb.getElementsByTagName("td");tm=td[5];
if(rBrdrs){tb.cellSpacing="0";} tn=tb.rows[0].getElementsByTagName("td"),x=-1;
if(wTrans){tT(tb); while(tn[++x]){tT(tn[x]);}} if(mTrans){tT(tb); tT(tm);}
if(rBraces){tm.innerHTML=tm.innerHTML.replace(/(\[|\])/gi,"");}
gN(rSpc,"br",0); gN(rHeyX,"td",2); gN(rTitle,"font",0); gN(rHome,"font",1); gN(rMenu,"tr",2); gN(rBan,"tr",1);
if(moveAds){ document.write('<span id="wTbl"></span>');
&nbsp; &nbsp;var wTbl=document.getElementById("wTbl"); wTbl.parentNode.replaceChild (tb,wTbl);
} function gT(n){return tb.getElementsByTagName(n);}
function gN(x,n,i){if(x){(gT(n))[i].style.display="none";}}
function tT(n){n.style.backgroundColor="transparent";}
</script>


EDIT: 5/17/2010
Bug Fix: If the welcome table was made transparent, the Menu bar was also made transparent even if the option was turned off.

EDIT: 3/02/2011
Not a bug fix. No new features except now you may put the code anywhere you need it and it will still find the welcome table and hide the correct options.

EDIT: 8/20/2011
Took out the part of the code that removed the menubg class so that the user may still use menubg to style the menu.
« Last Edit: Aug 27, 2011, 8:04pm by SubDevo »Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Mac
Senior Member
member is offline

[avatar]


[homepage]

Joined: Apr 2009
Gender: Male
Posts: 828
Location: Wales
Karma: 22
 Re: Welcome Table Basic Customize
« Reply #1 on Aug 12, 2009, 12:14pm »

fab
Link to Post - Back to Top  IP: Logged

[image]


SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: Welcome Table Basic Customize
« Reply #2 on Aug 12, 2009, 4:34pm »


Aug 12, 2009, 12:14pm, Mac wrote:
fab


One word? That's all? :D

Thanks Macc ;)
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Paige
Senior Member
IOD's Music/Drama Queen
member is offline

[avatar]

On Hiatus, to RPG world

[yim] [msn]

Joined: Apr 2009
Gender: Female
Posts: 547
Location: Malaysia
Karma: 6
 Re: Welcome Table Basic Customize
« Reply #3 on Aug 24, 2009, 8:11pm »

http://staracedemy.proboards.com/index.cgi

Hey,did I get it wrong?after I use your code the logo isn't showing...
Link to Post - Back to Top  IP: Logged


[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: Welcome Table Basic Customize
« Reply #4 on Aug 24, 2009, 8:35pm »


Aug 24, 2009, 8:11pm, Paige wrote:
http://staracedemy.proboards.com/index.cgi

Hey,did I get it wrong?after I use your code the logo isn't showing...


Set this to "0"

var rTitle=0; // Remove Forum Title?

I'll have to investigate this one further...


EDIT:
Ok, I didn't have to make a code change. But, I did modify my original post with clearer instructions. Thanks for bringing this up!
« Last Edit: Aug 24, 2009, 8:48pm by SubDevo »Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Paige
Senior Member
IOD's Music/Drama Queen
member is offline

[avatar]

On Hiatus, to RPG world

[yim] [msn]

Joined: Apr 2009
Gender: Female
Posts: 547
Location: Malaysia
Karma: 6
 Re: Welcome Table Basic Customize
« Reply #5 on Aug 24, 2009, 10:11pm »


Aug 24, 2009, 8:35pm, SubDevo wrote:

Aug 24, 2009, 8:11pm, Paige wrote:
http://staracedemy.proboards.com/index.cgi

Hey,did I get it wrong?after I use your code the logo isn't showing...


Set this to "0"

var rTitle=0; // Remove Forum Title?

I'll have to investigate this one further...


EDIT:
Ok, I didn't have to make a code change. But, I did modify my original post with clearer instructions. Thanks for bringing this up!


Ok,thank you.I can see the banner now.
Link to Post - Back to Top  IP: Logged


[image]
Jericho
New Member
member is offline

[avatar]


[homepage]

Joined: Apr 2010
Posts: 9
Karma: 0
 Re: Welcome Table Basic Customize
« Reply #6 on Apr 21, 2010, 3:33pm »

Great code! My board is gradually starting to look good! Thanks for the excellent work.
Link to Post - Back to Top  IP: Logged
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: Welcome Table Basic Customize
« Reply #7 on Apr 22, 2010, 9:12am »


Apr 21, 2010, 3:33pm, Jericho wrote:
Great code! My board is gradually starting to look good! Thanks for the excellent work.

Thanks Jericho. :)
BTW... did you put this code in your Global HEADER? I just checked your site... looks like you put it in your footer. Put this code in your HEADER (near top for best results) above your cbox and PM bar code.

Also I will be sending you a PM regarding some errors on your site. ;)

Regards,
SubDevo
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Jericho
New Member
member is offline

[avatar]


[homepage]

Joined: Apr 2010
Posts: 9
Karma: 0
 Re: Welcome Table Basic Customize
« Reply #8 on Apr 22, 2010, 10:03am »

Bless you and I will look at the positions and change them. I admit to being a total ProBoards Village Idiot.

Thank you so much.

Jer
Link to Post - Back to Top  IP: Logged
Paige
Senior Member
IOD's Music/Drama Queen
member is offline

[avatar]

On Hiatus, to RPG world

[yim] [msn]

Joined: Apr 2009
Gender: Female
Posts: 547
Location: Malaysia
Karma: 6
 Re: Welcome Table Basic Customize
« Reply #9 on May 29, 2010, 11:11am »

Hello Sub...
I am just wondering why this code doesn't remove the "Hey X" and "Home quote" from my friend's forum?

Here is the forum..I am using the same codes as I use in my Honey Hyun ,but it is not working there...Did I miss something?
« Last Edit: May 29, 2010, 11:11am by Paige »Link to Post - Back to Top  IP: Logged


[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: Welcome Table Basic Customize
« Reply #10 on May 29, 2010, 3:06pm »

Yup. It's not my code that is messing up. It is the code right after it. Your PM code.
It is messed up.

Find these lines and remove the parts in Red

alert("You have 1 New PM");
}}
//-->
<!--
var PMLogoCell =

If that doesn't fix it, you'll have to get a fresh copy of that code.

Regards,
SubDevo
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Paige
Senior Member
IOD's Music/Drama Queen
member is offline

[avatar]

On Hiatus, to RPG world

[yim] [msn]

Joined: Apr 2009
Gender: Female
Posts: 547
Location: Malaysia
Karma: 6
 Re: Welcome Table Basic Customize
« Reply #11 on May 30, 2010, 9:17am »


May 29, 2010, 3:06pm, SubDevo wrote:
Yup. It's not my code that is messing up. It is the code right after it. Your PM code.
It is messed up.

Find these lines and remove the parts in Red

alert("You have 1 New PM");
}}
//-->
<!--
var PMLogoCell =

If that doesn't fix it, you'll have to get a fresh copy of that code.

Regards,
SubDevo


I did both of what you told me...Still not working...
Wondering what's wrong...both codes working in my Honey Hyun still...Haha...
Link to Post - Back to Top  IP: Logged


[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: Welcome Table Basic Customize
« Reply #12 on May 30, 2010, 10:14am »

You still have other errors. There are extra spaces in a couple of my codes in your site.
Get fresh copies of "New Color Picker v1.0" and "Image Size Limits".
We'll go from there. ;)

SubDevo
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Paige
Senior Member
IOD's Music/Drama Queen
member is offline

[avatar]

On Hiatus, to RPG world

[yim] [msn]

Joined: Apr 2009
Gender: Female
Posts: 547
Location: Malaysia
Karma: 6
 Re: Welcome Table Basic Customize
« Reply #13 on Jun 1, 2010, 1:51am »


May 30, 2010, 10:14am, SubDevo wrote:
You still have other errors. There are extra spaces in a couple of my codes in your site.
Get fresh copies of "New Color Picker v1.0" and "Image Size Limits".
We'll go from there. ;)

SubDevo


OK,Sub,I did as told...
Erm...Should I start a new thread from here?It doesn't seems appropriate to go so far...But I am OK if you are OK with it.Hahaha.

Thanks for all the help Sub.
Link to Post - Back to Top  IP: Logged


[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: Welcome Table Basic Customize
« Reply #14 on Jun 1, 2010, 2:13am »

Start a new thread Paige. Your problems are unrelated to this code. :)
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Page 1 of 3 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile