Show Likes

This section allows you to view all posts where this member received or gave a like to.

1
Archived fixes / [CSS] Re: Login looking bad on small screens
Nao « on February 25th, 10:49 PM »
Should also modify the RSS feed list (in the sidebar) to use some normal stuff instead of these fucking dd/dt/dl tags. I'm really sick with them... display:table for the win? Heck you can even push columns to new rows through @media...
2
Bug reports / [Security] Re: BBCode in SQL Database
Nao « on February 11th, 11:04 PM »
Quote from CerealGuy on February 11th, 06:43 PM
So loading bbcodes from file works, language parsing works, additional loading bbcodes from sql works too.
The bbcodes as an array take 602 lines.
Did you simply turn it back into something similar to SMF's version?
Because it'd be best, I suppose, for plugin authors to 'understand' the thing...
Quote from CerealGuy on February 11th, 06:43 PM
Only problem i have is thinking of a good name for the sql fields and the array field.
Currently the functions are called 'validate' functions, which is in my opinion not describing it well, because you can also modify the content and do more advanced stuff as only validating. Any ideas for a better name? @Nao
Sure.
preprocess for pre-validation
postprocess for validation
Or just 'process' if you want to keep it simple.
3
Features / Re: New revs
Nao « on February 11th, 07:49 PM »
Quote from Nao on February 11th, 04:00 PM
A departure from SMF-based forums: redirectexit() will no longer add the session variable to the URL if it's already in a cookie. I'll be honest with you, I never noticed that variable before, but it's started showing up everywhere in my new server. If you know why, feel free to share! Other than that, this update is very logical, so for those like me who have the problem, there you go. (Subs.php)
Okay, I may have found out why this happened...
https://bugs.php.net/bug.php?id=72940
Apparently, there was a bug between PHP 7.0 and 7.0.10 where the SID constant was defined even when a session cookie was set.
I'm using PHP 7.0.8, so that could be the reason.
At least I wasn't mad... :^^;:
I'm likely to keep that code in place, it's not like it's gonna cause issues after PHP 7.0.10.
4
Archived fixes / [CSS] Re: Login looking bad on small screens
Nao « on February 8th, 08:21 PM »
So... Looked a bit into this commit, and I have a few remarks.
- overflow: auto isn't about adding scrollbars, it's about clearfixing the item. It's a well-known advantage of that overflow type. As long as you don't actually have a div big enough to get scrollbars, it's all fine.
- I tried to revert the commit locally, and only keep the @media override at the end. It worked perfectly that way (i.e. I'm getting what you showed in your last screenshot.). Are you sure you didn't commit too much...? I understand that precedence might be a problem, but you could simply add body #wedge before the declaration, and the .login dt will then get better precedence. However I didn't even get problems myself...
I tried to change the media width to 600px instead of 450, and same results to me.
Interestingly, I also removed the overflow entirely, and didn't get any issues.

Can you look into this..? (e.g. just try wedge.org on your mobile phone and browser...)
5
Features / Re: New revs
Nao « on January 24th, 11:58 PM »
[Commit revision f1bbb2a]
Author: Nao
Date: Sat, 21 Jan 2017 23:48:29 +0100
Stats: 2 files changed; +2 (insertions), -6 (deletions)

  • Fixed a couple of scandir calls to be more fault-tolerant. I think. (ManageAttachments.php, Post.php)

[Commit revision 7ae7331]
Author: Nao
Date: Tue, 24 Jan 2017 23:38:27 +0100
Stats: 1 file changed; +9 (insertions), -1 (deletion)

  • Closing a potential security hole when posting external links in a message. (Subs-BBC.php)

[Commit revision fa107a7]
Author: Nao
Date: Tue, 24 Jan 2017 23:42:23 +0100
Stats: 1 file changed; +1 (insertion), -0 (deletion)

  • The '%3b' fix for URLs followed from e-mail clients (or even some weird spam bots following these links) was only applied in case semicolons are accepted by the server setup. It is also very much a problem for other setups, believe me I've gone through it, so I'm fixing it as well for them. (QueryString.php)

[Commit revision 7bd17c2]
Author: Nao
Date: Tue, 24 Jan 2017 23:45:16 +0100
Stats: 1 file changed; +1 (insertion), -1 (deletion)

  • Preventing bots from seeing the skin selector page. As I mentioned in my previous commit, I've seen weird things where Baidu and another bot seem to develop romantic feelings towards any page with action=skin in its name. Maybe because of the name..? I don't know. You tell me. (Subs.php)

[Commit revision 933a87e]
Author: Nao
Date: Tue, 24 Jan 2017 23:50:31 +0100
Stats: 1 file changed; +8 (insertions), -3 (deletions)

  • Unix-based servers see similar folder names like 'Hello' and 'heLLo' as different names. This causes a problem when moving a folder from one server to another. Again, I LIVED THROUGH THAT HORROR. Media gallery folders will now be case insensitive, and simply go through adding a number to the folder name if it already exists, regardless of whether Linux etc. accepts it. Plus, you know I'm a sucker for writing cool geeky one-liners like this one. (Subs-Media.php)

[Commit revision ed2e23e]
Author: Nao
Date: Tue, 24 Jan 2017 23:51:42 +0100
Stats: 1 file changed; +1 (insertion), -1 (deletion)

  • PHP 7 doesn't like break commands outside of their natural habitat. Let's just assume the author of that library just meant to say 'return'. (getid3/getid3.lib.php)

[Commit revision 174ad41]
Author: Nao
Date: Tue, 24 Jan 2017 23:57:48 +0100
Stats: 1 file changed; +2 (insertions), -2 (deletions)

  • Attempting to fix database errors that come up in MySQL 5.7+ because of strict mode being enabled by default. This is only the beginning, as thought pages also have the problem. (Aeva-Foxy.php)
  • Also a very, very minor bug fix when counting files. I'm not sure it even deserves its own description. You know, the line you're reading right now. Which, if you could just stop for a second and think about it, really says something about your priorities in life. You could be teaching kids how to make pasta, learning a new local language, reading up about agricultural politics in Thailand, and yet you chose to read a changelog about a minor bug in a library that no one uses because, let's be honest here, I'd probably make the world a better place by doing one of the aforementioned things. (Aeva-Subs-Vital.php)
6
Features / Re: New revs
Nao « on January 20th, 06:55 PM »
[Commit revision d0fe5c4]
Author: Nao
Date: Fri, 20 Jan 2017 18:55:04 +0100
Stats: 1 file changed; +1 (insertion), -1 (deletion)

  • scandir() returns a filename, not a fully qualified path, making the captcha code sketchy at best. Hey Pete, I miss you fixing your own bugs! ;) (Subs-Captcha.php)
