*

ema

  • **
  • 7 posts
 :(

osclass 8.01 + Bender Bootstrap, if you click on image of the ad, ad ad page open correcty and display the ad

but if click you another time on the image, annoying error "the page not exit" , I think is useful disable the second click on image or activate the zoom on the image, or fix this error.....

the problem is script looking for file name 75_original.jpg but file name is .75_thumbnail.jpg

where to fix?



« Last Edit: March 20, 2022, 11:02:59 PM by ema »

*

MB Themes

Re: osclass 8.01 + Bender Bootstrap, error if click on image of the ad
« Reply #1 on: March 21, 2022, 03:53:25 PM »
@ema
I am not sure if "_original" ever existed.
You probably must update item.php and search for "_original" and change it to "_preview" or "_thumbnail"
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ema

  • **
  • 7 posts
Re: osclass 8.01 + Bender Bootstrap, error if click on image of the ad
« Reply #2 on: March 25, 2022, 12:11:01 PM »
this is part of the code

// For related items loop
$list       = 'active';
$gallery    = '';
$listClass    = 'col-sm-12 list-item';
if (benderbs_show_as() == 'gallery') {
   $list       = '';
   $gallery    = 'active';
   $listClass    = 'col-sm-4';
}

$location = array();
if( osc_item_city_area() !== '' ) {
    $location[] = osc_item_city_area();
}
if( osc_item_city() !== '' ) {
    $location[] = osc_item_city();
}
if( osc_item_region() !== '' ) {
    $location[] = osc_item_region();
}
if( osc_item_country() !== '' ) {
    $location[] = osc_item_country();
}

function js_item() {
   CustomCommentForm::js_validation();
}
osc_add_hook('footer', 'js_item');

osc_current_web_theme_path('header.php'); ?>

   <?php osc_current_web_theme_path('item-sidebar.php'); ?>

   <article id="item-content" class="col-md-8 order-1 pb-3 item">
      <h1>
         <?php if (osc_price_enabled_at_items()) : ?>
         <span id="price-item-<?php echo osc_item_id(); ?>" class="price<?php if (osc_item_price() !== null) echo ' cursor-pointer'; ?>"
            <?php if (osc_item_price() !== null) : ?>
            data-toggle="tooltip" data-placement="top" title="<?php _e('Copy to Clipboard', BENDERBS_THEME_FOLDER); ?>" onclick="copyPriceToClipboard(<?php echo osc_item_id(); ?>, 'item');return false;"
            <?php endif; ?>
         >
            <?php echo osc_item_formatted_price(); ?>
         </span>
         <?php endif; ?>
         <strong><?php echo osc_item_title() . ', ' . osc_item_city(); ?></strong>
      </h1>

      <section class="bg-gray-bender small mt-3 p-1 rounded">

         <?php if (osc_item_pub_date() !== '') : ?>
            <div><?php printf(__('<strong class="publish">Published date</strong>: %1$s', BENDERBS_THEME_FOLDER), osc_format_date( osc_item_pub_date())); ?></div>
         <?php endif; ?>
         
         <?php if (osc_item_mod_date() !== '') : ?>
            <div><?php printf(__('<strong class="update">Modified date:</strong> %1$s', BENDERBS_THEME_FOLDER), osc_format_date( osc_item_mod_date())); ?></div>
         <?php endif; ?>
         
         <?php if (count($location)>0) : ?>
         <div id="item_location"><strong><?php _e('Location', BENDERBS_THEME_FOLDER); ?></strong>: <?php echo implode(', ', $location); ?></div>
         <?php endif; ?>

      </section>

      <?php if (osc_is_web_user_logged_in() && osc_logged_user_id()==osc_item_user_id()) : ?>
      <div id="edit_item_view" class="mt-1 text-right"><a href="<?php echo osc_item_edit_url(); ?>" rel="nofollow"><?php _e('Edit item', BENDERBS_THEME_FOLDER); ?></a></div>
      <?php endif; ?>

      <?php if (osc_images_enabled_at_items()) : ?>
         
         <?php if (osc_count_item_resources() > 0) : ?>
         <div id="itemCarousel" class="carousel slide mt-3" data-ride="carousel">

            <div class="carousel-inner">
               <?php $num = 0; while (osc_has_item_resources()) : $num++; ?>
               <div class="carousel-item<?php if ($num == 1) echo ' active'; ?>">
                  <a href="<?php echo osc_resource_original_url(); ?>" target="_blank">
                     <img src="<?php echo osc_resource_url(); ?>" class="img-fluid" alt="<?php echo osc_resource_name(); ?>">
                  </a>
               </div>
               <?php endwhile; ?>
            </div>

            <?php if (osc_count_item_resources() > 1) : ?>
            <a class="carousel-control-prev" href="#itemCarousel" data-slide="prev">
               <span class="carousel-control-prev-icon"></span>
            </a>

            <a class="carousel-control-next" href="#itemCarousel" data-slide="next">
               <span class="carousel-control-next-icon"></span>
            </a>
            <?php endif; ?>
            
         </div>
         
« Last Edit: March 25, 2022, 12:17:22 PM by ema »

*

MB Themes

Re: osclass 8.01 + Bender Bootstrap, error if click on image of the ad
« Reply #3 on: March 27, 2022, 09:08:23 AM »
This function
osc_resource_original_url

May not be ok. But maybe it is and you just did not select in media settings to store original image
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots