*

Daniel Petre

  • ***
  • 56 posts
Added banner in setting admin theme
« on: August 14, 2018, 10:19:02 PM »
I successfully added two new space for the ad in the theme.
It works ok , everything goes well. - on localhost
I archived the thema because I worked on the localhost and tried to upload it live/www.site.com
Thema has loaded ok but in the admin / Theme Settings panel  gives me the message:
"Appearance
Error loading theme file"

You can help me why it shows me an error

*

Daniel Petre

  • ***
  • 56 posts
Re: Added banner in setting admin theme
« Reply #1 on: August 15, 2018, 06:47:00 PM »
Could you help me please

*

MB Themes

Re: Added banner in setting admin theme
« Reply #2 on: August 15, 2018, 10:22:07 PM »
@Daniel
What you have in error log. Is there something? Have you tried to reupload theme files?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel Petre

  • ***
  • 56 posts
Re: Added banner in setting admin theme
« Reply #3 on: August 18, 2018, 09:00:55 PM »
I have not found, I do not have this file error log.
I tried to reupload and to reinstall .... the same problem.

*

Daniel Petre

  • ***
  • 56 posts
Re: Added banner in setting admin theme
« Reply #4 on: August 18, 2018, 09:26:41 PM »
so look at the admin panel on localhost
attach foto

*

Daniel Petre

  • ***
  • 56 posts
Re: Added banner in setting admin theme
« Reply #5 on: August 18, 2018, 10:20:57 PM »
I found in  oc-content/debug.log

[18-Aug-2018 22:04:54 Europe/Madrid] PHP Notice:  Undefined offset: 0 in /home/mysite/oc-content/themes/tatiana/functions.php on line 118
[18-Aug-2018 22:04:56 Europe/Madrid] PHP Notice:  Undefined offset: 0 in /home/mysite/oc-content/themes/tatiana/functions.php on line 118

in functions.php I looked at line 188 is
  $cat = $cat[0];





*

MB Themes

Re: Added banner in setting admin theme
« Reply #6 on: August 19, 2018, 10:22:57 AM »
Log does not contain anything important. If it works on one site and does not on another, problem is probably not in theme.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel Petre

  • ***
  • 56 posts
Re: Added banner in setting admin theme
« Reply #7 on: August 19, 2018, 10:58:42 AM »
How on localhost were I made first all changing it is works.  But when I took and I archive this from localhost and uploaded on live server is not  working the custom file for thema in admin panel.Same osclass same file ... If I insert two new ads in admin why is not uploaded corect.

*

MB Themes

Re: Added banner in setting admin theme
« Reply #8 on: August 19, 2018, 12:56:13 PM »
Well that is question that probably do not relate to theme. You may try to use it on clean installation.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel Petre

  • ***
  • 56 posts
Re: Added banner in setting admin theme
« Reply #9 on: August 19, 2018, 04:30:48 PM »
I made a new installation.
I created a subdomain a data base, osclass, and then loaded the theme.

There is some code in thema if I add lines to the theme no longer works.
In thema I ad lines in
admin/settings.php
functions.php
and item  & main.php where the ad appears.

is there any way to help me if I send you thema .

*

MB Themes

Re: Added banner in setting admin theme
« Reply #10 on: August 19, 2018, 08:32:17 PM »
What lines?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Daniel Petre

  • ***
  • 56 posts
Re: Added banner in setting admin theme
« Reply #11 on: August 19, 2018, 10:09:32 PM »
the one I added is see attach and in this files I added
in main.php
        <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
      <div class="home-google">
          <center><?php echo osc_get_preference('banner_home', 'tatiana_theme'); ?></center>
        </div>
        <div class="home-google">
          <center><?php echo osc_get_preference('banner_home_second', 'tatiana_theme'); ?></center>
        </div>
        <div class="home-google">
          <center><?php echo osc_get_preference('banner_home_text', 'tatiana_theme'); ?></center>
        </div>
        <div class="home-google">
          <center><?php echo osc_get_preference('banner_home_textarea', 'tatiana_theme'); ?></center>
        </div>
      <?php } ?>

in seach.php
 <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
      <div class="adsense-search">
        <?php echo osc_get_preference('banner_search', 'tatiana_theme'); ?>       
      </div>
    <?php } ?>

in seach_gallery.php and search_list.php is the same between premium and simple ads
     <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
      <div class="adsense-search-premium">
        <?php echo osc_get_preference('banner_search_premium', 'tatiana_theme'); ?>       
      </div>
    <?php } ?>

in item.php it is two spaces
        <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
          <div class="adsense-item">
            <?php echo osc_get_preference('banner_item_long', 'tatiana_theme'); ?>       
          </div>
        <?php } ?>

        <?php if(osc_get_preference('theme_adsense', 'tatiana_theme') == 1) { ?>
          <div class="adsense-item">
            <?php echo osc_get_preference('banner_item', 'tatiana_theme'); ?>       
          </div>
        <?php } ?>

*

Daniel Petre

  • ***
  • 56 posts
Re: Added banner in setting admin theme
« Reply #12 on: August 24, 2018, 12:25:15 AM »
your opinion

*

MB Themes

Re: Added banner in setting admin theme
« Reply #13 on: August 24, 2018, 08:07:33 AM »
PM me login to your oc-admin and ftp
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Added banner in setting admin theme
« Reply #14 on: August 25, 2018, 09:31:56 PM »
@Daniel
I've looked there and it worked without issue, theme files loaded properly.
/oc-admin/index.php?page=appearance&action=render&file=oc-content/themes/elena/admin/settings.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots