Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / [RESOLVED] Profile picture

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[RESOLVED] Profile picture

More
12 years 2 weeks ago #7518 by loic
Replied by loic on topic Profile picture
Hello,

Could you replace this line:
$cbUser =& CBuser::getInstance($this->userid);

By this one:
$cbUser =& CBuser::getInstance($content->userid);

It will solve the problem.

Best regards.
More
12 years 1 week ago #7645 by fabioweb
Replied by fabioweb on topic Profile picture
Excellent it's right!

Why it doesen't work also in ad details? :)
More
12 years 1 week ago #7662 by loic
Replied by loic on topic Profile picture
Hello,

You need to do the same modification in the code of the details view.

Best regards.
More
11 years 11 months ago #7927 by fabioweb
Replied by fabioweb on topic Profile picture
Hello i tried this week but i need to disturb you again
<?php
 
					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' );
					}
 
					$cbUser =& CBuser::getInstance($content->userid);
 
 
					$avatar = $cbUser->getField( 'avatar', null, 'html', 'none', 'list' );
					echo $avatar;
					?>

this is the same code that works correctly in list->tmpl->default_list.php and NOT in
details->tmpl->default.php.. I get _UE_UNNAMED USER

Thank you
More
11 years 11 months ago #7948 by tompap
Replied by tompap on topic Profile picture
Juste replace

$content->userid

by

$this->content->userid
The following user(s) said Thank You: fabioweb
More
11 years 10 months ago #8677 by fabioweb
Replied by fabioweb on topic Profile picture
Sorry if i re-open this topic again..

Same problem in result page..
 <div id="user">
		 <?php
 
					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' );
					}
 
					$cbUser =& CBuser::getInstance($this->content->userid);
 
 
					$avatar = $cbUser->getField( 'avatar', null, 'html', 'none', 'list' );
					echo $avatar;
					?>
 
         </div>


Thank you
Time to create page: 0.096 seconds
Powered by Kunena Forum