NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Script needs editing - quick work - paid

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-28-2006, 12:05 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
evermore2000's Avatar
Join Date: Mar 2006
Posts: 385
evermore2000 will become famous soon enoughevermore2000 will become famous soon enough
 



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.
????: NamePros.com http://www.namepros.com/programming/232408-script-needs-editing-quick-work-paid.html


// 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 :
????: NamePros.com http://www.namepros.com/showthread.php?t=232408

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 12:10 PM.
evermore2000 is offline  
Old 08-29-2006, 04:32 AM THREAD STARTER               #2 (permalink)
NamePros Regular
 
evermore2000's Avatar
Join Date: Mar 2006
Posts: 385
evermore2000 will become famous soon enoughevermore2000 will become famous soon enough
 



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, 03:21 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
evermore2000's Avatar
Join Date: Mar 2006
Posts: 385
evermore2000 will become famous soon enoughevermore2000 will become famous soon enough
 



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, 02:23 PM THREAD STARTER               #4 (permalink)
NamePros Regular
 
evermore2000's Avatar
Join Date: Mar 2006
Posts: 385
evermore2000 will become famous soon enoughevermore2000 will become famous soon enough
 



Still looking for someone. Anyone?
evermore2000 is offline  
Old 09-11-2006, 05:00 AM THREAD STARTER               #5 (permalink)
NamePros Regular
 
evermore2000's Avatar
Join Date: Mar 2006
Posts: 385
evermore2000 will become famous soon enoughevermore2000 will become famous soon enough
 



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, 05:23 AM   #6 (permalink)
Senior Member
 
ahtum's Avatar
Join Date: May 2006
Posts: 1,330
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, 09:53 AM THREAD STARTER               #7 (permalink)
NamePros Regular
 
evermore2000's Avatar
Join Date: Mar 2006
Posts: 385
evermore2000 will become famous soon enoughevermore2000 will become famous soon enough
 



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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:09 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger