FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 22 users online :: 0 Registered, 0 Hidden and 22 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

[SOLVED] Widgets below instead of left/right?

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Sat 21 May 2016, 09:28

Hi,

is it possible (maybe through javascript) to put widgets below to the forum instead of left/right?

Thanks in advance.
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Mon 23 May 2016, 11:21

bump silent
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Tue 24 May 2016, 10:59

Yes, you could do something like this for example :
Code:
$(function() {
  $('#left, #right').appendTo('#wrap');
});
Just a quick writeup with jQuery. It'll add the left and / or right columns directly to the wrapper, which puts them below the forum content.
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Tue 24 May 2016, 11:43

I added your writeup to my forum (marked 'On homepage') for right column, but didn't work. :/
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 25 May 2016, 09:35

Seems like it re-executed the javascript in the widget when I tested it, which is bad.

I think the best choice might be to place the widgets on the right and then use this CSS to place them below the content :
Code:
#right {
  float:none !important;
  width:auto !important;
}

You can do the same with the left column, just replace right with the former. Only difference is the left column will display above the forum content.
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Wed 25 May 2016, 11:18

@Ange Tuteur Didn't work aswell. :/ Added it to css stylesheet and nothing happens.
After that changed the value of the 3rd (right) column from 0 to 180, but then the widgets will appear on the right column and not below the content.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 25 May 2016, 13:03

Oh right, my bad. Add this rule along with the one for the right column in my last post :
Code:
#content-container div#container, #content-container div#content {
  float:none !important;
  margin-right:0 !important;
}

Make sure your widgets are on the right. Wink
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Wed 25 May 2016, 13:41

Now it works. Very Happy
But I have three wishes for improvements. silent

  1. After inserting your rules in css stylesheet and putting value of right column to 180, on the homepage appears a black line:
    https://i.servimg.com/u/f86/16/43/86/96/dsfghj10.png

    Why? Possible to remove?

  2. The widgets from right column appear one after onother, which results in very wide widgets:
    https://i.servimg.com/u/f86/16/43/86/96/dfghjt10.png

    Possible to make them narrow and side by side (maybe 3 or 4 side by side)?

  3. And last but not least: Is it possible to put the widgets above the who is onlne list?

If you need an account with admin rights for testing, let me know. Rose
Thanks for your very good support!


Edit:
4. It looks with the rules in css like that (gray background):
https://i.servimg.com/u/f86/16/43/86/96/screen12.jpg

Why, Ange? .__. Exclamation
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 25 May 2016, 17:50

1. I don't see the line when I view your forum so I have no idea where it's coming from.

2. Use this CSS to display the widgets side by side :
Code:
#right .module {
  display:inline-block;
  width:180px;
  margin:3px;
}

3. No, not without JavaScript, and I wont be attempting that because of the problem we faced before.

4. I can't guess, I'd need to see the problem first hand so I can inspect it.
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Thu 26 May 2016, 09:16

Send you a pm. Smile
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 26 May 2016, 11:49

@schiggysboard 1 & 4 were caused by one of your custom widgets "master widget" I removed it from the column. As for the CSS, try adding these rules :
Code:
#right {
  float:none !important;
  width:100% !important;
}

#content-container div#container, #content-container div#content {
  float:none !important;
  margin-right:0 !important;
}

#right div[style="height:6px"] { display:none; }

#right .module {
  vertical-align:top;
  display:inline-block;
  width:180px;
  margin:3px;
}

It should give you a good result.
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Thu 26 May 2016, 12:15

Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 26 May 2016, 12:18

I made some changes, does it appear to you like this ?
[SOLVED] Widgets below instead of left/right? Captur76
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Thu 26 May 2016, 12:24

@Ange Tuteur Nearly:
https://i.servimg.com/u/f86/16/43/86/96/screen13.jpg

Again a gray background.
But this gray bg doesn't appear when I'm on who is online page. (?)
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 26 May 2016, 12:35

That's weird.. What browser are you using ? Because it looks okay on my end. Think
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Thu 26 May 2016, 12:37

It appears on mobile device with browsers chrome and firefox, @Ange Tuteur. But only on homepage, not in topics or who is online list.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 26 May 2016, 12:43

Do you have something like this in your CSS ?
Code:
  #page-body {
    background-color:#f6f6f6
  }

It appears to be inside a media query for smaller screens.
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Thu 26 May 2016, 12:45

Yes, on line 1063 in css stylesheet for the mobile theme.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 26 May 2016, 13:34

That's most likely the cause. Try adding
Code:
#mpage-body
in front of the selector so you get :
Code:
 #mpage-body #page-body {
    background-color:#f6f6f6
  }

That way it'll only affect the mobile version.
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Thu 26 May 2016, 14:01

@Ange Tuteur Yes, that works very well. Thank you. Smile

It would be great (if possible) to put them above the who is online list. Then they're more on the right hand side if the forum because of the left column and there they should be centered. Understandable? ^-^ I mean centered between the right hand side of the forum and the left column.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Thu 26 May 2016, 15:32

This would do the trick :
Code:
$(function() {
  $('#right').insertBefore($('#how').prev());
});
But you'd need to set the placement to only in the homepage, because it wouldn't work on other pages.
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Thu 26 May 2016, 16:35

@Ange Tuteur
1. Is it in this case possible that the widgets don't appear in topics and other pages?

2. Another problem: In my forum I had a similiar footer statistic as in support forum, but with a completely different script/ css. I changed to the originally script/ css:
Spoiler:

But the result was that the widgets hadn't been above the who is online list anymore, where they should be. The reason is that you used for the js code in this post #how which isn't there anymore because of changing to originally script/ css. Which id (or class) could I use instead of #how?

3. Another problem through using the above css, especially this part:
Code:
.qeel_title {
        background: #369FCF none repeat scroll 0% 0%;
        color: #FFF;
        font-family: "Trebuchet MS",Arial,Verdana,sans-serif;
        font-size: 16px;
        font-weight: 700;
        padding: 5px 6px;
        text-transform: uppercase;
    }

The toolbar disappears and I get this error:
Code:
TypeError: toolbar.replace is not a function
http://www.schiggysboard.com/99666.js
Line 1

Do you know why?


Also the widget for most hashtagged user doesn't work. Suddenly its content disappeared, there us only a "@". For a short time there was a content. Do you have an idea what's the problem?

Edit: Now the widget works again.


Last edited by schiggysboard on Fri 27 May 2016, 09:44; edited 9 times in total
SLGray
SLGray
Valued Member
Gender : Male
Age : 51
Posts : 2465
Points : 7136
Reputation : 290
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray Thu 26 May 2016, 23:57

schiggysboard wrote:Also the widget for most hashtagged user doesn't work. Suddenly its content disappeared, there us only a "@". For a short time there was a content. Do you have an idea what's the problem?
It is an issue that was just noticed on teh support forum, too.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12043
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Fri 27 May 2016, 10:29

1. Install this JS with placement in all the pages
Code:
window.location.pathname != '/' && document.write('<style type="text/css">#right { display:none; }</style>');

2. I suppose you can try replacing the script with this :
Code:
$(function() {
  $('#right').insertBefore($('.linklist:last', '#main-content'));
});

3. CSS cannot affect JavaScripts, so I have no idea why that would cause your toolbar to disappear, unless your installing that CSS in JS codes management -- even then.. I'd review your recently installed JavaScripts, or try disabling JS codes management, because the problem is most likely coming from there. Think

4. That's Forumotion's problem.
schiggysboard
schiggysboard

Gender : Male
Posts : 79
Points : 3725
Reputation : 20
Language : German, English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB3
http://www.schiggysboard.com/

Postschiggysboard Fri 27 May 2016, 10:50

@Ange Tuteur
In principle 1. and 2. work fine, but I have a very strange symptom.

I reload the page and the footer statistic with its new design through queel_title works fine, but the widgets aren't there where thy should be (above the who is online list), the toolbar disappears and the tab menu for categories disappears.

Then I reload the page again without doing anything in my forum and the footer statistic has the normal design, but now the widgets are there where they should be, the toolbar appears again and the tab menu appears again aswell.

Please help me, Ange. It's very strange and confusing and I don't know what the problem could be and whether other users have the same problem or not. Question
Sponsored content

PostSponsored content

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum