vForums Support > Programming & Coding :: Code Requests & Support :: > Grab Welcome Table Recoding

Grab Welcome Table Recoding - Posted By dog199200 (dog199200) on 18th Jan 10 at 11:26pm
can someone please edit this code so it will work with the new welcome table template system? Its causing problems as it is right now. If you need to know what it does, what is does is grads the welcome table and calls it into the border frame I have on my forum, which can be found here.

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. get('welcome_table', 'id').cellSpacing = '0';
  4. for(b = 0; b < 4; b++) {
  5. get('br', 'tag')[b].style.display = "none";
  6. }
  7. with(get('forum_border_menu_holder', 'id')){
  8. var x = (vf_username == 'guest'? 3 : 6);
  9. var s = (get('table', 'tag')[0].className.match(/welcometable/))? 0 : 1;
  10. for(n = 0; n < x; n++){
  11. appendChild(get('table', 'tag')[s]);
  12. if(n == 2 || n == 5)
  13. appendChild(document.createElement('br'));
  14. }
  15. }
  16. // -->
  17. </script>
 


I have tried to add the header of the border into the welcome table template so that i don't need this code, but taht creates an error with the blare effect I have in the upper left hand corner {Unsure} it puts the glare image on the banner and not behind it like it is on the website and the idea is to make the forum look like the website.

Re: Grab Welcome Table Recoding - Posted By Ross (admin) on 18th Jan 10 at 11:30pm
I'm going to have a go at changing some bits on your forum. I have an idea but am unsure if it'll work {Smile}

Re: Grab Welcome Table Recoding - Posted By dog199200 (dog199200) on 18th Jan 10 at 11:36pm
oh ok, i wont touch anything till i'm told i can {Tongue Out}

Re: Grab Welcome Table Recoding - Posted By Ross (admin) on 18th Jan 10 at 11:43pm
How's that looking?

I've moved the code you had in your global header for the "forum_border" divs as well as the "PageBackgroundGlare" stuff into the Welcome Table template. So no Javascript is needed to move the welcome table into it {Smile}

Re: Grab Welcome Table Recoding - Posted By Michael (wrighty) on 18th Jan 10 at 11:46pm
Lines 3-6 aren't needed. They can be done through the templating system {Smile}

Ross Wins. {Sad}

Re: Grab Welcome Table Recoding - Posted By Ross (admin) on 18th Jan 10 at 11:48pm
 
Lines 3-6 aren't needed. They can be done through the templating system {Smile}

Ross Wins. {Sad}


Lines 1-17 aren't needed anymore {Cool}



Re: Grab Welcome Table Recoding - Posted By Michael (wrighty) on 18th Jan 10 at 11:49pm
 
 
Lines 3-6 aren't needed. They can be done through the templating system {Smile}

Ross Wins. {Sad}


Lines 1-17 aren't needed anymore {Cool}




I removed about 10 lines from my forum due to the welcome table template! {Cool} I win!

Re: Grab Welcome Table Recoding - Posted By dog199200 (dog199200) on 18th Jan 10 at 11:51pm
 
How's that looking?

I've moved the code you had in your global header for the "forum_border" divs as well as the "PageBackgroundGlare" stuff into the Welcome Table template. So no Javascript is needed to move the welcome table into it {Smile}


Ok thanks ross, i tried that, but i didn't work. the glare images was going over the logo, i assume thats why you added the zindex.

Re: Grab Welcome Table Recoding - Posted By Ross (admin) on 18th Jan 10 at 11:54pm
Posted By dog199200 on 18th Jan 10 at 11:51pm
 
 
How's that looking?

I've moved the code you had in your global header for the "forum_border" divs as well as the "PageBackgroundGlare" stuff into the Welcome Table template. So no Javascript is needed to move the welcome table into it {Smile}


Ok thanks ross, i tried that, but i didn't work. the glare images was going over the logo, i assume thats why you added the zindex.


Yeah, the z-index was the easiest way to fix that, just forces it to sit behind the logo {Smile}


P.S. I like my new sig {Grin}


Re: Grab Welcome Table Recoding - Posted By Michael (wrighty) on 18th Jan 10 at 11:56pm
Ross, I saw your sig. It sucks. It's taken Weelllll out of context. {Tongue Out}

Re: Grab Welcome Table Recoding - Posted By dog199200 (dog199200) on 18th Jan 10 at 11:56pm
Ok anyways thanks again, just a few more codes to eventually find ways to work out of my header and footers lol

Btw, nice sig {Tongue Out}

Re: Grab Welcome Table Recoding - Posted By ashkir (ashkir) on 19th Jan 10 at 12:39pm
I just had to come here and spam.

GO ROSS!

WHOOOOOT!