Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.218
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 - (how do) you get the lightbox to work with random images
(how do) you get the lightbox to work with random images
Goto page 1, 2  Next

18 Replies / 2324 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » How To's

View previous topic :: View next topic


DoC
Reputation: 90.1 Add RepSubtract Rep
votes: 5
Local time: 10:16 AM
Location: UK
uk.gif



0.24 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 430
Points: 4451 

Post (how do) you get the lightbox to work with random images Posted: Thu Apr 16, 2009 11:32 am

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

Hey guys,

Could be a simple one here... I tried a few month ago to get the lightbox to work with the random images download here: http://www.clanthemes.com/club-download-file-75-clan-themes-random-image-v2.html

I think it would be so much better for this nice little block to use the lightbox instead of its new page approach... Much more pr0


Cookie for the first person to give a working answer... Go Ped Go!!!

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote

DreAdeDcoRpSE
Reputation: 2221.6 Add RepSubtract Rep
votes: 28
Local time: 5:16 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 10 Feb 2012
Posts: 2459
Points: 128885 

Post (how do) you get the lightbox to work with random images Posted: Thu Apr 16, 2009 1:02 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

There you go DoC. I also added in a readme on how to implement the lightbox on other areas of your site with very little effort.


so, what type of cookie Rolling Eyes Pint

Random_Image_v2-1.zip
 Description:
Random Image Block with Lightbox effect added to it.

Download
 Filename:  Random_Image_v2-1.zip
 Filesize:  94.23 KB
 Downloaded:  33 Time(s)

 

 
View user's profileSend private messageVisit poster's website Reply with quote

DoC
Reputation: 90.1 Add RepSubtract Rep
votes: 5
Local time: 10:16 AM
Location: UK
uk.gif



0.24 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 430
Points: 4451 

Post Re: (how do) you get the lightbox to work with random images Posted: Thu Apr 16, 2009 4:21 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

Double choc chip bro \0/

Nice one dude your a legend I think u deserve another medal Wink

DoC Pint
 

 
View user's profileSend private messageSend e-mail Reply with quote


DreAdeDcoRpSE
Reputation: 2221.6 Add RepSubtract Rep
votes: 28
Local time: 5:16 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 10 Feb 2012
Posts: 2459
Points: 128885 

Post Re: (how do) you get the lightbox to work with random images Posted: Thu Apr 16, 2009 10:25 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

thanks for the cookie...
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DoC
Reputation: 90.1 Add RepSubtract Rep
votes: 5
Local time: 10:16 AM
Location: UK
uk.gif



0.24 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 430
Points: 4451 

Post Re: (how do) you get the lightbox to work with random images Posted: Thu Apr 16, 2009 11:51 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

I know this may not be possible but you know the BB Code Box MOD for the forums... Would it be possible for when a member add's an image the image is then displayed in the lightbox? I have the image resizer (makes the image smaller, needing to be clicked to enlarge) but I think a thumbnail would be better to be displayed in the post and then text under the thumbnail stating click to show full image, which then uses the lightbox to show the full image.

I know it's a big ask and have got the lightbox working with random images so perhaps it could be just a matter of code addition to the BBCode Box code?

I would like to do this one myself as I am trying to get back to doing Nuke modding once again but need some help as I have been busy working IRL and sorta forgot most of the stuff I knew way back in 2007... Damn I been on this site a loooooong time LOL

Where's Scorpion any way? I thought he was doing the game info modules... I been waiting a year for the EVE one LOL damn I hope he aint still working on it hahahahaha LMAO

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 5:16 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Re: (how do) you get the lightbox to work with random images Posted: Fri Apr 17, 2009 12:05 am

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

That is a little tougher, but not impossible.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote


DreAdeDcoRpSE
Reputation: 2221.6 Add RepSubtract Rep
votes: 28
Local time: 5:16 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 10 Feb 2012
Posts: 2459
Points: 128885 

Post Re: (how do) you get the lightbox to work with random images Posted: Fri Apr 17, 2009 1:55 am

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

what I did to get the lightbox effect in my forums as I went into the file

themes/Your Theme/forums/bbcode.tpl

