Hi,
To retrieve the URL from the GroupJive group logo in PHP, I use the code below:
Code:
$group = new \CB\Plugin\GroupJive\Table\GroupTable();
$group->load( GROUP_ID_HERE );
$logo = $group->logo( false, false );
This returns a full URL with also the protocol and domain name in front of it. For example, it returns something like:
Code:
https://mywebsite.com/components/com_comprofiler/plugin/user/plug_cbgroupjive/templates/myTemplate/images/GroupName_logo.jpg
Why does it put
Code:
https://mywebsite.com
in front of it? What is the (best) way to resolve only the path/filename? In this example, I only want to get
Code:
/components/com_comprofiler/plugin/user/plug_cbgroupjive/templates/myTemplate/images/GroupName_logo.jpg
With kind regards, Noa