13:59 Mon Sep  3, 2007
Cheap Hummer!

12:18 Tue Jul  4, 2006
Hummer Camp After

12:15 Tue Jul  4, 2006
Hummer Camp

Help Me Humpa
PHP and MMS Server Help
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Adding "Audio" icons that are clickable...

 
Post new topic   Reply to topic    Help Me Humpa Forum Index -> MMS Pic Server by Humpa
View previous topic :: View next topic  
Author Message
gearscout



Joined: 18 Dec 2005
Posts: 48
Location: Atlanta, GA

PostPosted: Mon Apr 23, 2007 6:42 pm    Post subject: Adding "Audio" icons that are clickable... Reply with quote

Humpa,

As I play around with the code in index.php for the basic display of the thumbnails and media...
monkey
...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&amp;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&amp;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&amp;w=$thumb_width\" border=\"0\" alt=\"$datestamp\" title=\"$datestamp\"><br>$datestamp\n";
         }else {
            $media_table .= "\t\t<a href=\"index.php?p=$p&amp;media=$media_time\">\n\t\t<IMG SRC=\"phpThumb.php?src=$path_to_media$thumb_pic&amp;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!!! love-smiley
_________________
Gearscout
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Mon Apr 23, 2007 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
gearscout



Joined: 18 Dec 2005
Posts: 48
Location: Atlanta, GA

PostPosted: Tue Apr 24, 2007 8:29 am    Post subject: Reply with quote

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! Wink
_________________
Gearscout
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Tue Apr 24, 2007 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message
gearscout



Joined: 18 Dec 2005
Posts: 48
Location: Atlanta, GA

PostPosted: Tue Apr 24, 2007 9:43 am    Post subject: Reply with quote

That did it!

Razz

And if I need the "clickable" version, I can just create a custom photo and store it on the phone.

Works GREAT!

rainbow
_________________
Gearscout
Back to top
View user's profile Send private message
gearscout



Joined: 18 Dec 2005
Posts: 48
Location: Atlanta, GA

PostPosted: Sat Apr 28, 2007 12:37 pm    Post subject: Reply with quote

...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. Mad

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.

doh

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Help Me Humpa Forum Index -> MMS Pic Server by Humpa All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum