Advertisement:

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

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [WIP] Breeze
« Reply #60 on: August 11, 2012, 12:00:52 PM »
Can you make it more into the one like VB
Like the view convo between these 2 kind of stuff?
What are you talking about? Are you talking about the profile comments / wall?

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

Offline Mstcool

  • Full Member
  • ***
  • Posts: 481
Re: [WIP] Breeze
« Reply #61 on: August 11, 2012, 12:21:47 PM »
Yeah the profile comments
isnt that what this mod is gonna be about?
Who Am I??

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,470
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [WIP] Breeze
« Reply #62 on: August 11, 2012, 01:13:36 PM »
It's really a complete redesign of profiles. So profile walls / comments are a tiny portion of it. Really, think of how Facebook does it, that's similar to this.

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

Offline sayl3r

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
    • نیمکت
Re: [WIP] Breeze
« Reply #63 on: August 11, 2012, 05:00:11 PM »
Hi,its a good idea....
i was searching for some thing like this ;)
i saw one problem in it.
in the list of friends the avatars are very big,please show them in a fixed and smaller size.
:|

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #64 on: August 11, 2012, 05:49:16 PM »
Can't show fixed avatars, I need to keep the proportion and dimensions. 

As for the size, it's actually been done that way to save a lot of queries by uploading the user's info just 1 time and use the same info as much as possible.
The devil will find work for idle hands to do.

Offline sayl3r

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
    • نیمکت
Re: [WIP] Breeze
« Reply #65 on: August 11, 2012, 06:14:37 PM »
but now when someone have 10 friends the profile of him/his will be sloppy.
its better that U do something to show the avatars smaller an in a fix size.
and some forums(like mine) show smaller and fixed avatar of members in the top of the forum....cant u use it in this mod?!
:|

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #66 on: August 11, 2012, 06:19:28 PM »
The avatar size can be made smaller, however, this will affect all the places where the avatar is displayed inside the mod. I won't change the current size, perhaps I will set an admin setting but thats all.

Any way, this is a WIP, far from ready and far far away from being used on a live site.
The devil will find work for idle hands to do.

Offline sayl3r

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
    • نیمکت
Re: [WIP] Breeze
« Reply #67 on: August 11, 2012, 06:46:50 PM »
could u plz add more options for admin?to enable or disable things?
:|

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #68 on: August 11, 2012, 06:58:37 PM »
Yes, that is the point of being a WIP, currently a lot of settings are either hardcoded or do not exist, this is because I want to actually build the mod first before I start to add settings for code I didn't even write yet.
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 #69 on: September 03, 2012, 12:48:43 PM »
OK, is been a whole year and still there is so much to do.

At this point I think I will push it to be compatible with 2.1, there are a couple of things there that are pretty useful to this mod.

I want to rewrite it again, yes, again, I want it to be a truly OOP code and not just a set of loosely related classes, I know it can't be truly OOP since it still needs to be tight up with SMF.

