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 - Nao
4966
Features / Re: Badges and the displaying thereof
« on June 6th, 2012, 12:26 AM »
Quote from Arantor on June 6th, 2012, 12:05 AM
The show_when field makes sense, and ordering by id will give priority to admin, global moderator, then moderator, then all the post count groups >_> May not be ideal, which is why I suggested an explicit ordering in the table.
Actually I did it that way:
- get all groups (id_group + additional_groups)
- sort them
- test against them
- then finally, test against the id_post_group

Which effectively makes id_post_group the lowest priority one...
Anyway -- it works overall, but it's really geared towards making badges...
For instance, in my local install, which has the default groups, my account is showing the Admin badge (which is 3 rank images), then the Junior badge (which is 1 rank image).
It should have been showing instead an 'Admin' badge and then the lone star...
I'm stuck on this. Couldn't figure out a way to properly do it.

Also, as stupid as it may sound, I totally forgot to deal with textual group names... Means a further rewrite ahead for me... Ah, well.

I also added a 'userbox' type for LMD, will probably become 'display' or 'topic' later. It allows me to get rid of several entries that aren't used in Display.php and take some processing time, such as member_ip... (Well, member_ip is normally used, but I don't know if it's worth it, for instance...)
Of course, the final generated page isn't any faster than the earlier ones. NO KIDDIN'. Well, at least it doesn't seem slower either...
4967
Features / Re: Badges and the displaying thereof
« on June 5th, 2012, 11:57 PM »
This feature implementation is starting to get on my nerves...
It means a lot more rewrites than I hoped for. Well, I hoped, but I had little confidence, because I knew I was going to bump into problems with Wedge assuming that the 'group' entry in the context array is a string rather than an array...

As for performance, I don't think it has much influence though.

What about the show_when field? Right now I have these settings: 0 = never, 1 = always, 2 = only when no other badge is shown. Also, groups are sorted by ID so that admin and moderator groups have priority over the rest... I don't know if it's for the better?
4968
Archived fixes / Re: Mobile Version
« on June 5th, 2012, 08:45 PM »
Yes, and it should be working for you, are you sure you didn't change the skin *while* you were visiting the site on your mobile, by any chance..?

If not, go there and copy/paste your Wave's user agent here:

http://whatsmyuseragent.com/
4969
Archived fixes / Re: Mobile Version
« on June 5th, 2012, 07:51 PM »
Sorry, site was down for some time...
Didn't realize my FTP client had failed to upload Class-MoDe.php properly -- so it was generating errors on new sessions.
4970
Archived fixes / Re: Mobile Version
« on June 5th, 2012, 05:20 PM »
There aren't any 'wave' ua strings available, only phone models which I'm not going to care about, so I added a generic 'samsung' string... I doubt they'll ever release a desktop browser, so it should be fine forever.

Can you confirm you get the wireless skin by default, now..?
4971
Archived fixes / Re: Mobile Version
« on June 5th, 2012, 05:02 PM »
Okay. I'll have a look at the ua for Wave and add it to my list if it isn't there.
4972
Archived fixes / Re: Mobile Version
« on June 5th, 2012, 04:44 PM »
So..?
4973
And another draft for me today -- in the Mobile version topic. And once again, it's an incomplete post written on my iPod, meaning that there is definitely a problem with the draft system, even without race conditions taken into account.
4974
Chances that this will happen are VERY slim, while a draft being submitted after hitting submit are much higher, because it can take a few seconds for a post to be sent and redirect to the next page -- and during these few seconds, the draft system might very well decide to save the post on its side... i.e. while the post is being submitted, i.e. most likely AFTER the draft was supposedly removed from the database.

(Why don't you comment on my request for membergroup caching...? Out of ideas?)
4975
Archived fixes / Re: Mobile Version
« on June 5th, 2012, 01:23 PM »
Nothing will be done until I have an opportunity to play with any devices people want support for.

As for detection, iirc Wedge should redirect most mobile and tablet devices to the wireless skin. If it doesn't, go to your profile, change skin and check whether you're on the wireless or weaving skin.
4976
Draft & submit?

How about disabling drafts as soon as the submit button is hit?
4977
Archived fixes / Re: Mobile Version
« on June 5th, 2012, 12:31 PM »
There's a mobile version, can be seen here as well, but it's really mostly geared towards iOS...
Not that I prefer iOS, but I simply have no other devices to test on.
4978
Off-topic / Re: Old layout vs new layout?
« on June 5th, 2012, 11:27 AM »
I'm surprised to hear that!
I would have thought that you guys (not you in particular :P) had a mixed relationship with the English language, because of India's history of colonialism.... Generally, freed countries tend to ban anything that reminds people of this past. I know that use of French language in Algeria is only officially 'tolerated', for instance...
4979
Features / Re: New revs
« on June 5th, 2012, 09:41 AM »
rev 1608
(19 files, 2kb)

! SMF bug: a 'replace' DB query shouldn't use the 'order by null' optimization. Fixed by Pete! (Class-DB.php)

! IP logger should ignore duplicates on insertion (race condition). (QueryString.php)

* Harmonized wesql::insert('insert') to wesql::insert(''), like most calls. (install.php, Like.php, ManageMembergroups.php, ManagePaid.php, ManagePermissions.php, ManageSearchEngines.php, Poll.php, Post2.php, Profile-Modify.php, ScheduledTasks.php, Security.php, Subs-Boards.php, Subs-Members.php, Subs-Post.php, Subs-Scheduled.php, SSI.php)
4980
Off-topic / Re: Old layout vs new layout?
« on June 5th, 2012, 09:33 AM »
Silly question -- why is the site in English...?