WordPress Property Listing Pg

WordPress Property Listing Pg
I have a webpage: http://sellhomeformore.com that is a Rent to Own website where I need to host properties. We have recently added a property page by turning the “Great Real Estate WordPress Plugin” into a page template. Rather than using the included css, we have decided to style it differently. I need to take the information submitted in the plugin so that the result is a table on the template page. The database has already been created. The table also should include attributes that can be styled in a CSS Stylesheet.

This is where we are: http://sellhomeformore.com/listings/

Here are some sample tables we would like the property table to look like:
http://renttoownforless.com/Properties.cfm?sort=0&pt=3,6 but we would like to include a google maps, have listings sortable, and get buttons on the left where I can add text.

Let me know what you think!

How to Design a Website with Fireworks: New Plus Tutorial

How to Design a Website with Fireworks: New Plus Tutorial

In this week’s plus video tutorial, we’ll teach you how to design a home page for a website using Adobe Fireworks CS4. Over the course of the video, you’ll learn numerous tips and tricks to accomplish the final design, including how to work with a grid. Help give back to Nettuts+, and join Plus!

In Depth Video Training

Video Example

Final Design

Final Product

Join Tuts Plus

NETTUTS+ Screencasts and Bonus Tutorials

For those unfamiliar, the family of TUTS sites runs a premium membership service called “TUTSPLUS”. For $9 per month, you gain access to exclusive premium tutorials, screencasts, and freebies from Nettuts+, Psdtuts+, Aetuts+, Audiotuts+, and Vectortuts+! For the price of a pizza, you’ll learn from some of the best minds in the business. Join today!

  • Subscribe to the Nettuts+ RSS Feed for more daily web development tuts and articles.



Coding your First jQuery UI Plugin

Coding your First jQuery UI Plugin

jQuery contains the fn.extend() method, which makes authoring jQuery plugins quite easy, allowing us to write code that is used in exactly the same way as other jQuery methods. jQuery UI also contains structures that make authoring custom jQuery UI plugins easy. So that’s what we’ll be looking at over the course of this tutorial. The methods used differ from that of standard jQuery plugins, and there are stricter conventions that should be followed, which is why I feel the topic is deserving of an article.


Over the course of this tutorial, I’ll show you the coding conventions and general guidelines that should be adhered to when authoring plugins for jQuery UI. We’ll be creating a simple plugin that just adds captions to images on the page. It’s purposely simple so that we can focus on what is needed to make a jQuery UI plugin without getting lost in the code. Anyone that’s written a jQuery plugin should have no problems. Knowledge of jQuery UI may help but shouldn’t be essential to complete this tutorial. Let’s get started.

Getting Started

We’ll need a copy of jQuery as well as a couple of files from jQuery UI, but it needs to be jQuery UI 1.8 (this can be found on the blog). Create a working directory somewhere on your machine called jqueryui-plugin, then inside this create a css folder, a js folder and an img folder (the images used in this tutorial can be found in the code download).

Download the library and unpack it somewhere accessible. We only need a few files from the archive, namely the jQuery source file which is in the root of the archive as jquery-1.4.1.js, and the jquery.ui.core.js and jquery.ui.widget.js files, which are both in the ui folder. Grab these and put them into the js folder in your working directory. We’ll be making light use of the CSS framework as well, so we’ll need one of the theme style sheets available with the current stable version of jQuery UI (I used ui-lightness in this example).

We’ll be making a captionator widget, so we’ll also need a page, with a bunch of images on it, to develop/test the plugin with. This example uses the following page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>jQuery UI Captionator</title>
		<link rel="stylesheet" type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css">
		<link rel="stylesheet" type="text/css" href="css/ui.captionator.css">
	</head>
	<body>
		<img src="img/1.jpg" alt="Royal Air Force Eurofighter Typhoon">
		<img src="img/2.jpg" alt="A British military GR-9 Harrier">
		<img src="img/3.jpg" alt="Two RAF Tornado GR-4s pull away from a KC-135 Stratotanker after refueling">
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/jquery.ui.core.js"></script>
		<script type="text/javascript" src="js/jquery.ui.widget.js"></script>
		<script type="text/javascript" src="js/jquery.ui.captionator.js"></script>
	</body>
</html>

We’ll keep things pretty simple for now; we’ve just three images on the page, followed by four script files; three link to the jQuery and jQuery UI source files, the fourth to our plugin’s source file which we’ll create shortly. The jquery.ui.core.js file is required by all jQuery UI widgets/plugins. The jquery.ui.widget.js file is the widget factory and allows for the creation of consistent widgets that share common API functionality. Most library components require this, and we’ll be using it to create our plugin.

