|
I'm no
PHP guru, but I can read through it a little bit..
This
is not the exact same thing, but close enough to give you an idea
maybe...
- I
just manually set the value for $CFG['paths']['user_images'] since I don't know
where that comes from
- Cold
Fusion has no built in "getimagesize" that I'm aware of, so that was
removed
- I replaced the "opener.editor1.addImage" function with an alert,
since I don't have the original function to test with
Hope
it helps some..
<!--- Create an array --->
<CFSET
images=ListToArray('test.jpg,test.png,test.gif')>
<!--- Set up the path for
$CFG['paths']['user_images']--->
<CFSET userpath = "imagesfolder">
<table cellpadding="2" cellspacing="0"
border="0">
<!--- Loop through the array --->
<CFLOOP FROM="1" TO="#ArrayLen(images)#" INDEX="idx"> <!--- Create the image source path --->
<CFSET img_src = userpath & "/" & images[idx]> <!--- Determine background color to use
--->
<CFIF idx mod 2 EQ 0> <TR STYLE="background-color: #dfdfdf"> <CFELSE> <TR> </CFIF> <!--- Output the table row
---> <CFOUTPUT> <TD><IMG SRC=""> | http://#CGI.SERVER_NAME#/#GetDirectoryFromPath(CGI.PATH_INFO)#/#img_src#?id=#HASH(Now())#"></TD>
Title: Message
- for php gurus Ron Mast
- RE: for php gurus Lewis, David
- RE: for php gurus Ron Mast
