Welcome, Guest
Username: Password: Remember me

TOPIC: contact advertiser button

contact advertiser button 2 months 3 weeks ago #7839

I have the basic program. Is there any way to keep the contact advertiser button from showing? I dont have registered users on purpose.

Also how do you keep the no image icon from showing as some of our line ads just dont have photos or icons they are straight text? :unsure:
The administrator has disabled public write access.

contact advertiser button 2 months 3 weeks ago #7845

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2971
  • Thank you received: 344
  • Karma: 46
Hi,

Sorry, currently we don't have the option to remove these. But You follow the below document and remove these from the core files.

1. I have the basic program. Is there any way to keep the contact advertiser button from showing? I dont have registered users on purpose.

Open the below file:
Root->component->com_jomclassifieds->views->advert->tmpl->default.php

Search the below code and Remove it:
<a class="jomcl-popup-trigger jomcl-btn btn btn-large btn-block btn-primary" data-jomcl-modal="jomclContact" href="javascript: void(0)">
        	<span class="icon-plus"></span> <?php echo JText::_('CONTACT_ADVERTISER'); ?>
        </a>

2) Also, how do you keep the no image icon from showing as some of our line ads just dont have photos or icons they are straight text? :unsure:---

Open the below files:
1.Root->component->com_jomclassifieds->views->adverts->tmpl->default_list.php
2.Root->component->com_jomclassifieds->views->category->tmpl->default_list.php
3.Root->component->com_jomclassifieds->views->location->tmpl->default_list.php
4.Root->component->com_jomclassifieds->views->search->tmpl->default_list.php
5.Root->component->com_jomclassifieds->views->userads->tmpl->default_list.php
6.Root->component->com_jomclassifieds->views->adverts->tmpl->default_grid.php
7.Root->component->com_jomclassifieds->views->category->tmpl->default_grid.php
8.Root->component->com_jomclassifieds->views->location->tmpl->default_grid.php
9.Root->component->com_jomclassifieds->views->search->tmpl->default_grid.php
10.Root->component->com_jomclassifieds->views->userads->tmpl->default_grid.php


Search the below code and Remove it:
$image = JOMCLASSIFIEDS_DEFAULT_IMG;

Add the below code instead of the removed code:
$image = '';

Search the below code and Remove it:
<div class="jomcltoprow-col-first" style="width:<?php echo $config->listthumbwid;?>px;">
          <div class="jomclimgthumbnils">         
            <?php if($imgCount) : ?>
        	    <span class="jomcl-photo-count"><?php echo $imgCount; ?></span>
            <?php endif; ?>
            <?php if($item->video !='' && $config->showvideo > 0 ){ ?>
            	<span class="jomcl-video-list icon-camera-2"></span>
            <?php } ?>
           <img itemprop="image"  src="<?php echo $image; ?>" alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>" width="<?php echo $config->listthumbwid;?>" height="<?php echo $config->listthumbhei;?>" onclick="javascript:location.href='<?php echo $detailPage; ?>'" > </div>
      </div>
Add the below code instead of the removed code:
<?php if($item->video != '' || $item->images != ''){ ?>
      <div class="jomcltoprow-col-first" style="width:<?php echo $config->listthumbwid;?>px;">
          <div class="jomclimgthumbnils">         
            <?php if($imgCount) : ?>
        	    <span class="jomcl-photo-count"><?php echo $imgCount; ?></span>
            <?php endif; ?>
            <?php if($item->video !='' && $config->showvideo > 0 ){ ?>
            	<span class="jomcl-video-list icon-camera-2"></span>
            <?php } ?>
           <img itemprop="image"  src="<?php echo $image; ?>" alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>" width="<?php echo $config->listthumbwid;?>" height="<?php echo $config->listthumbhei;?>" onclick="javascript:location.href='<?php echo $detailPage; ?>'" > </div>
      </div>
      <?php } ?>

Thanks
The administrator has disabled public write access.

empty phto icon removal 2 months 2 weeks ago #7852

Thanks for all the help! I did as you instructed on getting rid of the empty photo icon and it works in every view except category->tmpl->default_grid.php. The icon shows up now as a missing photo icon with a gray box background. How do I get rid of that? I went back and double checked all the entries you gave me but I cannot find where I made a mistake. Help! Thanks in advance. By the way, I love this software!! :unsure:
The administrator has disabled public write access.

empty phto icon removal 2 months 2 weeks ago #7853

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2971
  • Thank you received: 344
  • Karma: 46
Hi,

Open the below file:

1. Root->component->com_jomclassifieds->views->category->tmpl->default_grid.php

Search the below code and Remove it:
$image = JOMCLASSIFIEDS_DEFAULT_IMG;

Add the below code instead of the removed code:
$image = '';

Search the below code and Remove it:
<div class="jomclimg-block"> <?php if($imgCount) : ?>
          	 	<span class="jomcl-photo-count"><?php echo $imgCount; ?></span>
        	<?php endif; ?>
        	<?php if($item->video !='' && $config->showvideo > 0){ ?>
          	 	<span class="jomcl-video-list icon-camera-2"></span>
        	<?php } ?> <img itemprop="image" class="resize" src="<?php echo $image; ?>" alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>" width="<?php echo $config->gridthumbwid;?>" height="<?php echo $config->gridthumbhei;?>" onclick="javascript:location.href='<?php echo $detailPage; ?>'" >  </div>

Add the below code instead of the removed code:
<?php if( $image != 0 ) { ?>
      	<div class="jomclimg-block"> <?php if($imgCount) : ?>
          	 	<span class="jomcl-photo-count"><?php echo $imgCount; ?></span>
        	<?php endif; ?>
        	<?php if($item->video !='' && $config->showvideo > 0){ ?>
          	 	<span class="jomcl-video-list icon-camera-2"></span>
        	<?php } ?> <img itemprop="image" class="resize" src="<?php echo $image; ?>" alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>" width="<?php echo $config->gridthumbwid;?>" height="<?php echo $config->gridthumbhei;?>" onclick="javascript:location.href='<?php echo $detailPage; ?>'" >  </div>
            <?php } ?>

Thanks
The administrator has disabled public write access.
Time to create page: 0.378 seconds

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies