Please Log in to join the conversation.
Yes, first please review tutorials within my signature concerning including CB API externally. Once done you can use the below to obtain a user profile URL.1. I want to create links in my component to userprofiles with help of the userid.
Is there any way to do this?
$specific_view = $_CB_framework->viewUrl( TASK, HTMLSPECIALCHARS );
$profile_view = $_CB_framework->userProfileUrl( USER_ID, HTMLSPECIALCHARS );
$profile_edit = $_CB_framework->userProfileEditUrl( USER_ID, HTMLSPECIALCHARS );
$userlist = $_CB_framework->userProfilesListUrl( LIST_ID, HTMLSPECIALCHARS );
This can be done by utilizing CB triggers after loading CB API. See triggers tutorial for details on trigger usage.2. I've got to modify the userprofile. I've to add a php/mysql query with the help of the profile-userid.
Please Log in to join the conversation.
global $_CB_framework, $mainframe;
if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
if ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed!';
return;
}
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
} else {
if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed!';
return;
}
include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' );
}
$_CB_framework->userProfileUrl( $rows[$i]->autorid, true )
Fatal error: Call to a member function setQuery() on a non-object in C:\www\xampp\htdocs\joomla-16\administrator\components\com_comprofiler\plugin.foundation.php on line 53
Please Log in to join the conversation.
Please Log in to join the conversation.