Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.219
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Lytebox javascript & phpnuke module? how to?
Lytebox javascript & phpnuke module? how to?
Goto page 1, 2  Next

16 Replies / 44985 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Scripts

View previous topic :: View next topic


fr34k123
Reputation: 473 Add RepSubtract Rep
Local time: 9:26 AM

uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: May 19, 2007
Last Visit: 11 Nov 2008
Posts: 43
Points: 695 

Post Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 12:26 pm

Hi, Wondered if someone could help me out.

I need to adapt an onclick image function to my current review module (and if possible have this function displayed anywhere on my site) - however the one i like the look of is javascript. It's called LyteBox and basically when an image is clicked on it displayes a popup box with a larger version of that image in it. The script itself can be found here:


LyteBox Javascript Site

I have tried to adapt this script within the reviews modulke itself and within a html module but to no avail. All i seem to get is a line of text (the image description) and nothing else. Any ideas on where i could be going wrong? The review module i currently use isn't the bog standard module but is a custom made module with page indexing and titles - im not sure whether something within the actual module is stopping this script from working.

I have added the javascript to the includes/javascript file but this doesn't make a difference Confused

I know the basics of phpnuke and can easily add new modules and code if i know where to add them to - so any help on this would be greatly apreciated. Likewise if anyone knows of a similar script that will perform a similar output result for my images that would be great.

(I realize that this problem is more than likely a user error - meaning im not putting the code is the necessary locations as opposed to a javescript/phpnuke compatibility issue).

Thanks in advance
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Untergang
Reputation: 642.6 Add RepSubtract Rep
votes: 6
Local time: 10:26 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.20 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 347
Points: 22131 

Post Re: Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 1:24 pm

http://www.deltamax.nl/modules.php?name=Downloads&op=getit&lid=12
This is the lightbox effect, it's the same as lytebox.
But in this one there is a readme how to add it to phpnuke.
 

UDesigns.be  
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

fr34k123
Reputation: 473 Add RepSubtract Rep
Local time: 9:26 AM

uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: May 19, 2007
Last Visit: 11 Nov 2008
Posts: 43
Points: 695 

Post Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 2:36 pm

Hi Untergang, thanks for the reply

I have visited the url you gave - but the site is not in english Crying - i believe you have register to download - which i did - but the account activation email link gives me 404 errors Confused so i can't activate my account and download the file!! Any Idea's?

Thanks in advance
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote


Untergang
Reputation: 642.6 Add RepSubtract Rep
votes: 6
Local time: 10:26 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.20 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 347
Points: 22131 

Post Re: Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 2:38 pm

http://www.udesigns.be/Lightbox.rar :)
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

fr34k123
Reputation: 473 Add RepSubtract Rep
Local time: 9:26 AM

uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: May 19, 2007
Last Visit: 11 Nov 2008
Posts: 43
Points: 695 

Post Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 3:03 pm

Hi Untergang
I have downloaded the file and uploaded it and completed the edits for core files and tried the following examples (as described in your readme file):

Code:
If you want a image to be openend using lightbox add a rel="lightbox" attribute to any link tag
to activate the lightbox. For example:

<a href="/images/info.gif" rel="lightbox" title="tekst">image #1</a>


but all i get is text that when you click on it brings up the image in a new window Confused

I then went on to try your second example (again follwing the suggested code in the readme file):

Code:
If you want the lightbox to be used to enlarge a image, the tekst should be a image link. For example:
<a href="/images/info.gif" rel="lightbox" title="tekst"><img src="/images/bfinfo.gif"/></a>


All that does for me is show a thumbnail image that when you click on it brings the image up in a new window - no LyteBox Crying

If i go back and try to edit the code:
Code:
<a title="tekst" href="9600gso.jpg"><img border="0" src="9600gso.jpg" /></a>


you can see that is in fact striped the original image link code of the rel="lightbox" - which i presume is a necessity for the LyeBox to work

Any ideas?