Creating the Plugin File

Create a new JavaScript file and save it as jquery.ui.captionator.js in the js folder; we should keep to jQuery UI’s naming convention, which has just been updated in the 1.8 version of the library, and use jquery.ui.plugin_name.js. Add the following code to the new file:

(function($) {

})(jQuery);

All of the code that makes up our plugin should be encapsulated within a self-executing anonymous function. The jQuery object is passed into this function and is used inside the function via the $ alias; this is to ensure that the plugin is compatible with jQuery’s noConflict() method. This is a specified requirement and should always be adhered to.

Next we need to define the plugin; add the following code to our anonymous function:

$.widget("ui.captionator", {

});

The pattern for using the widget factory is simple to use, we just call the widget() method specifying the name of the plugin as the first argument, and an object literal containing the properties and methods that make the plugin function. This allows our plugin to be called (and created) using the commen jQuery syntax $(“element_caption_applied_to”).captionator(); like any other jQuery or jQuery UI method.

The widget factory provides a number of these properties and methods for us; for example, we can set the default options for the plugin using the options property, and add an initialisation function that is executed automatically by the widget factory as soon as an instance of the plugin is invoked. Within the object that appears as the second argument in the previous code add the following code:

options: {
  location: "bottom",
  color: "#fff",
  backgroundColor: "#000"
},

These are the only options we’ll use in our example plugin; users (and by users I mean implementers, not end users) of the plugin can specify the position of the caption to be either at the top of the image it is called on, or the bottom, they can specify the color of the text on the caption, or change the background-color of the caption. To change a configurable option of any jQuery UI widget prior to initialisation the implementing developer would just use something like this:

$(“element_caption_applied_to”).captionator({ location: “top” });

Next we can create our initialisation function, after the options object add the following method:

_create: function() {

	var self = this,
		o = self.options,
		el = self.element,
		cap = $("<span></span>").text(el.attr("alt")).addClass("ui-widget ui-caption").css({
			backgroundColor: o.backgroundColor,
			color: o.color,
			width: el.width()
		}).insertAfter(el),
		capWidth = el.width() - parseInt(cap.css("paddingLeft")) - parseInt(cap.css("paddingRight")),
		capHeight = cap.outerHeight() - parseInt(cap.css("paddingTop")) + parseInt(cap.css("paddingBottom"));

	cap.css({
		width: capWidth,
		top: (o.location === "top") ? el.offset().top : el.offset().top + el.height() - capHeight,
		left: el.offset().left,
		display: "block"
	});

	$(window).resize(function(){
		cap.css({
			top: (o.location === "top") ? el.offset().top : el.offset().top + el.height() - capHeight,
			left: el.offset().left
		});
	});
},

The method name should begin with an underscore as jQuery UI prevents any plugin method that begins with an underscore from being called from outside of the plugin, so this stops it being accidentally called from the HTML page. Any method that we begin with an underscore will be protected in this way.

The majority of our initialization method is a series of variables; within our function the keyword this refers to an object passed into the method which represents the instance of the plugin. The first variable caches a reference to the current instance of the plugin; the _create method is called for each element that the plugin method is called on, which could be a single element or several.

We can access the default options of the plugin (which are overridden automatically if the implementer configures any of them) using the options property of the object; we cache this in the second variable. The element that the plugin method (captionator()) was called on, which in this example would be an image, can be accessed using the element property of the object. We store this in the third variable.

We use the fourth variable to store a reference to the new caption element, which is built from a simple <span>; the <span> has its innerText set to the alt attribute of the current image, and several class names are added to it; we give it the ui-widget class name so that it can pick up some default styling from the current jQuery UI theme. We also give it a custom class name so that we can add some of our own styling.

Next we need to set some CSS properties; we’ll be using a separate style sheet for some styles, but certain things, such as the color and background-color styles are controllable via configurable options, so we need to set these using the plugin. The width of the caption needs to match the width of the image that it overlays, so we also need to determine this and set it programmatically. Finally the new <span> is injected into the page directly after the target image.

Once the caption has been inserted, it needs to be sized and positioned; the only way it can be sized accurately is if it already exists in the DOM and has CSS rules applied to it, such as the font-size. This is why we append the caption to the page, and then determine its exact dimensions, which are then stored in the variables capWidth and capHeight.

Once the caption has been appended to the page (and only then) we can work set the correct width, height and position of each caption, which we set using the css() method once again. The captions are actually completely separate from the images; they are inserted directly after each image and then positioned to appear to overlay the images, after all, we can’t append the <span> as a child of the <img>.

This is fine, until the browser is resized, at which point the images move but the captions don’t because they are absolutely positioned. To remedy this, we’ve used a basic resize handler attached to the window which simply repositions each caption to the new position of its image. This event handler is the last thing in our initialization method.

Another method that our plugin should expose is the destroy() method which is common to all jQuery UI plugins. We must provide an implementation of this method in order to clean up after our plugin. For our example plugin, the method can be as simple as this:

destroy: function() {
	this.element.next().remove();

	$(window).unbind("resize");
},

All we need to do is remove the captions and unbind our window resize handler. This method can be called by an implementer using the plugin so we shouldn’t begin this method name with an underscore. To call this method, the implementer would use $(“element_caption_attached_to”).captionator(“destroy”); which is how any of our public methods would be called.

We need to provide another method controlled/executed by the widget factory; we saw earlier how a developer could change a configurable option prior to initialisation, but what about after initialisation? This is done using the option method using the following syntax: $(“element_caption_attached_to”).captionator(“option”, “location”, “top”); so we need to add the built-in method _setOption to handle this:

_setOption: function(option, value) {
	$.Widget.prototype._setOption.apply( this, arguments );

	var el = this.element,
		cap = el.next(),
		capHeight = cap.outerHeight() - parseInt(cap.css("paddingTop")) + parseInt(cap.css("paddingBottom"));

	switch (option) {
		case "location":
			(value === "top") ? cap.css("top", el.offset().top) : cap.css("top", el.offset().top + el.height() - capHeight);
			break;
		case "color":
			el.next().css("color", value);
			break;
		case "backgroundColor":
			el.next().css("backgroundColor", value);
			break;
	}
}

We start this method with an underscore because the implementer uses option, not _setOption to actually change the options; we don’t need to worry about how this is handled, we just need to provide this method to deal with anything specific to our plugin. Because this method already exists in the widget factory we should call the original method, which we do first of all in our method using the prototype of the Widget object, specifying the method name (_setOption in this case but we could do it for other built-in methods as well) and use apply to call it. We can then proceed with the code specific to our plugin.

The function will automatically receive two arguments which are the option to change and the new value. We cache some commonly used elements, such as the image and the caption, and obtain the current height of each caption. We then use a simple switch-case statement to handle each of our three options being changed. Repositioning the captions is the most complex, but is still quite trivial and similar to how we positioned them initially.

Adding Events

It’s important to add events that developers using your plugin can add callbacks for so that they can react to different things happening when users interact with the widget in some way. The widget factory handles most of this task for us, all we need to do is trigger the event. This plugin doesn’t really do much, but we could still trigger an event after each caption is added to the page; to do this add the following code directly before the resize event handler:

self._trigger("added", null, cap);

That’s all we need to do! A single line of code and we have a custom event that can be reacted to. We call the _trigger() method of the plugin instance (which we stored in the variable self) and pass the method three arguments; the first is the name of the event, the second is for the event object (we don’t need to use this in our example plugin, hence the null value) and the third is a reference to the caption element. The widget factory will automatically pass the event object (if supplied) and the data we pass in the third parameter to a callback function that uses the added event. A developer could hook into this event using the following syntax: $(“element_caption_attached_to”).captionator({ added: function(e, ui){ //do stuff });

Styling the Plugin

We only need a very tiny style sheet for our plugin, literally we have just three styles. It’s almost not even worth creating a separate file for the styles! But we will, so create a new file called ui.captionator.css, which is the required format for plugin style sheets, and save it in the css directory. Add the following styles to it:

.ui-caption { display:none; position:absolute; padding:10px; }

That’s all there is to it. Our plugin is now functionally and visually complete. The captions should appear like this:

Final Product

Summary

Like jQuery’s plugin creation method fn.extend(), jQuery UI also has its own mechanism that allows developers to quickly and easily write robust and scalable plugins that meet the jQuery UI projects high standards, although in terms of what it actually does for us, it’s even better that jQuery. The widget factory has been created in such a way that pretty much all of the hard work is taken out of custom plugin creation.

It’s easy to work with the methods provided by the widget factory to add methods to our plugins that are common across UI widgets, such as the destroy and option methods, which implementing developers would expect to find in any plugin. We also saw just how easy it is to trigger custom events that developers can use to react to interactions or occurrences with the widget.

h3



Mp3 Store Joomla Virtuemart

Mp3 Store Joomla Virtuemart
We have started an mp3 audio store–www.justhymns.com and have already set up the following:
User login/accounts
VirtueMart store linked to Paypal

We need added:
Mass upload audio mp3’s using ID3 tags to categorize into the database
Search function by artist, album, etc using the ID3 tags (so that we do not have to enter the information again)
A way to link albums with individual tracks in that album (a list view similar to Amazon’s mp3 store)
A way that we can easily edit the price for our albums and individual tracks
A download link to the audio after purchase (or email message with the download link–this might already be working fine)
“confirm email address” field when filling out a profile
Help with the layout of the site–streamline some pages

If we are satisfied with your work, may consider you as a long-term consultant.

State Id Scaning Software Data

State Id Scaning Software Data
We are looking to design a state id scanner program for the bar/restaurant industry. The software will be windows based and store information from id’s by either a scanner or bar code reader. Information will be stored on a database that will be easy for the customer to manage and use for marketing or record keeping basis.

We are looking for a person long-term to help us develop this product for a contract fee and possible work part-time for tech support on software and future updates to improve product.

Clone Website – Php Project

Clone Website – Php Project
I want a clone of http://infiniteadds.org (with little less functionality)

1) You must be aware of myspace and how it works. (if you have worked on such project earlier it will be better)
2) Other similar reference sites
www.fatadds.com
www.maxadds.com
www.friendstorm.net
www.infiniteadds.com
3) I will provide the design.
4) Requirements – URGENT (preferably within this week as the project is very small for someone having a clear knowledge of myspace)
5) Preference will be given to Indian developer, who can be available on phone & messenger.
6) If you cannot be on regular contact please do not take up the project.
7) IMPORTANT – You should be able to take up the project immediately.
8) Return similar work guranted if you work professionally & ethically. Payment on completion.
9) open to discussion regarding the project.

