Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.