You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 13-04-2013 22:29:37

donator
Contributors
Registered: 11-04-2013
Posts: 28

Contact Form

I have read that there is a contact form .php with necessary file somewhere. How ca I get it (as donator)?

Offline

#2 13-04-2013 22:40:46

Emil
Moderator
From: in a shipyard
Registered: 15-03-2013
Posts: 106

Re: Contact Form


Good advice is often confusing, but example is always clear.

Offline

#3 14-04-2013 22:51:43

donator
Contributors
Registered: 11-04-2013
Posts: 28

Re: Contact Form

Thanks. I've found the files and have installed it. I will test it tomorrow and will report :-)

Offline

#4 20-04-2013 21:21:54

donator
Contributors
Registered: 11-04-2013
Posts: 28

Re: Contact Form

Thanks. It's working fine, but I would like to include a google map from my site. Is this possible? And how?

Offline

#5 20-04-2013 21:29:33

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Contact Form

Do you want it on a subpage or in a tile?

Offline

#6 21-04-2013 09:12:14

donator
Contributors
Registered: 11-04-2013
Posts: 28

Re: Contact Form

I would like to have it in a subpage!

Offline

#7 24-04-2013 20:51:23

donator
Contributors
Registered: 11-04-2013
Posts: 28

Re: Contact Form

I have solved this problem with "iframe"

Offline

#8 24-04-2013 22:07:48

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Contact Form

Oh sorry, I totally forgot to answer. An iframe is indeed a good solution for things like that. You can also init the plugin using

<script>
$.plugin($beforeSubPageShow,{
googleMaps:function(){
/* Google map init functions ehre*/
}

});

Offline

#9 25-04-2013 22:20:52

donator
Contributors
Registered: 11-04-2013
Posts: 28

Re: Contact Form

Thanks for reply. I am not so familiar in creating plugins. How can I use google functions in this context?

Last edited by donator (26-04-2013 18:44:02)

Offline

#10 27-04-2013 12:57:50

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Contact Form

As described here: http://www.w3schools.com/googleAPI/default.asp, google maps can be shown on a page by using this code;

function initialize()
{
var mapProp = {
  center:new google.maps.LatLng(51.508742,-0.120850),
  zoom:5,
  mapTypeId:google.maps.MapTypeId.ROADMAP
  };
var map=new google.maps.Map(document.getElementById("googleMap")
  ,mapProp);
}

google.maps.event.addDomListener(window, 'load', initialize);

and adding this on the same page:

<div id="googleMap" style="width:500px;height:380px;"></div>


so something like this should work (didn't test it):

<script>
$.plugin($beforeSubPageShow,{
googleMaps:function(){

function initialize()
{
var mapProp = {
  center:new google.maps.LatLng(51.508742,-0.120850),
  zoom:5,
  mapTypeId:google.maps.MapTypeId.ROADMAP
  };
var map=new google.maps.Map(document.getElementById("googleMap")
  ,mapProp);
}

google.maps.event.addDomListener(window, 'load', initialize);

}
});
</script>

But if an iframe works, why would use another method? wink

Offline

Board footer

Powered by FluxBB