Jump to content

chandler

Members
  • Posts

    142
  • Joined

  • Last visited

About chandler

  • Birthday 10/15/1975

Profile Information

  • Gender
    Male
  • Location
    Wales

chandler's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi Looking for someone to do the following. code secure login system, once admin is logged in page content becomes inline editable using ckeditor. Please pm a price for the job Many Thanks
  2. Thank you guys, I will make the login script, once I have done that will come back for help adding ckeditor... Many Thanks for helping
  3. Been looking on google for last few days but not finding anything..
  4. Hi Guys Can someone point me in the right direction to a tutorial for the following.. I want to have an admin login section, once logged in the content becomes editable using ckeditor. Any help be much appricated Thanks Chandler
  5. Hi guys, Can you please help me I am unsure how to get the following to work (or even if it is possible) I have the following tooltip script that works great <a href="javascript:void(0)" class="lytetip" data-lyte-options="tipStyle:info" data-tip="Some text goes here"> At the end of the text I want to add a click here for more information link, on clicking a content box will drop into view using this script Head <script> var dropinbox1=new dropincontentbox({ source:['#dropbox', 'dropincontent.htm'], //#id of DIV to show if defined inline, or [#id, path_to_box_content_file] if defined in external file cssclass:'dropinbox standardshadow', //arbitrary class(es) to add to the drop in box to style it showduration:10 //disappear after x seconds? }) </script> Body link <a href="javascript:dropinbox1.show()">Show Reminder box again</a> | <a href="javascript:dropinbox1.hide()">Hide Reminder Box</a> I am able to get the box to drop in but unable to get the link for the box inside the tooltip....is this possible? Many thanks for your help
  6. Hi guys, can someone help me with this please. I had this form script made for me but I would like to make some small changes, below is the part I'd like to make changes to. I want to put a <td> tag to the following elements - (<th>Extras</th>, <td>title</td>, <td>checkbox</td>, <td>personNumber</td>) so that they are all in their own cell. The problem I have is once a new row is made in the form table I am unsure how to make it add the <tr> with php for the new row. what I get once adding the <td> tags is: <th>Extras</th> title checkbox, personNumber title checkbox personNumber what I want is <th>Extras</th> title, checkbox, personNumber title, checkbox, personNumber Here is the code, many thanks for your help! <table> <tr> <td><?php echo $AB_LANGS['Extras']; ?></td> <td align="right"> <?php while ($ExtrasData = mysql_fetch_assoc($sql_result)) { ?> <?php echo $ExtrasData['title']; ?> <input type="checkbox" name="extra_id" id="extra_id" value="<?php echo $ExtrasData['id'] . ':' . $ExtrasData['per'] . ':' . $ExtrasData['price']; ?>" onclick="addExtras()"> <?php if ($ExtrasData['per'] == 'person') { ?> <select name="personNumber_<?php echo $ExtrasData['id']?>" id="personNumber_<?php echo $ExtrasData['id']?>" onchange="addExtras()"> <?php for($i = 0; $i <= 10; $i++) { ?> <option value="<?php echo $i; ?>"><?php echo $i; ?></option> <?php } ?> </select> <?php } ?> <br/> <?php } ?> </td> </tr> </table>
  7. Hi can someone please show me how I should include a <div id="css"></div> in this line echo $AB_LANGS['CalendarInstructions']; I have tried several attempts with no joy. Many thanks
  8. Hi, I have this form that works pretty well apart from the page reloading twice, once to submit and to display the thank you message and once again to reload the form after 10 secs, is it possible to use a bit of ajax code to do this? Here is my code...pls note I am rubbish at coding, if it possible can you pls show me where to place the code...many thnaks <?php $error = ''; // error message $name = ''; // sender's name $email = ''; // sender's email address $referred = ''; // referred $message = ''; // the message itself $spamcheck = ''; // Spam check if(isset($_POST['send'])) { $name = $_POST['name']; $email = $_POST['email']; $referred = $_POST['referred']; $message = $_POST['message']; $spamcheck = $_POST['spamcheck']; $SpamErrorMessage = '<div class="errormsg">No website URLs permitted, click <a href="index.php">here</a> to go back</div>'; if (preg_match("/http/i", "$name")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$email")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$message")) {echo "$SpamErrorMessage"; exit();} if (preg_match("/http/i", "$spamcheck")) {echo "$SpamErrorMessage"; exit();} if(trim($name) == '') { $error = '<div class="errormsg">Please enter your name.</div>'; } else if(trim($email) == '') { $error = '<div class="errormsg">Please enter your E-mail?</div>'; } else if(!isEmail($email)) { $error = '<div class="errormsg">Incorrect Email format.!</div>'; } else if(trim($message) == '') { $error = '<div class="errormsg">Message please!</div>'; } else if(trim($referred) == '') { $error = '<div class="errormsg">Error: Please tell us how you found us.</div>'; } else if(trim($spamcheck) == '') { $error = '<div class="errormsg">Please enter: Spam Check!</div>'; } else if(trim($spamcheck) != '5') { $error = '<div class="errormsg">Spam Check: Number incorrect! 2 + 3 = ???</div>'; } if($error == '') { if(get_magic_quotes_gpc()) { $message = stripslashes($message); } // the email will be sent here // make sure to change this to be your e-mail $to = "email here"; // the email subject // '[Contact Form] :' will appear automatically in the subject. // You can change it as you want $subject = 'subject here' . $subject; // the mail message ( add any additional information if you want ) $msg = "From : $name \r\ne-Mail : $email \r\nReferred By: $referred \r\n\n" . "Message : \r\n$message"; mail($to, $subject, $msg, "From: $email\r\nReply-To: $email\r\nReturn-Path: $email\r\n"); ?> <!-- Message sent! (change the text below as you wish)--> <div style="text-align:left;"> <p>Thank you <b><?=$name;?></b>,<br/> we will be in touch.</p> </div> <!--End Message Sent--> <?php echo 'You\'ll be redirected in <span id="countdown"></span> secs. <br/>If not, click <a href="index.php">here</a>.'; ?> <script type="text/javascript"> $(function(){ var count = 10; countdown = setInterval(function(){ $('#countdown').html(count + " "); if (count == 0) { window.location.href = window.location; } count--; }, 1000); }); </script> <?php $replymessage = "Hello $name We have recieved your message, we will be in touch within 24hrs. Regards -------------------------------------------------- Your Message: $message -------------------------------------------------- Thank you. "; $message = "name: $name \nQuery: $message"; $replyemail = "email here"; mail("$replyemail", "$emessage", "From: $email\nReply-To: $email"); mail("$email", "Message: $subject", "$replymessage", "From: $replyemail\nReply-To: $replyemail"); echo $success_sent_msg; } } if(!isset($_POST['send']) || $error != '') { ?> <!--Error Message--> <?=$error;?> <form method="post" name="contFrm" id="contFrm" action=""> <label><span class="required">*</span> Full Name:</label> <input name="name" type="text" class="box" id="name" size="27" value="<?=$name;?>" /> <label><span class="required">*</span> Email: </label> <input name="email" type="text" class="box" id="email" size="27" value="<?=$email;?>" /> <label><span class="required">*</span> Referred by:</label> <select name="referred" value="<?=$referred;?>"> <option value="Choose" selected>Please select..</option> <option value="Google" >Google</option> <option value="Gumtree" >Gumtree</option> <option value="Yell.com" >Yell.com</option> <option value="Flyer">Flyer/Business card</option> <option value="Friend">Friend</option> <option value="other">Other</option></select> <label><span class="required">*</span> Message: </label> <textarea name="message" cols="25" rows="3" id="message"><?=$message;?></textarea><br /><br /> <label><span class="required">*</span> Spam Check: <b>2 + 3=</b></label> <input name="spamcheck" type="text" class="box" id="spamcheck" size="4" value="<?=$spamcheck;?>" /> <!-- Submit Button--> <input name="send" type="submit" value="Submit" alt="Submit" class="button" id="send" /> </form> <!-- E-mail verification. Do not edit --> <?php } function isEmail($email) { return(preg_match("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i" ,$email)); } ?> <br /> Many Thanks for you help!
  9. I copy and paste your code, but the form didn't load after submitting... Can you show me how you would do it...sorry but I'm rubbish with JavaScript.
  10. here is what im working on, try out the contact for and you will see http://testserver3.webatu.com/index.php
  11. <script type="text/javascript"> $(document).ready(function() { $('#countdown').countdown({seconds: 10}) setTimeout(function() { window.location.reload() }, 10000); }); Like this? when I do this the form keeps submitting / resending </script>
  12. Hi, I am using this bit of code <script type="text/javascript"> $(document).ready(function() { $('#countdown').countdown({seconds: 10}) setTimeout(function() { window.location.href = "index.php"; }, 10000); }); </script> to reload the page after contact us form is submitted, here it will reload index.php, however I am running this script on more than one page how can I make it reload from current url? Also I would I include javascript: return null; to stop the page jumping to top once form is submitted...Many Thanks for you help
  13. Sorry should have included a link to the the working script http://testserver3.webatu.com/hotspots.php
  14. I got this script from a online tut I am clueless on how to add html to the infowindow..can someone please show Thank you Thank you..... var map; // global var to store the google map var centerCoord = new google.maps.LatLng(46.782101,23.643855); // tulghesului street, Cluj-Napoca var centerCoord = new google.maps.LatLng(40.453577,-3.68763); // Estadio Santiago Bernabeu, Madrid var browserDetectedLocation = null; // global variables used throughout the js functionality var markersArray = []; var infoWindow = new google.maps.InfoWindow({}); function setLocation() { // try to get user location via W3C standard Geolocation in browsers or via Google Gears if(navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { blueIcon = "http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png"; browserDetectedLocation = new google.maps.LatLng(position.coords.latitude,position.coords.longitude); map.setCenter(browserDetectedLocation); var marker = new google.maps.Marker({ position: browserDetectedLocation, map: map, title: 'You are here', icon: blueIcon, zIndex: 0 }); //addMarker(browserDetectedLocation,'You are here!'); $('#home-messages').text("Location detected. Please wait..."); }, function() { // error getting location, though supported $('#home-messages').text("Your location cannot be detected."); }); } else if (google.gears) // if location not found using W3C standard try with Google Gears if browser supports it { var geo = google.gears.factory.create('beta.geolocation'); geo.getCurrentPosition(function(position) { blueIcon = "http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png"; browserDetectedLocation = new google.maps.LatLng(position.latitude,position.longitude); map.setCenter(browserDetectedLocation); var marker = new google.maps.Marker({ position: browserDetectedLocation, map: map, title: 'You are here', icon: blueIcon, zIndex: 0 }); //addMarker(browserDetectedLocation,'You are here!'); $('#home-messages').text("Location detected. Please wait..."); }, function() { // error getting location, though supported $('#home-messages').text("Your location cannot be found."); }); } else { // Browser doesn't support Geolocation $('#home-messages').text("Your location cannot be found."); } } function InitMap(options, mapIdentifier, defaultLocation, detectLocation) { // function to initialize map var settings = // json variable for default settings { zoom: 10, center: defaultLocation, mapTypeId: google.maps.MapTypeId.ROADMAP }; if (options!=null) settings = options; // if no options provided, start the map with default settings map = new google.maps.Map(document.getElementById(mapIdentifier), settings); map.setCenter(defaultLocation); if(detectLocation==true) setLocation(); // try to get user location via W3C standard Geolocation in browsers or via Google Gears else { $('#home-messages').text("Click on a point of interest to view it's location."); } // idle - This event is fired when the map becomes idle after panning (dragging moving etc) or zooming /*google.maps.event.addListener(map, 'idle', function() { clearOverlays(); }); */ return map; } function handle_clicks() { $('#home-sidebar ul li a').live('click',function(){ var coordString = $(this).attr('rel'); var coordTitle = $(this).text(); var coordArray = coordString.split(','); var update2Location = new google.maps.LatLng(coordArray[0],coordArray[1]); map.setCenter(update2Location); addMarker(update2Location,coordTitle,coordArray[2]); $('#home-messages').text("Viewing: "+coordTitle); }); } /*function addMarker(m_position,m_title,m_infowindow) { marker = new google.maps.Marker({ position: m_position, map: map, title: m_title }); markersArray.push(marker); var mark = markersArray.pop(); google.maps.event.addListener(mark, 'click', function() { infoWindow.open(map,mark); var stringContent = m_infowindow; infoWindow.setContent("<div id=\"infowin-overlay\""+stringContent+"</div>"); overlayHeight = $('#infowin-overlay').height(); overlayWidth = $('#infowin-overlay').width(); $('#infowin-overlay').parent().css('height',overlayHeight); $('#infowin-overlay').parent().css('width',overlayWidth); }); markersArray.push(mark); }*/ function addMarker(m_position,m_title,m_infowindow) { var markerAdded = false; var mark; if (markersArray.length!=0) { duplicate = false; var markcopy; var markersCopy = []; while(markcopy=markersArray.pop()) { if((markcopy.position.lat()==m_position.lat())&&(markcopy.position.lng()==m_position.lng())) duplicate = true; markersCopy.push(markcopy); } markersArray = markersCopy; if(duplicate==false) { marker = new google.maps.Marker({ position: m_position, map: map, title: m_title }); markersArray.push(marker); mark = markersArray.pop(); google.maps.event.addListener(mark, 'click', function() { infoWindow.open(map,mark); var stringContent = m_infowindow; infoWindow.setContent("<div id=\"infowin-overlay\""+stringContent+"</div>"); overlayHeight = $('#infowin-overlay').height(); overlayWidth = $('#infowin-overlay').width(); $('#infowin-overlay').parent().css('height',overlayHeight); $('#infowin-overlay').parent().css('width',overlayWidth); }); markersArray.push(mark); } } else { marker = new google.maps.Marker({ position: m_position, map: map, title: m_title }); markersArray.push(marker); mark = markersArray.pop(); google.maps.event.addListener(mark, 'click', function() { infoWindow.open(map,mark); var stringContent = m_infowindow; infoWindow.setContent("<div id=\"infowin-overlay\""+stringContent+"</div>"); overlayHeight = $('#infowin-overlay').height(); overlayWidth = $('#infowin-overlay').width(); $('#infowin-overlay').parent().css('height',overlayHeight); $('#infowin-overlay').parent().css('width',overlayWidth); }); markersArray.push(mark); } } /* end of functions */ $(document).ready(function(){ if($('#map').get(0)) { // only initialize the map if map is located inside the page map = InitMap(null,'map', centerCoord, true); // initialize the map on default location handle_clicks(); // click events handling by jQuery } }); And the html, but doing it this way limits how much content can go into the info window! <div id="home-wrapper"> <div id="logo"> </div> <div id="home-messages"> Trying to determine your location...Please allow browser to share location if prompted </div> <span class="clear"> </span> <div id="home-sidebar"> <h1>Places of Interest.</h1> <ul> <li> <a href="javascript: return null;" rel="37.977471,-0.683227, <strong></strong> <strong>Torrevieja</strong><br /> The city of Torrevieja lies about 50 km south west of Alicante. You can reach Torrevieja via the road N 332. " target="_self">Torrevieja</a> </li> <li> <a href="javascript: return null;" rel="37.983445,-1.12989, <strong>Murcia</strong> is not only known for its beautiful beaches,<br /> but also for a great number of natural beauties still to be discovered. " target="_self">Murcia</a> </li> <li> <a href="javascript: return null;" rel="38.035991,23.788662, <strong>Venue: </strong>Olympic Stadium - Athens<br /> <strong>Address: </strong>hdh dfhdd gdffffffffff dfdhdh<br /> <strong>Phone: </strong>dfhdhdfdfdfdh dhdhdhdhddh<br /> <strong>Fax: </strong>dddfhfheee eeeeeeeeeeeeeeeeeee eeeeee123<br /> <strong>Email: </strong><a href='mailto:'></a><br /> " target="_self">Olympic Stadium - Athens</a> </li> <li><a href="javascript: return null;" rel="48.924191,2.359529, <strong>Venue: </strong>Stade de France<br /> <strong>Address: </strong><br /> <strong>Phone: </strong><br /> <strong>Fax: </strong><br /> <strong>Email: </strong><a href='mailto:'></a><br /> " target="_self">Stade de France</a></li> </ul> </div> <div id="map-wrapper"> <div id="map"> </div> </div> Regards Chandler
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.