Jump to content
Killersites Community

dms

Member
  • Content Count

    104
  • Joined

  • Last visited

Community Reputation

0 Neutral

About dms

  • Rank
    Advanced Member
  • Birthday 11/01/1960

Profile Information

  • Gender
    Male
  • Location
    Southeast Missouri, USA

Contact Methods

  • Website
    http://www.marksherrill.com
  • Facebook
    http://www.marksherrill.com/about.html
  1. dms

    Social Plugin Bar

    After further review, I realize that I needed to upload the code to a live server before the button from the posted code came to life. I was just viewing the page on my computer within FF. addthis seems to be a pretty nice "sharing platform". I just need to figure out how to float the divs and then I'm good to go. Ben, thanks for your reply.
  2. Is there a good resource to where I could just copy/paste some code into a webpage that would have several links to the main social networks that's up to date that I might understand - JS isn't my cup of tea. I have some code a customer sent me that they found and ask me to include it into their site. I have no idea if it's up to date. The code comes from addthis-dot-com and it seems to work, but I have no idea on how to style it and it may be outdated as far as I know. Can someone please explain to me the best practices when adding links to social networks. Thanks <!-- ****** AddThis Button BEGIN ***** --> <div class="addthis_toolbox addthis_default_style addthis_32x32_style"> <a class="addthis_button_preferred_1"></a><br /> <a class="addthis_button_preferred_2"></a><br /> <a class="addthis_button_preferred_3"></a><br /> <a class="addthis_button_preferred_4"></a><br /> <a class="addthis_button_compact"></a><br /> <a class="addthis_counter addthis_bubble_style"></a><br /> </div> <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> <script type="text/javascript" src=" http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4fb7fcc0047d61bd "></script> <!-- AddThis Button END --> <!-- ******* AddThis Follow BEGIN ***** --> <p>Follow Us</p> <div class="addthis_toolbox addthis_32x32_style addthis_default_style"> <a class="addthis_button_facebook_follow" addthis:userid="EEstates"></a> <a class="addthis_button_twitter_follow" addthis:userid="EEstates"></a> <a class="addthis_button_linkedin_follow" addthis:userid="lisamanzi"></a> <a class="addthis_button_google_follow" addthis:userid="/u/0/105440859768423451795/about"></a> <a class="addthis_button_pinterest_follow" addthis:userid="eestates/"></a> </div>
  3. dms

    To include styling for smart phones?

    LSW, you make a good point and I'll most likely add a link to the full site. Wickman, Thanks for the link, I have some reading to do and I'll get back with you.
  4. The site I'm to build needs to scale well on smart phones as well as computer screens. I need to detect that the incoming request is from a phone and then somehow deliver the stylesheet for the smaller screen. I'm using XHTML, CSS and PHP to build the site. Mark
  5. This is nice. Is it written in JavaScript? It looks like it changes the whole page even though it's contained within a division. I wonder if you can set it up only to affect certain divisions or classes on the page? If so, it would work well for walc application.
  6. Pretty cool Eric. I do not know JavaScript, but understand the premise. I'm hitting the books again, so to speak and tiring to understand how this will solve walc's problem of needing different languages on the same page. Could you please explain in more detail how this would work in his situation. I see that you have displayed both English and Spanish switching the style sheets, but both pages are using the utf-8 charset. Wouldn't you need to change the charset for each language along with a different style sheet, since the utf-8 is not working for him in his country? Is the utf-8 charset suppose to work with most all languages? There is another resent post by Roman to where he is also having trouble with this charset displaying the text properly. Thanks Mark
  7. Okay, I believe you. But what do you mean by text coding?
  8. You may want to use the latest code I used to where you transfer form data into a variable. The next step for you would be to validate the form data using the variables, so it's a good habit for you to get into and It's just cleaner. $headers = "Content-type: text/plain; charset=utf-8\n". "\r\n" ; $headers = 'From: vinyl2006@seznam.cz' . "\r\n" ; // could be a different address from the one I'm using here. $headers = 'Bcc: vinyl2006@seznam.cz'; // this would be your permanent email address. $to = $_POST['field_2']; // captured from the form. $subject = 'formular - vinyly.ic.cz'; $username = $_POST['field_1']; $field_3 = $_POST['field_3']; // change this variable name to suit you and use it in the message $field_4 = $_POST['field_4']; // change this variable name to suit you and use it in the message $field_5 = $_POST['field_5']; // change this variable name to suit you and use it in the message $message = "Form data:\n" . "username: $username\n" . "Email: $to\n" . "Telefon: $field_3\n" . "Zem?: $field_4\n" . "Zpr?va: $field_5\n" . 'Jak? je rok?'; mail($to, $subject, $message, $headers); I'm not sure what you mean by the text coding? Are you referring to the ...... $headers = "Content-type: text/plain; charset=utf-8". " " ; . It could be that you are not using the return and new line character sequence after the first two headers. The charset is something that I'm not very familiar with, so if setting it to fit you situation may require you to start a new post dealing with just that header. This is what you have now. $headers = "Content-type: text/plain; charset=utf-8 ". " " ; $headers = 'From: vinyl2006@seznam.cz' . " " ; $headers = 'Bcc: vinyl2006@seznam.cz'; And it should be this below. I don't understand why you have are concatenating an empty string to the end of the first two headers? I'm pretty sure you need the return and new line character sequence like on the first two header below.... $headers = "Content-type: text/plain; charset=utf-8\n". "\r\n" ; // return and new line character sequence needed ("\r\n") $headers = 'From: vinyl2006@seznam.cz' . "\r\n" ; // return and new line character sequence needed ("\r\n") $headers = 'Bcc: vinyl2006@seznam.cz'; Good luck
  9. I believe you need the return and newline character sequence after each header except for maybe the last one. I also think a From Header is required in the mail function, which could be different than the Bcc address. If you have a line over 70 characters long you need to clean it up a bit like I did below. If the message is just a general message and does not need much layout, you could use the wordwrap () function. Keep in mind, I'm learning myself, so take this for what it worth. $headers = "Content-type: text/plain; charset=utf-8\n". "\r\n" ; $headers = 'From: vinyl2006@seznam.cz' . "\r\n" ; // could be a different address from the one I'm using here. $headers = 'Bcc: vinyl2006@seznam.cz'; // this would be your permanent email address. $to = $_POST['field_2']; // captured from the form. $subject = 'formular - vinyly.ic.cz'; $username = $_POST['field_1']; $field_3 = $_POST['field_3']; // change this variable name to suit you and use it in the message $field_4 = $_POST['field_4']; // change this variable name to suit you and use it in the message $field_5 = $_POST['field_5']; // change this variable name to suit you and use it in the message $message = "Form data:\n" . "username: $username\n" . "Email: $to\n" . "Telefon: $field_3\n" . "Zem?: $field_4\n" . "Zpr?va: $field_5\n" . 'Jak? je rok?'; mail($to, $subject, $message, $headers);
  10. $headers = "Content-type: text/plain; charset=utf-8\n". "\r\n" ; // not sure you need this header. $headers = 'Bcc: vinyl2006@seznam.cz'; // this would be your permanent email address. $to = $_POST['field_2']; // captured from the form. $subject = 'formular - vinyly.ic.cz'; $message = "Form data: username: " . $_POST['field_1'] . " Email: " . ((($to))) . " Telefon: " . $_POST['field_3'] . " Zem?: " . $_POST['field_4'] . " Zpr?va: " . $_POST['field_5'] . " Jak? je rok?; mail($to, $subject, $message, $headers); Not quite sure what your asking, but you might try changing to the (((code))) above. Be sure and remove the brackets ((())). If your not receiving anything at all in the message area of the email, try changing $message to... $message='testing'; ...and see if (testing) transfers to your email. Mark
  11. You might try using the bcc to send the second email to the fixed location and also use some variables to store some info. Something like this. $headers = "Content-type: text/plain; charset=utf-8\n". "\r\n" ; // not sure you need this header. $headers = 'Bcc: vinyl2006@seznam.cz'; // this would be your permanent email address. $to = $_POST['field_2']; // captured from the form. $subject = 'formular - vinyly.ic.cz'; $message = "Form data: username: " . $_POST['field_1'] . " Email: " . $_POST['field_2'] . " Telefon: " . $_POST['field_3'] . " Zem?: " . $_POST['field_4'] . " Zpr?va: " . $_POST['field_5'] . " Jak? je rok?; mail($to, $subject, $message, $headers); Keep in mind I'm new at this. good luck. You may also check out... http://us2.php.net/manual/en/function.mail.php
  12. I'm just learning myself, but shouldn't... 'field' in the $_POST['field'] be... 'field_2' I'm sure others can give you better advice, good luck.
  13. dms

    macbook security software

    Sorry, I just re-read this. Do you recommend a particular software?
  14. dms

    macbook security software

    I volunteer to help a local DAR Chapter with their website and I received the following from an administrator. I contacted Apple's technical support and they claim no security software is necessary. I do update my operation system when Apple sends me a notice. So what do you recommend I do?
  15. What software would you recommend to use with a Mac to protect against virus? and/or malware? I use VMware Fusion to view my work on IE, if that makes a difference. I've never had a problem, but just need to make sure I don't at this point. I'm starting to do a little work for others and want to make sure I don't infect someones server. Thanks, Mark
×