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
2806
Archived fixes / Re: Undefinded function: sendemail()
« on June 19th, 2013, 06:09 PM »
I dunno where I can view the mail queue, but all I know is that the settings I had for it, were: disabled, 0 and 0 (for the two numeric options). Looking at the code, it should have been 5, so... I don't know what's happening, I guess...

Also, did you ever find time to look into the error in the profile area, that I mentioned last week or so..? Because I still haven't uploaded to here IIRC, precisely for that reason, so you could test again, or something...
2807
Plugins / [Plugin] Re: Notifications system (1.0)
« on June 19th, 2013, 06:08 PM »
Quote from Dragooon on June 19th, 2013, 01:27 PM
This seems better suited for my generic button controls idea. Basically I wanted notifiers to be able to add their own control buttons which can do whatever they want, that way they can have more control on a per-notifier basis instead of we determining their behaviour.
Hmmm... That, I could possibly do, I guess... I'll have a look. That would also, I guess, solve some of our problems...

Basically, we'd need to move the preview action to another function in the Notifier object, is that it..?
Quote
Do whatever the hell you want with emails, I can use all the help I can get there. I have no idea how to simplify those :P
Yeah, I still don't know either, since generic strings at the end of the e-mail are cool, but they also imply one shouldn't use HTML in the notification language string, either... Hmm...
2808
Plugins / [Plugin] Re: Notifications system (1.0)
« on June 19th, 2013, 06:05 PM »
Quote from Dragooon on June 19th, 2013, 08:25 AM
Quote
No. They can't disable likes notifs for topics, while keeping likes notifs for media items... See what I mean?
They will be able to. Since the notifier for topics will never be same as the notifier for media items, it'll be a different notifier. Like there are different notifier for quotes and mentions. getObjectType is more or less redundant with individual notifier, the whole idea is to implement different notifiers for different individual items.
Why don't notifier (plugins) inherit from the Notifications class rather than Notifier, anyway..?
2809
Off-topic / Re: Post count fever
« on June 19th, 2013, 12:31 AM »
Pete's next post will be his 14k-th!
2810
Plugins / [Plugin] Re: Notifications system (1.0)
« on June 19th, 2013, 12:28 AM »
No feedback from anyone = no one cares about notifications...?

Should I remove the entire notification system, or just the new things I was working on..? ::)
2811
Archived fixes / Re: Can't Post Thoughts on IE10 on Win8
« on June 19th, 2013, 12:27 AM »
What error then..?
2812
Plugins / [Plugin] Re: Notifications system (1.0)
« on June 18th, 2013, 09:17 PM »
Quote from Dragooon on June 18th, 2013, 06:14 PM
What you're trying to do sounds like a coding nightmare.
How so?
Quote from Dragooon on June 18th, 2013, 06:14 PM
Users can disable individual notifiers, and they can already do that.
No. They can't disable likes notifs for topics, while keeping likes notifs for media items... See what I mean?
Quote from Dragooon on June 18th, 2013, 06:14 PM
Not sure how it can be further simplified without complicating the coding process.
Well, in any case, non-messages have to be taken into account... Otherwise, notifications won't be very far..!
2813
Plugins / [Plugin] Re: Notifications system (1.0)
« on June 18th, 2013, 06:08 PM »
Using getName() for object type, implies that for instance, users can disable notifications for topics but not for media items, things like that...
It sounds like UI nightmare, to me. It should just be 'likes', and then have a getObjectType method, which returns 'topic' by default.

It really makes more sense to store the object type. I'll assume it's stored in the data field, in the meantime, until we agree on something...
2814
Plugins / [Plugin] Re: Notifications system (1.0)
« on June 18th, 2013, 04:59 PM »
getName() would return 'likes'. This would assume that all likes are for posts (or thoughts), when they can be for either of them...
Thus, getType() (or getObjectType(), if you prefer), would return 'topic' or 'thought' (or 'media' or whatever, once I implement liking media items...), depending on the target.

See what I mean..?

Anyway, other than that, happy to receive any feedback from you on the other matters..?
Sorry about the long post. Someone has to take Pete's place when he's on vacation... :lol:
2815
Archived fixes / Re: Can't Post Thoughts on IE10 on Win8
« on June 18th, 2013, 03:14 PM »
Nah, it's bad that it's just your problem, otherwise, it'd already be fixed... ;)
2816
Archived fixes / Re: Undefinded function: sendemail()
« on June 18th, 2013, 03:11 PM »
On my setup, mail queue was enabled, and set to '0' maximum e-mails... That probably didn't help! Since I don't remember touching this... Maybe it's a bug in the Wedge install process, I don't know..?
Anyway, [yesterday] I disabled the mail queue as a test, and it still didn't work, then I modified the php.ini file and restarted, and then it worked. So, right now, mail queue is disabled for me...
2817
Plugins / Re: Popular topics
« on June 18th, 2013, 03:03 PM »
This is mostly useful for large forums, right..? On a forum like Wedge.org, you can simply have a look at the numbers next to the latest topics, in the homepage..?
2818
Plugins / [Plugin] Re: Notifications system (1.0)
« on June 18th, 2013, 03:02 PM »
So, I'm back working a bit on notifications, here's what I'm trying to add...

1/ Object type: return the type of the notification's object, of course. Right now, we're always assuming this to be a topic, when it could very well be something else, like a thought. Here's where I'm having trouble:

* The database only has an id_object, but no type for it. Meaning, at this point, you really can't specify a type per-object, unless I forgot something else... Can you help on this, Dragooon? Or anyone else... I don't see any way, other than adding a database entry... It was built to support multiple types, right..? Otherwise, it'd have been called id_topic, not id_object...

* What's the difference between these..? (In Class-Notification)

Code: [Select]
public function getText()
{
return $this->notifier->getText($this);
}

...

public function getObject()
{
return $this->id_object;
}

To be specific, I don't know if my getType() method should relay to $this->notifier, or not. I also really don't know why there's a difference, in here... (?)
I guess I'm having trouble, mostly with what a notifier is, and why it's needed, as opposed to just having everything in the notification class... (?)

2/ More options in notifications. This is quite simple, here... When you preview a message, you'll get a new line below it, with several links: "Mark as unread", "In context", and "First unread". "First unread" is only valid for topics, which is why I needed to implement (1), so whatever. It leads you to the first unread post in the related topic, or at least it tells you that there are unread posts *before* the notification's, allowing you to catch up with them, instead of losing the unread count when going to the notif post in context. I don't know if I'm clear enough, uh...? Just wanna know what you guys think about these...

3/ E-mail notifications. I'm working hard on this...

* The first thing I need to fix so hard, is the HTML e-mails. To solve this, I've decided to simply force plugin authors to add an extra language entry, so there's one for the popup notification, and one for the e-mail. That way, you can have a purely text e-mail, and still use HTML in the popup. I'm not comfortable with the various notification objects, so I'll just commit something a bit horrible, and I'm counting on you guys to offer shorter, better rewrites, as I'm only doing the bulk of it, and don't want to mess my mind with abstract stuff... ^^

* Second thing, I need to ensure that pretty URLs are applied to the message, but I can't go through ob_sessrewrite but it'll do other things, like cutting URLs. Two solutions: either I *do* go through ob_sessrewrite but with a special setting saying "Okay, this is for an e-mail, so don't screw up with it!", which is what is in my local code for now; or, I simply do it à la redirectexit(), which is call pretty URL transformation independently, and be done with it. I'm thinking I'll go with the second one, but I need to know if you guys agree, i.e. do you think there's something else to transform in e-mails..?

* Thirdly, I changed all %s and %d to {VARIABLE_NAMES}, like in EmailTemplates, which makes sense, since it has the same purpose. Plus, it's more self-explained... Don't really need an opinion on this, I'll do it this way anyway, from now on... ;) I also chose going with underscores, because e-mail templates use {VARIABLENAMES}, which I find less readable, but I can't bother to fix THESE now... Eh.

* And lastly, right now the mentions notification will show something like, "(link to user) mentioned you in (link to post)", while likes will show, "(user name) liked your post (post name)". The first has links, the second has raw text. Main advantage of the first one, you obviously can directly click on these links (which I don't like because of the "first unread" issue I discussed above), and also see the member type, since it has the associated class, which the likes notifications don't have. Of course, the first won't show correctly in e-mails, so I'm trying to determine which is best... (a) just let the HTML be as it is, with links and all, and turn them to pure text at notification e-mail sending time. It's easy enough to do, with just a simple strip_tags, and would save authors the hassle of providing two strongly different language strings. However, I was thinking, maybe I could go one step further, and instead of requiring two language strings, I could turn a regular link to Nao into "Nao (http://wedge.org/profile/Nao/)", right in the text. Thus, instead of having an e-mail string like "...mentioned you in {POST_TITLE}, which you can read here: {POST_URL}", we could have "...mentioned you in {POST}.", where {POST} is turned into a link in HTML, and when used for e-mails, into a simple text, "{POST_TITLE} ({POST_URL})"...
What do you think?

I know it's a lot, but I'm kind of stuck in all of these areas right now, and I don't know which direction to go, so any opinions, would be greatly appreciated... :)
Posted: June 18th, 2013, 02:59 PM

Oh... Or, I could do a 'generic' string for e-mails, appended to any notifications:

Link to the user's profile:
{MEMBER_HREF}

Link to the post: (if this is a topic, of course...)
{POST_HREF}

I could add all of these links by analyzing the contents of the string. If it has {MEMBER} in it, strip the link, then add it at the bottom, etc...
2819
The Pub / Re: Not using version numbers as such
« on June 17th, 2013, 07:34 PM »
Well, I think for now, we have enough trouble deciding whether the first release with be called 1.0 or 0.1, so, whatever... :lol:
2820
Archived fixes / Re: Undefinded function: sendemail()
« on June 17th, 2013, 06:39 PM »
Silly question...
How am I supposed to make e-mail sending work, on my local install..?
Is there a tutorial, somewhere?
Posted: June 17th, 2013, 06:35 PM

Alright, managed to make it work... ;) Using my ISP's.