Posts Tagged action script gettimer function

Meeplace Script Modifications Needed

– The city list for people registering as a new user is way too long and hard to use. We want this to be an auto suggest box. This needs to work with wildcards at both ends of the results ( i.e. *term* instead of term* )

– We also need to have a good multi country functionality added. All of our listings right now are limited to the US, we would like to be able to add new countries. This doesnt have to be through the CMS, we are comfortable with editing the database to add countries if need be.

– We also need a better tell-a-friend page. We want the script to request permission from the user to pull their contacts exactly the same way that facebook does this. We need to do this with gmail, aol, comcast, msn, hotmail and all yahoo addresses (.com .co.uk etc.).

– Due to the fact that this is a business directory script, its not easy to add products in a cohesive manner. We need a separate page template that would allow for product listings that would leave out some non necessary info such as zip code, street address etc. This would be the default page template for several of our categories so we would need to be able to control that as well. We want a new tab in the admin panel for product management.

– The city autosuggest feature is buggy. Right now if a city has multiple zip codes it suggests once for each zip. So if you have a larger city like LA you end up with close to 100 suggestions.

– We have created a new header template through photoshop. I would like this sliced and coded in css and used as the new header design for every page.

– We want to create a new sorting function in the search results. This would allow us to sort by name/rating and one other category that we will discuss later.

– We also have small design bugs throughout the script. Such as an extra linebreak in the search results that we would like removed.

=====
$500 Dollar Bonus for the following features beyond your estimate
=====

We are offering an additional $500 USD if you can complete the following two tasks. In your quote please list whether or not you are able to complete these additional tasks.

– WordPress integration. I want to have wordpress installed in a directory called /blog and I would like to have it so that people logged in through meeplace would be able to comment on blog posts and the username would link back to their meeplace profile. This needs to use the same stylization as the rest of the site.

– Meeplace offers a premium listing feature, we just want to automate the payment process so that it is hands off. We want a custom area for people who have approved claimed businesses that will allow them to become premium members by paying a recurring monthly amount through paypal. Once approved their business would be featured and highlighted at the top of all pages where their search results would normally appear. We also would like to add the ability for a featured business owner to select which of their user reviews they would prefer to have highlighted. These reviews would be featured at the top of their business page.

Tags: , , , , , , , , , , , , , , , ,

Script Like Http://www.klusjobs.be

I need someone to build me a wesite that works like http://www.klusjobs.be
It has to be in Joomla 1.6.
I just need it to function like that not the graphics and text.

Tags: , , , , , , , , , , ,

PHP Results Script Modification

The script is mainly in a file called result.php. It starts out as a form on the index page which posts the information to the result.php file. Currently when the script is run the url output is http://www.mywebsite.com/result.php. I need it changed to a query string that is displayed in the url. This way each query will have its own identity. Like the sample below.
example – http://www.mywebsite.com/result.php?url=google.com.

An even better output would be to have a rewrite in the url like the following example. – http://www.mywebsite.com/results/google.com

The scope of the job would be:
1. Change the output of the results.php to a url with each search having its own identity, and have the entire script still function.
2. An htaccess rewrite so the final result is search engine friendly.

Tags: , , , , , , , , , , , , , , , ,

Migrate From Action Script 2.0 to 3.0

I have been working to migrate my custom video player code from AS2 to AS3. I have been able to get everything working except the scrubber bar and the time display. If anyone is interested in helping rewrite this I would really appreciate it. The main trouble I run into is that I am using streaming video from an FMS server and that usually presents additional problems.

Here is the AS2 code that works but needs to be rewritten for AS3:
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;

ns["onMetaData"] = function(obj) {
duration = obj.duration;
}

function checkTime(ns:NetStream,duration:TextField) {
var ns_seconds:Number = ns.time;
var minutes:Number = Math.floor(ns_seconds/60);
var seconds = Math.floor(ns_seconds%60);
var vidminutes:Number = Math.floor(duration/60);
var vidseconds = Math.floor(duration%60);
if (vidseconds<10) {
vidseconds = "0"+vidseconds;
}
if (seconds<10) {
seconds = "0"+seconds;
}
durText.text = minutes+":"+seconds+" / "+(timeText);
}

var time_interval:Number = setInterval(checkTime,60,ns,duration);

function videoStatus() {
loader.scrub._x = ns.time / duration * 171;
}

var scrubInterval;

loader.scrub.onPress = function() {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,171,this._y);
}

loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus,100);
this.stopDrag();
}

function scrubit() {
ns.seek(Math.floor((loader.scrub._x/171)*duration));
}

Here is the rest of the working AS3 code:
/////////////////////////////////////////////AS3 Script

////////////////////////////////////////////VIDEO CODE
var fileName:String = "video_file";
var timeText:String = "3:27";

var nc:NetConnection = new NetConnection();
var ns:NetStream;

nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);

var counter:int = 0;

function onNetStatus(evt:NetStatusEvent):void {
if (evt.info.code =="NetConnection.Connect.Success") {
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);

var myVideo:Video = new Video(384,216);

myVideo.attachNetStream(ns);

addChild(myVideo);
myVideo.x = 128;
myVideo.y = 30;

ns.bufferTime = 5;
ns.play(fileName,true);
}
}
nc.connect("rtmp://server",true);

function asyncErrorHandler(event:AsyncErrorEvent):void
{
// trace(event.text);
}
NetConnection.prototype.onBWDone = function(p_bw) {
//trace("onBWDone: "+p_bw);
};
NetConnection.prototype.onBWCheck = function() {
return ++counter;
};

///////////////////////////////////////VIDEO CONTROLS CODE
rew_btn.addEventListener(MouseEvent.MOUSE_UP, rew);
play_btn.addEventListener(MouseEvent.MOUSE_UP, pla);
stop_btn.addEventListener(MouseEvent.MOUSE_UP, sto);

function rew(e:MouseEvent):void{
ns.seek(0);
}
function pla(e:MouseEvent):void{
ns.resume();
}
function sto(e:MouseEvent):void{
ns.pause();
}

///////////////////////////////////////SOUND CONTROL CODE
mute.buttonMode = true;
mute.addEventListener(MouseEvent.CLICK, muteClick);
mute.addEventListener(MouseEvent.ROLL_OVER, muteOver);
mute.addEventListener(MouseEvent.ROLL_OUT, muteOut);

function muteClick(e:MouseEvent):void{
var c:MovieClip = mute;
if(c.currentFrame == 10){
c.gotoAndStop(30);
ns.soundTransform = new SoundTransform(0);
}
else if(c.currentFrame == 30){
c.gotoAndStop(10);
ns.soundTransform = new SoundTransform(1);
}
}
function muteOver(e:MouseEvent):void{
var c:MovieClip = mute;
if(c.currentFrame == 1){
c.gotoAndStop(10);
}
else if(c.currentFrame == 20){
c.gotoAndStop(30);
}
}
function muteOut(e:MouseEvent):void{
var c:MovieClip = mute;
if(c.currentFrame == 10){
c.gotoAndStop(1);
}
else if(c.currentFrame == 30){
c.gotoAndStop(20);
}
}

Tags: , , , , , , , , , , , , , , , , , , , , , ,