1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Off-Topic

Lightbox & <iframe> - Request solution

  • Quakis
  • August 18, 2007 at 9:45 AM
  • Quakis
    • August 18, 2007 at 9:45 AM
    • #1

    I have no clue as to where I could have posted website related issues, please move where it should be.

    It's something I've just noticed recently, I'm using the javascript "Lightbox" to load up 800*600 images from a thumbnail, however all my content is set within a small (like Vivi's portfolio) so ofcourse the image loads within that page and causes scrollbars.

    Is it not possible to force Lightbox to load these images OUTSIDE the so it opens OVER everything rather than inside? Lightbox is a nice little script and it'd be a shame not to use it - otherwise I'll have to find a more simplistic (and boring) approach to showcasing larger screens. The best size the fits in the box is stuff 480 wide, 384 high - too small.

    website in question is here; http://qshockwave.planetduke.gamespy.com/gallery/

    please note the colour scheme is most likely going to change real soon.

  • hessi
    • August 18, 2007 at 11:25 AM
    • #2

    i agree. frames are so 1999.

  • Quakis
    • August 18, 2007 at 11:47 AM
    • #3
    Quote from Pericolos0

    or: dont use an iframe!

    Obviously, but how the site is currently put together I'd have constantly add any changes to the main page (say adding a new link) then make that same change to the others. With a all I have to worry about is content pages.

  • hessi
    • August 18, 2007 at 12:13 PM
    • #4
    Quote from Quakis

    Obviously, but how the site is currently put together I'd have constantly add any changes to the main page (say adding a new link) then make that same change to the others. With a all I have to worry about is content pages.

    there was some invention called PHP or maybe even wordpress :X

  • Taylor
    • August 18, 2007 at 12:16 PM
    • #5

    I don't think it's possible for lightbox to ignore the frame it's in, since it's bound to it. You’d have to link the images normally with target="_parent" or target="_top,” which isn’t what you want.

    But you can get rid of those iframes without making updating the site unmanageable. I'm pretty sure your server will allow PHP or Server Side Includes, just make a header and footer file that incorperates everything of your design except for the actual page and put those two at the beginning and end of each file.

    To use PHP your pages might need to end in .php, depending on the server. The PHP one would just be:

    PHP
    <?php @include("header.php"); ?>
    
    
    
    
    - Page stuff -
    
    
    
    
    <?php @include("footer.php"); ?>
    Display More

    To do it with SHTML (which may need a .shtml extension) use:

    Code
    - Page stuff -
  • Quakis
    • August 18, 2007 at 4:52 PM
    • #6
    Quote

    there was some invention called PHP or maybe even wordpress :X

    Your talking to a guy who still uses the Build Engine. Besides, I didn't really want another Wordpress installed on my site since I use one for reviewing map/mods and wanted project related stuff seperate.

    Quote

    But you can get rid of those iframes without making updating the site unmanageable. I'm pretty sure your server will allow PHP or Server Side Includes, just make a header and footer file that incorperates everything of your design except for the actual page and put those two at the beginning and end of each file.To use PHP your pages might need to end in .php, depending on the server. The PHP one would just be:

    The obvious can hurt. This method was a much better approach, everything works the way intended (offline right now) Thanks =x

  • Thrik
    • August 18, 2007 at 8:39 PM
    • #7

    Ah yes, the time one learns about the magnificence of includes.

    Truly amongst the most helpful things in any web designer's tool kit.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Custom Gamemodes Contest

    Angel
    July 20, 2026 at 11:46 AM
  2. FAQ

    Angel
    July 20, 2026 at 10:14 AM
  3. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  4. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  5. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  6. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  7. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  8. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  9. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  10. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM

Users Viewing This Thread

  • 1 Guest
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™