vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Grab Welcome Table Recoding - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
Grab Welcome Table Recoding (18th Jan 10 at 11:26pm UTC)
Resolved
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.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Grab Welcome Table Recoding (18th Jan 10 at 11:30pm UTC)
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}

Image
dog199200
Guest
Re: Grab Welcome Table Recoding (18th Jan 10 at 11:36pm UTC)
oh ok, i wont touch anything till i'm told i can {Tongue Out}
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Grab Welcome Table Recoding (18th Jan 10 at 11:43pm UTC)
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}

Image
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


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

Ross Wins. {Sad}
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Grab Welcome Table Recoding (18th Jan 10 at 11:48pm UTC)
 
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}



Image
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Grab Welcome Table Recoding (18th Jan 10 at 11:49pm UTC)
 
 
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!
dog199200
Guest
Re: Grab Welcome Table Recoding (18th Jan 10 at 11:51pm UTC)
 
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.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Grab Welcome Table Recoding (18th Jan 10 at 11:54pm UTC)
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}


Image
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Grab Welcome Table Recoding (18th Jan 10 at 11:56pm UTC)
Ross, I saw your sig. It sucks. It's taken Weelllll out of context. {Tongue Out}
dog199200
Guest
Re: Grab Welcome Table Recoding (18th Jan 10 at 11:56pm UTC)
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}
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 36
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: Grab Welcome Table Recoding (19th Jan 10 at 12:39pm UTC)
I just had to come here and spam.

GO ROSS!

WHOOOOOT!
 Printable View

All times are GMT+0 :: The current time is 10:13am
Page generated in 0.8001 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums