Advertisement:

Author Topic: Bender fancybox issue..  (Read 8348 times)

ruk_design

  • Newbie
  • *
  • Posts: 13
Bender fancybox issue..
« on: February 03, 2014, 10:18:52 pm »
Hi mates, i am using newly installed osclass with bender theme, and did some color modifications. Now i have posted some test ads, and what i can see when i click on the gallery image, instead of lightbox its opening image directly. so can anyone tell me some fix for this. please check the site and some test post here.
Code: [Select]
http://smokegrafix.com/bsbroadcast/
Thanks.
and sorry for my bad English.
« Last Edit: February 03, 2014, 11:43:08 pm by ruk_design »

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Image lightbox issue..
« Reply #1 on: February 03, 2014, 10:24:30 pm »
@ruk_design
Means jQuery is not working on listing's page or you have deleted rel attribute from link (check original file for them)

ruk_design

  • Newbie
  • *
  • Posts: 13
Re: Image lightbox issue..
« Reply #2 on: February 03, 2014, 10:39:05 pm »
Thanks dear, which file i have to check.? as i am not a coder.. can you please mention here..

ruk_design

  • Newbie
  • *
  • Posts: 13
Re: Bender fancybox issue..
« Reply #3 on: February 03, 2014, 11:42:02 pm »
actually the fancybox is not working for all listing images. so can anyone please suggest some proper solution for bender theme. as i have tested other themes, and everything is working fine.

aide2001

  • Guest
Re: Bender fancybox issue..
« Reply #4 on: February 04, 2014, 11:28:46 am »
In your head in common file, you need a src to the fancybox script, check that first. The let us know

ruk_design

  • Newbie
  • *
  • Posts: 13
Re: Bender fancybox issue..
« Reply #5 on: February 05, 2014, 12:28:46 am »
i am attaching my current head file, from common folder. if you can check and fix this. then it will be a great help.. as i am a designer. and not able to write a single word of code.
Thanks

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Bender fancybox issue..
« Reply #6 on: February 05, 2014, 02:30:11 am »
in item.php make sure this is in it.

on about lines 25& 26

osc_enqueue_script('fancybox');
osc_enqueue_style('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.css'));

and make sure you have the fancy box script/css file folder located in the js folder
« Last Edit: February 05, 2014, 02:32:03 am by design »

aide2001

  • Guest
Re: Bender fancybox issue..
« Reply #7 on: February 05, 2014, 10:52:46 am »
Your head.php file seems okay, check item.php like @design said

ruk_design

  • Newbie
  • *
  • Posts: 13
Re: Bender fancybox issue..
« Reply #8 on: February 05, 2014, 11:42:55 am »
Everything is 100% ok, i remember that i just edited main.css for some color changing, and thats it. I edited it using Stylizer 5.. and after that the fancybox is corrupt. i re uploaded the fancybox files and nothing changed. when i switch to other theme, everything works like normal. Only bender theme is having issue. if someone can upload the very latest bender theme, then i can try re uploading to fix this issue.. Thanks.

or in case if there is any other solution then please let me know.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Bender fancybox issue..
« Reply #9 on: February 05, 2014, 01:37:45 pm »
Hi,

https://github.com/osclass/theme-bender

I've seen this problem solved installing this version (previous one had some little bugs).

Regards

ruk_design

  • Newbie
  • *
  • Posts: 13
Re: Bender fancybox issue..
« Reply #10 on: February 05, 2014, 04:14:23 pm »
Thanks a lot mate, yes now its fixed.. everything working good.. Cheers..

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Bender fancybox issue..
« Reply #11 on: February 05, 2014, 08:49:14 pm »
I am digging this up because I just tested the new mce and noticed this unfortunate glitch. I will compare and see what's up and try to submit to github. wish me luck :-)

ruk_design

  • Newbie
  • *
  • Posts: 13
Re: Bender fancybox issue..
« Reply #12 on: February 05, 2014, 09:11:13 pm »
Thanks a lot.. but fancybox is not working with inter explorer. Its working great with firefox, i haven't tested it with chrome. but chrome is second internet explorer, But internet explorer is almost useless browser. you can test this issue with my link on both browsers.
Code: [Select]
http://smokegrafix.com/bsbroadcast/

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Bender fancybox issue..
« Reply #13 on: February 05, 2014, 09:11:23 pm »
ok…yes downloading from git hub has the fixed issue. but for the purpose of this thread and the fact that the theme that comes with core has not reflected this EASY repair I'll post it here.


in theme/bender/common/head.php on line 49 add a semicolon to the end of the line….
will look like this when done.
bender.langs = <?php echo json_encode($js_lang); ?>;

that will fix not only the fancy box, but also:
Quote
The absent of the semicolon led to several JavaScript errors in the theme such as "Sory By" list, "Mark as" list, fancybox and handling various notifications.

Javascript failed to load in Chrome cause to the bender object to not get identified.

ruk_design

  • Newbie
  • *
  • Posts: 13
Re: Bender fancybox issue..
« Reply #14 on: February 05, 2014, 09:43:05 pm »
in my version the theme, the head.php already has a ; at the end of line 49.. Well now i have tested it on chrome, the fancybox is working fine. but having too many adds on lef, right. top and bottom of the page. i dont know how it happened, as in firefox and IE there are no ads. can you also figure why ads are displayed in chrome.