Skip to Content Skip to Menu

Link to CB Profiles

  • ckayfish
  • ckayfish
  • OFFLINE
  • Posts: 34
  • Thanks: 1
  • Karma: 44
15 years 6 months ago #98357 by ckayfish
Link to CB Profiles was created by ckayfish
On a site I am helping a friend with, I only have 1 menu link to the required CB Profile, and then another menu link to a CB userlist. The links in uddeIM are using the itemID of the menu link to the userlist. I even deleted & recreated this menu item hoping it was just using the the first value meeting a LIKE clause. What file finds the CB itemID, and if it is using LIKE, should it not be equals (='index.php?option=com_comprofiler'}

Tips for understanding and solving your issue - Props to Krileon for creating this.
My Opensource CB Plugins: Mutual Connections and MYCB Cookie available here

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 6 months ago #98358 by slabbi
Replied by slabbi on topic Re:Link to CB Profiles
Well, as you said, I am using "LIKE %...%" to find the ItemId.

Following function tries to find the ItemId (declaration in includes.db.php):

$id = uddeIMgetItemidComponent("com_comprofiler", $config);

HTH

Please let me know if you have found a better more robust way that works on all systems.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

  • ckayfish
  • ckayfish
  • OFFLINE
  • Posts: 34
  • Thanks: 1
  • Karma: 44
15 years 6 months ago #98507 by ckayfish
Replied by ckayfish on topic Re:Link to CB Profiles
slabbi wrote:

Well, as you said, I am using "LIKE %...%" to find the ItemId.

Following function tries to find the ItemId (declaration in includes.db.php):

$id = uddeIMgetItemidComponent("com_comprofiler", $config);

HTH

Please let me know if you have found a better more robust way that works on all systems.


Since the required CB component link is exactly 'index.php?option=com_comprofiler', why this not be the query for the CB profile links? We can have a number of links to register, lists, logout that are all LIKE %com_comprofiler% so using this does not seem prudent.

Where is this function called from to set the CB profile itemID so I can at least consider hard-coding it rather than calling this function?

Post edited by: ckayfish, at: 2009/05/13 07:44

Tips for understanding and solving your issue - Props to Krileon for creating this.
My Opensource CB Plugins: Mutual Connections and MYCB Cookie available here

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 6 months ago #98511 by slabbi
Replied by slabbi on topic Re:Link to CB Profiles
Some sites do not use a link to the component itself or maybe not visible on all pages, so uddeIM has to use an alternative. I will consider to change the behavior in future.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

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

  • ckayfish
  • ckayfish
  • OFFLINE
  • Posts: 34
  • Thanks: 1
  • Karma: 44
15 years 6 months ago #98634 by ckayfish
Replied by ckayfish on topic Re:Link to CB Profiles
In the mean time, I found that the itemID for cb profile links is set in getpiclinks.php, line 62.

Tips for understanding and solving your issue - Props to Krileon for creating this.
My Opensource CB Plugins: Mutual Connections and MYCB Cookie available here

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum