Chaos Project

Community => News / Suggestions / Feedback => Topic started by: Blizzard on December 27, 2015, 04:57:13 pm

Title: Bugs after upgrade to SMF 2
Post by: Blizzard on December 27, 2015, 04:57:13 pm
Post all the bugs you find here and we will see if somebody can take the time to fix them.

Make sure to mention on which theme you encountered the bug! If possible, please test if the same bugs happens on other themes as well. And remember to post your browser as well.

One post per bug is fine. That way we can easily track the bugs already fixed.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on December 27, 2015, 05:01:10 pm
Bug:
Code block is very small inside spoilers.

Themes:
GamerZ, Astonished, Smooth, Elegant Mind

Browser:
Opera Next, Chrome

Reproduction:
Just open any spoiler that has [code] tags inside.

Notes:
Likely be browser related. We used to have this issue on SMF 1.1.x.


Fixed. :3
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on December 27, 2015, 05:01:56 pm
Bug:
Custom title is displayed below avatar instead above user group (like on old forum).

Theme:
GamerZ

Browser:
Opera Next

Reproduction:
Open any topic.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on December 27, 2015, 05:08:27 pm
Bug:
The member group icons aren't displayed.

Theme:
GamerZ, Smooth, Elegant Mind, Astonished

Browser:
Opera Next

Reproduction:
Open any topic.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on December 27, 2015, 05:13:17 pm
Bug:
No avatar or other user info is displayed in topics.

Theme:
Smooth

Browser:
Opera Next

Reproduction:
Open any topic.

Notes:
It seems that this feature simply isn't implemented in the theme.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on December 27, 2015, 05:31:40 pm
Bug:
Our affiliated aren't displayed.

Theme:
GamerZ, Smooth, Elegant Mind, Astonished

Browser:
Opera Next

Reproduction:
They should be visible at the bottom or something like that.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on December 27, 2015, 05:34:25 pm
Bug:
There's a permanent horizontal scrollbar

Theme:
Astonished (didn't test others)

Browser:
Opera Next

Reproduction:
It happens on any page and on any resolution / window size.


KK20: I don't see this horizontal scroll bar on all themes in Chrome.

by Blizz: Fixed. The problem seems to appear, because the theme widths were 98%. I fixed it by changing it to 95%.
Title: Re: Bugs after upgrade to SMF 2
Post by: winkio on December 27, 2015, 06:25:10 pm
Bug:
The [url][/url] tags for youtube links are not working right (see http://forum.chaos-project.com/index.php/topic,68.2500.html).  Some youtube tag gets added to them, but not to other links.

Theme:
Astonished (didn't test others)

Browser:
Chrome

Reproduction:
It seems to happen on any url link to youtube


by Blizz: Fixed. LMAO, it turns out that the add-on for YT tags doesn't work, but that SMF 2 already supports them by default.
Title: Re: Bugs after upgrade to SMF 2
Post by: KK20 on December 27, 2015, 09:28:21 pm
Bug:
If spoiler has text (spoiler=TEXT_HERE), some BBC within it appear to not work (http://forum.chaos-project.com/index.php/topic,12164.0.html).

Theme:
GamerZ, Smooth, Elegant Mind, Astonished

Browser:
Chrome

Reproduction:

SAMPLE TEXT: ShowHide

This turned bold

This is a failed code block.


  • This list

  • also failed




by Blizz: Fixed.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on December 28, 2015, 03:14:29 am
Bug:
Our anti-spam protection is shit. It does use captcha, but that's proven to let through spam accounts all the time.

Theme:
all

Browser:
all

Reproduction:
Try to register a new account. We should bring back our old anti-spam protection.


by Blizz: Fixed.
Title: Re: Bugs after upgrade to SMF 2
Post by: winkio on January 02, 2016, 04:58:45 pm
Bug:
Forum does not update the last read post in a topic

Theme:
Smooth

Browser:
Chrome

Reproduction:
I can't tell if it started after the update, or after switching to the Smooth theme, but the forum is no longer updating the posts I read in topics.  It always takes me to the last post I read either before the conversion or before I switched themes.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on January 03, 2016, 02:57:33 pm
Bug:
Most BBCode tags don't work in the shoutbox.

Theme:
Astonished (not tested, but probably in all)

Browser:
Chrome

Reproduction:
Just try using [spoiler][/spoiler] or [img][/img] or another tag in the shoutbox.
Title: Re: Bugs after upgrade to SMF 2
Post by: Ryex on March 04, 2016, 03:53:55 pm
Bug:
Syntax Highlighting is broken and doesn't seem to be in use (may be as simple as an uninstall and reinstall of the mod)

Theme:
ChaosNew

Browser:
Chrome

Reproduction:
view a code block.
Title: Re: Bugs after upgrade to SMF 2
Post by: KK20 on August 10, 2016, 10:28:18 pm
I like how we kinda just accepted the horrible bugs and forgot they even existed xP

Quote from: Blizzard on December 27, 2015, 05:01:10 pm
Bug:
Code block is very small inside spoilers.

Themes:
GamerZ, Astonished, Smooth, Elegant Mind

Browser:
Opera Next, Chrome

Reproduction:
Just open any spoiler that has [code] tags inside.

Notes:
Likely be browser related. We used to have this issue on SMF 1.1.x.

One I would really like to see fixed at some point. I have only seen it work correctly on Firefox 45. If you click the spoiler before the page fully loads on Chrome, it works too.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on August 10, 2016, 10:51:27 pm
Something's probably weird with the formatting code. :/
Title: Re: Bugs after upgrade to SMF 2
Post by: Ryex on August 11, 2016, 01:07:16 am
ya, some how the syntax highlighter  doesn't pickup code tags inside spoilers. we fixed it before but I don't remember how.

Edit: wait what? the code syntax highlighter isn't even there! what happened?
the javascript code is gone completely from the header. is the mode even installed? I know I had it edited to work properly.
Title: Re: Bugs after upgrade to SMF 2
Post by: KK20 on January 04, 2017, 08:14:03 pm
I've been on a TamperMonkey script making kick lately, so I wanted to take a look at the spoilered code tags again.

The CSS for code blocks is this. Note the overflow: auto
http://forum.chaos-project.com/Themes/ChaosNew/css/index.css?fin20

/* A code block - maybe PHP ;). */
code.bbc_code
{
display: block;
font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
font-size: x-small;
background: #ffeeee;
border-top: 2px solid #999;
border-bottom: 2px solid #999;
line-height: 1.5em;
padding: 3px 1em;
overflow: auto;
white-space: nowrap;
/* Show a scrollbar after about 24 lines. */
max-height: 24em;
}

Code tags were being injected with a style="height: 20px" so I started digging around the JS files and found this:
http://forum.chaos-project.com/Themes/ChaosNew/scripts/theme.js?fin20

// The purpose of this code is to fix the height of overflow: auto blocks, because some browsers can't figure it out for themselves.
function smf_codeBoxFix()
{
var codeFix = document.getElementsByTagName('code');
for (var i = codeFix.length - 1; i >= 0; i--)
{
if (is_webkit && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + 'px';

else if (is_ff && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = 'scroll';

else if ('currentStyle' in codeFix[i] && codeFix[i].currentStyle.overflow == 'auto' && (codeFix[i].currentStyle.height == '' || codeFix[i].currentStyle.height == 'auto') && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0))
codeFix[i].style.height = (codeFix[i].offsetHeight + 24) + 'px';
}
}

Specifically the is_webkit part. Also makes sense why Firefox was working fine as evident by the next if-statement.
I'm not sure what the consequences could be for removing the few lines, but removing the style.height seemed to be fine for Chrome.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on January 05, 2017, 02:06:38 am
Can you try this with a few other browsers, including IE and Edge?
Title: Re: Bugs after upgrade to SMF 2
Post by: KK20 on January 05, 2017, 03:46:52 pm
Not at the moment, but I can when I'm at work tomorrow.

EDIT: Removing the style.height on Edge 14 looked fine. IE8 wasn't affected at all by the JS.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on January 05, 2017, 03:54:33 pm
I'll do the changes then when I catch some free time.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on January 17, 2017, 06:37:19 am
I set it to 200 rather than removing it. Check if it works now properly.
Title: Re: Bugs after upgrade to SMF 2
Post by: Ryex on January 17, 2017, 01:00:14 pm
It apears to be fixed.

Now we just have to figure out where the code formater plugin went
Title: Re: Bugs after upgrade to SMF 2
Post by: KK20 on January 17, 2017, 02:21:46 pm
 :???:
Spoiler: ShowHide
(http://i.imgur.com/dBW7SOC.png)
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on January 18, 2017, 03:28:41 pm
Try now.
Title: Re: Bugs after upgrade to SMF 2
Post by: KK20 on January 18, 2017, 03:50:50 pm
Y'all okay with this huge ass code block?

Viewing on Chrome.

Also Chrome on mobile is not fixed. Still small code blocks in spoilers.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on January 18, 2017, 05:04:18 pm
Looks like this for me:

Spoiler: ShowHide
(http://i.imgur.com/RwQq1bI.png)


I checked on both Opera Next and SRWare Iron, both are webkit-based browsers.
Title: Re: Bugs after upgrade to SMF 2
Post by: KK20 on January 18, 2017, 05:31:27 pm
This is what it looked like to me earlier
Chrome: ShowHide
(http://i.imgur.com/zq879s8.png)

But now it looks fixed.

On Firefox, it looks fine. If inside a spoiler, it always expands and shows the scroll bars. Not a huge deal, but w/e
Code: ShowHide
Test

Image: ShowHide
(http://i.imgur.com/uz5FwfK.png)



But yeah, Chrome on my Android (Chrome 55.0.2883.91, Android 6.0.1) doesn't even look like the changes did anything.
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on January 19, 2017, 03:51:14 am
I'm really out of ideas what else I can do. It's as if it just refuses to apply the proper dimensions on Chrome Android. :/
Title: Re: Bugs after upgrade to SMF 2
Post by: KK20 on January 20, 2017, 02:46:18 am
Weird that my home computer's Chrome is still not fixed while the one at work is. Looked at Dev Tools and the 20px height is still present in the theme.js file.
Tried refreshing, but that did nothing.
\:|

After clearing my cache, I saw that the offending line of code was commented out. Weird that my work computer did that automatically somehow...
Did the same on my phone and all is resolved now. lol
Title: Re: Bugs after upgrade to SMF 2
Post by: Blizzard on January 20, 2017, 03:12:44 am
I usually use CTRL+F5 when working on a webpage, because it ignores the cache and reloads the website entirely. xD
Good, at least it's fixed now.
Title: Re: Bugs after upgrade to SMF 2
Post by: Ryex on January 24, 2017, 04:24:09 pm
now to figure out where the syntax highlighter went.