PDA

View Full Version : Problem with text editor and <object> tag


jimromo
11-17-2006, 11:24 AM
Hi,
I'm trying to include the following <object> tag in the text editor from html mode. I can't just use a custom include from the page editor for this because I need to place precisely within the page. It works well when I preview the page.

However, when I try to go back into the Text editor, I am not able to make any changes to the page. I am also not able to go into html mode. I am on version v4.9 r43.

The code I am placing is:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="270" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
<param name="movie" value="jpgrotator.swf" />
<param name="wmode" value="transparent" />
<embed width="400" height="270" src="jpgrotator.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />
</object>

Any help on this would be greatly appreciated,
Jim

Mike Morrison
11-27-2006, 03:48 PM
I'd do it as a custom include except I'd include whatever content I needed to precisely place it within as part of the include....make sense?

As in, the custom include would contain both the object tag stuff as well as the content directly around it.

farmertodd
01-11-2007, 11:22 AM
The code I am placing is:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="270" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">
<param name="movie" value="jpgrotator.swf" />
<param name="wmode" value="transparent" />
<embed width="400" height="270" src="jpgrotator.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />
</object>

Any help on this would be greatly appreciated,
Jim[/QUOTE]

Jim, I have been trying to do this exact thing, and had the same problem (now I am using a custom inc), but I don't know where to put the supporting files. Your jpgrotator.swf file is where (in what folder if I wanted to upload via FTP)? Did you get it to work?

Thanks,

Todd

Mike Morrison
01-17-2007, 09:05 AM
in what folder if I wanted to upload via FTP?
public_html/media/

farmertodd
01-17-2007, 09:03 PM
Thanks,

It doesn't allow me to place anything in that folder....? Says I don't have permission. I tried to change the permissions but couldnt.

hmm

Mike Morrison
01-18-2007, 11:11 AM
It doesn't allow me to place anything in that folder....? Says I don't have permission. I tried to change the permissions but couldnt.
Probably because php owns that media folder and it's got 755 permissions, which means it won't let you upload to it or change permissions on it via your FTP user.

Solution: Change permissions via php.

Try this: Stick this code in a php file, upload it via File Manager > Upload Files, and go to yourdomain.com/media/thescript.php


<?
# Pull php suexec setting
$php_suexec = strtoupper(php_sapi_name());

# Folder you want to chmod (relative to public_html/media)
$folder_to_chmod = "../media";

# chmod to 777 if not running suexec
if ( $php_suexec != "CGI" ) {
shell_exec("chmod -R a+rw ".$folder_to_chmod);
echo "Done! Try uploading to /media via FTP now.";
} else {
echo "You are running php suexec. This won't work for you.";
}
?>

PAontheweb
02-18-2007, 07:45 PM
That works great Mike. Just for info purposes I did a test on a large jpg. It went to the Unclassified files area instead of Images. However, I did a large PDF and it went to the correct area. My concern was on PDF's clients wanted to upload so there is the fix. Yeah!