|
-
 Originally Posted by TheLostGuru
Yes, let me post my full code
PHP Code:
<?
echo '<table width="242" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="242" height="242">
<param name="movie" value="http://tlgames.siteburg.com/welcome.swf?oid =' . $_oid . '&vid=' . $_vid . '" >
<param name=quality value=high >
<embed src="http://tlgames.siteburg.com/welcome.swf?oid=' . $_oid . '&vid=' . $_vid . '"
quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="242" height="242"></embed>
</object>
</td>
</tr>
</table>';
?>
What's oid and vid?
Alright, for a second.. l let me pretend that oid is supposed to be the first name and vid is some variable in PHP...
rather than having all that in PHP tags.. try this
PHP Code:
<table width="242" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="242" height="242">
<param name="movie" value="http://tlgames.siteburg.com/welcome.swf?oid=<(FIRSTNAME)>&vid=<?php echo $_vid; ?>" >
<param name=quality value=high >
<embed src="http://tlgames.siteburg.com/welcome.swf?oid=<(FIRSTNAME)>&vid=<?php echo $_vid; ?>"
quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="242" height="242"></embed>
</object>
</td>
</tr>
</table>
Edit: And just so you know, what you posted should work if you need it in PHP tags. And, I'm guessing the FIRSTNAME function could still work if you just leave it in the string. No clue. Would have to test it.
Last edited by AfternoonDelite; 06-08-2007 at 03:47 PM.
-
Senior Member
This didn't work. It stopped the flash movie from loading.
<param name="movie" value="http://tlgames.siteburg.com/welcome.swf?fistname=<(FirstName)>&oid =' . $_oid . '&vid=' . $_vid . '" >
[EDIT] I'm not sure if I can use what you posted above. The swf has to be in an PHP file, and cannot use the body tags. It uses div tags. Will the above still work under these conditions?
oid and vid are both unique strings - ownerID and viewerID.
firstname is the first name of the owner.
Last edited by TheLostGuru; 06-08-2007 at 03:53 PM.
"If I have seen further it is by standing on the shoulders of giants." Isaac Newton
------------------------------------------------------------------------------
-
Does it work without the first name function?
-
Senior Member
yes, both vid and oid are being sent correctly to the swf.
"If I have seen further it is by standing on the shoulders of giants." Isaac Newton
------------------------------------------------------------------------------
-
You might want to learn a little more about the first name function.
Either that, or look into JavaScript which I believe you can use to communicate with the SWF.
Not sure where the first name is even pulled from.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|