Members: 16,996
Threads: 38,831
Posts: 159,349
Online: 34

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Development > Mambots

Reply
 
LinkBack Thread Tools Display Modes
Old 28.09.2004, 06:09   #1 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Location: Ballina Australia
Posts: 8
Kerry Seibold is on a distinguished road
Default Dynamic Content Images .. content.html.php hack

see also Mosimage Hack mosimage hack : dynamic resize

# Dynamic Content Images .. content.html.php hack
#
# purpose:
# dynamically serve jpg images in content to reduce page load time
# for the browser. Dramatically improves speed if the images stored in /images/stories
# are large pixel/file size but are relatively small pixel size on the page.
#
# advantages:
# - faster pages with jpg images (less data is served), particularly noticable on low
# bandwidth connections.
# - content contributors only need to upload a single copy of the image to /images/stories
# and don't need to be too concerned about the pixel/file size.
#
# disadvantages:
# - if jpgs are served dynamically the browser can't cache them, therefore page reloads
# will be slower.
# - increased webserver load, so don't upload images too large!!
#
# implementation:
# added function pagecontentdisplay($contents)and changed 'echo $contents;'
# to 'pagecontentdisplay($contents);' so that content is passed through
# pagecontentdisplay before being served. pagecontentdisplay finds all <img ...>
# containers whose source is a jpg and conditionally modifies them so that 'src='
# calls servephoto.php which dynamically serves the jpg constrained to the size
# defined by the 'style='.
# Dynamic jpg serving can be overridden by prepending 'cache#' to the alt string.
# eg 'alt="cache#your alt text"
#
# installation:
# replace /components/com_content/content.html.php with this one.
# requires servephoto.php in the mambo top level directory. This is the same servephoto.php
# that is used with my mosimage hack. This content.html.php hack is compatible with my mosimage hack.
# I recommend installing both hacks. I have done limited testing of this hack without the mosimage hack,
# and it appears to work.
#
####################################
Kerry Seibold is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 02.12.2004, 01:46   #2 (permalink)
Junior Mamber
 
LastBoyscout's Avatar
 
Join Date: Aug 2004
Posts: 31
LastBoyscout is on a distinguished road
Default Re: Dynamic Content Images .. content.html.php hack

Does it work under 4.5.1???
LastBoyscout is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03.12.2004, 05:25   #3 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Location: Ballina Australia
Posts: 8
Kerry Seibold is on a distinguished road
Default Re: Dynamic Content Images .. content.html.php hack

It looks like a lot of work. I am not able to use 4.5.1 for my applications because they rely heavily on image upload and create new image directory functionality from Htmlarea3, and I have not been able to get this functionality to work. There has been plenty of discussion on the forums on this.

http://www.novocaine.de/Forum_2/func.../limitstart,0/

I'll have a look at it soon when I get some time. The same applies to my mosimage.inc hack

http://www.mambers.com/showthread.php?p=77417
Kerry Seibold is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.07.2005, 00:37   #4 (permalink)
Baby Mamber
 
Join Date: Jul 2005
Posts: 1
BeyAzoLuM is on a distinguished road
Default Re: Dynamic Content Images .. content.html.php hack

Hay a.q turkce bılen bırı varmı
ben yenıyım
Gavurların arasında
BeyAzoLuM is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I place content images outside of the content area yangan Mambo 4.5 'How Do I' Questions 7 26.04.2005 18:16
How to link preview text to the the full story ? scorplev Mambo 4.5 'How Do I' Questions 5 15.09.2004 04:50
Images for Content don't appear racorby Mambo 4.5.1 'How Do I' Questions 2 07.09.2004 05:13
Content item images not showing copelandc2002 Mambo 4.5 General Talk 1 26.07.2004 06:24
Adding FTP'd images directly to content ThereseWeel Mambo 4.5 Bugs 0 15.04.2004 20:06


All times are GMT +2. The time now is 15:19.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.