1
albogenius
Help with module.
  • 2012/1/13 14:15

  • albogenius

  • Just popping in

  • Posts: 32

  • Since: 2010/12/9


Hi there.
Check this code.

Download is working but the player not.
Where is my error?
check the code:

<td class='even' width='65%' align='left' valign="bottom"><a href='visit.php?cid=<{$down.cid}>&lid=<{$down.id}>' target='_blank'><img src='images/download.gif' border='0' alt='<{$lang_dlnow}>' /><b><{$down.title}></b></a><br>


<
object type="application/x-shockwave-flash" data="dewplayer.swf" width="400" height="20">
          <
br />
          <
param name="wmode" value="transparent" />
          <
param name="movie" value="dewplayer.swf" />
          <
param name="FlashVars" value="showslider=0&width=25&bgcolor1=d9f0ca&mp3=visit.php?cid=<{$down.cid}>&lid=<{$down.id}>' target='_blank" />
          <
embed src="dewplayer.swf" width="400" height="20" wmode="transparent" flashvars="showslider=0&width=25&bgcolor1=d9f0ca&mp3=visit.php?cid=<{$down.cid}>&lid=<{$down.id}>' target='_blank" />


</
embed>
        </
object>


Thanks in advance

Money is the wise man's religion

2
playsome
Re: Help with module.
  • 2012/1/13 15:05

  • playsome

  • Not too shy to talk

  • Posts: 197

  • Since: 2009/4/15


Looking at the code im guessing your customising a download module by adding a flash player to play the file?

Im not totally sure what could be wrong, but im guessing its becase the player would need the full path to the file plus the file extension to play it but the download module uses the down.php with the query at the end (the id) to get the file so that probably would not work for a player.

3
zyspec
Re: Help with module.
  • 2012/1/14 0:10

  • zyspec

  • Module Developer

  • Posts: 1093

  • Since: 2004/9/21


At least one of the problems with the code above is that you have mismatched single and double quotes. Try something like this instead:

<td class='even' style='width: 65%; text-align: left; vertical-align: bottom;'><a href='visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>' target='_blank'><img src='images/download.gif' border='0' alt='<{$lang_dlnow}>' /><b><{$down.title}></b></a><br>
 
<
object type="application/x-shockwave-flash" data="dewplayer.swf" width="400" height="20">
           <
br /> 
          <
param name="wmode" value="transparent" /> 
          <
param name="movie" value="dewplayer.swf" /> 
          <
param name="FlashVars" value="showslider=0&amp;width=25&amp;bgcolor1=d9f0ca&amp;mp3=visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>" target="_blank" />
           <
embed src="dewplayer.swf" width="400" height="20" wmode="transparent" flashvars="showslider=0&amp;width=25&amp;bgcolor1=d9f0ca&amp;mp3=visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>" target="_blank" />
 

</
embed
</
object>


There may be other problems but at least this will get you closer to the desired goal...

Login

Who's Online

54 user(s) are online (25 user(s) are browsing Support Forums)


Members: 0


Guests: 54


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits