lisaann
New Member
~Nice To Be Here~
Posts: 79
inherit
248466
0
Nov 4, 2024 9:37:33 GMT -8
lisaann
~Nice To Be Here~
79
August 2017
lisaann
|
Post by lisaann on Feb 9, 2020 12:13:09 GMT -8
I was wondering how do i add the Shoutbox up top of the board instead of the bottom thank you .
|
|
Former Member
inherit
guest@proboards.com
258180
0
Nov 28, 2024 5:37:40 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 9, 2020 12:16:46 GMT -8
|
|
lisaann
New Member
~Nice To Be Here~
Posts: 79
inherit
248466
0
Nov 4, 2024 9:37:33 GMT -8
lisaann
~Nice To Be Here~
79
August 2017
lisaann
|
Post by lisaann on Feb 9, 2020 12:25:01 GMT -8
do i copy the hole thing and where do i add it at sorry i'm not that great at it .thank you
|
|
Former Member
inherit
guest@proboards.com
258180
0
Nov 28, 2024 5:37:40 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 9, 2020 12:37:43 GMT -8
If you want it just on top then add this code to Forum wrapper "above content" You need to do it on every theme. lisaann
|
|
lisaann
New Member
~Nice To Be Here~
Posts: 79
inherit
248466
0
Nov 4, 2024 9:37:33 GMT -8
lisaann
~Nice To Be Here~
79
August 2017
lisaann
|
Post by lisaann on Feb 9, 2020 12:42:09 GMT -8
thank you i will try and do it
|
|
inherit
259017
0
Sept 25, 2021 1:54:15 GMT -8
CrazyBoy
Web developer.
968
July 2019
crazyboy
|
Post by CrazyBoy on Feb 9, 2020 12:45:00 GMT -8
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Feb 9, 2020 13:44:23 GMT -8
Hi lisaannSince you placed this in the Plugins board, I made a plugin for you. Shoutbox on Top.pbp (378 B) It places everything in #content after the shoutbox. So your banner, nav bar, etc will remain on top but the news and everything that comes after will be below the shoutbox. But the same sort of thing can be accomplished by putting the script in your Global Header (or Global Footer). <script> $(function(){ var shout = $('div.shoutbox'); var elements = shout.prevAll(); if(shout && elements.length){ $(elements.get().reverse()).insertAfter(shout); } }); </script> To do accomplish, I just modified one of my favorite scripts from Brian which places all forum content below the Banner Ad.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Feb 10, 2020 8:45:03 GMT -8
Or you could just go into your forum wrapper template (Admin > Themes > Layout Templates > Forum Wrapper) and find this:
$[content] $[shoutbox]
and just reverse them, like so:
$[shoutbox] $[content]
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Feb 10, 2020 9:49:24 GMT -8
Or you could just go into your forum wrapper template ( Admin > Themes > Layout Templates > Forum Wrapper) and find this: $[content] $[shoutbox]
and just reverse them, like so: $[shoutbox] $[content]
Yep. Sometimes simple and direct is the best approach. In cases where there are only a few (or just one) theme being used on a forum, making a change like that in the Forum Wrapper works great. And the added benefit it that the page is loaded in that sequence. Where there are many themes in play, using JS to flip the order will get the same effect and require less work to implement. But the drawback is, the page loads with the content above the shoutbox and JS makes the change after the fact. Often you'll witness this action, so that can be a bit less seamless.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Feb 11, 2020 17:19:34 GMT -8
Or you could just go into your forum wrapper template ( Admin > Themes > Layout Templates > Forum Wrapper) and find this: $[content] $[shoutbox]
and just reverse them, like so: $[shoutbox] $[content]
Yep. Sometimes simple and direct is the best approach. In cases where there are only a few (or just one) theme being used on a forum, making a change like that in the Forum Wrapper works great. And the added benefit it that the page is loaded in that sequence. Where there are many themes in play, using JS to flip the order will get the same effect and require less work to implement. But the drawback is, the page loads with the content above the shoutbox and JS makes the change after the fact. Often you'll witness this action, so that can be a bit less seamless. No arguments here. Since the OP was not specific, I opted for the simple solution.
|
|
lisaann
New Member
~Nice To Be Here~
Posts: 79
inherit
248466
0
Nov 4, 2024 9:37:33 GMT -8
lisaann
~Nice To Be Here~
79
August 2017
lisaann
|
Post by lisaann on Feb 19, 2020 6:55:05 GMT -8
thank you everyone for the help i got it up top now .
|
|