Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic Reply to topic
Author Message
karma
Nucleus Master
Nucleus Master


Joined: 07 Dec 2001
Posts: 1097

Post Posted: Fri Dec 14, 2001 1:43 pm   Post subject: Getting rid of the border around popup images
Reply with quote

When using popup images in Nucleus v0.96, the default templates and skins generate a popup window that's slightly bigger than the image (40 pixels), resulting in a white border around the image.

To change it so that windowsize = imagesize, follow the following steps:

1. 'hack' into nucleus/libs/BLOG.php and change the lines 227-228 from
Code:
      $windowwidth = $width + 20;
      $windowheight = $height + 20;

to
Code:
      $windowwidth = $width;
      $windowheight = $height;


Change the same on lines 245-246 too (hmm, that's sort of a bug)

(I'll change that in the next version, 0.97. Adding that 20 pixels was a bad idea)

2. update the image popup skin (in the default skin, or whereever you have defined it)

change
Code:
  <style type="text/css">
   img { border: none; }
  </style>

to
Code:
  <style type="text/css">
   img { border: none; }
   body { margin: 0px; }
  </style>


Optional: if you want to close the popup window when it loses focus (i.e. means the visitor clicks another window), change the body tag to the following:
Code:
<body onBlur="window.close()">


That should do it Smile

_________________
Wouter Demuynck
http://karma.nucleuscms.org/

Back to top

View user's profile Send private message Visit poster's website
msary80
Nucleus Newbie


Joined: 22 Jan 2008
Posts: 1

Post Posted: Tue Jan 22, 2008 8:21 am   Post subject:
Reply with quote

Thank karma, These code is helpful . That's a good idea.

________________________________

Back to top

View user's profile Send private message
Download
Nucleus Disciple


Joined: 02 Oct 2007
Posts: 174
Location: Belgium

Post Posted: Tue Jan 22, 2008 1:10 pm   Post subject:
Reply with quote

"in Nucleus v0.96"
Your a bit behind my friend..
The current version is 3.3, isnt it time for you to update ?

Back to top

View user's profile Send private message
IHNBIIPOS
Nucleus Expert


Joined: 16 Aug 2005
Posts: 326

Post Posted: Tue Jan 22, 2008 4:32 pm   Post subject:
Reply with quote

Quote:
Posted: Fri Dec 14, 2001 1:43 pm


Necro topic! Laughing

_________________
My sites using Nucleus: AgeOfConan.lt | AglocoLietuva.com
If you like Nucleus: Digg it | Stumble it | Save to del.icio.us | Donate

Back to top

View user's profile Send private message Visit poster's website
Download
Nucleus Disciple


Joined: 02 Oct 2007
Posts: 174
Location: Belgium

Post Posted: Tue Jan 22, 2008 5:03 pm   Post subject:
Reply with quote

WoOpz, didn't noticed the date Razz

Back to top

View user's profile Send private message
danieltooop
Nucleus Newbie


Joined: 02 Feb 2009
Posts: 1

Post Posted: Mon Feb 02, 2009 11:12 pm   Post subject:
Reply with quote

Whether this same code work for 3.3 version..
I'm planning for applying this code for 3.3 version. So, guys plz help me with your reply.

_________________
With Regards,
Daniel, Web designer,
drug rehab

Back to top

View user's profile Send private message
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 6312
Location: Massachusetts

Post Posted: Tue Feb 03, 2009 12:53 am   Post subject:
Reply with quote

I wouldn't try this in 3.33. The code has changed a lot since the original post. It is probably doable by some simpler means now (like a template, or css).
_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
Post new topic Reply to topic
Display posts from previous:   

Page 1 of 1

All times are GMT + 1 Hour

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

Powered by phpBB © 2001, 2002 phpBB Group