1
albogenius
Help with mydownload module.
  • 2012/1/3 14:56

  • albogenius

  • Just popping in

  • Posts: 32

  • Since: 2010/12/9


Hi there

I'm try to do some changes in mydownload module.
I don't know where is my error and why is not working :(

Here is 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>   



<
embed type="application/x-shockwave-flash" flashvars="audioUrl=visit.php?cid=<{$down.cid}>&lid=<{$down.id}>." src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="400" height="27" quality="best"></embed>  

 </
td>


I want to integrate a player in my downloads.
When I give the url in flash player : visit.php?cid=<{$down.cid}>&lid=<{$down.id}> it is not working and up stare in direct download is working?

Here my test website:

http://lemkercova.com/web1/modules/mydownloads/

If you need more info don't hesitate to write me back.

Thanks in advance for your help.

Best regards
Money is the wise man's religion

2
albogenius
Re: Help with mydownload module.
  • 2012/1/3 15:00

  • albogenius

  • Just popping in

  • Posts: 32

  • Since: 2010/12/9


Here is complet code what need where I want to integrate a player:

<table width='100%' cellspacing='0' class='outer'>
  <
tr>
    <
td class="head" colspan='2' align='left' height="18"><{$lang_category}> <{$down.category}></td>
  </
tr>
  <
tr>
    <
td class='even' width='65%' align='left' valign="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>


<
embed type="application/x-shockwave-flash" flashvars="audioUrl=visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>." src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="400" height="27" quality="best"></embed>


</
td>

    <
td class='even' align='right' width='35%'><b><{$lang_version}>:</b>&nbsp;<{$down.version}><br /><b><{$lang_subdate}>:</b>&nbsp;&nbsp;<{$down.updated}></td>
<
br>
</
br>

  </
tr>
  <
tr>
    <
td colspan='2' class='odd' align='left'><{$down.adminlink}><b><{$lang_description}></b><br />

<{if 
$down.logourl != ""}>
   <
a href="<{$xoops_url}>/modules/mydownloads/visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>" target="_blank"><img src="<{$xoops_url}>/modules/mydownloads/images/shots/<{$down.logourl}>" width="<{$shotwidth}>" alt=""  align="right" vspace="3" hspace="7"/></a>
<{/if}>

<
div style="text-align: justify"><{$down.description}></div><br /></td>
  </
tr>
  <
tr>
    <
td colspan='2' class='even' align='left'><img src='images/counter.gif' border='0' align='absmiddle' alt='<{$down.lang_dltimes}>' />
&
nbsp;<{$down.hits}>&nbsp;&nbsp;<img src='images/size.gif' border='0' align='absmiddle' alt='<{$lang_size}>' />&nbsp;<{$down.size}>&nbsp;&nbsp;<img src='images/platform.gif' border='0' align='absmiddle' alt='<{$lang_platform}>' />&nbsp;<{$down.platform}>&nbsp;&nbsp;<img src='images/home.gif' border='0' align='absmiddle' alt='<{$lang_homepage}>' />&nbsp;<a href="<{$down.homepage}>" target="_BLANK"><{$down.homepage}></a></td>

  </
tr>
  <
tr>
    <
td colspan='2' class='foot' align='center'>
    <
div><b><{$lang_ratingc}></b> <{$down.rating}> (<{$down.votes}>)</div>
    <
a href="<{$xoops_url}>/modules/mydownloads/ratefile.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>"><{$lang_ratethissite}></a> | <a href="<{$xoops_url}>/modules/mydownloads/modfile.php?lid=<{$down.id}>"><{$lang_modify}></a> | <a href="<{$xoops_url}>/modules/mydownloads/brokenfile.php?lid=<{$down.id}>"><{$lang_reportbroken}></a> | <a target="_top" href="mailto:?subject=<{$down.mail_subject}>&amp;body=<{$down.mail_body}>"><{$lang_tellafriend}></a> | <a href="<{$xoops_url}>/modules/mydownloads/singlefile.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>"><{$lang_comments}> (<{$down.comments}>)</a>
    </
td>
  </
tr>
</
table>
<
br /><br />
Money is the wise man's religion

3
albogenius
Re: Help with mydownload module.
  • 2012/1/3 15:20

  • albogenius

  • Just popping in

  • Posts: 32

  • Since: 2010/12/9


Hi Again
It is realy strange.
When I integrate a facebook comment it is working.
And when I try the same to do with the player it is not working
Check those two codes pleas:

<embed type="application/x-shockwave-flash" flashvars="audioUrl="<{$xoops_url}>/modules/mydownloads/visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="400" height="27" quality="best"></embed>



<center><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="<{$xoops_url}>/modules/mydownloads/visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>" num_posts="4" width="500"></fb:comments></div></center>
Money is the wise man's religion

4
zyspec
Re: Help with mydownload module.
  • 2012/1/3 15:42

  • zyspec

  • Module Developer

  • Posts: 1093

  • Since: 2004/9/21


In the first post above you have an extra period (.) at the end of the audioUrl string. In your 3rd post above you have an extra quote (") in the audioUrl string. I believe the 3rd string should be something like:

<embed type="application/x-shockwave-flash" flashvars="audioUrl=<{$xoops_url}>/modules/mydownloads/visit.php?cid=<{$down.cid}>&amp;lid=<{$down.id}>" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="400" height="27" quality="best"></embed>

5
albogenius
Re: Help with mydownload module.

Zyspec it is not workig.

Im more close I have found a php script with working player check:
<td style="text-align: center;"><object type="application/x-shockwave-flash" data="ikoonid/mp3player/player_mp3_maxi.swf" width="400" height="20">
          <br />
          <param name="wmode" value="transparent" />
          <param name="movie" value="ikoonid/mp3player/player_mp3_maxi.swf" />
          <param name="FlashVars" value="showslider=0&amp;width=25&amp;bgcolor1=d9f0ca&amp;mp3=<?php
            
echo "            ".$dir."/".$fail["nimi"].""";
        if(
$ava_uues_aknas)
            echo "
target="_blank"";
        echo "
>".$fail["nimi"]."</a>"; 
?>" 
/>
          <
embed src="ikoonid/mp3player/player_mp3_maxi.swf" width="400" height="20" wmode="transparent" flashvars="showslider=0&amp;width=25&amp;bgcolor1=d9f0ca&amp;mp3=<?php
            echo "            ".
$dir."/".$fail["nimi"].""";
        if(
$ava_uues_aknas)
            echo 
"target="_blank"";
        echo 
">".$fail["nimi"]."</a>"
?>"></embed>
        </object></td>


Maby this time can you integrate this link:
<{$xoops_url}>/modules/mydownloads/visit.php?cid=<{$down.cid}>&lid=<{$down.id}>

Somehow inside?

Thanks in advance
Money is the wise man's religion

6
zyspec
Re: Help with mydownload module.
  • 2012/1/4 1:15

  • zyspec

  • Module Developer

  • Posts: 1093

  • Since: 2004/9/21


Did you clear the cache? The link above (http://lemkercova.com/web1/modules/mydownloads/) still has the code from your 3rd post - with the extra double-quote.

7
albogenius
Re: Help with mydownload module.
  • 2012/1/4 12:41

  • albogenius

  • Just popping in

  • Posts: 32

  • Since: 2010/12/9


I have change it is not working.
This is how they are defined in database:
lid cid title url
1 1 lesha http://lidhenzemrat.com/player/-%20ALBUME%20%20%5B...

Maby this can help you to define the url?
Money is the wise man's religion

Login

Who's Online

53 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 53


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