Topic-icon Account Settings menu item - no reload page etc.

Active Subscriptions:

None
2 years 1 month ago - 2 years 1 month ago #67853 by joomleb
Hi guys,
testing PHP 7.4.28 + Joomla 3.10.6 + JFBConnect 9.x > Account Settings menu item
We set it by adding {component index.php?option=com_jfbconnect&view=account} (thanks to Component Anywhere ) through the SPPage Builder Raw HTML addon - I add an image 

1 - A Must - the “Connect” / “Unlink” functions should run without reloading and/or redirecting the page, this we’ll give your customers (us) the way to set Account Settings menu item following their customized needs  - Right now, unlinking redirect us to another page i(very bad) - I add an image 

In a responsive world “to save space” and “words”, to use “images” as possible, is really a must: 

2 - There is no reason to add a column “Unlink” when connected - see the imageIt would be sufficient, on the same column, to change “Connect with Facebook” with “Unlink Facebook”, because the fact that it is connected or that it is disconnected the icons "scicon-x" / "scicon-y" tell us. 

3 - Also the Social mention would not be a must because we have the Social icon on each row.Anyway, now that there are already the language strings, it should be better to use Font Awesome icons and the language string as tooltip (at least, as you do for Social Icons into SCLogin for example). Something like:
  • fas fa-link (Connect with Facebook) 
  • fas fa-unlink (Unlink Facebook) 
 
4 - It is really time to change the  "scicon-x" / "scicon-y" images with .svg FontAwesome:
  • .../media/sourcecoast/images/icon-x.png to "fas fa-times" OR (better) "fas fa-ban"  in BS5 danger red color
  • …/media/sourcecoast/images/icon-y.png to "fas fa-check" in BS5 success green color

5 - Thinking on mobile / desktop screen dimensions and following Material You suggestions, a 36px height / auto width could be a good choice 

6 - For sure, to use pure resizable CSS Grid with no media queries instead of to use tables, is a simple and really practice goal
Attachments:
Last edit: 2 years 1 month ago by joomleb.
The topic has been locked.
Support Specialist
2 years 1 month ago #67868 by alzander
To make sure I understand correctly, you're adding the Accounts menu to another page using Component Anywhere, correct?

If so, for most of the items in 1 & 2, you can use a template override of the account section to show/hide features as you wish. That view is in /components/com_jfbconnect/views/account/tmpl/default.php

For redirecting after Unlink is clicked, that's how JFBConnect works. We don't expect the Accounts page to be embedded within another component. In this case, I'd recommend setting up a redirect from the JFBConnect 'Accounts' menu that is expected to whatever page you want to display it on instead.

3) There probably are some improvements we can make to the Accounts view. We don't get a lot of feedback about this view, so it probably has been neglected. We are always focusing on compatibility though with Joomla 3 & 4 and Bootstrap 2 & 5, which means all styling changes need to be carefully considered.

3/4/5) We'll look into this. I hate the x/y images and we have options to enable FA, so that makes sense

6) I understand your point, but this view is table data.. I know tables are out of style, but that doesn't mean they don't have their uses for rows of data like this. We'll look into possible changes though to see what may work better.

Thanks for all your points, and I hope the above helps clarify things,
Alex
The topic has been locked.
Active Subscriptions:

None
2 years 1 month ago - 2 years 1 month ago #67870 by joomleb
Hi Alex,
thank you very much for the reply (as always). Firstly: I always write here in the most collaborative way I can / know to get back, day after day, a better JFBC for all of us. I never write here to express non-constructive criticisms and without explanations and suggestions. That's no my actitude. So:

"To make sure I understand correctly, you're adding the Accounts menu to another page using Component Anywhere, correct?" = Practically,, Yes.

1 - the “Connect” / “Unlink” functions should run without reloading and/or redirecting the page
"...I'd recommend setting up a redirect from the JFBConnect 'Accounts' menu that is expected to whatever page you want to display it on instead..." = That's the question. From my point of view, this should be really an internal JFBC feature.
Component Anywhere, just for example, can work without the need to create a "JFBConnect 'Accounts' menu item.
Anyway, I tested creating a "JFBConnect 'Accounts' menu item but I cannot see on it any "Redirecting" field setting.
Please, Can you help here ?

2 - You should consider also the: There is no reason to add a column “Unlink” when connected - see the image - as a simple JFBConnect improvement, because right now it just "wasting" space complicing simple things.
Would be sufficient, at least (I would be even more simplistic), to change “Connect with Facebook” with “Unlink Facebook” (on the same column), because the fact that it is connected or that it is disconnected the icons "scicon-x" / "scicon-y" tell us.
PS - Users (our users) are "normal" people with a lot of "internet knowledge" limits. To move them on clicking is always a "dangerous" thing, It means making them lose. We have to pay attention to these "silly" things to offer our users the most User Friendly experience. On our projects thismeans success or failure.
(To my friends when I talk about these things I always do the example Tik Tok, the "ridiculous" of video editing that has had the greatest success in recent years and that probably gave new life to video editing, but nothing related to video editing itself features etc.)

