| View previous topic :: View next topic |
| Author |
Message |
gearscout
Joined: 18 Dec 2005 Posts: 48 Location: Atlanta, GA
|
Posted: Mon Apr 23, 2007 6:42 pm Post subject: Adding "Audio" icons that are clickable... |
|
|
Humpa,
As I play around with the code in index.php for the basic display of the thumbnails and media...
...I'm trying to add a clickable audio icon...and maybe one for QCP files that is separate, so users know to download the Purevoice player in order to hear it.
Of course, all hasn't gone smoothly. Though I have an icon displaying in the media_table, I don't have it clickable. I've also got the problem of .mid and .mp3 files coming up with an embedded player, which is nice.
All of this starts around line 180
| Code: |
$media_table .= "\t<td align=\"center\" class=\"thumbnail_table_cell\">\n";
if($thumb_pic == "") {
if($video_media == "yes") {
if($media == $media_time) {
$media_table .= "\t\t<IMG SRC=\"video_icon.gif\" border=\"0\"><br>$datestamp\n";
}else {
$media_table .= "\t\t<a href=\"index.php?p=$p&media=$media_time\">\n\t\t<IMG SRC=\"video_icon.gif\" border=\"0\" alt=\"$datestamp\" title=\"$datestamp\"><br>$datestamp</a>\n";
}
}else {
$media_table .= "\t\t<IMG SRC=\"audio_icon.jpg\" border=\0\"><br>$datestamp\n\t\t<a href=\"index.php?p=$p&media=$media_time\">\n\t\t<br> Listen<br>$datestamp</a>\n";
}
}else {
if($media == $media_time) {
$media_table .= "\t\t<IMG SRC=\"phpThumb.php?src=$path_to_media$thumb_pic&w=$thumb_width\" border=\"0\" alt=\"$datestamp\" title=\"$datestamp\"><br>$datestamp\n";
}else {
$media_table .= "\t\t<a href=\"index.php?p=$p&media=$media_time\">\n\t\t<IMG SRC=\"phpThumb.php?src=$path_to_media$thumb_pic&w=$thumb_width\" border=\"0\" alt=\"$datestamp\" title=\"$datestamp\"><br>$datestamp</a>\n";
}
}
if($thumb_text != "") {
$media_table .= "\t\t<br>$thumb_text\n"; |
In short...I'm ready for a suggestion!!!  _________________ Gearscout |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Mon Apr 23, 2007 6:44 pm Post subject: |
|
|
Doesn't the quicktime plugin play qcp files? I thought embedded qcp files play fine so long as you have quicktime installed?
Do you have an example to show me what you mean/are trying to accomplish? |
|
| Back to top |
|
 |
gearscout
Joined: 18 Dec 2005 Posts: 48 Location: Atlanta, GA
|
Posted: Tue Apr 24, 2007 8:29 am Post subject: |
|
|
The .qcp files do NOT play in Quicktime...either at my home or on the office computer. And I've got QT Pro.
You get an error message...."Not a Movie File"
But I put a link to the latest version of PureVoice Player on the index page and thought it would be a nice way to add audio messages to photos, so there could be a few seconds of narration about the photo.
What I'm really trying to do is display audio graphics...much like the video graphic that's used. The video graphic is "clickable" and loads the media in the viewer pane. But audio isn't.
It would also probably be helpful to display an audio graphic when there is no photo attached...e.g. if only an audio file is uploaded to the server.
Humpa_MMS appears to already do that, automatically.
No rush, I can just play with 'em for a while and see what I come up with. I just got frustrated last night trying to copy sections of the code to duplicate the video_icon effects.
Cheers!  _________________ Gearscout |
|
| Back to top |
|
 |
Humpa Site Admin

Joined: 06 Nov 2005 Posts: 10258
|
Posted: Tue Apr 24, 2007 9:07 am Post subject: |
|
|
I stuck your qcp file in an embedded thing like I use for mp3's, mid's, etc ... and it played just fine.
Find the code in the index.php:
| Code: |
elseif($media_ext == ".mid") {
$middle_of_page .= "\n\t<br><br>\n";
$middle_of_page .= make_audio_param("$media_time$media_underscore$media_number", $media_ext);
} |
Just add another elseif after it and simply replace ".mid" with ".qcp"
| Code: |
elseif($media_ext == ".mid") {
$middle_of_page .= "\n\t<br><br>\n";
$middle_of_page .= make_audio_param("$media_time$media_underscore$media_number", $media_ext);
}elseif($media_ext == ".qcp") {
$middle_of_page .= "\n\t<br><br>\n";
$middle_of_page .= make_audio_param("$media_time$media_underscore$media_number", $media_ext);
} |
|
|
| Back to top |
|
 |
gearscout
Joined: 18 Dec 2005 Posts: 48 Location: Atlanta, GA
|
Posted: Tue Apr 24, 2007 9:43 am Post subject: |
|
|
That did it!
And if I need the "clickable" version, I can just create a custom photo and store it on the phone.
Works GREAT!
 _________________ Gearscout |
|
| Back to top |
|
 |
gearscout
Joined: 18 Dec 2005 Posts: 48 Location: Atlanta, GA
|
Posted: Sat Apr 28, 2007 12:37 pm Post subject: |
|
|
...bizarre plugin behavior!
My office machines all display the player fine, but every machine on my home network is sometimes displaying the player for the .qcp files and sometimes NOT.
It's got nothing to do with the scripts, that I can tell. If you enter the settings and change ANYTHING, it could go down...or could start working again.
I noticed that .mid wasn't selected as something for the plugin to open and so I checked it off. .mid playback was working anyway and continued to work, but .qcp playback QUIT.
I've been out and deleted all the plugins, from both Mozilla Firefox and QT, and forced a re-install. No joy. Did the same by deleting Mozilla's .dat file for plugins. No joy.
I hate these intermittent, untraceable problems...I may have to go outside and do yard work!
EDIT: Oh, and it IS the plugin. Both Firefox and IE go down at the same time...taking Opera along with 'em. _________________ Gearscout |
|
| Back to top |
|
 |
|