Skip to Content Skip to Menu

CB 2.0 Stable Release

  • tjw105
  • tjw105
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 0
10 years 5 months ago #245532 by tjw105
Replied by tjw105 on topic CB 2.0 Stable Release
Further to this,

I have been playing with some of the existing lists that have been working. I noticed some strange behavior.

When I chose a List Name of "Mens 45-49", when viewed through FE menu, it defaulted to the Default User list. When I changed the name to "Mens 45s" the menu redirected to the correct list. I then changed the List name to "Mens 45 49" and it worked correctly. Changed back to "Mens 45-49" and it Failed. So it seems that CB doesn't like having a - in the List Name.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago - 10 years 5 months ago #245539 by krileon
Replied by krileon on topic CB 2.0 Stable Release

Please let me know if you have any other ideas on how to get the lists to work or if you need admin/ftp access to the site.

Disable all SEF and see if the menu items work. Ensure each menu item has a List ID specified as it's always appended to the URL by Joomla and CB 1.x can't handle a List ID of empty string. If still not working please provide a URL it's sending you to (without SEF) beginning at index.php.

I am in the same boat where 1 List routes correctly but after duplicating that Age List to make another and allocating a External URL Menu Item to it, the system returns the default User List.

That will only be an issue if you're using SEF as Joomla doesn't handle External URLs very well when using SEF.

I downloaded CB 2.0 beta 4 and found the Userlist folder and uploaded that to my site, but it doesn't seem to make a difference.

You need to also rename or delete components/com_comprofiler/metadata.xml so Joomla stops using it for menu items.

When I chose a List Name of "Mens 45-49", when viewed through FE menu, it defaulted to the Default User list. When I changed the name to "Mens 45s" the menu redirected to the correct list. I then changed the List name to "Mens 45 49" and it worked correctly. Changed back to "Mens 45-49" and it Failed. So it seems that CB doesn't like having a - in the List Name.

Correct, you can't have - in the title. That's a reserved SEF character. This isn't an issue with CB 2.0 though as we append the List ID directly to the URL like Joomla does for content articles so there is no matching issues.


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.
Last edit: 10 years 5 months ago by krileon.

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

  • stuntlist
  • stuntlist
  • OFFLINE
  • Posts: 93
  • Thanks: 4
  • Karma: 0
10 years 5 months ago #245554 by stuntlist
Replied by stuntlist on topic CB 2.0 Stable Release
Hi Kyle,

We are not using any third part SEF extensions, only the Joomla SEF. When I turn off Joomla SEF, this is what the link is:
test.stuntlist.com/index.php?option=com_comprofiler&view=userslist&listid=11&searchmode=0&Itemid=36

and I still get the message: 'Please log in or register to view or modify your profile." rather than the CB list being displayed.

The userlist id is 11 which is correct, the menu item id is 36 so that is correct. I also have searchmode turned off, so that looks correct.

Thank you for your help.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245558 by krileon
Replied by krileon on topic CB 2.0 Stable Release
Ah, right, CB 1.x has no view mapping. It won't work without modifying components/com_comprofiler/comprofiler.php to also handle view in addition to task. Unfortunately I've no further suggestions other that manually altering the database URLs. To do this follow the below steps (be sure to remove the views and add the metadata.xml back).

1. Create your userlist menu links as internal menu links (it's fine that there's no List ID here)
2. Navigate to _menus database table in phpmyadmin
3. Find the new menu item rows (should be at the end)
4. Edit them and append &listid=LIST_ID_HERE to "link" value

The above will continue to work assuming you do not edit and save the menu item in Joomla directly again. So it's a working workaround until we go stable. The alternative is more code changes to CB 1.x core code so it can handle task and view alike, which is done by the CB 2.0 function below.


File Attachment:

File Name: cb_view_to_task.txt
File Size:1 KB


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.
Attachments:
The following user(s) said Thank You: krysset

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

  • stuntlist
  • stuntlist
  • OFFLINE
  • Posts: 93
  • Thanks: 4
  • Karma: 0
10 years 5 months ago #245624 by stuntlist
Replied by stuntlist on topic CB 2.0 Stable Release
Hi Kyle,

I prefer the code change method, so if someone goes and edits the menu item it won't stop the link from working.

So, I added the function that you provided above to components/com_comprofiler/comprofiler.php. You didn't specify how to call the function comprofiler.php, so I did a compare on the CB 2.0 version and the CB 1.9.1 version and found that the call is right before getting the $option, $task, etc. so add this code at line 77:
Code:
// We don't use view so lets map it to task before we grab task: cbMapViewToTask();
I added the function right after the comment:
// END OF MAIN.
before:
function sendUserEmail(

I no longer get an error message when I use the menu item, setup with list id of 11. But I don't get list 11 being displayed, I get the default list being displayed. So, when you click 'Female CB' you now get all members instead of list 11, which is only female West members.

So, there is still something else missing.

As to your menu workaround. What type of menu item do you mean when you say 'internal menu links'? The only thing that I know you can use is System Links > External URL and then set it to an internal URL rather than an external URL. If that is what you mean, then this is already what I have done. I set the URL to:
index.php?option=com_comprofiler&task=usersList&listid=10
When I go to the _menus table in the database, the link already has the listid=10 on it. It shows in the 'link' field:
index.php?option=com_comprofiler&task=usersList&listid=10
Both 'aias' and 'path' fields have: 2014-05-27-18-38-57
But the menu item goes to: test.stuntlist.com/west-members-male
What I can't understand is where it is getting the /west-members-male alias from?

Once again thank you for your help on this.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245642 by krileon
Replied by krileon on topic CB 2.0 Stable Release
You need to create internal menu items. External menu items do not SEF properly in Joomla. It causes important variables to be stripped. An internal menu item is a menu item that has an actual menu type. Since you've the menu fix applied you should have the search mode and list id parameters available again so you can create a Userlist menu type again. You'll probably need to also copy over router.php from CB 2.0 so it can route the SEF links correctly. Aside from that you'll need to just wait for CB 2.0 stable as I've nothing further to suggest.


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