Welcome, Guest
Username: Password: Remember me
This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.

This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.

The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.
  • Page:
  • 1
  • 2

TOPIC: showing images in lightbox hack

showing images in lightbox hack 4 years 10 months ago #1

hi,
this basically same with my showing images in shadowbox hack. only difference is it uses lightbox instead of shadowbox. you can take a look from here:
kunena lightbox demo page

installation:
open your view.php file and add this code to top before <?php:
<link rel="stylesheet" href="<?php echo KUNENA_DIRECTURL . '/template/default';?>/plugin/lightbox/css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo KUNENA_DIRECTURL . '/template/default';?>/plugin/lightbox/js/prototype.js"></script>
<script type="text/javascript" src="<?php echo KUNENA_DIRECTURL . '/template/default';?>/plugin/lightbox/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="<?php echo KUNENA_DIRECTURL . '/template/default';?>/plugin/lightbox/js/lightbox.js"></script>


if you already use my shadowbox hack (not preview hack, image hack) and wanna change to this, you must open kunena.parser.php file and change this:
rel="shadowbox"

to this:
rel="lightbox[kunena]"

dont touch kunena.parser.php if you dont use my shadow image hack.

if you dont wanna show other images at the topic or message with next previous buttons, you can delete [kunena] part.

finally copy lightbox folder to your default/plugin/ folder.

thats all.

Attachment lightbox_kunena_by_gerilla.zip not found



for changing lightbox language to your language open lightbox.js and cahnge this part to your language:
	labelImage: "Image",
	labelOf: "of"
save with utf8 if necessary.
Attachments:
  • guerilla
  • guerilla's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 159
  • Thank you received: 7
Last Edit: 4 years 10 months ago by guerilla.
The administrator has disabled public write access.

Re: showing images in lightbox hack 4 years 10 months ago #2

nice work ! :laugh:
  • Slotpro
  • Slotpro's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 105
Last Edit: 4 years 10 months ago by Slotpro.
The administrator has disabled public write access.

Re: showing images in lightbox hack 4 years 10 months ago #3

i use IE open my site not work but firefox it work and close button not show on site none english
  • Slotpro
  • Slotpro's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 105
Last Edit: 4 years 10 months ago by Slotpro.
The administrator has disabled public write access.

Re: showing images in lightbox hack 4 years 10 months ago #4

did you use lightbox files which i attached?
can you give a link?
  • guerilla
  • guerilla's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 159
  • Thank you received: 7
Last Edit: 4 years 10 months ago by guerilla.
The administrator has disabled public write access.

Re: showing images in lightbox hack 4 years 10 months ago #5

attach my file

Attachment FileLightbox.zip not found

Attachments:
  • Slotpro
  • Slotpro's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 105
Last Edit: 4 years 10 months ago by Slotpro.
The administrator has disabled public write access.

Re: showing images in lightbox hack 4 years 10 months ago #6

it is about image folders. in lightbox.js i declerated loading and close image folders to "components/com_kunena/template/default/plugin/lightbox/images/"
if you dont copy lightbox except default skin folder, i guess the sef extension causes this issue.
so you can open your lightbox.js file and change this parts:
    fileLoadingImage:        'components/com_kunena/template/default/plugin/lightbox/images/loading.gif',     
    fileBottomNavCloseImage: 'components/com_kunena/template/default/plugin/lightbox/images/closelabel.gif',

to this:
    fileLoadingImage:        '/components/com_kunena/template/default/plugin/lightbox/images/loading.gif',     
    fileBottomNavCloseImage: '/components/com_kunena/template/default/plugin/lightbox/images/closelabel.gif',

if it doesnt solve try writing full paths like this:
    fileLoadingImage:        'http://www.noartclub.com/components/com_kunena/template/default/plugin/lightbox/images/loading.gif',     
    fileBottomNavCloseImage: 'http://www.noartclub.com/components/com_kunena/template/default/plugin/lightbox/images/closelabel.gif',
  • guerilla
  • guerilla's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 159
  • Thank you received: 7
The administrator has disabled public write access.

Re: showing images in lightbox hack 4 years 10 months ago #7

ok i chage to
fileLoadingImage:        '/components/com_kunena/template/default/ plugin/lightbox/images/loading.gif',     
    fileBottomNavCloseImage: '/components/com_kunena/template/default/ plugin/lightbox/images/closelabel.gif',

it work ,why lightbox mysite not open on IE :(
  • Slotpro
  • Slotpro's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 105
The administrator has disabled public write access.

Re: showing images in lightbox hack 4 years 10 months ago #8

i guess ie messed up with your template. ie reports some javascript errors but ofcourse at wrong lines. so it is so hard to find where the problem is. ie sucks. try changing your template to another one and test again, if it works it is about template(i mean joomla template not kunena). in my demo site it works with ie as you see at default joomla skin.
  • guerilla
  • guerilla's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 159
  • Thank you received: 7
The administrator has disabled public write access.

Re: showing images in lightbox hack 4 years 10 months ago #9

i test change template JA Purity, yoo level , rt solarsentinel not work ,but test change templat rhuk_milkyway and beez it work
  • Slotpro
  • Slotpro's Avatar
  • OFFLINE
  • Senior Member
  • Posts: 105
The administrator has disabled public write access.

Re:showing images in lightbox hack 4 years 9 months ago #10

It does not work for me, maybe it is js conflict since my joomla template is loading mootools Gavick template.
  • Milutin
  • Milutin's Avatar
  • OFFLINE
  • Junior Member
  • Posts: 33
Last Edit: 4 years 9 months ago by Milutin.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.632 seconds