Home arrow Forum
Home
About
Demo
Forum
FAQ
Live Sites
Feedback

Login





Lost Password?
No account yet? Register
Stay Tuned!
 
Who's Online
We have 3 guests and 4 members online

powered_by Joomla
Duplicate entry \'0\' for key 1 SQL=INSERT INTO jos_fb_whoisonline (`userid` , `time`, `what`, `task`, `do`, `func`,`link`, `userip`, `user`) \n VALUES (\'0\', \'1223334772\', \'Create a form for Mister Estate (use Facile Form?)\',\'\',\'\',\'view\',\'/index.php?option=com_fireboard&Itemid=42&func=view&id=3498&catid=8\', \'38.103.63.59\', \'0\')
ME Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Create a form for Mister Estate (use Facile Form?) (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Create a form for Mister Estate (use Facile Form?)
#3498
Airtek (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Create a form for Mister Estate (use Facile Form?) 1 Year, 5 Months ago Karma: 0  
Hi guys , i'm using MisterEstate for my site , it's great , but in my opinion it doesn't have a simple , but important things: a module for search propierties , how this two site ( http://www.realtor.com/ in the top , http://www.sfgate.com/homes/ on the left)
I think that using Facile Forms , that can insert a script before/after the form and before/after submit the form.
If you see the FacileForm's example forms , these use joomla component!
What are the script to make the comunication (integration) between Mister Estate and Facle Forms.
I write an example of a form that record the submit of each registered user!

In the Form's property go in script tab , and you can see
Code:

function ff_RnrContestRegist_init() { if (ff_getElementByName('userid').value=='0') ff_switchpage(2); } // ff_RnrContestRegist_init
in the form pieces , before from :
Code:

//+trace dis // load the standard form creation utilities $this->execPieceByName('ff_InitLib'); // create table if it does not yet exist ff_query( "CREATE TABLE IF NOT EXISTS `#__rnr_contest` (". "`id` INT( 11 ) NOT NULL AUTO_INCREMENT ,". "`userid` INT( 11 ) DEFAULT '0' NOT NULL ,". "`couple` VARCHAR( 50 ) NOT NULL ,". "`age` TINYINT( 1 ) DEFAULT '0' NOT NULL ,". "`acro` TINYINT( 1 ) DEFAULT '0' NOT NULL ,". "`fun` TINYINT( 1 ) DEFAULT '0' NOT NULL ,". "`boogie` TINYINT( 1 ) DEFAULT '0' NOT NULL,". "PRIMARY KEY (`id`)". "«») TYPE=MyISAM AUTO_INCREMENT=1" ); // load old record if any global $record, $my; $rows = ff_select("select * from `#__rnr_contest` where userid=$my->id"«»); if (count($rows)) { $record = $rows[0]; ff_setChecked('age', $record->age); if ($record->acro ) ff_setChecked('acro' ,'1'); if ($record->fun ) ff_setChecked('fun' ,'1'); if ($record->boogie) ff_setChecked('boogie','1'); } else $record = NULL;
submit pieces :
Code:

//+trace dis global $my; // load the standard submit utilities $this->execPieceByName('ff_InitLib'); // retrieve the submitted values $recordid = ff_getSubmit('recordid'); $userid = $my->id; $couple = ff_getSubmit('couple', ''); $age = ff_getSubmit('age', 0); $acro = ff_getSubmit('acro', 0); $fun = ff_getSubmit('fun', 0); $boogie = ff_getSubmit('boogie', 0); if (is_numeric($recordid)) // update existing record ff_query( "update `#__rnr_contest` ". "set `couple` = '$couple', ". "`age` = '$age', ". "`acro` = '$acro', ". "`fun` = '$fun', ". "`boogie` = '$boogie' ". "where `id` = $recordid" ); else // save new record ff_query( "insert into `#__rnr_contest` ". "(`userid`, `couple`, `age`, `acro`, `fun`, `boogie`) ". "values ('$userid', '$couple', '$age', '$acro', '$fun', '$boogie')" );
end submit
Code:

ff_redirectForm("RnrContestList"«»);
I'm speaking about the Facile Form's example form "RnrContestRegist" Thanks guys!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5935
petrov (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Create a form for Mister Estate (use Facile For 4 Months ago Karma: 0  
I think that you can edit only source code in both files: estateagent.html.php and estateagent.php in /components/com_estateagent folder

http://www.modernabg.com
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop