944,180 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1924
  • PHP RSS
May 18th, 2005
0

Help With PHP Code Snip for PHPBB Board?

Expand Post »
Hi All -

I am trying to have a .mp3 file play when the below code runs.... is there any possible way to do that? (if not mp3 wav will work too) - I just am not sure how to do it? Can anyone edit this do play a file such as that?

HERE IS THE CURRENT CODE:

<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
pmWindow = window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');
if (!window.pmWindow) {
new_pm_prompt = confirm('{L_PRIVATEMSG_NEW}');
if(new_pm_prompt == true) {
// Redirect to Inbox if OK is clicked
window.location = '{U_PRIVATEMSGS}';
}
else {
// Close prompt if cancel is clicked
}
}
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jeepj27 is offline Offline
20 posts
since May 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Issue with the LIKE expression and php
Next Thread in PHP Forum Timeline: dreamweaver, PHP and submit form query





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC