Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CB 2.0 username profile url missing

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
8 years 1 month ago #287840 by krileon
CB 2.0 username profile url missing was created by krileon
The profile URL to CB profiles is missing when setting the linking to use Community Builder 2.0+. Specifically the issue is as follows.

IN: components/com_uddeim/getpiclink.php
ON: Line 137
FROM:
Code:
$url=""; //$url = $_CB_framework->userProfileUrl( (int)$ofanid );
TO:
Code:
$url = $_CB_framework->userProfileUrl( (int)$ofanid );

I'm unsure why it's commented out, but a better fix is to utilize getField API as follows to grab the formatname field.

ON: Line 136 - 138
FROM:
Code:
// cbimport( 'cb.html' ); // cbimport( 'language.front' ); global $_CB_framework; $url=""; //$url = $_CB_framework->userProfileUrl( (int)$ofanid ); $gimmeback = "<a href='".$url."'>".$ofaname."</a>";
TO:
Code:
$gimmeback = CBuser::getInstance( (int) $ofanid, false )->getField( 'formatname', null, 'html', 'none', 'list', 0, true );


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.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
8 years 1 month ago #288255 by slabbi
Replied by slabbi on topic CB 2.0 username profile url missing
Hi Kyle,

thanks, missed that. Its fixed now.

Slabbi

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer
The following user(s) said Thank You: krileon

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

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
8 years 3 weeks ago #288358 by boyjahq
Replied by boyjahq on topic CB 2.0 username profile url missing
How can we get the fixed version of uddeIM? I just installed the newest version plus the hotfix files but still username link to user profile does NOT work using the setting Community Builder 2.0+. It only works if I choose Community Builder. I do not want to make line adjustments to existing files.

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
8 years 3 weeks ago #288396 by slabbi
Replied by slabbi on topic CB 2.0 username profile url missing
I have released Hotfix 3 now.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer
The following user(s) said Thank You: boyjahq

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

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
8 years 3 weeks ago #288397 by boyjahq
Replied by boyjahq on topic CB 2.0 username profile url missing
WORKS! THANK YOU!!!!!

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum