Skip to Content Skip to Menu

[SOLVED] GJ Code that puts category anchor on list

  • mportner
  • mportner
  • OFFLINE
  • Posts: 30
  • Thanks: 0
  • Karma: 0
12 years 5 months ago - 12 years 5 months ago #199471 by mportner
Hello:

i am making some custom mods to my own GJ template code. I am trying to find the code that puts the category name under the group name? I found code that seems to do it in group_tabs.php, but this code does not create the hyperlink back to the category.

Can you tell me how to get rid of the line that I am pointing to in the attached image? Thanks.

Attachments:
Last edit: 12 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
12 years 5 months ago #199496 by krileon
Replied by krileon on topic Re: GJ Code that puts category anchor on list
It depends on where you are at. What page are you viewing exactly? Groups panel page? The panel uses the profile tab templates so simply edit tab_groups.php as necessary.


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.

  • mportner
  • mportner
  • OFFLINE
  • Posts: 30
  • Thanks: 0
  • Karma: 0
12 years 5 months ago #199503 by mportner
Replied by mportner on topic Re: GJ Code that puts category anchor on list
I get to the page by clicking a menu item that is an external link:

index.php/component/comprofiler/pluginclass?plugin=cbgroupjive&action=panel&func=groups&Itemid=478

then I click 'Joined Groups' to render the list of joined groups as shown in my previous post.

I did look at the tab_groups.php code, but I did not see where the <a>...</a> was inserted for the hyperlink to the associated category. I even commented out this line and it had no effect:

# . '<div class="gjMainContentInfoBodyBy">' . ( $row->parent ? CBTxt::Ph( 'In [group] of [category]', array( '[group]' => $row->getParent()->getName( 0, true ), '[category]' => $category->getName( 0, true ) ) ) : CBTxt::Ph( 'In [category]', array( '[category]' => $category->getName( 0, true ) ) ) ) . '</div>'

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8277
  • Karma: 1443
12 years 5 months ago #199522 by krileon
Replied by krileon on topic Re: GJ Code that puts category anchor on list
tab_joined.php is for the Joined Groups. You likely edited tab_groups.php, which is My Groups. Sorry, your original post was not specific enough for me to tell you the correct file.


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.

  • mportner
  • mportner
  • OFFLINE
  • Posts: 30
  • Thanks: 0
  • Karma: 0
12 years 5 months ago #199534 by mportner
Replied by mportner on topic Re: GJ Code that puts category anchor on list
You are correct. Solved!

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

Moderators: beatnantkrileon
Powered by Kunena Forum