Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Arantor
4771
Features / Re: How about PMs being listed in Core Features?
« on February 26th, 2012, 05:45 PM »
A decent amount of this is now in the trunk :)
4772
Features / Re: New revs
« on February 26th, 2012, 05:44 PM »
(9 modified, 8KB)

Revision: 1387
Author: arantor
Date: 26 February 2012 16:44:26
Message:
+ Personal messages settings are now in their own page, under Members. I haven't yet pulled everything in, but the most important stuff is there - and it should also disable PMs throughout the system otherwise. It also doesn't clean up things like profile settings, or disabling them through the main permissions area, but we'll get there. (index.php, install.sql, Admin.php, Load.php, ManageSettings.php, Subs.php, Welcome.template.php, Admin and ManageSettings language files)
----
Modified : /trunk/Sources/Admin.php
Modified : /trunk/Sources/Load.php
Modified : /trunk/Sources/ManageSettings.php
Modified : /trunk/Sources/Subs.php
Modified : /trunk/Themes/default/Welcome.template.php
Modified : /trunk/Themes/default/languages/Admin.english.php
Modified : /trunk/Themes/default/languages/ManageSettings.english.php
Modified : /trunk/index.php
Modified : /trunk/other/install.sql
4773
Off-topic / Re: New here!
« on February 26th, 2012, 04:59 PM »
Quote
I think it should be an Anti-Spam page feature.
You can add it to the Anti-Spam page feature very easily, just add a new entry in that page for 'signature_minposts' and it'll work ;)

Website could be done but it seems like it'd be a bit too complex for something that's essentially very minor (whereas signature is much more high profile)
4774
Features / Re: Privacy options
« on February 26th, 2012, 03:58 PM »
Quote
Looks like you didn't compile the list I asked you to do... I know, I know, it's annoying for you too
There's an awful lot here >_> I'm actually at the point where I don't know where to start with compiling such a list.
Quote
Wouldn't feel comfortable doing so.
That's how I feel about working with Aeva's code a lot of the time, actually. But honestly, if it doesn't work for you, change it. That's the beauty of stuff like this - nothing's set in stone and as such it's fluid and can be adjusted and improved. I'm not convinced that it'll be perfect first time - and nor should it. If you never make mistakes, you never learn anything!
Quote
I don't think I said that...?
In that case I wasn't clear on what you were suggesting, because I thought you meant the master admin tab in the main menu, rather than a sub menu.
Quote
Oh, possible re-ordering of the menus: (I'm translating from French to English from memory)
Features & Settings > Settings, Pretty URLs, Anti-spam
Moderation > Settings (currently 'Moderation' in 'Security & Moderation'), Moderation filters, and maybe a link to add a filter directly?
So... (I just find it easier to visualise it in a real hierarchy)

Configuration
   Features and Settings
      General
      Pretty URLs
      Anti-Spam
   Moderation
      Settings
      Moderation Filters
      Add a new filter rule

Hm. I'd rather bring anti-spam under the moderation menu, really. It's really closer to that than to general configuration. In which case we're really talking about:

Configuration
   Features and Settings
      General
      Pretty URLs
   Moderation
      Anti-Spam
      Warnings
      Settings
      Moderation Filters
      Add a new filter rule

It doesn't save us anything and has a byproduct of pushing things to side entries - I deliberately made Mod Filters a top level item, much as I would do if Post Moderation were its own item (and not configured through mod filters), simply because it's a task of configuration that needs to be prominent - it's forum wide and not subtle.
Quote
I have this fear all of a sudden... If t.approved=0, then m.approved=0 where m.id_msg=t.id_first_msg...
When a topic is moderated, the first post is also moderated.
Quote
It means we have to add inner joins on every single friggin' table.
I'm not seeing the problem? If you're validating topic access, the topic's approved state is all that matters - when the topic is approved, the first post is also updated.[1]

Oh. Wait a minute, now I do: it won't apply to messages after the first one.

Actually, though, that's still not a problem. When would you ever make a query against messages when you haven't already checked the topic in some fashion? Be that directly yourself or less directly by way of loadBoard()...
Quote
It would seem to me that unapprovedTopics and unapprovedPosts variables would be good things to have, if only to make the queries faster.

Basically, I thought that we had unapproved_posts somewhere, so it was easy thinking: because a topic is a post, if there are no unapproved posts, then there are no unapproved topics, thus we can skip the test entirely.
It would make a difference, certainly. It's just a little housekeeping that's needed is all.
Quote
On your time and your own terms, of course.
I'll look into it, it's just a bit complicated, heh, and there are things I'd rather do first. That said, right now only you and I have seen this subsystem which means our opinions are a touch polarised on it. What I'd suggest is that we let people play with it and see what works for them.
Quote
And no, I don't particularly like to give you more work to do... I'm busy on my own things, too
I'll look at it shortly, as part of a few other things I'm doing today.
Quote
Sure, and this just reminds me that maybe I should have done something else instead of simplifying your JS code to use toggle(boolean)...
Hey, it was a useful thing to discover, I fixed up an otherwise broken UI because of it :)
Quote
So... Shall we change these to use postmod_active all the time?
Heck... Maybe we could have a {query_see_message} as well. Why not? It'd be simpler -- just the 'approved' test. Although sometimes the tables have a different alias from 'm'...
I'd suggest leaving it as is for now - there are people who aren't going to use moderation filters, no sense penalising them. As  far as tables go, there are plenty of times m isn't the table alias (message index is the one that really comes to mind) so it's not like we can directly make it easy that way, sadly.
Quote
Why XSS? If we're careful to replace 039 with a quoted single quote right before insertion, it shouldn't be a problem...?
There isn't a *huge* risk from XSS, because it sort of implies weaknesses elsewhere that have to be compromised too, but in the case I'm thinking of, ' can be used instead of " for quoting attributes.
Quote
Yes, and thoughts and topics, when set to a privacy of 'author', are not meant to be published. And thus, should be treated the same way as PMs, in my opinion. Unlike an unapproved post, which requires an admin to read them before they're available to everyone.

