RSS 2.0
Browse posts:
Unanswered |
Mark all read
| Author | Message | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
karma Nucleus Master ![]() Joined: 07 Dec 2001 Posts: 1097 |
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
to
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
to
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:
That should do it _________________ Wouter Demuynck http://karma.nucleuscms.org/ |
||||||||||
|
|
|||||||||||
|
msary80 Nucleus Newbie Joined: 22 Jan 2008 Posts: 1 |
Thank karma, These code is helpful . That's a good idea. ________________________________ |
||||||||||
|
|
|||||||||||
|
Download Nucleus Disciple Joined: 02 Oct 2007 Posts: 174 Location: Belgium |
"in Nucleus v0.96" Your a bit behind my friend.. The current version is 3.3, isnt it time for you to update ? |
||||||||||
|
|
|||||||||||
|
IHNBIIPOS Nucleus Expert Joined: 16 Aug 2005 Posts: 326 |
Necro topic! _________________ My sites using Nucleus: AgeOfConan.lt | AglocoLietuva.com If you like Nucleus: Digg it | Stumble it | Save to del.icio.us | Donate |
||||||||||
|
|
|||||||||||
|
Download Nucleus Disciple Joined: 02 Oct 2007 Posts: 174 Location: Belgium |
WoOpz, didn't noticed the date |
||||||||||
|
|
|||||||||||
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 7449 Location: Massachusetts |
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 |
||||||||||
|
|
|||||||||||
|
WillyP Nucleus Guru ![]() Joined: 30 Aug 2009 Posts: 767 Location: Pembroke, NH |
3.3? Latest is 3.51 and soon to be 3.6. Anyway, check out some of the modal boxes like shadow box, color box, or media box. _________________ My Skins | Suncook Carpentry |
||||||||||
|
|
|||||||||||
|
Nucleus Support Forum Index -> Share Your Tips & Tricks -> Getting rid of the border around popup images |
|||||||||||
|
All times are GMT + 1 Hour
You cannot post new topics in this forum |
|||||||||||