7
If you'll excuse me, the BEFORE picture looks like the RIGHT one to me... This CSS bit is intended to make the whole thing work on mobile contexts. Having the prev/next titles shown to the left and right makes no sense in that way. That's why I settled on moving them to the top & bottom. Actually, it's the ONLY reason I used this complicated setup at all... :^^;:
8
Archived fixes / Re: Don't Show Captcha
French « on January 2nd, 06:18 AM »
Anti Spam->Configure Captcha images:
Is the Use of animated captcha images ticked.
9
Archived fixes / Re: Don't Show Captcha
subram « on January 2nd, 08:50 PM »
Thank you. It is solved my problem.
10
The Pub / Re: How I miss the freedom of coding the easy way...
Nao « on November 25th, 2016, 01:40 PM »
Actually, unlike SMF, Wedge *does* fall back to English if a specific string (or an entire file) is missing from the translation.
One of the things that bother me is that SMF never put a clear wall between the admin & public areas. That is, it's MUCH easier to translate JUST the text visible to regular users, and leave the rest in English. It makes the idea of starting a translation from scratch much less scary.
Because, let's face it, if you DON'T speak English at all, you're better off NOT trying to administrate a forum, or even a website in general... I'm not saying you shouldn't, I'm saying perhaps you should consider leaving it to someone else. ;)

I don't know, regarding this txt() thing, what do you guys think..?

It couldn't be magically done with a mass replace though, because of the whole 'context' thing. Although I suppose we could just write a quick tool to go through all strings in all files, and print out the duplicate ones, and apply a context to each of them.

Time goes by and I still regret that Wedge never took off. If there was a large community behind it, it would be so encouraging. Then again it would also make it harder to do breaking changes like these... ;)
Gosh it's been so long, I'm getting lost in my own code changes. For instance, I don't remember how to override a template function from within a Custom.template.php file... At least I remember I can do that, lol. I'll need to find where I documented that...