Thanks, that's a good point, I could/should work that into the build system for the theme, but I'll drop these you've attached into the current theme in the interim.
An additional optimization in this regard is the beautification of the CSS to normalize and merge selectors and declarations.
(03-10-2017, 01:46 PM)sev Wrote: As an additional note, it seems redundant that code blocks have an explicit Code: header.
I think the reasoning behind this is that the wysiwyg editor (SCEditor) also has a "PHP Code" block. Though, I do agree it's redundant. I'll revisit this when I also look into extending the syntax highlight to more sensible languages for this forum.
to be honest forums should be 100% responsive nowadays... I mostly check this forum on my phone and it's a bad experience.
I don't understand your point, new forum and not responsive design.. wrong way to go.
besides, there are some responsive themes, this one is fine: https://community.mybb.com/mods.php?action=view&pid=776
it's basically the same, just replace css.
you could use this framework - w3.css, which will help you rewrite it quickly.. that's what I use : some w3-half, w3-half.. it's quick.
(03-10-2017, 03:22 PM)Ch4mp Wrote: sorry I didn't read your last answer and didn't know this template is so complex...
you could maybe migrate to phpBB, there's a migrate script for that and use a responsive theme.
I should have consulted with you before doing the upgrade.
So I learn new stuff all the time. "Responsive design" is a term used for webdesign that delivers, depending on the platform the request comes from, specifically adapted versions of the page? Well ok, then obviously I was not aware of this usage of the term "responsive". Thank you for enlightening me there and apologies.
Latest track on soundcloud: For You (piano improvisation)
New to Xonotic? Check out my Newbie Corner! <ZeRoQL> i think i got 1 proper quad and that cunt halogen fuck me over with a laser
Quote:"Responsive design" is a term used for webdesign that delivers, depending on the platform the request comes from, specifically adapted versions of the page?
Not necessarily, this was an older method, still prevalent and used to reduce overall payload to mobile devices. However, CSS media queries allow you to set conditional CSS based on viewport size. CSS/Front-end frameworks help make adoption easier, but at this point, CSS3 can do a decent amount of that stuff itself and they are just becoming helpers / a common dialect.
So in theory one could just start setting up media queries at breakpoints to define new rules when the screen is at a smaller width like that screenshot so it's more friendly on those devices, but that has a lot of implications and ideally uses different underlying markup.
A good start that would at least make the forum usable is setting minimum font sizes (so it's not too small), allowing windows to resize to larger than the display area (so people can zoom in), and limiting the max image size for inline images on a page (to stop images making the page width huge).
In CSS, this is all usually done with @media elements to use specific CSS depending on the size of the screen.
If you're developing from scratch, the usual advice is develop for mobile first, then use @media elements to set CSS for larger devices. This stops the mobile device parsing the extra CSS for the larger devices, which makes it slightly faster to render.
03-13-2017, 06:36 AM (This post was last modified: 03-13-2017, 06:50 AM by PinkRobot.)
Funniest part is the // love my hacks comment in the source code. To each his own I guess
"Yes, there was a spambot some time ago on these forums." - aa
Quote:03:08:34 @detrate │ Mirio, I added a hack, there will be a slight delay, but it will "fix it" http://pastebin.com/raw/f0Vn5n7C -- the issue lies in sceditor, but it's technically happening in an unanticipated situation as the "quick editor"
That's my comment, and my lazy attempt to make it slightly better.
03-13-2017, 12:44 PM (This post was last modified: 03-13-2017, 12:44 PM by -z-.)
SCEditor is the WYSIWYG editor used by MyBB. In addition to the default "Full Editor" for a new post, we have added the "Advanced Quick Editor" plugin to display SCEditor as the default in "Quick Reply". This is technically an unanticipated use of SCEditor inside of MyBB.