[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 08-28-2006, 11:05 AM   #1 (permalink)
NamePros Regular
 
evermore2000's Avatar
 
Join Date: Mar 2006
Posts: 291
2.00 NP$ (Donate)

evermore2000 is on a distinguished road


Script needs editing - quick work - paid

Hey guys,

i need someone to alter a voting script I have.

My site, www.unsigned.fm has a media Player on it (click on 'tune in' in the red and white stripy box) and people can vote for the songs on it they like by pressiing the vote button (circle button with red star in it).

This is the voting script that I got with the Media Player. As you can see at the moment it only collects the last vote recieved. I need it to collect and add up each vote so I can see which songs have the most at the end of each month.


Can anyone do this? Please reply here or PM me with a price asap

Thanks,
Rob

<?php
/////////////////////////////////////////////////////////////////
// //
// //
// //
// The following is for testing only:
//
// To test this script, create a text file and set the
// permissions on the file to 777 (read-write-all).
// The text file should reside in the same folder as
// this script. The result of the test should write the
// returned values from the vote to the file.


// Enter the name of the file that should record the information here:
$testFile = "test.txt";
// NOTE: The permissions on this file must be sett to 777 (read-write-all)
// NOTE: This test file will only record a single vote. This script
// is intended to provide you with an example of how to read the infromation
// returned from the player. It is up to you to develop a script that will store
// the retuned information as you see fit.


// The player will include "action" -- which is set to "vote" in the URI,
// so that you can differentiate calls from the player from those who might
// try and access this script directly.
if($_REQUEST['action']=="vote"){




function writeTextFile2($theFileName, $theContent, $openCondition='w+'){
if($theContent=="" || is_null($theContent)){
$enterContent = " ";
} else {
$enterContent = $theContent;
}
$retval = TRUE;
if (!$fp = fopen($theFileName, $openCondition)) {
$retval = FALSE;
}
if($retval){
if (!$filewrite = fwrite($fp, stripslashes($enterContent))) {
$retval = FALSE;
exit;
} else {
$retval = TRUE;
}
}
@fclose($fp);
return $retval;
@chmod ($theFileName, 0777);
}



// NOTE: Some PHP installations may use a different nomenclature for the "$_REQUEST" such as "$_HTTP_SERVER"
$theContent = "";

// Here we are extracting all of the info contained in the request.

foreach($_REQUEST as $key => $value){
$theContent .= $key." : \t".urldecode($value)."\r\n";
}

strstr( PHP_OS, "WIN") ? $slash = "\\" : $slash = "/";

//print "$testFile";

if(writeTextFile2(getcwd ().$slash.$testFile, $theContent, 'w+')){
print "&retval=ok";
} else {
print "&retval=error";
}

// //
// //
// //
/////////////////////////////////////////////////////////////////
}


?>










Oh and if it helps, this is the test.txt file that it talks about at the moment after a vote has been made :

action : vote
visual :
bitrate : 128
filesize : 4.1
seconds : 256.3134375
genre :
comments : /
track :
title : The Mosaics - Runner
album :
artist : Mosaics - Runner
filename : http://www.unsigned.fm/mp3s/Mosaics - Runner.mp3
entity : m
flashlistID : 11
PHPSESSID : 8ef9b9f97c1dcdb8f26109aa6fe4a271

Last edited by evermore2000; 08-28-2006 at 11:10 AM.
evermore2000 is offline  
Old 08-29-2006, 03:32 AM   #2 (permalink)
NamePros Regular
 
evermore2000's Avatar
 
Join Date: Mar 2006
Posts: 291
2.00 NP$ (Donate)

evermore2000 is on a distinguished road


Thanks for the replys. PMs replied to.

Anyone else? As I would like to get this done asap

Thanks
Rob
evermore2000 is offline  
Old 09-01-2006, 02:21 PM   #3 (permalink)
NamePros Regular
 
evermore2000's Avatar
 
Join Date: Mar 2006
Posts: 291
2.00 NP$ (Donate)

evermore2000 is on a distinguished road


I still need this done guys. It should be a simple bit of quick work. Please reply asap.

Many Thanks
evermore2000 is offline  
Old 09-09-2006, 01:23 PM   #4 (permalink)
NamePros Regular
 
evermore2000's Avatar
 
Join Date: Mar 2006
Posts: 291
2.00 NP$ (Donate)

evermore2000 is on a distinguished road


Still looking for someone. Anyone?
evermore2000 is offline  
Old 09-11-2006, 04:00 AM   #5 (permalink)
NamePros Regular
 
evermore2000's Avatar
 
Join Date: Mar 2006
Posts: 291
2.00 NP$ (Donate)

evermore2000 is on a distinguished road


Last chance guys - come on, its not a big job, there must be someone that can do it
evermore2000 is offline  
Old 09-11-2006, 04:23 AM   #6 (permalink)
Senior Member
 
ahtum's Avatar
 
Join Date: May 2006
Posts: 1,266
1,620.58 NP$ (Donate)

ahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud ofahtum has much to be proud of

Ethan Allen Fund Find Marrow Donors!
i can help you pm me your msn
ahtum is offline  
Old 09-11-2006, 08:53 AM   #7 (permalink)
NamePros Regular
 
evermore2000's Avatar
 
Join Date: Mar 2006
Posts: 291
2.00 NP$ (Donate)

evermore2000 is on a distinguished road


Thanks, PM sent.

Anyone else who can help add robandevermorerock@hotmail.com
evermore2000 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:01 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85