As always your help is greatly apreciated.
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Untergang
Reputation: 642.6 Add RepSubtract Rep
votes: 6
Local time: 10:26 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.20 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 347
Points: 22131 

Post Re: Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 3:07 pm

Can you give me the code where you added the rel='lightbox' ?
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote


fr34k123
Reputation: 473 Add RepSubtract Rep
Local time: 9:26 AM

uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: May 19, 2007
Last Visit: 11 Nov 2008
Posts: 43
Points: 695 

Post Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 3:11 pm

Hi

I added the image link exactly as supplied in the readme file in both instances:

Code:
<a href="/images/9600gso.jpg" rel="lightbox" title="9600GSO">image #1</a>


Code:
<a href="/images/9600gso.jpg" rel="lightbox" title="9600gso"><img src="/images/9600gso.jpg"/></a>


Thanks for your help Angel
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Untergang
Reputation: 642.6 Add RepSubtract Rep
votes: 6
Local time: 10:26 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.20 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 347
Points: 22131 

Post Re: Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 3:13 pm

To make the Lightbox work the header of phpnuke has to be included.
So it won't work if you have a page with only those links.
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

fr34k123
Reputation: 473 Add RepSubtract Rep
Local time: 9:26 AM

uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: May 19, 2007
Last Visit: 11 Nov 2008
Posts: 43
Points: 695 

Post Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 3:29 pm

Hi Untergang,

So how would i make it work then? Ideally i would like to have images within my review module enlarged onclick, but this module works like any other that has an admin function - i go in to the module via my admin pages and add each page (including any html image code).

I do apologise for my lack of phpnuke coding experience - but if the header of phpnuke has to be included - im unsure how i can use this anywhere on my site as my admin pages are set up for specific modules for ease of updating.

Please correct me if im on the wrong page or not fully understanding how this script works (hangs head in shame - lol)
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote


Untergang
Reputation: 642.6 Add RepSubtract Rep
votes: 6
Local time: 10:26 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.20 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 347
Points: 22131 

Post Re: Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 4:12 pm

do you see the header of your site at the place where you want the lightbox.
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

fr34k123
Reputation: 473 Add RepSubtract Rep
Local time: 9:26 AM

uk.gif

Armour Whore
Armour Whore

0.02 posts per day
Medals: 0

Joined: May 19, 2007
Last Visit: 11 Nov 2008
Posts: 43
Points: 695 

Post Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 5:17 pm

Hi Untergang, Thanks for the reply - although i'm unsure what you mean when you say - do i see the header of my site where i want the lightbox displayed? My site header is visible on all pages of my site - so maybe i am not understanding what you mean?

Basically i have tried to add the LyteBox function to my center blocks module i have on the front of my site. Basically these 4 center blocks are edited by going into my sites administration panel:

Image Has Been Resized, Click To Enlarge.

Image Has Been Resized, Click To Enlarge.


Each block is edited by clicking on the html tab and entering the html to be added to that block.

The same procedure is done with our review mnodule - via our sites administration panel / LD_Reviews - you can see that adding a review is done via the html tab underneath the text block:

Image Has Been Resized, Click To Enlarge.

Image Has Been Resized, Click To Enlarge.

Image Has Been Resized, Click To Enlarge.


All the time you can see that my site header is displayed - is this what you mean?

Thanks Dont Know
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Untergang
Reputation: 642.6 Add RepSubtract Rep
votes: 6
Local time: 10:26 AM
Location: Lommel
belgium.gif

Stand-by Stand-by
Stand-by Stand-by

0.20 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 31 Oct 2011
Posts: 347
Points: 22131 

Post Re: Lytebox javascript & phpnuke module? how to? Posted: Tue Jul 29, 2008 5:27 pm

If you can see your header then the javascript is included and should work. What might cause the problem is the WYSIWYG editor. I might remove the rel='' from your code. You can disable it in the config file of phpnuke. Maybe it works that way.
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Scripts


 
16 Replies / 44985 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
Display posts from previous:   
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum