Advertisement:

Author Topic: [WIP] Breeze  (Read 32232 times)

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #20 on: March 12, 2012, 07:28:25 PM »
Looks really great. How's the server load when you use the mod?

Currently it does not loads the status/comments via Ajax every X seconds/minutes, thus there isn't a server load because of it.
It can be done without too much trouble, but I prefer not to do it unless there is enough people interested on it.

The mod uses the SMF cache system whenever possible, keeping the queries on a low number, I haven't test it on a medium to large forum yet so I cannot say how well the mod will behave.


The notification system I had planned doesn't refresh automatically either.
The devil will find work for idle hands to do.

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #21 on: March 12, 2012, 08:41:52 PM »
With that being said, this mod isn't intended as a shoutbox or a real-time message system, that's why I do not plan to implement the auto-refresh feature, perhaps the only feature that will include ajax reloads will be the notification system.
The devil will find work for idle hands to do.

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,011
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: [WIP] Breeze
« Reply #22 on: March 12, 2012, 09:29:16 PM »
Great Suki, I wish I could say that I can help but, really I don't know all the things that you do  :-[
If I was of any help, please consider link one of my sites in your forum or mod :)
Si te fui de ayuda considera likear uno de mis sitios
www.desadaptados.net - www.musicaysonido.com
Adsense Compatible!!





Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #23 on: March 13, 2012, 09:12:09 AM »
All the  changes and commits are on github:

https://github.com/MissAllSunday/Breeze/commits/master/


The architecture is pretty simple and straight forward, the main file and center of the whole code is Breeze_Query.php  which handles all the queries made by the different classes.

Apart from that, the rest is a mix up of procedural and OOP, I used a singleton pattern for things like the settings and text strings (Breeze_Settings).

But yeah, anyone other than me would find it difficult to understand the whole thing (Breeze is definitely not a role model on software architecture), sometimes even I have to re-read some classes just to know how exactly am I going to use them or to understand why did I wrote them like that :P

The devil will find work for idle hands to do.

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #24 on: March 16, 2012, 06:07:08 PM »
OK a new beta for Breeze:  http://missallsunday.com/index.php?topic=114.msg405#msg405

-Buddy system
-Notification system
-UI improvements
-JavaScript improvements

It's a lot more stable, there are some issues, specially with the permissions, on install please be sure to give all user groups the proper permissions.

Download:  http://missallsunday.com/Downloads/Breeze.zip


Please give it a shot and tell me what you think about it so far, feedback is more than welcome :)


About the Buddy system.

Currently it only does send a pm back the the user who requested when the user confirm the buddy request, if the user decline the buddy request then there is no PM.

Should I include a PM for declining too?
 

As always, a live demo can be found on my site.
« Last Edit: March 16, 2012, 06:10:30 PM by Suki »
The devil will find work for idle hands to do.

Offline Kindred

  • Support Specialist
  • SMF Master
  • *
  • Posts: 31,459
  • Gender: Male
    • wagner999 on Facebook
    • @Kindred_999 on Twitter
Re: [WIP] Breeze
« Reply #25 on: March 19, 2012, 11:59:19 AM »
hmmmm....

Ok, installed    1.0 Beta 2  on my test site.

1- I can not select "Enable the Breeze mod" AND "Enable General Wall"
If I select one and click save, the other is disabled... and vice-versa.

2- despite being enabled... there is no menu item added.