I mean, admins can't access anyone else's drafts either, can they...?
Yes, that's a valid POV (and no, drafts can't be accessed by anyone other than the author - but just as with PMs, admins can still read them in the DB... there are no other protections made in that respect, so the software doesn't enable but it doesn't proactively prevent it either)
Quote
But how could it be faster than a subselect that, first, doesn't always get executed (yeah, we could apply the same stuff to the left join, but it'd be quite tiresome), and second, uses the same secondary table so should effectively be as fast as the join...?
I wasn't really debating subselect vs join, the real performance is whether the table's able to be kept in memory or not.
Quote
I'm just surprised nobody mentioned that particular forum in here...
I guess it just never came up. (And re Kevin Smith, his earlier stuff is far funnier than his latest stuff, though his later stuff is meant to be less comedic, I guess.)
Quote
Hmm, maybe it could be set within the 'author' privacy setting. i.e. if you reply another thought but set it to 'author', what good is it...? If it's just to say "Die, die sucker!", it's not very smart...
This needs its own topic.
Quote
I don't know about G+'s privacy features, I never actually used the thing (in spite of my account over there.)
I just know that Facebook's privacy settings are more extensive now than they used to be...
Essentially you create groups as you see fit and you can share items to none, one or more groups.
 1. Whether it's approved from the view-unapproved-topics page, or from approving the first message directly, it doesn't matter which, both are updated.
4775
Features / Re: New revs
« on February 26th, 2012, 03:30 PM »
(7 files, 5KB)

Revision: 1386
Author: arantor
Date: 26 February 2012 14:30:13
Message:
! Fix undefined variable $uid in query_see_topic that was causing it to break for non admins. (Load.php)