3 / 4 / 5 / 6 = Many Thanks, I'm staying tuned here. If possible, I'd like to be advised here as you take decisions about (I'm used to follow my suggestions,fixing, testings etc. ...)

I remain available...
Last edit: 2 years 1 month ago by joomleb.
The topic has been locked.
Active Subscriptions:

None
2 years 1 month ago #67908 by joomleb
Hi ALex, Hi guys, 
Did you have the opportunity to take a look at points 1 and 2 ? Please, Can you reply / comment them ?
The topic has been locked.
Support Specialist
2 years 4 weeks ago #67912 by alzander
Sorry for the delay in getting back to this.

1) Component Anywhere isn't a built-in functionality of Joomla. While I understand the benefit, we also have to limit what features & configuration options we offer within JFBConnect. Adding a parameter for redirecting from the account menu is something that only one user would likely use. While it benefits you, if we did that for every one-off option to allow a benefit to every 3rd party extensions, the configuration area would quickly get unmanageable.

It's a balancing act we're always dealing with.. adding more features without making JFBConnect even more complex to configure.. see your notes about user friendliness in point 2 :)

As for setting up a redirect, the URL we redirect to is (in the /components/com_jfbconnect/controllers/account.php file):
index.php?option=com_jfbconnect&view=account
Seeing that, I realize we're not adding an Itemid, which is a problem since we should find and use any menu item that is configured for that URL.

With that said, to setup a redirect, you can use the .htaccess file:
[code]RewriteRule ^/.*option=com_jfbconnect&view=account /your-account-profile-url[R=301,L]
There are plenty of other ways to setup redirects as well if you'd like other suggestions.

2) I understand and generally agree with this request. I've added it to our tracker to see if we can streamline the link/unlink options.

Thanks for your patience and feedback!
Alex
The topic has been locked.
Active Subscriptions:

None
2 years 4 weeks ago - 2 years 3 weeks ago #67914 by joomleb
Hi Alex,
Many Thanks for your answer,

2 - I'll stay tuned and available here...

1 - I'm agree that you (as developer) have always to find a balancing a "standard" solution. This is why my first suggestion was not to create another redirect field setting but just to work with "to run it without reloading and/or redirecting the page" (AJAX etc.).
As far as I understand you are suggesting 2 manual solutions:
A - To change the code into the /components/com_jfbconnect/controllers/account.php file line 43
B - Through .htaccess file by adding the RewriteRule ^/.*option=com_jfbconnect&view=account /your-account-profile-url[R=301,L]
Could they work in a "Multilanguage" Joomla site ?

I tested the A solution:
- It is working, but  the Social (Facebook in my case) iss still shown as linked - I attach an image for you
- I checked into FBConnect > Usser Map and Yes, user has been unlinked correctly.
- I had to clear Joomla cache to see it correctly as "unlinked" in the page.

- This is happening when also when I link a social - I add an image for you
- Doesn't matter, the same result, if I add Alias SEF URL and/or the Link menu item one... 
Please, Do you have a woraround solution ?
Attachments:
Last edit: 2 years 3 weeks ago by joomleb.
The topic has been locked.
Active Subscriptions:

None
2 years 3 weeks ago #67916 by joomleb
Hi Alex, 
Please, Have you take a look / Can you help about the point 1 - A solution test ?
The topic has been locked.
Support Specialist
2 years 2 weeks ago #67922 by alzander

- I had to clear Joomla cache to see it correctly as "unlinked" in the page.

The accounts view is a component and wouldn't be affected by Joomla's cache normally.

If it's being cached, that's happening from whatever extension is including it on the page. Please disable caching in that extension/module so that the component output is not cached.

Another way to test is by going directly to our normal component view for Accounts and testing if the change applies immediately, which it should. If so, that proves more conclusively that the caching is not happening within JFBConnect.

I hope that helps and works for you. While there are other options, like AJAX we could investigate, the Accounts view is not an area that has had much feedback. We get much more questions and feature suggestions for other areas within JFBConnect, which is where we focus more of our efforts.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
2 years 2 weeks ago #67924 by joomleb
Hi Alex,
many thanks for your reply and suggestion:

"...While there are other options, like AJAX we could investigate, the Accounts view is not an area that has had much feedback. We get much more questions and feature suggestions for other areas within JFBConnect, which is where we focus more of our efforts..."
I understand you, but because of new privacy / terms rules that page has to always be put in evidence to our customers, so, I hope that you can at least consider quickly its simplification to don't "wasting" so much space complicing simple things, like I mentioned in point 2 about the "to add a column “Unlink” when connected".
I would be really grateful if you could keep us updated here on the decisions made and the timing of the roadmap.

"...The accounts view is a component and wouldn't be affected by Joomla's cache normally. If it's being cached, that's happening from whatever extension is including it on the page. Please disable caching in that extension/module so that the component output is not cached..."
You are right, thanks! It depends on "Component Anywhere" cache. So, by setting:
- Component Anywhere > Behaviour > Enable Caching: No
The issue has been solved.
The topic has been locked.
Active Subscriptions:

None
1 year 11 months ago #67985 by joomleb
Hi Alex, 
I studied a lot the best, simplest, way to manage these JFBC settings and, also considering the strict rules that continue to be introduced (GDPR, privacy, etc.), I believe they should be shown into the Joomla Profile through a Joomla User custom plugin:

- Joomla User custom plugin - backend: photos.app.goo.gl/VZ1VfAKW2BReZiWWA
- Joomla User custom plugin - frontend: photos.app.goo.gl/DFfdomaYhBVFkhy9A
- Joomla User custom plugin - plugin manager: photos.app.goo.gl/w8gethfbhLKb7W848

As far as I see JFBC has yet a "User - JFBConnect Social Integration", maybe could be added there an option to show / do not show the User JFBC tab Profile (backend / frontend) 
The topic has been locked.