XaviEo
New Member
Frustrated about my buggy themes and lack of support? Please read my signature! (:
Posts: 120
inherit
139532
0
Aug 21, 2024 1:55:44 GMT -8
XaviEo
Frustrated about my buggy themes and lack of support? Please read my signature! (:
120
April 2009
margie9900
|
Post by XaviEo on Dec 2, 2012 2:29:44 GMT -8
Not too sure if I'm asking this in the correct place, just hoping. I'm using the Welcome Header Below Ad plug-in and I've also added the CSS for the Border Around Forum. What I'm wondering is if it's possible to have the ad above the start of the border? I haven't played around with codes for a while so I'm not really sure where to start to work it out for myself. It's for this site: CLICK
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on Dec 2, 2012 3:22:57 GMT -8
Not too sure if I'm asking this in the correct place, just hoping. I'm using the Welcome Header Below Ad plug-in and I've also added the CSS for the Border Around Forum. What I'm wondering is if it's possible to have the ad above the start of the border? I haven't played around with codes for a while so I'm not really sure where to start to work it out for myself. It's for this site: CLICKThis is easily done with a template mod. First of all, remove the Welcome Header Below Ad plugin. Now, go to Themes > Layout Templates > Forum wrapper and look for this part of code around lines 51-56: <div id="navigation-tree"> $[navigation.tree] </div> $[header] <div id="content" role="main"> Remove JUST the $[header] part and then paste it ABOVE the wrapper div (found around line 14) as shown: $[header] <div id="wrapper"> <header> <div id="banner-container" role="banner"> NOTE: The $[header] variable is what displays the ads, so you must include it above the $[content] variable. It's also where the files for plugins and the headers go, so there's another reason not to remove it
|
|
inherit
164980
0
Oct 11, 2012 23:21:29 GMT -8
Tohsaka Rin
Why do men keep falling into my residence? I can collect on the damage insurance, right?
602
March 2011
lunacticinferno
|
Post by Tohsaka Rin on Dec 7, 2012 22:48:15 GMT -8
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on Dec 8, 2012 5:00:31 GMT -8
I had a look at this and it turns out that it's because of the way the author of that plugin organised it. The $[header] variable that we're moving contains not only the top advert but also the old-style headers and links to plugin script files. As such, because of the way the plugin was written, it breaks if the header table is below it in the source code. I'll tag Brian so that he notices this, although I think he said he didn't have much time to work on the plugin at the moment. (Putting it into $(document.ready) or the Javascript component rather than <script> tags in the global header component would probably be enough). In the meantime, you can use this code in your global headers (Structure > Headers and Footers > Global Header) which, although a tiny bit slower than modifying the template directly, should play better with other plugins like this: See Brian's post below
|
|
inherit
164980
0
Oct 11, 2012 23:21:29 GMT -8
Tohsaka Rin
Why do men keep falling into my residence? I can collect on the damage insurance, right?
602
March 2011
lunacticinferno
|
Post by Tohsaka Rin on Dec 8, 2012 12:26:40 GMT -8
Thanks, changed that for now.
I have all these threads bookmarked to see if anything updates again.
|
|
inherit
22402
0
Nov 8, 2021 11:42:58 GMT -8
DeltaDart
Ultimate Interceptor
522
April 2004
mcgeep
|
Post by DeltaDart on Jan 18, 2013 15:18:37 GMT -8
I had a look at this and it turns out that it's because of the way the author of that plugin organised it. The $[header] variable that we're moving contains not only the top advert but also the old-style headers and links to plugin script files. As such, because of the way the plugin was written, it breaks if the header table is below it in the source code. I'll tag Brian so that he notices this, although I think he said he didn't have much time to work on the plugin at the moment. (Putting it into $(document.ready) or the Javascript component rather than <script> tags in the global header component would probably be enough). In the meantime, you can use this code in your global headers (Structure > Headers and Footers > Global Header) which, although a tiny bit slower than modifying the template directly, should play better with other plugins like this: removed f-106deltadart.freemessageboards.com/ This helped me a lot. I like using this script better than moving the $[header] thanks for this.
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on Jan 18, 2013 15:58:32 GMT -8
I had a look at this and it turns out that it's because of the way the author of that plugin organised it. The $[header] variable that we're moving contains not only the top advert but also the old-style headers and links to plugin script files. As such, because of the way the plugin was written, it breaks if the header table is below it in the source code. I'll tag Brian so that he notices this, although I think he said he didn't have much time to work on the plugin at the moment. (Putting it into $(document.ready) or the Javascript component rather than <script> tags in the global header component would probably be enough). In the meantime, you can use this code in your global headers (Structure > Headers and Footers > Global Header) which, although a tiny bit slower than modifying the template directly, should play better with other plugins like this: X f-106deltadart.freemessageboards.com/ This helped me a lot. I like using this script better than moving the $[header] thanks for this. You're welcome, but do note that this script was just in case moving $[header] broke anything that relied on it being in the original position. If this wasn't a problem, then you'd be better off doing it by moving $[header] as that will change the source code of the page being sent by the server (this is what templates do) rather than using the Javascript code to change the page when it has been loaded in the browser, mainly because it will be faster (although the difference is probably negligible).
|
|
inherit
22402
0
Nov 8, 2021 11:42:58 GMT -8
DeltaDart
Ultimate Interceptor
522
April 2004
mcgeep
|
Post by DeltaDart on Jan 18, 2013 16:30:05 GMT -8
Moving the [header] does break my 'Three Box Table V3.0.1 Slide-Able' plugin by moving it outside the border, but maybe that's not a bad thing after all. The more I look at it, the less it bothers me f-106deltadart.freemessageboards.com/
Now, how can I do this with the Footer?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jun 2, 2013 8:28:13 GMT -8
To anyone who's managed to find this thread: I recommend against moving the $[header] variable in your forum wrapper template, as it contains both the ads and any codes in the headers of your forum, including plugin code. If you plan on using plugins, moving this variable is bound to break many of them that use the header component, as Javascript that doesn't work off a $(document).ready() function will error if the elements it affects don't already exist on the page before the Javascript executes. Also, in regards to this code: Moving the actual ads themselves is against the TOS. The following plugin is approved by ProBoards: support.proboards.com/thread/429342
|
|