Since I started with OOP with this mod, there are places where the code is just horrible, every time I see it I want to change it, that is why this has taken soo much time :(
The devil will find work for idle hands to do.

Offline ExOTIXx

  • Semi-Newbie
  • *
  • Posts: 27
Re: [WIP] Breeze
« Reply #70 on: September 03, 2012, 05:40:39 PM »
hmm.... i need help... when installed using the Logoff NovaV1 Theme it does not show a wall at all..
also when clicking "Wall" in the profile im directed to "http://kcalliance.606h.net/forum/index.php?action=profile;area=summary" witch only give a slight summary of the user like normal..

also another slight worry....
when enabling the wall per-user base... once enabled the script does not refresh once a post has been posted so its hard to know if you have actually posted what you wanted to post.. and you cannot delete a post you have made.

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #71 on: September 03, 2012, 05:47:57 PM »
This isn't really ready for a live site so you should definitely uninstall it, theres a good chance this might have security issues since I really haven't put that much attention to that part, yes I know I'm using it at my own site but that is OK, since nobody visits my site, not even bots :P

With that said, by default all the walls are disable, each member needs to enable their own wall, I changed that on a recent version, allowing to enable all walls with a single link.
The devil will find work for idle hands to do.

Offline ExOTIXx

  • Semi-Newbie
  • *
  • Posts: 27
Re: [WIP] Breeze
« Reply #72 on: September 03, 2012, 05:50:25 PM »
This isn't really ready for a live site so you should definitely uninstall it, theres a good chance this might have security issues since I really haven't put that much attention to that part, yes I know I'm using it at my own site but that is OK, since nobody visits my site, not even bots :P

With that said, by default all the walls are disable, each member needs to enable their own wall, I changed that on a recent version, allowing to enable all walls with a single link.

can you possibly come to my website and keep me updated on this mod? it will definitely come in handy in my website!

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 11,254
  • Kaizoku Jotei
    • Free SMF mods
Re: [WIP] Breeze
« Reply #73 on: September 03, 2012, 05:51:35 PM »
I'm sorry, I don't understand what you mean.

I think now is the perfect time to move this to the mod develop board...
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 #74 on: October 15, 2012, 11:52:54 AM »
OK, just a heads up about this.

Over the last weeks I committed tiny bits of code at the time, mostly fixes to ugly code, some improvements here and there, etc.

They are still a lot of places where improvements needs to be done, there is a lot of legacy code I built that doesn't make much sense now, there is still the GUI part, I was looking at some other forum software and how they present the user profile info, there are a couple of good ideas that I would like to implement but there is one issue, the user wall page is already pretty heavy with the wall only, I'm hesitant of adding more data to it.


- As for features, the user settings is done now, adding user settings is as easy as I could go.
- The basic notification system is already there, it needs improvements and a lot of testing.
- The general wall isn't something that will be included on 1.0, its a different beast that needs its own space and time dedication.
- Infinite scroll will be a lot easier to add than I was thinking, thanks to Infinite Scroll by Paul Irish
- A small gallery plugin is something that I personally want but it will only added when the code base is solid enough.

It has been more than a year, before I was worried about not be able to release this already but now I'm taking things slowly, only pushing code when I want to, I discovered that I can push more code and is easier when I want to work on it rather than been under pressure to finish it up already.

At this point it might take another year, who knows, I find it relaxing working on it only when I do want to.
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 #75 on: November 08, 2012, 11:44:12 AM »
OK, been working on it this week, so far so good.

The CRUD for notification stuff is whats taking almost all the time, its still incomplete. While doing those changes I realize there are lots of other places earlier in the process that needs attention, mostly the Query class which is a fundamental part of the whole system.

I'm also in the process of removing the DB abstraction class, although I still believe on it and I will still use it on other smaller mods, This is a big mod with a lot of places that produces queries, most of them are custom queries that the DB layer cannot handle because it is pretty simple layer that was designed out of my laziness :P

The JavaScript as of right now is pretty weak and needs tons of improvements, too bad JavaScript/Jquery isn't one of my specialties :(

I  will also replace the current jquery script for notifications (I already did it for the notifications, the comments and status are still left to do) with this one: https://github.com/needim/noty  much more customizable and overall it suits better for Breeze needs.

Until the last commit, github says I added 34,223 lines and deleted 24,404 on 212 commits, leaving a total of 9819 lines, this of course includes empty lines (as I like to separate bits of code a lot!) so, making an estimate, leaving out license, comments and empty lines, the grand total would be around 4000~5000 lines of code!  thats a lot considering how simple the idea behind this mod is and how I've been removing features from the initial idea.

Tested it on 2.1, it  works since this is an edit-free mod, however, it doesn't really take full advantage of all the new features 2.1 provides, I'm currently thinking whats the best approach to take advantage of 2.1 new features without having to re-write the entire mod, perhaps another hooks.php made specifically for 2.1 and add more methods in the core classes, this shouldn't affect 2.0 since those method will never be used on this version, actually, there are a lot of unused methods all over the place, simply because it's ridiculously easy to add them (all hail OOP!) and you never know when you will use them.

Another point its inheritance, I want Breeze classes to be more connected and easily accessible by gradually removing static methods and change abstract classes to normal ones capable of being instantiated, thus removing the need to make calls like this one:

Breeze::text();

and instead simply call the parent constructor and then directly use  $this->text()  so I can get access to the class this method instantiate:

$this->text()->getText('some_text_string');

or

$text = $this->text();

$text->getText('some_text_string');

if I'm gonna use text() a lot.

another point is MVC, I've been gradually removing stuff from the model (query class)  and add then to the controller where they belong (multiple classes that calls the query class for their dirty stuff), the same with removing template things form the controller and move them to the view (template files) where they belong.

Overall, there are tons of stuff left to do, strangely enough, right now I'm not cursing everyone because I have to re-write code all the time, instead, I'm looking at it as a chance to implement what I've been learning, as time goes by the places needed to be changed decrease.
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 #76 on: November 23, 2012, 07:01:29 PM »
OK, time for another large post that nobody will see :P

As usual, I've been doing commits every now and then.

Been working on Inheritance, although, it is not strictly pure inheritance since the mod is still tied to SMF.  Thanks to the Norvoz0r for pointing me in the right direction I'm now able to have all the classes working together, replacing the ugly static methods with normal  instance methods, this allows all kinds of advantages over traditional procedural style. So, right now the only place that directly interacts with SMF code is the dispatcher class, which handles all the calls Breeze do and also calls their respective method  and then there is also the superclass Breeze which pretty much controls everything in Breeze and holds all the static methods for the hooks.

I'm still making a lot of changes but now the more I advance, the easier is to do those changes, mostly converting old static code with properties and instance methods. It's also easier to pick up work from places that weren't the last place where I worked, this is extremely useful since I can work on different parts at different times without been worried about messing with anything.

Once I finish with the conversion to properties and instance method then I can finish the notification system, add a few modules for the wall, work on the UI and maybe working on the general wall page.

Been doing some checking to see how heavy the mod will be, so far I managed to reduce the number of queries this mod uses to 3 (on the profile/wall page), all of them are covered by the cache system of course.

Have so many ideas for the UI, can't wait to finish the code underneath :D  well, thats about it, message was larger in my head :P
The devil will find work for idle hands to do.

Offline live627

  • SMF Hero
  • ******
  • Posts: 3,320
  • Gender: Male
  • A light for our dream which is worth everything we could envision today and more tomorrow
    • live627 on Facebook
    • @live627 on Twitter
    • livemods
Re: [WIP] Breeze
« Reply #77 on: November 23, 2012, 07:20:31 PM »
I think someone read it...
See a list of my mods

I don't accept support PMs. Ever! Your query will be answered much quicker in the public boards. Why don't I want any PMs asking for support?

Offline ahrasis

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,993
  • 26M deal concluded. Now busy with its post-work...
    • alfaqir.ahmad.rasyid on Facebook
    • @ahrasis on Twitter
    • ahrasis
Re: [WIP] Breeze
« Reply #78 on: November 23, 2012, 08:46:10 PM »
I am also following this.
SimpleRevamp2 site might be temporarily disable at anytime due to site management. Kindly proceed to anypost open forum at http://anypost.qom.my to see the latest SimpleRevamp2 theme in action.

Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,451
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: [WIP] Breeze
« Reply #79 on: November 23, 2012, 08:54:00 PM »
I'm sure this will be one of the greatest mod for SMF
Good job suki, kept well