and found the image code for the BBcode and implemented it that way. I don't remember exactly remember how it looked before I did the code changes but I think it looks something like

Code:
<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img -->


and what I did was edit it to look like this.

Code:
<!-- BEGIN img --><a href="{URL}" rel="lightbox"><img width="45%" src="{URL}" border="0" alt="" /></a>


I am not sure how RavenNuke has it set up but this is the way I have it on my Evo site. You would just need to the edit's I mentioned in the Using the Light box Effect on your site in other area's.txt file that I had included in the Random_image blocks I added the lightbox to.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DoC
Reputation: 90.1 Add RepSubtract Rep
votes: 5
Local time: 10:16 AM
Location: UK
uk.gif



0.24 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 430
Points: 4451 

Post Re: (how do) you get the lightbox to work with random images Posted: Fri Apr 17, 2009 4:29 am

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

OK rgr rgr I will have a look when I get up, I just think this sort of showing an image make a site look pr0 and should defo be a option for RN's next release.

DoC Pint
 

 
View user's profileSend private messageSend e-mail Reply with quote

DoC
Reputation: 90.1 Add RepSubtract Rep
votes: 5
Local time: 10:16 AM
Location: UK
uk.gif



0.24 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 430
Points: 4451 

Post Re: (how do) you get the lightbox to work with random images Posted: Fri Apr 17, 2009 12:46 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

Aye i had a go at getting this to work, added the code to where it was meant to be but all it does is open the image in a new page Sad

This is what im working with:

Code:
<!-- BEGIN img --><a href="{URL}" rel="lightbox"><img width="45%" src="{URL}" border="0" onload="javascript:if(this.width > 500){ this.height = Math.round(((500)/this.width)*this.height); this.width = (500); }" alt="Posted Image, might have been reduced in size. Click Image to view fullscreen." title="Posted Image, might have been reduced in size. Click Image to view fullscreen."/></a><!-- END img -->


Could the JS be screwing it up?

DoC Pint
 

 
View user's profileSend private messageSend e-mail Reply with quote


DreAdeDcoRpSE
Reputation: 2221.6 Add RepSubtract Rep
votes: 28
Local time: 5:16 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 10 Feb 2012
Posts: 2459
Points: 128885 

Post Re: (how do) you get the lightbox to work with random images Posted: Fri Apr 17, 2009 5:48 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

Have you done the edits that I mentioned in the .txt file where I mentioned opening the header.php and adding in those 4 lines of coding.

If so, then try using this for the code in the BBcode.tpl

Code:
<!-- BEGIN img --><a href="{URL}" rel="lightbox"><img width="45%" src="{URL}" border="0" alt="Posted Image, might have been reduced in size. Click Image to view fullscreen."
 title="Posted Image, might have been reduced in size. Click Image to view fullscreen."/></a><!-- END img -->


Looks like that javascript was resizing it. I think I might install a fresh install of RN in a sub directory on my site so I can better research this and maybe write up a tutorial to get this going.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DoC
Reputation: 90.1 Add RepSubtract Rep
votes: 5
Local time: 10:16 AM
Location: UK
uk.gif



0.24 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 430
Points: 4451 

Post Re: (how do) you get the lightbox to work with random images Posted: Fri Apr 17, 2009 8:54 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

Yep I done all the required edits to the header.php but i think its just this bit in the .tpl I think this is as far as i got the last time i tried to do this with the forums image thing. I know i got to a point and just gave up with it coz i was just gonna end up smashing my monitor LMAO

DoC
 

 
View user's profileSend private messageSend e-mail Reply with quote

DreAdeDcoRpSE
Reputation: 2221.6 Add RepSubtract Rep
votes: 28
Local time: 5:16 AM
Location: Back of your Mind
usa.gif

Forums Moderator
Forums Moderator

1.53 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Site Admin
Site Admin
Joined: Sep 22, 2007
Last Visit: 10 Feb 2012
Posts: 2459
Points: 128885 

Post Re: (how do) you get the lightbox to work with random images Posted: Fri Apr 17, 2009 9:06 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

Well, I just installed RN on my site in a sub directory and I will mess with this a bit. I will keep you posted.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » How To's


 
18 Replies / 2324 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