Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

kyme

Members
  • Joined

  • Last visited

Everything posted by kyme

  1. Reading tutorials is the best way to start. Off course considering by watching of some inspiring web artworks from others. Go start with decent PC or laptop with basic specs, and then once you can afford it go invest of some of your needs.
  2. I have posted similar question of this thread to the other forum and someone replied that "Better watch the movie of Social Network first before learning to program the social network website. *It can help you build the statistic of how can have a big impact to your social environment. Analyze first your competitor before making it's decision. "
  3. Hi I have visit facebook.com web development and followed the instruction and after having the script to embed it into my page. The page that i have will only display : No recent activity to display. Put some Like buttons on your website to engage your users. Details can be found here. etc. Now I don't know what to do next. Can anyone help me ? I need help to display my post from Facebook to my website.
  4. How about an opensource. ?
  5. hey it's already working. Thank you very much. Problem is solve.
  6. kyme replied to chooseausername's topic in General Chat
    Alien and Mac are both good. Aliens are quit heavy weight. Mac are heavy expensive(or keeping throwing cash to have your fav App.) Lol.
  7. I just keep expermenting and yes finally my msg_error will now already be called: It just my empty field. How do i display the empty field after the my error_msg ? <?php session_start(); // init variables $error_msg = "The following fields were left empty or contain invalid information:<ul class='error'>"; $error = false; $noEmptyFlds = true; function checkEmpty($names, $data) { $n = count($names); $emptys = array(); for ($i = 0; $i < $n; $i++) { if (empty($data[$names[$i]])) $emptys[] = $names[$i]; } return $emptys; } function createUList($arr) { $n = count($arr); echo '<ul>'; for ($i = 0; $i < $n; $i++) echo " <li>".str_replace('_',' ',$arr[$i])."</li>\n"; echo '</ul>'; } // determine is the form was submitted $submit = $_POST['submit']; if (empty($submit)) $form_submitted = false; else $form_submitted = true; if ($form_submitted) { $infoToCheck = array('name', 'email', 'message', 'Spam_Code'); $emptyFlds = checkEmpty($infoToCheck,$_POST); if(count($emptyFlds)>0){ $noEmptyFlds = false; $error=true; } else { // read out data $name = trim($_POST['name']); $email = trim($_POST['email']); // $subject = $_POST['subject']; $message = trim($_POST['message']); $validSecurityCode = md5(trim($_POST['Spam_Code'])) == $_SESSION['key']; // verify required data if (!$name) { $error_msg .= "<li>Full Name</li>"; $error = true; } // if(!$subject) { $error_msg .= "<li>Subject</li>"; $error = true; } if (!$message) { $error_msg .= "<li>Message</li>"; $error = true; } //if(!$email || preg_match("/^[a-z0-9_]+@[a-z0-9\-]+\.[a-z0-9\-\.]+$/", $email) == 0) { if (empty($email) || filter_var($email, FILTER_VALIDATE_EMAIL) === false) { $error_msg .= "<li>E-mail Address</li>"; $error = true; } if (!$validSecurityCode) { $error_msg .= "<li>Spam Code</li>"; $error = true; } $error_msg .= "</ul>"; // email message if no errors occurred if (!$error) { unset($_SESSION['key']); // prevent multiple send $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; // prepare message $msg = "Full Name: \t $name \n"; $msg .= "E-mail Address: \t $email \n"; $msg .= "Message: \n---\n $message \n---\n"; // prepare message header $mailheaders = "MIME-Version: 1.0\r\n"; $mailheaders .= "Content-type: text/plain; charset=iso-8859-1\r\n"; $mailheaders .= "From: $name <$email>\r\n"; $mailheaders .= "Reply-To: $name <$email>\r\n"; // send out email require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(); $body = file_get_contents('content.html'); $body = eregi_replace("[\]",'',$body); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "smtp.gmail.com"; // SMTP server $mail->SMTPDebug = 0; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "tls"; // sets the prefix to the servier $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server $mail->Port = 587; // set the SMTP port for the GMAIL server $mail->Username = "myMail@gmail.com"; // GMAIL username $mail->Password = "hammercon"; // GMAIL password $mail->SetFrom($email, $name); $mail->AddReplyTo($email,$name); $mail->AddAddress("MyEmail@gmail.com"); $mail->Subject = "Mail Inquiries"; $mail->Body = stripslashes($msg); // optional, comment out and test $mail->WordWrap = 50; if(!$mail->Send()) { echo 'form_submitted = '.($form_submitted ? 'yes':'no'); echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; } else { echo ''; } } } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title> blank </title> <meta name="description" content=" Homes"/> <meta name="keywords" content=",housing,realstate,estate"/> <link href="style.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Verdana,serif"> <link rel="SHORTCUT ICON" href="images/favicon.ico" /> <!--[if lt IE 8]> <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"> </script><![endif]--> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="ddimgtooltip.css" /> <script type="text/javascript" src="scripts/ddimgtooltip.js"></script> </head> <body> <div id="wrapper"> <div id="upperstyle"></div> <div id="bgstyle"> </div> <div id="skybg"></div> <div id="container"> <div style="clear:both"></div> <div id="header"> <div id="contentheader"> <div id="logo"> <a href="http://www.blank.com"><img src="images/logo.png" alt="" border="0" /></a> </div> <div id="companynews"> <a href="" class="headerlinks" border="0"><h1>COMPANY NEWS</H1></a> </div> <div id="socialfeeds"> <a href="" class="headerlinks" border="0"><h1>PROMOS</h1></a> <div id="twitter_container"> <ul id="twitter_update_list"></ul> </div> </div> <div id="livecontact" > <a href="" class="headerlinks" border="0"><h1>CONTACT US</h1></a> </div> <div style="clear:both"></div> <div id="upper_nav_bar"> <div id="bg_left"></div> <div id="bg_right"></div> <div id="bar_bg"> <div id="upper_nav"> <ul id="sddm"> <li><a href="index.php">HOME</a></li> <li><a href="project.php" onmouseover="mopen('m1')" onmouseout="mclosetime()">PROJECTS</a></li> <li><a href="ourstory.php">OUR STORY</a></li> <li><a href="faq.php">FAQ</a></li> <li><a href="contact.php">CONTACT US</a></li> <li class="career_btn"><a href="career.php">CAREERS</a></li> </ul> </div> </div> </div> </div> </div> <div style="clear:both"></div> <div id="content_static"> <div id="front_uppercontent"> </div> <div id="title"> <img src="images/img2.png" alt=""/> </div> <div id="bodycontent" > <div style="clear:both"></div> <div id="contact_form"> <?php // email was successfully send if ($form_submitted && !$error): ?> <!-- display submitted data --> <p class="formtext">Thank you for leaving a message, <span><?php echo $_POST['name']; ?></span>. <br/></p> <p class="formtext">This is the message that you sent:</p> <p class="formtext"><?php echo nl2br(stripslashes($_POST['message'])); ?></p> <p class="formtext">We'll get back to you within 24 hours.</p> <?php print ('<a href="http://blank.com/contact.php">Back to fill-up form</a>'); ?> <?php // submitted data has some errors elseif ($error): ?> <p><?php echo $error_msg;?></p> <?php print ('<a href="http://blank.com/contact.php">Click here to complete your information</a>'); ?> <!-- display form information --> <!--<h2>Please fill out and submit the form on this page to contact us. We will get back to you as soon as we can.</h2>--> <?php // all submitted data is empty //elseif (!$noEmptyFlds): ?> <!-- < !--to check if spamcode were input -- > <font size="+1"> We require the ff. in order to reply to your message: <br/> </font> --> <?php //createUList($emptyFlds); endif; ?> </div> <div style="clear:both"></div> </div> </div> <div style="clear:both"></div> </div> <div style="clear:both"></div> <div id="footer"> style="clear:both"></div> </div> </div> </div> </body> </html>
  8. Hello I have use the PHPmailer and the mail is working and can send and receive from my email form after filling all the text field. But it's just it won't check if it is empty field. It will still proceed to submit and send after clicking Submit button, though i can't receive email if there is an empty field. I need help if is there any line that i need to put in order to check the variables. <?php session_start(); // init variables $error_msg = "The following fields were left empty or contain invalid information:<ul class='error'>"; $error = false; $noEmptyFlds = true; function checkEmpty($names, $data) { $n = count($names); $emptys = array(); for ($i = 0; $i < $n; $i++) { if (empty($data[$names[$i]])) $emptys[] = $names[$i]; } return $emptys; } function createUList($arr) { $n = count($arr); echo '<ul>'; for ($i = 0; $i < $n; $i++) echo " <li>".str_replace('_',' ',$arr[$i])."</li>\n"; echo '</ul>'; } // determine is the form was submitted $submit = $_POST['submit']; if (empty($submit)) $form_submitted = false; else $form_submitted = true; if ($form_submitted) { $infoToCheck = array('name', 'email', 'message', 'Spam_Code'); $emptyFlds = checkEmpty($infoToCheck,$_POST); if(count($emptyFlds) != 0){ $noEmptyFlds = false; } else { // read out data $name = trim($_POST['name']); $email = trim($_POST['email']); // $subject = $_POST['subject']; $message = trim($_POST['message']); $validSecurityCode = md5(trim($_POST['Spam_Code'])) == $_SESSION['key']; // verify required data if ($noEmptyFlds) { if (!$name) { $error_msg .= "<li>Full Name</li>"; $error = true; } // if(!$subject) { $error_msg .= "<li>Subject</li>"; $error = true; } if (!$message) { $error_msg .= "<li>Message</li>"; $error = true; } //if(!$email || preg_match("/^[a-z0-9_]+@[a-z0-9\-]+\.[a-z0-9\-\.]+$/", $email) == 0) { if (empty($email) || filter_var($email, FILTER_VALIDATE_EMAIL) === false) { $error_msg .= "<li>E-mail Address</li>"; $error = true; } if (!$validSecurityCode) { $error_msg .= "<li>Spam Code</li>"; $error = true; } $error_msg .= "</ul>"; // email message if no errors occurred if (!$error) { unset($_SESSION['key']); // prevent multiple send $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; // prepare message $msg = "Full Name: \t $name \n"; $msg .= "E-mail Address: \t $email \n"; $msg .= "Message: \n---\n $message \n---\n"; // prepare message header $mailheaders = "MIME-Version: 1.0\r\n"; $mailheaders .= "Content-type: text/plain; charset=iso-8859-1\r\n"; $mailheaders .= "From: $name <$email>\r\n"; $mailheaders .= "Reply-To: $name <$email>\r\n"; // send out email require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded $mail = new PHPMailer(); $body = file_get_contents('content.html'); $body = eregi_replace("[\]",'',$body); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "smtp.gmail.com"; // SMTP server $mail->SMTPDebug = 0; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "tls"; // sets the prefix to the servier $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server $mail->Port = 587; // set the SMTP port for the GMAIL server $mail->Username = "email@gmail.com"; // GMAIL username $mail->Password = "Password"; // GMAIL password $mail->SetFrom($email, $name); $mail->AddReplyTo($email,$name); $mail->AddAddress("mymail@gmail.com"); $mail->Subject = "Inquiries"; $mail->Body = stripslashes($msg); // optional, comment out and test $mail->WordWrap = 50; if(!$mail->Send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->$error_msg; } else { echo ''; } } } } } ?>
  9. In Mac, i use latest Chrome & Firefox. I wonder why the script won't follow.
  10. A very helpful thread. Pin
  11. Yes Sir, i have Calibri in my Macbook Pro. In fact some text from the pages that i have made are displaying with the font of Calibri. It's just the script won't display of what i have assigned in css.
  12. kyme replied to ThatGuy's topic in General Chat
    Password:Ded@dfg Crap i posted it in the username with the people behind at me waiting to see of what i want them to see in my mail.
  13. Hello, i need help from json my page i have played of some js tooltip effects and simply found this and emplement this script. http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm I have implemented this script /* Image w/ description tooltip v2.0 * Created: April 23rd, 2010. This notice must stay intact for usage * Author: Dynamic Drive at http://www.dynamicdrive.com/ * Visit http://www.dynamicdrive.com/ for full source code */ var ddimgtooltip={ tiparray:function(){ var tooltips=[] //define each tooltip below: tooltip[inc]=['path_to_image', 'optional desc', optional_CSS_object] //For desc parameter, backslash any special characters inside your text such as apotrophes ('). Example: "I\'m the king of the world" //For CSS object, follow the syntax: {property1:"cssvalue1", property2:"cssvalue2", etc} tooltips[0]=["red_balloon.gif", "Here is a red balloon<br /> on a white background", {background:"#FFFFFF", color:"black", border:"5px ridge darkblue"}] tooltips[1]=["duck2.gif", "Here is a duck on a light blue background.", {background:"#DDECFF", width:"200px"}] tooltips[2]=["../dynamicindex14/winter.jpg"] tooltips[3]=["../dynamicindex17/bridge.gif", "Bridge to somewhere.", {background:"white", font:"bold 12px Arial"}] return tooltips //do not remove/change this line }(), tooltipoffsets: [20, -30], //additional x and y offset from mouse cursor for tooltips //***** NO NEED TO EDIT BEYOND HERE tipprefix: 'imgtip', //tooltip ID prefixes createtip:function($, tipid, tipinfo){ if ($('#'+tipid).length==0){ //if this tooltip doesn't exist yet return $('<div id="' + tipid + '" class="ddimgtooltip" />').html( '<div style="text-align:center"><img src="' + tipinfo[0] + '" /></div>' + ((tipinfo[1])? '<div style="text-align:left; margin-top:5px">'+tipinfo[1]+'</div>' : '') ) .css(tipinfo[2] || {}) .appendTo(document.body) } return null }, positiontooltip:function($, $tooltip, e){ var x=e.pageX+this.tooltipoffsets[0], y=e.pageY+this.tooltipoffsets[1] var tipw=$tooltip.outerWidth(), tiph=$tooltip.outerHeight(), x=(x+tipw>$(document).scrollLeft()+$(window).width())? x-tipw-(ddimgtooltip.tooltipoffsets[0]*2) : x y=(y+tiph>$(document).scrollTop()+$(window).height())? $(document).scrollTop()+$(window).height()-tiph-10 : y $tooltip.css({left:x, top:y}) }, showbox:function($, $tooltip, e){ $tooltip.show() this.positiontooltip($, $tooltip, e) }, hidebox:function($, $tooltip){ $tooltip.hide() }, init:function(targetselector){ jQuery(document).ready(function($){ var tiparray=ddimgtooltip.tiparray var $targets=$(targetselector) if ($targets.length==0) return var tipids=[] $targets.each(function(){ var $target=$(this) $target.attr('rel').match(/\[(\d+)\]/) //match d of attribute rel="imgtip[d]" var tipsuffix=parseInt(RegExp.$1) //get d as integer var tipid=this._tipid=ddimgtooltip.tipprefix+tipsuffix //construct this tip's ID value and remember it var $tooltip=ddimgtooltip.createtip($, tipid, tiparray[tipsuffix]) $target.mouseenter(function(e){ var $tooltip=$("#"+this._tipid) ddimgtooltip.showbox($, $tooltip, e) }) $target.mouseleave(function(e){ var $tooltip=$("#"+this._tipid) ddimgtooltip.hidebox($, $tooltip) }) $target.mousemove(function(e){ var $tooltip=$("#"+this._tipid) ddimgtooltip.positiontooltip($, $tooltip, e) }) if ($tooltip){ //add mouseenter to this tooltip (only if event hasn't already been added) $tooltip.mouseenter(function(){ ddimgtooltip.hidebox($, $(this)) }) } }) }) //end dom ready } } //ddimgtooltip.init("targetElementSelector") ddimgtooltip.init("*[rel^=imgtip]") And simply modify the font style as i want: tooltips[0]=["red_balloon.gif", "Here is a red balloon<br /> on a white background", {background:"#FFFFFF", color:"black", border:"5px ridge darkblue"}] tooltips[1]=["duck2.gif", "Here is a duck on a light blue background.", {background:"#DDECFF", width:"200px"}] tooltips[2]=["../dynamicindex14/winter.jpg"] tooltips[3]=["../dynamicindex17/bridge.gif", "Bridge to somewhere.", {background:"white", font:"bold 12px Arial"}] And now my problem is I have change the font Arial into Calibri then it works but in Mac enviroment, the font is times new roman. And it didn't follow of what i have assigned of the font style. For example at this line: tooltips[3]=["../dynamicindex17/bridge.gif", "Bridge to somewhere.", {background:"white", font:"bold 12px Arial"}] Arial should be Calibri as i want to. But why won't display in Mac as Calibri. Anybody has an idea on why it won't follow of what i have assigned? I have no problems in Windows. Anybody has an idea why?
  14. Issue was solved. I will post any updates of my workflow just in case people who have the same issue of me will have an idea. I have just played removing the widgets and installing it back in Appearance -> widgets. And then it displays back to the normal or it did function normally. Anyways for now im still in work in progress , and now I'm in a mode of installing wp in the server (not localhost).
  15. So what is your aim?
  16. Thanks for an advice, it's already working. A little minor twist in my tagging. Now my 3rd issue is i have attempted to change the theme from my theme to twentytwelve theme. Just a curious look about the wp core if have done something. Anyway after trying the twentytwelve theme, I have install my theme back and use it as a running theme. Now my question is when i have check the admin panel and see the widgets, it's weird. The widgets are empty which i have installed widgets in my theme (Calendar, Archive, SearchBar) but it's all empty and can't see theme installed in my widget bar in admin panel. But you can see the widget running visible in my theme. I wonder what i have mess. Can anyone help ?
  17. I have added a DTD in my header.php but still won't work. Any idea on how to center in ie with my starker theme.?
  18. Thanks Mate it's already working but it just the display in my ie it didn't put into center. I have read some tutorials about putting some Doctype in header.php in my starker theme, but still no luck. It won't work, can anyone help
  19. Hello i have design a theme and totally done converting the naked starker theme into my designed theme. Now my problem is how to rename the directory folder of starker theme. I attempt to rename it but when i have run it in my localhost it didn't work. How do i change it? I just simple follow this step but still no luck http://www.heliomedia.com/teach/web-4/lesson-2/ Pls help.
  20. If your using Ubuntu. Bluefish is my recommend.
  21. I design a CSS template but i want to see the look of my design using mobile phones but the problem is, I don't have Android or iOS phones. Is it possible to test my layout under w/ my PC.? Is there any application that would run in localhost or if non, how about online. What website you can recommend on? I want to see the output of my design of how its look. Anyone wants to suggest?
  22. OK, so how about the colors?
  23. How was my basic design. It's just for basic. unfinished yet.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.