http://test.turtleshellprod.com/index.php
(I'll give you admin rights if you want to take a look)



minor note: misspelling noted in
"If enable, a generai wall will apear, in this general wall the user will be able to see his/her buddie's status and recent activity"
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #26 on: March 19, 2012, 03:27:04 PM »
Oh, I'm not going to include the general wall on 1.0, that option was there since the first lines I wrote and I never removed it, it does nothing since I took away the menu button.

Thanks for the report, I guess I was just too busy on other things and I never really payed attention to that part, going to fix it later today.
The devil will find work for idle hands to do.

Offline Diego Andrés

  • Native Language Support Specialist
  • Sophist Member
  • *
  • Posts: 1,349
  • Gender: Male
  • ..::: ♥ SMF Hispano Fan ♥ :::..
    • Smfhispano on Facebook
    • @SMFHispano on Twitter
    • ..::: ♥ SMF Hispano ♥ :::..
Re: [WIP] Breeze
« Reply #27 on: March 19, 2012, 04:51:49 PM »
Very nice, looks fantastic
Keep working

Edit: Any way to also implement the wall to ultimate profile? I mean, show the wall instead of comments or something like that ..
And one suggestion, maybe you want to put a default avatar?
« Last Edit: March 19, 2012, 04:57:44 PM by Diego Andrés »

Websites:
SMF Hispano

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [WIP] Breeze
« Reply #28 on: March 19, 2012, 05:47:03 PM »
There won't be any sort of bridge between this and Ultimate Profile (my guess) because this is meant as a complete profile replacement, there's no reason you'd use Ultimate Profile over this.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline Diego Andrés

  • Native Language Support Specialist
  • Sophist Member
  • *
  • Posts: 1,349
  • Gender: Male
  • ..::: ♥ SMF Hispano Fan ♥ :::..
    • Smfhispano on Facebook
    • @SMFHispano on Twitter
    • ..::: ♥ SMF Hispano ♥ :::..
Re: [WIP] Breeze
« Reply #29 on: March 19, 2012, 06:11:40 PM »
There won't be any sort of bridge between this and Ultimate Profile (my guess) because this is meant as a complete profile replacement, there's no reason you'd use Ultimate Profile over this.

Oh! I look that, and then there's no problem, it's fantastic

Websites:
SMF Hispano

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #30 on: March 19, 2012, 06:55:41 PM »
Yes this mod is intended to have all the features that Ultimate Profile has plus many more, perhaps I should write a converter from Ultimate Profile when this gets stable enough.

Thanks for all the reports, sometimes I just forget about things, having an extra pair of eyes is definitely good :D

If the user has no avatar, it will display the username.
The devil will find work for idle hands to do.

Offline SlayBiohazard

  • Semi-Newbie
  • *
  • Posts: 30
  • 07thkingdom.com
    • 07th Kingdom
Re: [WIP] Breeze
« Reply #31 on: April 03, 2012, 07:25:50 PM »
Yes this mod is intended to have all the features that Ultimate Profile has plus many more, perhaps I should write a converter from Ultimate Profile when this gets stable enough.

Thanks for all the reports, sometimes I just forget about things, having an extra pair of eyes is definitely good :D

If the user has no avatar, it will display the username.

Perfect. I'll wait for that :D

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,056
  • Master of BBC Abuse
Re: [WIP] Breeze
« Reply #32 on: April 03, 2012, 07:35:54 PM »
Would be good if the wall page did smileys too. I think people are likely to ask for that feature.

ETA: Well, bbc tags in general.

Also perhaps if it still displayed some of the information that is usually found on the summary page. I think layout and content could do with a bit of tweaking. I might play with it if I have time.
« Last Edit: April 03, 2012, 07:40:39 PM by Antechinus »
"My idea of heaven consists of all the things I would go to Hell for."

I need another coding language like I need tertiary syphilis.

Antechinus modzRantyheinous themez - PSD pack for 2.0.x default theme

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #33 on: April 03, 2012, 09:53:53 PM »
Oh I kinda want to avoid parse_bbc() :P

My idea is/was to parse the text only one time, on the actual creation of the status/comment, before save it to the db, perhaps I could include parse_bbc, it will made things easy regarding text format and all that stuff.

The old summary page is still available, is on the Profile Info submenu: Summary, but yes I guess a few more info can be added, I just not sure where :P

I'm working now with the notification system, I need to build it as generic as possible so I can easily use it for many things without doing drastic changes.

Since every notification has different data, I'm using json to store it.

The basic implementation is as follows:

Code: [Select]
$params = array(
'user' => $user[0],
'type' => 'mention',
'time' => time(),
'read' => 0,
'content' => array(
'message' => $this->mention_info[1] == $this->mention_info[0] ? sprintf($this->settings->GetText('mention_message_own_wall'), $temp_users_load[$this->mention_info[1]]['link']) : sprintf($this->settings->GetText('mention_message'), $temp_users_load[$this->mention_info[1]]['link'], $temp_users_load[$this->mention_info[0]]['link']),
'url' => $scripturl .'?action=profile;area=breezenoti;u='. $user[0],
'from_link' => $temp_users_load[$this->mention_info[1]]['link'],
'from_id' => $temp_users_load[$this->mention_info[1]]['id'],
)
);

/* Create the notification */
$this->notification->doCreate($params);

Where user, time, type and read are the same for every notification, content is the array that will be converted to json later on doCreate method.

The example above is used when someone mentions another user using {username}.

It's relatively easy to implement it's just that I'm not a fan of writing text strings or using sprintf() :P
The devil will find work for idle hands to do.

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: [WIP] Breeze
« Reply #34 on: April 04, 2012, 01:26:22 PM »
This sure is off to a good start, but so far it's very limited in features and the UI needs a *lot* of work. The core is nicely done, though, almost makes me wanna give SimpleNetwork another shot, but I don't have the energy to. Do feel free to borrow any or all of the ideas I listed there though!

Heh, I really don't want to look at the code for SimpleNetwork. Seeing as it was over a year ago, it's probably fugly and very bad. O:)
Also known as the dreaded cσσкιє мσηѕтєя. Yes, 'twas I who stole your cookies. No, you can't have 'em back.