Oscommerce Installation

Oscommerce Installation
Hello!
I need someone who can integrate my existing website with a oscommerce installation.

There should be customization done so that it matches the look of my existing website.
Also the header for my home page, about us page, and my contact us page, would have to be changed to fit the new changes.

Please let me know if there is any questions.

Thanks

Phpfox Social Engine Migration

Phpfox Social Engine Migration
Hey guys,

I have a site with approx 3500 members running on PHPFox v2. I want to migrate to Social Engine v3.2. The PHPFox site is up and running at present at Dommesandsubs.com. I attempted to use the migration script offered at Social Engine (and attached to this post for reference) but it only imported my site members and none of the albums, groups, blogs, photos, videos, or the like. This project is to “finish” the import/migration and to troubleshoot any bugs/issues in the process. Here’s what needs done specifically:

:: Import the following from PHPFox v2 to Social Engine 3.2 ::

Blogs –> Blog
Classifieds –> Classifieds
Calendar –> Events
Photos –> Albums
Videos –> Videos
Societies –> Groups
Surveys –> Polls

And that’s about it. Will have to confirm the transfer, upload some new content, and make sure the transfer all “takes” but for someone solid with MySQL PHP this shouldn’t be terribly difficult. Additionally, if you can modify the import script to work with the hooks it already has set it may expedite things even more.

Site is on a dedicated server with root access, shell, both dBs on the same box. Forum does not need imported unless you feel the urge to do extra as I plan to install the SE plugin to use SMF and will start from scratch there unless there is a compelling reason to do otherwise. PMB with questions. I have a wealth of PHP based sites and always need assistance so if you can bang this out quickly and at a reasonable rate I will likely have plenty of small odds and ends jobs like this in the future. (I do a good amount of design work and usually prefer to pay a programmer to do the work if it is something I’ll end up taking way longer to complete than contracting it out. And on the rare chance anyone has an interest in trades or barter I’m more than happy to swap design or print work for your time.)

Slide Down

Slide Down
Hello,

We need to build a slidedown exactly how it is done at: http://web.archive.org/web/20080610020412/http://www.citycribs.com/ when you click the “more” link in the header. This slide down needs to be added to our website at www.elikaassociates.com. The “more” link needs to be placed in the black part of the footer where it says” New York City Real Estate” and the slide down would be directly below. We need a html file in which we will insert the text also it has to be built search engine friendly so google can spider the text etc.

lookin to complete this asap.

Word Press Theme

Word Press Theme
I have a design that I would like to be turned into a wordpress theme zip file that I just simply upload and it will work on my server like any other theme.

Theme consists of in order from top to bottom:

Navigation bar with 7 buttons

Header image

coverflow area

content area

Navigation bar with 7 buttons

Footer image

Thanks for looking

Cartoon Logos

Cartoon Logos
I need a graphic design of 4 cartoon logo, of a trash can/wheelie bin to go on a web site. I will need 12 quality samples with 12 totally different looks, I will also need to do revisions on my chosen 4 if needed. Please see attached logo that I am now using (yes I do like it) and will be looking for the same quality of work.