Advertisement:

Author Topic: PROBLEM MODIFYING HEADER.PHP,fancybox blackscreen or misplace images  (Read 1391 times)

auronblade

  • Newbie
  • *
  • Posts: 3
 i cant modify header.php ¿?¿

when i try to modify header.php for delete "public ad for free button" that happens.

i know i must delete these lines from header.php

<?php if( osc_users_enabled() || ( !osc_users_enabled() && !osc_reg_user_post() )) { ?>
            <li class="publish"><a href="<?php echo osc_item_post_url_in_category() ; ?>"><?php _e("Publish your ad for free", 'bender_black');?></a></li>
            <?php } ?>


and seems to work on IE AND FF but... on google chrome the fancy box appear dark or misplace the images to the bottom...

What must i do ? , modify some other archives ¿ like main.php,head.php or some .css ?
« Last Edit: October 27, 2014, 06:01:01 pm by auronblade »

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: PROBLEM MODIFYING HEADER.PHP,fancybox blackscreen or misplace images
« Reply #1 on: October 28, 2014, 01:03:59 am »
did you throw of your div? some browsers will auto fix if the div doesn't close. like you removed the li but what about the ul?

lucas88

  • Newbie
  • *
  • Posts: 18
Re: PROBLEM MODIFYING HEADER.PHP,fancybox blackscreen or misplace images
« Reply #2 on: February 21, 2015, 08:09:12 pm »
I have the same problem with fancybox... its not displaying images properly... images are on the bottom of the screen in the chrome browser so I must zoom out to see whole image. Can anyone help please?

aide2001

  • Guest
Re: PROBLEM MODIFYING HEADER.PHP,fancybox blackscreen or misplace images
« Reply #3 on: February 21, 2015, 08:26:29 pm »
in your theme head file you have something like this
<script type="text/javascript">
    var bender = window.bender || {};
    bender.base_url = '<?php echo osc_base_url(true); ?>';
    bender.langs = <?php echo json_encode($js_lang); ?>
    bender.fancybox_prev = '<?php echo osc_esc_js( __('Previous image','bender')) ?>';
    bender.fancybox_next = '<?php echo osc_esc_js( __('Next image','bender')) ?>';
    bender.fancybox_closeBtn = '<?php echo osc_esc_js( __('Close','bender')) ?>';
</script>
obviously you have bender black so just make sure all is there saying bender_black

lucas88

  • Newbie
  • *
  • Posts: 18
Re: PROBLEM MODIFYING HEADER.PHP,fancybox blackscreen or misplace images
« Reply #4 on: February 21, 2015, 09:02:53 pm »
yes I have there exactly the same but I am using standard bender theme not black... hmm

aide2001

  • Guest
Re: PROBLEM MODIFYING HEADER.PHP,fancybox blackscreen or misplace images
« Reply #5 on: February 21, 2015, 09:21:15 pm »
soz should have been
<script type="text/javascript">
    var bender = window.bender || {};
    bender.base_url = '<?php echo osc_base_url(true); ?>';
    bender.langs = <?php echo json_encode($js_lang); ?>';   (MAKE SURE THE '; ARE THERE)
    bender.fancybox_prev = '<?php echo osc_esc_js( __('Previous image','bender')) ?>';
    bender.fancybox_next = '<?php echo osc_esc_js( __('Next image','bender')) ?>';
    bender.fancybox_closeBtn = '<?php echo osc_esc_js( __('Close','bender')) ?>';
</script>

lucas88

  • Newbie
  • *
  • Posts: 18
Re: PROBLEM MODIFYING HEADER.PHP,fancybox blackscreen or misplace images
« Reply #6 on: February 21, 2015, 11:03:57 pm »
Unfortunatelly this did not help me :( ... But please check my attached screenshot - I dont know why but header and whole page is moved a bit down and when I check page source via browser there is empty head section and everything from head is in body section... I can´t figure out what I have changed and what caused this ... I am desperate, please help me... this maybe will fix fancybox as well.

lucas88

  • Newbie
  • *
  • Posts: 18
Re: PROBLEM MODIFYING HEADER.PHP,fancybox blackscreen or misplace images
« Reply #7 on: February 22, 2015, 08:31:13 pm »
Finally is everything working... I have modified header.php and this caused that fancybox did not work well ... so I replaced it with old one... but I cant change anything in header because of this