Twitter | Forrst | Dribbble | Website | Hire me for custom work (mods, themes, installs, upgrades, you name it!)

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #35 on: April 04, 2012, 01:37:17 PM »
Thanks, it's still a wip, I do have a list of features, I just haven't had the time to implement those.

The UI definitely needs improvements, I put that on the initial post :P I'm not good with it, although I'm more worried to finished the core code, once that is done I can focus on the UI.

I did take a look at SimpleNetwork but I don't think I can use any of the code there, I'm using jQuery and OOP, the ideas are practically the same but with a different approach.
The devil will find work for idle hands to do.

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: [WIP] Breeze
« Reply #36 on: April 04, 2012, 01:39:16 PM »
Thanks, it's still a wip, I do have a list of features, I just haven't had the time to implement those.

The UI definitely needs improvements, I put that on the initial post :P I'm not good with it, although I'm more worried to finished the core code, once that is done I can focus on the UI.

Much understandable, it's looking good so far as I said! :)

I did take a look at SimpleNetwork but I don't think I can use any of the code there, I'm using jQuery and OOP, the ideas are practically the same but with a different approach.

Yeah I hear you, I looked through your code quite quickly the other day. I wouldn't even *want* to use any of SN's code, OOP or not, since it's not the best but if I recall correctly I think I did do some UI work on it that you may be able to borrow if you feel like it. :)
Also known as the dreaded cσσкιє мσηѕтєя. Yes, 'twas I who stole your cookies. No, you can't have 'em back.

Twitter | Forrst | Dribbble | Website | Hire me for custom work (mods, themes, installs, upgrades, you name it!)

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [WIP] Breeze
« Reply #37 on: April 04, 2012, 01:40:02 PM »
SimpleNetwork uses jQuery, but it's not written in OOP. The rewrite of SimpleNetwork (SocialProfile) was Object-Oriented.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #38 on: April 04, 2012, 01:45:10 PM »

Yeah I hear you, I looked through your code quite quickly the other day. I wouldn't even *want* to use any of SN's code, OOP or not, since it's not the best but if I recall correctly I think I did do some UI work on it that you may be able to borrow if you feel like it. :)

Oh, the tabs for the different type of status is something I will definitely gonna borrow :P
The devil will find work for idle hands to do.

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: [WIP] Breeze
« Reply #39 on: April 04, 2012, 01:46:37 PM »
Awesome, I remember being quite happy with those! :D
Also known as the dreaded cσσкιє мσηѕтєя. Yes, 'twas I who stole your cookies. No, you can't have 'em back.

Twitter | Forrst | Dribbble | Website | Hire me for custom work (mods, themes, installs, upgrades, you name it!)