Jump to content

MyBB main page forum style


Kyra
 Share

Recommended Posts

So while I understand HTML and CSS, I am woefully useless when it comes to PHP other than "damn, I wish I understood that so I could do this thing". So this is probably the first of many questions. 

 

I'm trying to change the main forum list on a myBB site so it's not just a single list, basically. I can add images, change colors, etc. etc. What I can't do is figure out how to re-write the HTML so it pulls in the correct forums (I can try to hard code it and then crazy things happen). I'm sure I'm explaining this poorly, so attached is a screenshot of what I would ideally like for it to look like. If that is a complete bear, I would settle for at least being able to have two forums side by side (i.e. like The Commons section in the attached screenshot). 

 

If there's a tutorial on this somewhere, please feel free to point my blind self in that direction. I just wasn't able to find anything. 

 

Screen Shot 2018-09-12 at 3.39.44 PM.png

Discord: Kyra#4524

Link to comment
Share on other sites

You don't need to touch the php! Just use flex to make it into a side by side layout.

 

To further customise individually, use .forum.noX where X is replaced with the forum's id number. You know the ID number by hovering over a link to the forum. The last number is the id. So for example

 

This forum

https://kit.wootflakes.com/mybb/forumdisplay.php?fid=2

Would be individually styled as

.forum.no2 {
  /* your stuff here */
}

To get what you want, Threshold name and The Gardens flex-basis will need to be:

 

.forum.noX,
.forum.noX {
  flex-basis: 100%;
}

Hope that helps you!

  • Fuck Yeah! 1

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

  • 4 months later...

Sorry for the SUPER delayed reply, but thank you!! This is AMAZING. I've got some catchup to do with new(ish) CSS things it seems 🙂 

  • You're Welcome 1

Discord: Kyra#4524

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.