How to add Forme to the listing website (1 viewing)
|
|
TOPIC: How to add Forme to the listing website
|
maria (User)
Fresh Boarder
Posts: 2
|
| How to add Forme to the listing website 2007/05/20 15:20 |
Karma: 0   |
|
Hi,
First of all, thank you for the great component and a very nice looking and supportive website (good look is surprisingly rare among developers)
I have a question, how to add a form to a particular component's html.php so it appears on every page automatically without using a mambot?
For example Hot Property... there is a standard contact form which is not possible to enhance with calendars or anything else. It looks like this
<div id="hp_emailform_con"> <?php hotproperty_HTML : : show_EmailForm('property',$prop[0]->id); ?> </div>
How to replace this form with particular Forme? Basically how to add Forme to any listing website? Sobi, Gallery, etc?
Would be also good to know if Forme could print an url of a webpage from where it was submitted?
Thank you again, your project gives amazingly clean and light feeling.
Maria
Post edited by: maria, at: 2007/05/20 15:21
|
|
|
|
The topic has been locked.
|
rsd (User)
Senior Boarder
Posts: 15
|
| Re:How to add Forme to the listing website 2007/05/20 20:21 |
Karma: 1   |
|
You can add it inside a module, using mod_forme.
-rsd
|
|
|
|
The topic has been locked.
|
maria (User)
Fresh Boarder
Posts: 2
|
| Re:How to add Forme to the listing website 2007/05/21 22:11 |
Karma: 0   |
|
Thank you for the hint!
- I've positioned a module to "inset"; - replaced <?php hotproperty_HTML : : show_EmailForm('property',$prop[0]->id); ?> with <?php mosLoadModules ( 'inset' ); ?> and got a form on every property page...
Still have to figure out how to get an URL from where the form was submitted? If a website has hundreds of pages it is not possible to distinguish which page has been used for enquiry.
Trying to solve this I've created a hidden field called url with {siteurl} as a Default Value, however got no URL in the email, just a tag {siteurl} itself.
I've also put {sitename},{siteurl} in a Thank You section however received a message just with those two tags, not with URL or a site name.
Also on a Thank You page I can see only {firstname} {lastname} tags instead of real names. It it a bug?
Thank you!
|
|
|
|
The topic has been locked.
|
rsd (User)
Senior Boarder
Posts: 15
|
| Re:How to add Forme to the listing website 2007/05/21 22:44 |
Karma: 1   |
|
the easy way to get the used url would be to have a javascript to fill a hidden field. You cant trust this too much as it would be easy to spoof.
Are you using UTF-8. Forme has a bug regarding utf-8. I am still waiting for the new version to correct this.
-rsd
|
|
|
|
The topic has been locked.
|
blip (User)
Fresh Boarder
Posts: 1
|
| Re:How to add Forme to the listing website 2007/05/25 17:14 |
Karma: 0   |
|
hi
i was wondering also if theres a way of doing this with adsmanager or sobi2? same principle i think but not sure where to add the code and what to replace if anything??
any clues very much appreciated
thanks very much!
|
|
|
|
The topic has been locked.
|
|
|
|
|