Clan Adverts

Custom PHPNuke Scripts

www.clan-themes.co.uk :: View topic - Lytebox javascript & phpnuke module? how to?

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Lytebox javascript & phpnuke module? how to?
Goto page 1, 2  Next

14 Replies / 1004 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » Java Scripts

View previous topic :: View next topic


fr34k123
Reputation: 473
Local time: 3:16 AM

uk.gif

Status: Offline
0.08 posts per day
Medals: 0

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

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: 603
votes: 5
Local time: 4:16 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8204 

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

fr34k123
Reputation: 473
Local time: 3:16 AM

uk.gif

Status: Offline
0.08 posts per day
Medals: 0

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

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: 603
votes: 5
Local time: 4:16 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8204 

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

fr34k123
Reputation: 473
Local time: 3:16 AM

uk.gif

Status: Offline
0.08 posts per day
Medals: 0

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

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: 603
votes: 5
Local time: 4:16 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8204 

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




fr34k123
Reputation: 473
Local time: 3:16 AM

uk.gif

Status: Offline
0.08 posts per day
Medals: 0

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

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: 603
votes: 5
Local time: 4:16 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8204 

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

fr34k123
Reputation: 473
Local time: 3:16 AM

uk.gif

Status: Offline
0.08 posts per day
Medals: 0

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

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: 603
votes: 5
Local time: 4:16 AM
Location: Lommel
belgium.gif

Status: Offline
0.50 posts per day
Medals: 0

Joined: May 08, 2007
Last Visit: 01 Dec 2008
Posts: 285
Points: 8204 

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

fr34k123
Reputation: 473
Local time: 3:16 AM

uk.gif

Status: Offline
0.08 posts per day
Medals: 0

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

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.



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