Creat a componet of photo view

Rose Boy Posted in Component Development 9 years ago

creat a componet of photo view like in below picture
creat a componet of photo view like in below picture

Replies
Nguyễn Bá Tân Replied 9 years ago

I found problem of facybox component.
It's cached config problem.
When I disable cached setting in administrator site, the facybox function affected.
Note: this problem also affect to themes.

pk Rose Boy Replied 9 years ago

Same problem brO :(

Indonesian Arsalan Shah Replied 9 years ago

@Rose,

Try to replace fancybox/js/fancybox.init.php with

https://gist.github.com/lianglee/d8ec4e4ffad8b805d011

pk Rose Boy Replied 9 years ago

Syed Arsalan Hussain Shah BrO some image is open in fancybox so large, i want every image is open in fancybox limited size.

Indonesian Arsalan Shah Replied 9 years ago

@ Nguyễn, strange, it should work when you click on image, make sure the fancybox is loaded in your page.

Make sure following url works:

https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js

Nguyễn Bá Tân Replied 9 years ago

I installed success component & enabled it.
But it don't affect in news feed.
When I click image, but it don't show fancybox.

pk Malik Ehsaan Replied 9 years ago

when click on image. then image will bhi disappear in news feed.
after refreshing the page image show back again.

German Michael Zülsdorff Replied 9 years ago

Arsalan, I just posted a possible fix below the fancybox component

pk Rose Boy Replied 9 years ago

yeah its a great and thank you Arsalan shah brO, but one problem in it, when i click on image after view i click to x sign, then image is hide to the wall,

Indonesian Arsalan Shah Replied 9 years ago

@Jenny, You have to edit css classes, found in,

in components/OssnWall/css/wall.php

.ossn-button-submit-b{} 

In themes/ossnblack/styles/default.php Line 221-229

.ossn-button-green,
 #ossn-login input[type='submit'],
 #ossn-home-signup input[type='submit']{

In themes/ossnblack/styles/default/php Line 80-80

.ossn-button-submit{}