Skip to Content Skip to Menu

User Mp3 Player Profile Tab

  • kirkhayes
  • kirkhayes
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 8 months ago #55142 by kirkhayes
Replied by kirkhayes on topic Re:User Mp3 Player Profile Tab
So what happened to this? Was a solution ever developed?

Please Log in or Create an account to join the conversation.

  • anhadikal
  • anhadikal
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
16 years 7 months ago #57413 by anhadikal
Replied by anhadikal on topic Re:User Mp3 Player Profile Tab
i had the problem to ... and i found a nice way to solve it ...

The users can upload mp3 files ... and every mp3 file get a player XSPF Player ;)

How to:

open cb.profilegallery.php located in /components/com_comprofiler/plugin/user/plug_cbprofilegallery/

go to line 1091 and edit the next section:

[code:1]
// Check file extension type
$inimagelist = in_array($pgitemtype,explode(",",$tabparams["pgimagefiletypelist"]));
if ($tabparams["pgopmode"]!="FILEMODE" && $inimagelist){
$htmltext2.= "<a href=\"".sefRelToAbs($pgitemfilenameuserpath) . "\" target=\"_blank\"><b>" . $html_pgitemtitle_formatted . "</b></a><br />"
. "<div style=\"height:".$tabparams["pgtnmaxheight"]."px;\">"
. "<a href=\"javascript:$popupname('$pglivelink','$js_pgitemtitle','$js_pgitemdescription')\">"
. "<img src=\"" . $pgitemthumbuserpath . "\" border=\"0\" height=\"$newtn_height\" width=\"$newtn_width\" alt=\"\" title=\"" . $html_pgitemdescription . "\" />"
. "</a>"
. "</div>"
. "<br /><br />";
} else {
$htmltext2.= "<a href=\"".sefRelToAbs($pgitemfilenameuserpath)."\"><b>" . $html_pgitemtitle_formatted . "</b></a><br />"
. "<div style=\"height:".$tabparams["pgtnmaxheight"]."px;\">"
//. "<a href=\"$pgitemfilenameuserpath\" target=\"_blank\">"
//. "<img src=\"" . $pgitemthumbuserpath . "\" border=\"0\" height=\"$newtn_height\" width=\"$newtn_width\" alt=\"\" title=\"" . $html_pgitemdescription . "\" />"
//. "</a>" /* from here are the changes ;«») */
. '<object type="application/x-shockwave-flash" width="120" height="25" data="/xspf_player.swf?song_url='.$pgitemfilenameuserpath.'&song_title='.$pgitemtitle.'"> <param name="movie" value="/xspf_player.swf?song_url='.$pgitemfilenameuserpath.'&song_title='.$pgitemtitle.'" /> </object>'
. "</div>"
. "<br /><br />";
}
[/code:1]

the original code ist there ... but it is commented

i hope i could help you

MfG

Please Log in or Create an account to join the conversation.

  • paulvg
  • paulvg
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 6 months ago #60570 by paulvg
Replied by paulvg on topic Re:User Mp3 Player Profile Tab
anhadikal wrote:

i had the problem to ... and i found a nice way to solve it ...

The users can upload mp3 files ... and every mp3 file get a player XSPF Player ;)

How to:

open cb.profilegallery.php located in /components/com_comprofiler/plugin/user/plug_cbprofilegallery/

go to line 1091 and edit the next section:

[code:1]
// Check file extension type
$inimagelist = in_array($pgitemtype,explode(",",$tabparams["pgimagefiletypelist"]));
if ($tabparams["pgopmode"]!="FILEMODE" && $inimagelist){
$htmltext2.= "<a href=\"".sefRelToAbs($pgitemfilenameuserpath) . "\" target=\"_blank\"><b>" . $html_pgitemtitle_formatted . "</b></a><br />"
. "<div style=\"height:".$tabparams["pgtnmaxheight"]."px;\">"
. "<a href=\"javascript:$popupname('$pglivelink','$js_pgitemtitle','$js_pgitemdescription')\">"
. "<img src=\"" . $pgitemthumbuserpath . "\" border=\"0\" height=\"$newtn_height\" width=\"$newtn_width\" alt=\"\" title=\"" . $html_pgitemdescription . "\" />"
. "</a>"
. "</div>"
. "<br /><br />";
} else {
$htmltext2.= "<a href=\"".sefRelToAbs($pgitemfilenameuserpath)."\"><b>" . $html_pgitemtitle_formatted . "</b></a><br />"
. "<div style=\"height:".$tabparams["pgtnmaxheight"]."px;\">"
//. "<a href=\"$pgitemfilenameuserpath\" target=\"_blank\">"
//. "<img src=\"" . $pgitemthumbuserpath . "\" border=\"0\" height=\"$newtn_height\" width=\"$newtn_width\" alt=\"\" title=\"" . $html_pgitemdescription . "\" />"
//. "</a>" /* from here are the changes ;«») */
. '<object type="application/x-shockwave-flash" width="120" height="25" data="/xspf_player.swf?song_url='.$pgitemfilenameuserpath.'&song_title='.$pgitemtitle.'"> <param name="movie" value="/xspf_player.swf?song_url='.$pgitemfilenameuserpath.'&song_title='.$pgitemtitle.'" /> </object>'
. "</div>"
. "<br /><br />";
}
[/code:1]

the original code ist there ... but it is commented

i hope i could help you

MfG




ya its ok
but am getting error on this line
"$newtn_height\" width=\"$newtn_width\" alt=\"\" title=\"" . $html_pgitemdescription . "\" />"

the error is unexpected syntax error "" on line 1107
which is the above code..
can anybody help

Post edited by: paulvg, at: 2008/04/08 10:13

Please Log in or Create an account to join the conversation.

  • paulvg
  • paulvg
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 6 months ago #60578 by paulvg
Replied by paulvg on topic Re:User Mp3 Player Profile Tab
ok i commented that line..so the code error is ok..but the player s not showing up..:S ..only the title and the link opens in qtime player..:(

Post edited by: paulvg, at: 2008/04/08 12:54

Please Log in or Create an account to join the conversation.

  • paulvg
  • paulvg
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 6 months ago #60580 by paulvg
Replied by paulvg on topic Re:User Mp3 Player Profile Tab
ok its wrked gr8 dear:P
i changed the code in this line
. '<object type="application/x-shockwave-flash" width="120" height="25" data=" www.yourdomain.com/components/com_comprofiler/plugin/user/plug_cbprofilegallery/xspf_player.swf?song_url='.$pgitemfilenameuserpath.'&song_title='.$pgitemtitle .'"> www.yourdomain.com/components/com_comprofiler/plugin/user/plug_cbprofilegallery/xspf_player.swf?song_url='.$pgitemfilenameuserpath.'&song_title='.$pgitemtitle .'" /> '
:woohoo: nice wrk dear

Post edited by: paulvg, at: 2008/04/08 13:22

Please Log in or Create an account to join the conversation.

  • paulvg
  • paulvg
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 6 months ago #60583 by paulvg
Replied by paulvg on topic Re:User Mp3 Player Profile Tab
prob s there..how to make as playlist..now its coming as 1 player for each upload:(

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum