Jump to content

Chrisj

Members
  • Posts

    551
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Chrisj

  1. Now sarcasm. Please don't reply again. You obviously just enjoy acting superior instead of helpful
  2. Putting me down isn't helpful. Any other help would be appreciated.
  3. Thanks for your reply. I'm learning all the time. I believe I should add this code, but I don't know where it should go, and what else I need. var username = document.myform.contact_name.value; if (/^[a-z]+([ \'\-][a-z]+)*$/gi.test(username)) {
  4. The script only shows this: <tr> <td>Contact Name:</td> <td><input type='text' size='40' name='contact_name'> </td> </tr> Can you help me add code to make Contact Name field mandatory? thanks
  5. I have this Form that works successfully (I know it's not state-of-the-art). I simply want to add code to make Contact Name field mandatory. I'm not sure if I should post all the code. Can you help me? thanks <script type="text/javascript"> function checkemail(){ var str=document.myform.email_address.value; var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (filter.test(str)) testresults=true; else { alert("Please input a valid email address!"); return false; } if(document.myform.agree.checked!=1) { alert("Please check the box to agree to the Terms."); return false; } if(document.myform.ans.value.toLowerCase()!="white") { alert("Please answer security question correctly: Black or White?"); return false; } return true; } </script>
  6. Thanks for the replies/help. Here is the inner_upload_video-form.htm script page code: <snip - removed hundreds of lines of 3rd party script> Please let me know what else I can provide. Thanks again
  7. Thanks for your willingness to help me. Much appreciated. Regarding "What have I got so far"? I've got the phpmotion script pages. I could post the page code here, if that's what your asking. Thanks for any help.
  8. Thanks for that help. Much appreciated. In the phpmotion script a logged-in web visitor can enter a Description into a text field, and then proceed to upload a video file (via Browse, Select, Upload). After it's been uploaded, the Video file can be found, from searching on the web site, and the Description appears next to the Video file Thumbnail. I'd like to get help so that the link for the uploaded Document (see initial posting in this thread) appears with the search results: Description and Thumbnail. Any additional help will be appreciated.
  9. I'm using a php script(phpmotion), it has a page where a logged-in web visitor can enter a description into a text field, I'd like to add a function to the html page where the web vistor can Browse his computer, Select a document file from his computer, and Upload it (into a folder on my server?). What would you recommend?? Can someone help me with coding? Thanks p.s. Additionally a link is created of the uploaded document location somehow.
  10. I have a php site and am getting some spam via my registration page although it has a CAPTCHA image. Some suggested blocking certain countries who they believed were the most notorious spammers. They directed me to this page: http://www.asiteaboutnothing.net/c_block-countries.html where the author suggests code like this: SetEnvIf CF-IPCountry CN BuzzOff=1 SetEnvIf CF-IPCountry RU BuzzOff=1 SetEnvIf CF-IPCountry IN BuzzOff=1 Order allow,deny Allow from all Deny from env=BuzzOff A commentor on that page said this; "wondering how I might be able to do basically the opposite, which would be to set htaccess to only allow visitors from specific countries...would like to restrict it to only US visitors without listing every other country on the planet. My gut says this should work: SetEnvIf CF-IPCountry US IsUSA=1 Order deny,allow Deny from all Allow from env=IsUSA " Has anyone had success with these types of approaches? Do you think this code can block all but the USA. I'd be interested in targeting only usa visitors to my site. Can you provide some insight or your opinion on this subject? Do you have a better solution? Thanks.
  11. Can you give me an example of how I'd use an image with this code? Thanks
  12. Thanks for your reply. I'd like them to be bigger buttons (with the text) add color and rounded corners.
  13. I'd like to improve the appearance of three buttons on an html page. I believe this is the code: <input type="submit" name="purchase" value="Use Remaining Credits" style="margin:7px 0" style="padding:1px 2px 1px 2px" rel="gb_page_center[600, 635] "> <input type="button" name="search" value="Get New Credits" onclick="window.location.href='newcredits.php';" style="margin:7px 0" style="padding:1px 2px 1px 2px"> <input type="button" name="search" value="Search Again Now" onclick="window.location.href='page.php??page=12';" style="margin:7px 0" style="padding:1px 2px 1px 2px"> How can I add more attractive buttons, which would include the text "Use Remaining Credits", etc.? Can you give me a code example? Thanks
  14. Someone had helped me set up a basic Contact Form that simply sends the info to an email address upon submission, and helped add the functionality of a CAPTCHA, and a function to Agree To Terms. Well, instead of Captcha, a simple question is posed in the Form: Is Fire Hot or Cold? Anyway, I plugged in the suggested lines of code into the html form, and the accompanying very simple php handler (below). After answering the question (wrong), the user exits to a blank page that simply says "wrong answer". I'd like to have the words "Wrong Answer" appear on the Contact Form page, instead of exiting. And I'd like to add a link to the Agree To Terms, so the user can read the terms they are agreeing to, and also not allow a user to submit/proceed until he agrees. I'm sure these are very simple tweaks. Please let me know if you're interested in helping me "have the words "Wrong Answer" appear on the Contact Form page, instead of exiting" and "add a link to the Agree To Terms, so the user can read the terms they are agreeing to, etc.". Thanks <?php $mailto = 'email@email.com'; $mailsubj = "Contact Form submission"; $mailhead = "From:CForm\n"; $mailbody = "--- Contact form results ---\n"; foreach($_REQUEST as $key => $value) { if($key != 'PHPSESSID') { $mailbody .= $key.": ".$value."\n"; } } if(isset($_POST['ans']) && $_POST['ans']!='hot') exit('Wrong answer'); if(empty($_POST['agree']) || $_POST['agree'] != 'agree') { echo "If you agree with the terms, check the Agree check box"; exit; } $mailbody .= date('Y-m-d H:i:s',strtotime("now")); mail($mailto, $mailsubj, $mailbody, $mailhead); echo "<h2>Thanks!</h2>" //print_r($_REQUEST); ?>
  15. Thanks for your reply. To reply to your "need to find where the file is being created", the file is being "created" in the html (below - index.html). the script names each recording with the file name "VideoZ". Each time a recording is made it is saved as VideoZ, therefore replacing the previous recording each time. I'd like to save all recordings, not just have the latest one replace the previous one. Do I need to add some php somewhere to accomplish giving each recording a unique name? Any help will be appreciated. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>recorder</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="js/swfobject.js"></script> </head> <body bgcolor="#ffffff"> <div id="recorder"></div> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("recorder.swf", "recorder", "620", "470", "9", "#000000"); so.addParam('flashvars','filename=VideoZ&rtmpPath=rtmp://67.xxx.xxx.xxx/vid/&finishURL=player.html') so.write("recorder"); // ]]> </script> </body> </html>
  16. I have purchased a script that allows a web page visitor to record via their web cam. When the user selects 'stop recording" he's automatically taken to the player page and can play the video named VideoZ. The Player page code is below. What code can I add that will rename the file name VideoZ and give the recording a unique file name upon the user selecting "Save"? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>check recorded video</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="js/swfobject.js"></script> </head> <body bgcolor="#ffffff"> <div id="player"></div> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("player.swf", "player", "640", "480", "9", "#000000"); so.addParam('flashvars','file=VideoZ&streamer=rtmp://67.xxx.xxx.xxx/videos'); so.write("player"); // ]]> </script> </body> </html>
  17. I'm looking for some code to help me begin my quest to put a flash player on a web page that records the user via webcam and then store the recording in Amazon S3. Any help would be appreciated.
  18. I'm using this php web script and would like to know what happens upon log-in. I see "will auto hide when logged in". Does this mean the log-in box disappears after log-in? Does it get replaced with something? Can you read the code below and tell me? If so, what replaces it? Thanks. <!-- start of login box - will auto hide when logged in--> <div id="IndexLoginGoldBox_1"> <!--[onload_300;block=div;when [var.show_login_box]=1;comm]--> <div id="IndexLoginGoldBox_2"> <div id="IndexLoginGoldBox_content"> <div id="RelatedVideosTitle"> <span class="font5_14">Login and start Uploading!</span></div> <ul class="IndexLoginGoldBox_list"> <form name="login" action="login.php" method="POST" class="FormIndexLogin"> <li>Username <input type="text" name="user_name_login" size="20" /> </li> <li>Password <input type="password" name="password_login" size="20" /> </li> <li> <input type="hidden" name="submitted" value="yes" /> <input type="submit" value="Login Now" name="logi_n" /> </li> </form> </ul> </div> </div> </div> <!-- end of login box -->
  19. With some great forum help my nav menu shows nav options in the main menu, and when the user logs-in, it lines up additional menu choices all on a horizontal line. The issue I'd like to fix is to make the "log-in" menu choice disappear when the user is logged-in. If you can overlook all the font tags, in the code below, I'd greatly appreciate any help. <!--Begin Sub-Navigation. This only appears when a user is logged in.--> <div class="sub-nav"> <img src="themes/default/images/arrow-red.gif"> <a href="members/[var.user_name]"><font color="#333333" face="verdana">my account</font></a> <img src="themes/default/images/arrow-red.gif"> <a href="credits.php"><font color="#333333" face="verdana">[var.lang_my_credits]: [var.member_credits]</font></a> <img src="themes/default/images/arrow-red.gif"> <a href="logout.php"><font color="#000000" face="verdana">log out</font></a> <!--[onload;block=div;when [var.loggedin]=1;comm]--> </div> <!--Begin Sub-Navigation. This only appears when a user is logged in.--> <div class="sub-nav1"> <p class="account"> <span id="welc"><span style="color:#333333; font-size: 12px; font-face=verdana;"> Welcome! You Are Now Logged In.</span></p> <!--[onload;block=div;when [var.loggedin]=1;comm]--> </div> <div class="menu1"> <a href="[var.base_url]"> <font color="#333333" font face="verdana">home</font></a> <a href="page.php?page=16"><font color="#333333" face="verdana">faq</font></a> <a href="[var.base_url]/join.php"><font color="#333333" face="verdana">register</font></a> <a href="[var.login_out_link]"><font color="#333333" face="verdana">log in</font></a> <a href="page.php?page=9"><font color="#333333" face="verdana">search</font></a> <a href="page.php?page=6"><font color="#333333" face="verdana">upload</font></a> </div> .menu1 { font-size: 11px; font-family: verdana; text-align: right; float: right; color: #333333; margin: 0px 5px 0px 0px; padding: 0px 0px 0px 0px; } .sub-nav { font-size: 11px; font-family: verdana; text-align: right; color: #333333; margin: 0px 22px 0px 0px; padding: 0px 0px 0px 0px; } .sub-nav-links { color: #; font-size: 14px; margin: 0px 0px -20px 0px; } .sub-nav1 { font-size: 11px; font-family: verdana; text-align: right; float: left; color: #333333; margin: 0px 22px 0px 0px; padding: 0px 0px 0px 0px; } .sub-nav {float:right} .sub-nav1 p { margin:0 font-size: 11px; font-family: verdana; color: #333333; } #welc{ float left; } .account font-size: 11px; font-family: arial; color: #333333; }
  20. Thanks, but none of those affected the color of the text. Any other help/suggestions would be appreciated.
  21. This is the php file code to a video jukebox add-on script, for a popular web video script. I'd like to modify it so the "Click Here" text font and color can be changed. Can you help or suggest what I can do to accomplish this? Thanks <?php include("../classes/config.php");?> <artworkinfo> <? $query = "select * from videos where viewtime<>'0000-00-00 00:00:00' and public_private='public' AND approved ='yes' AND promoted ='yes' limit 10"; // Max 10!"; $db=mysql_connect ($dbhost,$dbusername,$dbpassword) or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ($dbname); $num_rows = mysql_num_rows(mysql_query("select * from videos WHERE public_private = 'public' AND promoted = 'yes' AND approved ='yes'")); $result = mysql_query($query) or die ('Query Error: ' . mysql_error()); while ($results = mysql_fetch_array($result)) { ?> <albuminfo> <artLocation>../uploading/thumbs/<?=$results['video_id']; ?>.jpg</artLocation> <artist>Click Here!!</artist> <albumName><?=$results['title']; ?></albumName> <artistLink>../play.php?vid=<?=$results['indexer']; ?>&src=jukebox</artistLink> <albumLink>../play.php?vid=<?=$results['indexer']; ?>&src=jukebox</albumLink> </albuminfo> <? } mysql_close(); ?> </artworkinfo>
  22. I'm using this web script that works successfully. It has a section where I can add a text box to appear upon a web user log-in. Instead, what I'd like to do is make the log-in box (form) disappear as soon as the user logs-in. Can you tell where(how) I can change this code to accomplish that? Thanks for any help. <br/> <form action="login.php" method="post" accept-charset="UTF-8" class="middletext"> <label><font class="font4_15">Username</font></label><span class="username"><input type="text" name="user_name_login" size="9" style="width:70px;" /> <label><font class="font4_15">Password</font></label><span class="password"><input type="password" name="password_login" size="9" style="width:70px;" /> <input type="submit" value="[var.lang_login_now]" class="btn_vid1" /></a><!--<a href="login.php"></a>--> <input type="hidden" name="submitted" value="yes" /> <input type="hidden" name="remember_me" value="remember_me" /> </form> </td></tr></table> <!--Begin Text Box--> <!--<div id="txt-box">--> <table id="tabX44"> <tbody> <tr><td> <!--<div class="header-narrow">Text Box</div>--> <div class="txt-narrow"> </div> <!--<div class="container-narrow-bottom"></div>--> <!--[onload_337;block=div;when [var.show_login_box]!=1;comm]--> </td></tr> </tbody> </table> <!--</div>--> <!--End Text Box-->
  23. Thanks for those replies. Live host testing would be preferable because I need to know the changes work with the script. Such as making changes to the search functioning. As I've named the files in my first post, would you be interested in giving me an example of what I would add to the .htaccess file? Thanks again
  24. I'm using a popular PHP script for my web site, which uses main_1.htm for the header and footer, and inner_index.htm for the main part of the home page. Also, of course it has index.php. How can I set up a duplicates of these files to work on and test changes to the home page, before I actually deploy the changes on to my live site's home page? Thanks
×
×
  • 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.