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 / avatar all ads

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.

avatar all ads

More
11 years 1 month ago #4266 by fabioweb
avatar all ads was created by fabioweb
Hi,
by default in all ads i display the article's image. For example here (demo.joomprod.com/all_ads) the pc, sofa, cycle.

Can i change it and display the Community Builder avatar?

Thank you
The following user(s) said Thank You: adarr
More
11 years 1 month ago - 11 years 1 month ago #4269 by loic
Replied by loic on topic avatar all ads
Hello,

In order to display the CB avatar instead of the first image of the ads, you will need to override the list view.

This article explain how to do an override :
www.joomprod.com/documentation/doc-view-override.html

And you need to replace the line 229 to 233 :
if (isset($content->images[0])) {
    echo "<a href='".$linkTarget."'><img class='adimage' name='adimage".$content->id."' src='".$this->baseurl."images/com_adsmanager/ads/".$content->images[0]->thumbnail."' alt='".htmlspecialchars($content->ad_headline)."' /></a>";
} else if ($this->conf->nb_images > 0) {
    echo "<a href='".$linkTarget."'><img class='adimage' src='".ADSMANAGER_NOPIC_IMG."' alt='nopic' /></a>";
}

By the Community builder avatar of the user.
Last edit: 11 years 1 month ago by loic.
The following user(s) said Thank You: adarr
More
11 years 1 month ago #4272 by fabioweb
Replied by fabioweb on topic avatar all ads
Good =) can you also help me with the Community Builder avatar code to replace?

i tried with this in mod_cblogin.php but doesen't work
$avatarDisplayed = false;
	if ($show_avatar == 0) {
		if ($greeting) echo '<span id="mod_login_greeting'.$id_sfx.'">'.$cbUser->replaceUserVars(sprintf( _UE_HI_NAME, $name )).'</span>'.($horizontal ? "&nbsp;" : "");
	} else {
 
		if (($avatar_position=="default") and ($greeting)) echo '<span id="mod_login_greeting'.$id_sfx.'">'.$cbUser->replaceUserVars(sprintf( _UE_HI_NAME, $name )).'</span>';
 
		$oValue		=	$cbUser->avatarFilePath( $show_avatar );
		if ($oValue) {
			if ($avatar_position=="default") echo '<div style="text-align:center; margin-left:auto; margin-right:auto;">';
			else echo '<div style="float:'.$avatar_position.'; margin: 3px 0px 4px 0px; ">';
			echo '<a href="' . $_CB_framework->userProfileUrl() . '" class="mod_login'.$class_sfx.'">';		
			echo '<img src="' . htmlspecialchars( $oValue ) . '" style="margin: 0px 1px 3px 1px; border-width:0px;" alt="'.$name
				 . '" title="'. _UE_MENU_VIEWMYPROFILE_DESC . '" class="mod_login'.$class_sfx.'" id="mod_login_avatar'.$id_sfx.'" />';
			echo "</a></div>\n";
			$avatarDisplayed = true;
		}
	}

i used this code beacuse this
echo '<img src="' . htmlspecialchars( $oValue ) . '" style="margin: 0px 1px 3px 1px; border-width:0px;" alt="'.$name
				 . '" title="'. _UE_MENU_VIEWMYPROFILE_DESC . '" class="mod_login'.$class_sfx.'"
show the avatar in my bt-login

Thx =)
The following user(s) said Thank You: adarr
Time to create page: 0.139 seconds
Powered by Kunena Forum