! Allow admins to set a number of posts before signatures become visible - users under the post count can still view and edit it but it won't be displayed normally unless they're an admin (primary group only for performance) or they have enough posts, it will show in their profile if it's their profile or you're looking at someone else's profile and you have permission to edit their signature. It sounds more complex than it really is. (Load.php, ManageMemberOptions.php, Profile-Modify.php, Profile.template.php, Help/ManageSettings/Profile language files)
----
Modified : /trunk/Sources/Load.php
Modified : /trunk/Sources/ManageMemberOptions.php
Modified : /trunk/Sources/Profile-Modify.php
Modified : /trunk/Themes/default/Profile.template.php
Modified : /trunk/Themes/default/languages/Help.english.php
Modified : /trunk/Themes/default/languages/ManageSettings.english.php
Modified : /trunk/Themes/default/languages/Profile.english.php
4776
Off-topic / Re: New here!
« on February 26th, 2012, 02:12 PM »
Quote
Hmm, where do I set this up in Wedge already, BTW...?
That part we need to add, the only thing we can do in Wedge thus far is prevent signatures from being set in the first place with permissions.
Posted: February 26th, 2012, 02:02 PM

My gut instinct tells me it should be made as a preference in the signatures page rather than trying to bolt it on as a regular signature - how many posts to have before displaying such signatures publicly.
4777
It will be mostly the boards template with a little tweaking of CSS to re-align things with the changed structure.

The advantage of having thead and tbody is that you can semantically group rows together - and there's already tbodys present so it's not like I'm dumping new tags everywhere, just tweaking what's there.
4778
The Pub / Re: Trying something a bit new
« on February 25th, 2012, 04:03 PM »
And remember, this is *purely* done using the theme system - there are no new templates involved.
4779
No reason to reproduce exactly other than because I want to.

But right now your choices are actually limited. You cannot put any kind of visual border around a single category to keep it visually broken away from any other category - without changing the code.
4780
The Pub / Re: Trying something a bit new
« on February 25th, 2012, 03:12 PM »
Dragging this back on topic a bit, I did some more work on fixing the styling up. Notably, I've altered the menu to be reminiscent of Core's menu - but not that similar.

The board index still needs work as does post display, but the message index looks good :)
4781
OK, so I was working on my style based on SMF's Core theme again, and I realised that the board index actually needs some work to it in the markup.

Those of you who remember the Core theme will probably remember that in Core, each category was a separate block visually - well, turns out it's also a separate block in the markup, i.e. a separate table. But in Curve, it's one massive table for the entire board index.

Specifically, it's a single massive table that uses 3 tbodys per category, one for the heading, one for the boards and one as a divider between boards.

I'm suggesting the structure be altered thus:
* a new div around the board index (encapsulating everything that is currently #board_list)
* a new table for each category
* said table should use a thead for the category name and tbody to contain each of the rows, which is both easier to style and more semantically correct
* the divider between categories should be handled a div in case people want to style it or otherwise target it (much as currently it's a tbody.divider, it should become a div.table_divider or similarly named class)

This combination of things should allow us to retain anything that can be presently done against Curve markup whilst also allowing for the sorts of things I want to do in my Core mashup (like putting borders around entire categories to visually separate them from everything else)

Thoughts?
4782
Features / Re: Badges and the displaying thereof
« on February 25th, 2012, 01:35 PM »
So, do you show multiple badges on people? How would you want to configure multiple badges?
4783
The Pub / Re: Wap is that?
« on February 25th, 2012, 01:31 PM »
I'd suspect that's primarily WAP they're talking about.
Quote from MultiformeIngegno on February 25th, 2012, 09:24 AM
I always read on reports that Norway and Denmark are soooo advanced in technologies and infrastructures. that they have Internet at 1000000000 terabits and then they use wap?? XD
200 out of 5000000 people use it. In any population there are those who steadfastly refuse to move forwards.
4784
Plugins / Re: Settings page integration
« on February 25th, 2012, 03:34 AM »
Because I was lazy :P I have no problem with using option instead of opt, just laziness on my part.
4785
Plugins / Re: Settings page integration
« on February 25th, 2012, 02:48 AM »
Somehow that doesn't surprise me one bit.

OK, so more relevantly, do you like the syntax proposed? Would you use it for the intended case?