Skip to Content Skip to Menu

cb-profile

  • WALRI01
  • WALRI01
  • ONLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
1 day 13 hours ago #340864 by WALRI01
cb-profile was created by WALRI01
I have CB seemingly working fine and with a CB list I can display a list of CB users with their avatar and names etc no problem. 

However when I click on a avatar I am redirected to a  //mywebsite/cb-profile/578 page where 578 is the ID of the contact but this URL is wrong and ends up as a 404 page not found. 

If however I manually enter a URL of   //mywebsite/index.php?option=com_comprofiler&view=userprofile&Itemid=578  it does take me to that users profile page as expected.

Does anybody know how I get CB to redirect a click on the users avatar to use the correct URL or am I missing something else?

Regards

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49048
  • Thanks: 8384
  • Karma: 1456
1 day 13 hours ago #340865 by krileon
Replied by krileon on topic cb-profile

/mywebsite/index.php?option=com_comprofiler&view=userprofile&Itemid=578

That's going to the viewing users profile. Itemid is not the user id, but the Joomla menu id. The below would be the equivalent.

/mywebsite/cb-profile

However when I click on a avatar I am redirected to a //mywebsite/cb-profile/578 page where 578 is the ID of the contact but this URL is wrong and ends up as a 404 page not found.

Check your cb-profile Joomla menu item and ensure it's public and published access. Profiles appear to be inaccessible.


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.

  • WALRI01
  • WALRI01
  • ONLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
1 day 12 hours ago #340867 by WALRI01
Replied by WALRI01 on topic cb-profile
Thanks for your kind and very quick feedback :)
Firstly apologies for pasting in the wrong url (classic trial and error testing noise) as I meant to paste:

Website/index.php?option=com_comprofiler&view=profile&user=578

This (assuming logged in) takes me to the profile for the user with the id of 578 so we know that profile access is fine with the logged in user.

However if I click on the users avtar displayed by a CB list module then this redirects me to Website/cb-profile/578 and no matter what cb-profile syntax I try manually ends up with a "requested page not found"

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49048
  • Thanks: 8384
  • Karma: 1456
1 day 7 hours ago #340868 by krileon
Replied by krileon on topic cb-profile

Website/index.php?option=com_comprofiler&view=profile&user=578

That URL doesn't have an Itemid so it has no menu item associated with it.

Website/cb-profile/578

This does have a menu item associated with it. Specifically "cb-profile" menu item.

You need to review your Joomla menu items as you have one with the alias "cb-profile", which is typically the menu CB creates for you on first install. It should be public, published, and accessible to all languages. Please be sure that's still the case or it won't be accessible.

Profiles also won't be accessible to the public if you've profile access permission changed to something other than Public in CB > Configuration > User Profile so you may also want to check that access parameter.


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.

  • WALRI01
  • WALRI01
  • ONLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
18 hours 19 minutes ago #340869 by WALRI01
Replied by WALRI01 on topic cb-profile
This advice was very helpful and helped me to solve the puzzle.

I notice in the "html code to replace tag with" in the module for the CB list definition was (CB install default) set to <a href="cb-profile/[user_id]">[name]</a> which I guess is used to render the users name in the browser and set a redirect hyperlink to cb-profile/[user_id] if I click on that hyperlink (Ie the users name) as you would expect it tries to link to that Url which results in page not found

The cb-profile/nnn always results in page not found even when entered manually and yes there is a public menu item of cb-profile and the same alias but this points to a url of index.php?option=com_users&view=profile which of course takes me to my current logged in profile. IE if I display this menu item and select it as a menu then it does take me to my profile as expected. So the cb-profile menu is working fine.

I was expecting to be able to click on a users name hyperlink in the displayed items from CB list module so that it takes me to that users profile.

After some significant trial an error I figured that if you change the "html code to replace tag with" in the CB list module to
<a href="index.php?option=com_comprofiler&task=userProfile&user=[id]">[name]</a>

Then it works as expected. IE it links me to the profile of the user I clicked on in the CB list module.

So I assume I still have a problem with the cb-profile menu item not being correct in some way or the default values in CB list module not being correct for most items despite being on the very latest releases of everything but as I have a work around all is good.

Thanks again for your help

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

Moderators: beatnantkrileon
Powered by Kunena Forum