News:

Join the Facebook Fan Page.

Main Menu

Breeze

Started by Suki, March 21, 2014, 07:50:09 PM

Previous topic - Next topic

Suki

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
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

1.1Nerd

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?

Suki

Nope, Breeze is a independently developed mod and has no connection with any other mod
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

1.1Nerd


Arkaitz

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!

Suki

Yes, I've been actively refactoring it to support SMF 2.1
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

aegersz

Will there be a 2.1 version of this Mentions mod ?
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

shadav

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 it to support SMF 2.1

aegersz

Oops my mistake   :-[
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Shades.

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?
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

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. ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

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.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Shades.

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
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

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.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

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'])
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Shades.

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}
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

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.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Shades.

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:
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

Can you attach your Sources/Breeze/BreezeUser.php file here.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Shades.

ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: