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 3 weeks ago #7359 by fabioweb
Replied by fabioweb on topic Profile picture
Hello,
i'm sorry to open again this topic but with adsmanager 3 this code doesen't work
 <?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->userid);
 
 
					$avatar = $cbUser->getField( 'avatar', null, 'html', 'none', 'list' );
					echo $avatar;
					?>
 

What can i do?
Thank you
The following user(s) said Thank You: adarr
More
12 years 3 weeks ago #7372 by loic
Replied by loic on topic Profile picture
Hello,

Could you tell me which version of AdsManager, Joomla and CB you are using ?
Could you give me the error you get ?

On what page this error occurs ?

Best regards.
The following user(s) said Thank You: adarr
More
12 years 3 weeks ago #7418 by fabioweb
Replied by fabioweb on topic Profile picture
Sure,
i'm using ads manager 3.0.1 with joomla 3.3.6 C.B. 1.9.1

Code path: com_adsmanager->list->tmpl->default_list.php

Error: _UE_UNNAMED_USER

If i'm logged i display the thunb of log user and not the thunb of who published the ad

Thank you
The following user(s) said Thank You: adarr
More
12 years 3 weeks ago #7436 by loic
Replied by loic on topic Profile picture
Hello,

I need to make some test.

I come back to you as soon as possible.

Best regards.
The following user(s) said Thank You: fabioweb, adarr
More
12 years 2 weeks ago #7499 by loic
Replied by loic on topic Profile picture
Hello,

I don't have this error, Did you add a field to display in the list ?

Best regards.
The following user(s) said Thank You: adarr
More
12 years 2 weeks ago #7506 by fabioweb
Replied by fabioweb on topic Profile picture
This is my default_list.php and your code is between <div id="user"></div>
<?php
/**
 * @package		AdsManager
 * @copyright	Copyright (C) 2010-2014 Juloa.com. All rights reserved.
 * @license		GNU/GPL
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );
?>
<div class="container-fluid">
<div class="adsmanager_table tableListAllAd table table-striped">
 
<?php
foreach($this->contents as $content) 
{
    $linkTarget = TRoute::_( "index.php?option=com_adsmanager&view=details&id=".$content->id."&catid=".$content->catid);
    if (function_exists('getContentClass')) 
        $classcontent = getContentClass($content,"list");
    else
        $classcontent = "";
    ?>   
    <div class="adsmanager_table_description <?php echo $classcontent;?> trcategory_<?php echo $content->catid?>"> 
        <!--<td>
                <h4 class="no-margin-top">
                    <?php echo '<a href="'.$linkTarget.'">'.$content->ad_headline.'</a>'; ?>
                    <span class="adsmanager-cat"><?php echo "(".$content->parent." / ".$content->cat.")"; ?></span>
                </h4>
            <?php
            if (isset($content->images[0])) {
                    echo "<a href='".$linkTarget."'><img class='ad-image' name='ad-image".$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='ad-image' src='".ADSMANAGER_NOPIC_IMG."' alt='nopic' /></a>";
            }
            ?>
            <div>
            <?php 
                $content->ad_text = str_replace ('<br />'," ",$content->ad_text);
                $af_text = JString::substr($content->ad_text, 0, 100);
                if (strlen($content->ad_text)>100) {
                    $af_text .= "[...]";
                }
                echo $af_text;
            ?>
            </div>
        </td>-->
 
         <!-------------------------------------customColumn------------------------------------>
 
         <div style="position:absolute; right:0px; color:#999; top:100px; margin-right:67px;">
         Vedi dettagli
         </div>
 
 
         <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->userid);
 
 
					$avatar = $cbUser->getField( 'avatar', null, 'html', 'none', 'list' );
					echo $avatar;
					?>
 
         </div>
         <?php
 
            if ($content->userid != 0)
            {
               /*echo JText::_('ADSMANAGER_FROM')." "; */
 
               $target = TLink::getUserAdsLink($content->userid);
 
               if ($this->conf->display_fullname == 1)
                    echo "<div class='nomeCliente'><a href='".$target."'>".$content->fullname."</a><br/></div>";
               else
                    echo "<a href='".$target."'>".$content->user."</a><br/>";
            }
            ?>
 
            <a href="<?php echo $linkTarget; ?>"><img style="position:absolute; right:0px; bottom:0px;"src='http://www.fabiotoscano.it/tio/images/dettaglio.png'/></a>
 
            <!--------------------------colonneDinamiche--------------------------->
        <?php 
            foreach($this->columns as $col) {
                echo '<div class="tdcenter column_'.$col->id.' hidden-phone">';
                if (isset($this->fColumns[$col->id]))
                    foreach($this->fColumns[$col->id] as $field)
                    {
                        $c = $this->field->showFieldValue($content,$field); 
                        if (($c !== "")&&($c !== null)) {
                            $title = $this->field->showFieldTitle(@$content->catid,$field);
                            if ($title != "")
                                echo "<b>".htmlspecialchars($title)."</b> ";
                            echo "<span>$c</span><br/>";
                        }
                    }
                echo "</div>";
            }
        ?>
 
        <!----------------------------------------categorie---------------------------->
 
 
       <div class="tdcenter column_13">
            <div class="adsmanager_category"><?php echo $content->parent." / ".$content->cat;  ?></div>
               		<img src="http://www.fabiotoscano.it/tio/images/<?php echo $content->cat; ?>.png" alt="Tioitalia" class="categoriaImg" />
            </div>
 
 
 
 
        <!-----------------------------------------ultima colonna--------------------------------------------------->
        <div class="tdcenter column_date hidden-phone">
            <?php 
            $iconflag = false;
            if (($this->conf->show_new == true)&&($this->isNewcontent($content->date_created,$this->conf->nbdays_new))) {
                    echo "<div class='text-center'><img alt='new' src='".$this->baseurl."components/com_adsmanager/images/new.gif' /> ";
                $iconflag = true;
            }
            if (($this->conf->show_hot == true)&&($content->views >= $this->conf->nbhits)) {
                if ($iconflag == false)
                        echo "<div class='text-center'>";
                echo "<img alt='hot' src='".$this->baseurl."components/com_adsmanager/images/hot.gif' />";
                $iconflag = true;
            }
            if ($iconflag == true)
                echo "</div>";
            echo $this->reorderDate($content->date_created); 
            ?>
            <br />
 
            <?php if(isset($this->conf->favorite_enabled) && $this->conf->favorite_enabled == 1 && ($this->conf->favorite_display == 'all' || $this->conf->favorite_display == 'list')): ?>
                <br/>
                <?php
                    $favoriteClass = '';
                    $favoriteLabel = addslashes(JText::_('ADSMANAGER_CONTENT_FAVORITE'));
                    if(array_search($content->id, $this->favorites) !== false){
                        $favoriteClass = ' like_active';
                        $favoriteLabel = addslashes(JText::_('ADSMANAGER_CONTENT_FAVORITE_DELETEMSG'));
                    }
                ?>
                    <button id="like_<?php echo $content->id; ?>" class="btn favorite_ads like_ad<?php echo $favoriteClass; ?>"><?php echo $favoriteLabel; ?></button>
            <?php endif; ?>
        </div>
    </div>
 
<?php	
}
?>
</div>
<div style="clear:both;"></div>
The following user(s) said Thank You: adarr
Time to create page: 0.057 seconds
Powered by Kunena Forum