Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Redirecting based on CB Triggers, CB Image Gallery 1.2.2

  • opcrich
  • opcrich
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
11 years 7 months ago #227388 by opcrich
Hi All-

My site is built on Joomla 3.1.1, and CB 1.9.

I'm trying to fix two issues in particular, searching forums and not finding my answers. Sorry in advance if it's laid out in bold print before my eyes and I'm just not finding it.

1) When a user clicks update profile, I'd like the user to stay in the Edit Profile View on the Tab they were just updating/on and not for the user to be redirected to the View Profile View.

2) When using CB Image Gallery 1.2.2, the user in Edit Profile View has options related to their image gallery settings instead of an interface to upload pictures. To upload pictures, the user has to go to their View Profile View, where they can (on the photo gallery tab) upload new images. I'd rather arrange it so they upload under their Edit Profile View and not via the View Profile View. Viewing this tab under their View Profile View should ideally just display the images the user has uploaded.

Thanks in advance for your assistance.

Rich Davey
Web Developer, Soloprenuer
www.outstandingpc.com

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48700
  • Thanks: 8317
  • Karma: 1447
11 years 7 months ago #227428 by krileon

1) When a user clicks update profile, I'd like the user to stay in the Edit Profile View on the Tab they were just updating/on and not for the user to be redirected to the View Profile View.

When they update their profile you want them to stay on profile edit? If I understand correctly then yes this is doable. Simply create a Redirect action within CB Auto Actions as follows to force them back to profile edit.

Type: Redirect
Triggers: onAfterUserUpdate
Access: Everybody
URL: index.php?option=com_comprofiler&task=userdetails&user=[user_id]

2) When using CB Image Gallery 1.2.2, the user in Edit Profile View has options related to their image gallery settings instead of an interface to upload pictures. To upload pictures, the user has to go to their View Profile View, where they can (on the photo gallery tab) upload new images. I'd rather arrange it so they upload under their Edit Profile View and not via the View Profile View. Viewing this tab under their View Profile View should ideally just display the images the user has uploaded.

Not possible. That'd be "form within form", which isn't valid HTML and wouldn't work.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • opcrich
  • opcrich
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
11 years 7 months ago #227460 by opcrich
Is there a way to redirect them to the View Profile View, Photo Gallery Tab (specifically) when they click on the Photo Gallery Tab in Edit Profile View?

Rich Davey
Web Developer, Soloprenuer
www.outstandingpc.com

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48700
  • Thanks: 8317
  • Karma: 1447
11 years 7 months ago #227463 by krileon
You'd need to use CB Auto Actions to add jQuery to the profile edit page using the profile edit display trigger that when the tab is clicked redirects to profile view, but then they lose the ability to use the profile edit fields; it maybe better in that case to just disable profile edit display of the tab all together using CB Privacy.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • opcrich
  • opcrich
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
11 years 7 months ago #228237 by opcrich
The Auto Action worked perfectly for keeping users in edit view. Thanks!

RE: "You'd need to use CB Auto Actions to add jQuery to the profile edit page using the profile edit display trigger that when the tab is clicked redirects to profile view, but then they lose the ability to use the profile edit fields; it maybe better in that case to just disable profile edit display of the tab all together using CB Privacy."

My first choice for a solution would be just to redirect them to the 'profile view', photo gallery tab, when clicking on the photo gallery tab in either the 'profile edit' or the 'profile view' views. I do not mind if they are unable to access options related to the photo gallery, in fact I prefer it. I'd like the photo gallery to be enabled for all users of the site and the only option to the user related to the photo gallery is the management of their photos themselves and that's it.

If I understand correctly, wsing CB Privacy to disallow access to the tab doesn't make the use of the tab entirely intuitive since the user would not see the photo gallery tab when in the 'edit profile' view, only in 'view profile' view.

Rich Davey
Web Developer, Soloprenuer
www.outstandingpc.com

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48700
  • Thanks: 8317
  • Karma: 1447
11 years 7 months ago #228255 by krileon

My first choice for a solution would be just to redirect them to the 'profile view', photo gallery tab, when clicking on the photo gallery tab in either the 'profile edit' or the 'profile view' views. I do not mind if they are unable to access options related to the photo gallery, in fact I prefer it. I'd like the photo gallery to be enabled for all users of the site and the only option to the user related to the photo gallery is the management of their photos themselves and that's it.

I suggest just completely disabling profile edit of the gallery tab then using CB Privacy.

If I understand correctly, wsing CB Privacy to disallow access to the tab doesn't make the use of the tab entirely intuitive since the user would not see the photo gallery tab when in the 'edit profile' view, only in 'view profile' view.

They'll still be able to use and see the gallery just fine. You'll only be disabling Profile Edit and not Profile View. To do this install and enable the latest CB Privacy. Now navigate to CB > Tab Management > Profile Gallery then set "Edit Display:" under "CB Privacy: Tab privacy preferences" to "No edit display at all".


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum