PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2007-07-25 13:21:46

no64
Member
Registered: 2007-06-20
Posts: 179

Absolute_Img_Tag 1.0

Code:

##
##
##      Mod title:                 Absolute Image Tag

##      Mod version:            1.0
##      Works on PunBB:     1.2.15
##      Release date:          2007-07-25
##      Authors:                 no64 , Tjalve, Robert_h 

##      Description:           Adds new Img Tag to resize oversized images to fit the postarea.
##                 

##   Affected files:           include/parser.php
##
                                       
##       Affects DB:           No


##            NOTES:      This is not really a new mod, but brings two together:
##            "Add Lightbox 2.0"  http://www.punres.net/desc.php?pid=282 
##             And other one discussed here: http://punbb.org/forums/viewtopic.php?id=16426
##
##            I combined those two codes an got a new Image Tag.
##            Now I can set the max width for images to be shown with the img_tag
##
##            If wider than my postarea it will be displayed resized with a link to be opened
##            in original size - or (if set) with Lightbox. If smaller or exactly as my 
##            postarea it will be displayed in original size.
##
##            And, if using Lightbox, you can set the max width of the image to be opened with
##            Lightbox - lets say bigger than 800 pixel width has not to be displayed with
##            Lightbox, but resized and with a link to be opened in original size....
##
##            Replace the original img_tag in parser.php with this. If not using Lightbox you 
##            have to delete the Lightbox parts in this mod. 




##       DISCLAIMER:      Please note that "mods" are not officially supported by
##                        PunBB. Installation of this modification is done at your
##                        own risk. Backup your forum database and any and all
##                        applicable files before proceeding.

Download here

Offline

 

#2 2007-07-25 13:42:32

FSX
Member
Registered: 2006-09-14
Posts: 593
Website

Re: Absolute_Img_Tag 1.0

Doesn't PunBB scale down images that are too big for the post area?

Offline

 

#3 2007-07-25 13:46:21

no64
Member
Registered: 2007-06-20
Posts: 179

Re: Absolute_Img_Tag 1.0

...not in my version smile they are cutted of

Offline

 

#4 2007-07-25 14:28:31

no64
Member
Registered: 2007-06-20
Posts: 179

Re: Absolute_Img_Tag 1.0

I checked this again.....
In my style they are cutted of, cause the overflow is hidden
In the "Lithium" style they are squeezed to fit the width and distorted

So, I think this isn't a bad solution. Well, for me it suits my needs.

Give me a report how oversized images appears in your postarea with the standard img_tag.

Offline

 

#5 2007-07-25 16:47:50

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: Absolute_Img_Tag 1.0

link to demo?

Q


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#6 2007-07-25 18:40:05

no64
Member
Registered: 2007-06-20
Posts: 179

Re: Absolute_Img_Tag 1.0

Offline

 

#7 2007-07-26 21:51:38

no64
Member
Registered: 2007-06-20
Posts: 179

Re: Absolute_Img_Tag 1.0

...is it useful?

Offline

 

#8 2007-07-27 02:37:25

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: Absolute_Img_Tag 1.0

kewl i like the rose photo.... thanks....

Q


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#9 2007-07-27 07:55:52

no64
Member
Registered: 2007-06-20
Posts: 179

Re: Absolute_Img_Tag 1.0

...one of my first tryouts with photoshop

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.