*

oneloveb

  • ****
  • 112 posts
Adsense between user items on business profile
« on: February 09, 2021, 07:02:13 PM »
Hello

Pls i replace this code in selller.php in the business profile

<?php $c = 1; ?>
                <?php while( osc_has_custom_items() ) { ?>
                  <?php bpr_draw_item($c, 'gallery'); ?>
                  <?php $c++; ?>
                <?php } ?>

                   TO THIS

<?php $c = 1; ?>
      <?php while( osc_has_items() ) { ?>
        <?php stela_draw_item($c, 'gallery'); ?>
       <?php if ($c % 6 == 0) {?>
         <?php echo stela_banner('item_description'); ?>
      <?php } ?>
        <?php $c++; ?>
      <?php } ?>

But not working Kindly assist on what to do

The code is working fine on Search Gallery

Thanks

*

MB Themes

Re: Adsense between user items on business profile
« Reply #1 on: February 10, 2021, 08:15:37 AM »
@oneloveb
You should not change default codes, try this:
Code: [Select]
<?php 
  $c 
1
  while( 
osc_has_custom_items() ) {
    
bpr_draw_item($c'gallery');

    if(
$c == 6) {
      
?>

        .... my custom HTML code there
      <?php
    
}

    
$c++;
  }
?>

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oneloveb

  • ****
  • 112 posts
Re: Adsense between user items on business profile
« Reply #2 on: February 10, 2021, 09:56:09 AM »
Thank you for your response

I  insert the code but nothing happens is not working



*

MB Themes

Re: Adsense between user items on business profile
« Reply #3 on: February 10, 2021, 11:51:05 AM »
@oneloveb
Code is correct.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots