Jump to content

awkward_clam

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

Everything posted by awkward_clam

  1. I'm getting this error, but I'm not sure how to fix it (on my Wordpress site). Warning: usort() [function.usort]: The argument should be an array in /home2/lushwebs/public_html/4mulaevents/wp-content/themes/dailyedition/includes/talking-points.php on line 20 Warning: Invalid argument supplied for foreach() in /home2/lushwebs/public_html/4mulaevents/wp-content/themes/dailyedition/includes/talking-points.php on line 22 Any help appreciated. Thanks!
  2. K, will keep that in mind. Switching themes anyway. Thanks.
  3. Moderators deleted my question's link for spamming. I don't really understand since it wasn't a keyword link and would have 0 gain for a spammer... ?? nice.. Just a guy lookin for help..
  4. Hey I'm having trouble making lightbox work. I was told on the Wordpress forums that it's because the theme has a ton of script errors.. Here it is: Any advice on how to clean it up? Totally new to this stuff. Thanks
  5. Just replaced the theme from another source, it's gone.
  6. have no idea who weboy is, and that link changes to different random foreign sites
  7. I'm seeing this code from 2 different computers at the very bottom: </script> <script type='text/javascript' src='http://www.yourvancouvermortgagebroker.ca/wp-content/plugins/contact-form-7/jquery.form.js?ver=2.47'></script> <script type='text/javascript' src='http://www.yourvancouvermortgagebroker.ca/wp-content/plugins/contact-form-7/scripts.js?ver=2.4.2'></script> <a href ="http://themes.weboy.org"><img src="http://www.yourvancouvermortgagebroker.ca/wp-content/themes/Minimal/images/blank.gif" height="1" width="1" /></a> </body> </html>
  8. Hey, I have a downloaded theme which appears to have hidden spam link in the footer somewhere, but I'm having a hard time locating the source. Here is the site: www.yourvancouvermortgagebroker.ca At the very bottom of the source, you can see: <script type='text/javascript' src='http://www.yourvancouvermortgagebroker.ca/wp-content/plugins/contact-form-7/jquery.form.js?ver=2.47'></script> <script type='text/javascript' src='http://www.yourvancouvermortgagebroker.ca/wp-content/plugins/contact-form-7/scripts.js?ver=2.4.2'></script> <a href ="http://wp2blog.com"><img src="http://www.yourvancouvermortgagebroker.ca/wp-content/themes/Minimal/images/blank.gif" height="1" width="1" /></a> </body> </html> I've tried de-activating the plugins and it's still there (so it's not a plugin). I've also changed themes and it disappears, so it's only this theme. Here is functions.php: <?php require_once(TEMPLATEPATH . '/epanel/custom_functions.php'); require_once(TEMPLATEPATH . '/includes/functions/comments.php'); require_once(TEMPLATEPATH . '/includes/functions/sidebars.php'); load_theme_textdomain('Minimal',get_template_directory().'/lang'); require_once(TEMPLATEPATH . '/epanel/options_minimal.php'); require_once(TEMPLATEPATH . '/epanel/core_functions.php'); require_once(TEMPLATEPATH . '/epanel/post_thumbnails_minimal.php'); $wp_ver = substr($GLOBALS['wp_version'],0,3); if ($wp_ver >= 2. include(TEMPLATEPATH . '/includes/widgets.php'); ?> and footer.php: <div id="footer" > <div id="footer-content"> <ul id="bottom-menu"> <?php global $is_footer, $page_menu, $category_menu; $is_footer = true; elegant_init(); if (get_option('minimal_home_link') == 'on') { ?> <li <?php if (is_front_page()) echo('class="current_page_item"') ?>><a href="<?php bloginfo('url'); ?>"><?php _e('Home','Minimal'); ?></a></li> <?php }; ?> <?php if ($category_menu <> '<li>No categories</li>') echo($category_menu); ?> <?php echo $page_menu; ?> </ul> <!-- end ul#bottom-menu --> </div> <!-- end #footer-content --> </div> <!-- end #footer --> </div> <!-- end #page-wrap --> <?php include(TEMPLATEPATH . '/includes/scripts.php'); ?> <?php wp_footer(); ?> </body> </html> Where should I look from here? The link switches every once and a while if that's relevant. I've tried a full text search of all the files for the actual link and it never shows up. Thanks
  9. Hey all. I use a WP template and wondering how difficult it would be to add a little image button onto my site. Not sure if this falls into PHP, JS, or CSS Site in question: http://www.lushwebsites.com I want the button to the left of the little thumbnails in the middle of the page (divid= "featured-thumbs") I know sometimes it's difficult customizing themes without messing sh** up, but if it's possible to add a little code and css so that there is just a nice little sign up button on the home page? Cheers, J note: not sure which code to post, if someone will let me know. thanks
  10. Could someone please help me with the syntax for my WordPress page? I want to display a secure header on one page ('apply') Where am I going wrong (this is in my header.php file): <body class="custom"> <div id="wrap"> <div id="top"> <div class="content"> <div id="header"> <?php if (is_page('apply')) { ?> <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>"><img class="logo" src="https://www.yourvancouvermortgagebroker.ca/wp-content/woo_uploads/120-107-logo.png") alt="<?php bloginfo('name'); ?>" /></a> <h1>{ ?><?php bloginfo('name'); ?></h1> <?php } else { ?> <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>"><img class="logo" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a> <h1>{ ?><?php bloginfo('name'); ?></h1> </div> </div> </div> Thanks
  11. I just need it so that the text is automatically cleared when someone clicks on it. Thanks
  12. Here is the page in question: www.yourvancouvermortgagebroker.ca/apply I had the form designed by someone else. When I changed the Input Values for some of the fields, it made it so the text was not cleared when the user clicks on it (if you go to my page, for example, you will see that when you click on "full name" the text stays there, which is not the same for phone number. How do I fix this? (on page) <input type="text" name="fullname" id="fullname" value="Full Name" /><label>Full Name</label> Here's a link to the .js file: http://yourvancouvermortgagebroker.ca/js/apply.js thank you
  13. You, sir, are a baby angel. Thank You so much, made my day. That would have taken me so long to figure out just reading through forums.
  14. Yeah that's it. I already updated the code you gave but I haven't noticed any changes. I really appreciate your help.
  15. Hmmm, didn't change anything yet. So here is what I have: On page: <form name="myform" action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST"> ...... <div id="sixth_step"> <h1>Summary</h1> <h2 style="margin-left:60px">Summary</h2> <div class="form" style="height:240px; width:700px; overflow:scroll; margin:0 auto 0 auto; position:relative"> <table style="position:relative;top:-20px"> <tr><td>Fullname</td><td></td></tr> <tr><td>Date of Birth</td><td></td></tr> <tr><td>Phone</td><td></td></tr> <tr><td>Email</td><td></td></tr> <tr><td>Current Address</td><td></td></tr> <tr><td>Job Title</td><td></td></tr> <tr><td>Annual Income</td><td></td></tr> <tr><td>Income Type</td><td></td></tr> <tr><td>Total Monthly Payments</td><td></td></tr> <tr><td>Total Savings</td><td></td></tr> <tr><td>Co-Applicant Fullname</td><td></td></tr> <tr><td>Co-Applicant Date of Birth</td><td></td></tr> <tr><td>Co-Applicant Phone</td><td></td></tr> <tr><td>Co-Applicant Email</td><td></td></tr> <tr><td>Co-Applicant Current Address</td><td></td></tr> <tr><td>Co-Applicant Job Title</td><td></td></tr> <tr><td>Co-Applicant Annual Income</td><td></td></tr> <tr><td>Co-Applicant Income Type</td><td></td></tr> <tr><td>Co-Applicant Total Monthly Payments</td><td></td></tr> <tr><td>Co-Applicant Total Savings</td><td></td></tr> <tr><td>Purpose of Mortgage</td><td></td></tr> <tr><td>Do you want a</td><td></td></tr> <tr><td>How much is your down payment?</td><td></td></tr> <tr><td>What is the property address (if applicable)</td><td></td></tr> <tr><td>Comments</td><td></td></tr> </table> </div> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input type="hidden" name="sendtoemail" value="hello@wordpresswebsites.ca"> <input type="hidden" name="redirect" value="http://www.yourvancouvermortgagebroker.ca/thanks"> <input class="send submit" type="submit" name="submit_sixth" id="submit_sixth" value="" /> </div> apply.js .... //step 6 $('#submit_sixth').click(function(){ //send information to server alert('Thanks'); document.myform.submit(); }); Only showing an alert box when I click submit });
  16. So points of interest: <form action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST"> <input type="hidden" name="sendtoemail" value="hello@wordpresswebsites.ca"> <input type="hidden" name="redirect" value="http://www.yourvancouvermortgagebroker.ca/thanks"> <input class="send submit" type="submit" name="submit_sixth" id="submit_sixth" value="" /> //step 6 $('#submit_sixth').click(function(){ //send information to server alert('Thanks'); }); What do I change? I'm so bad at this, going to the library today to take out a book. thx
  17. Thanks Here is the on page WordPress code: <!--//////////// Form Area ////////////////--> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script><script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"></script><script type="text/javascript" src="http://webexpedition18.com/download/signup_form_WebExpedition18/js/jquery.inputfocus-0.9.min.js"></script><script type="text/javascript" src="http://www.yourvancouvermortgagebroker.ca/js/apply.js"></script> <!--//////////// Form Area ////////////////--> <div id="container"> <form action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST"> <!-- #first_step --> <div id="first_step"> <h1>Application <span>Step 1/5</span></h1> <div class="form"> <input type="text" name="fullname" id="fullname" value="Full Name" /> <label>Full Name</label> <input type="text" name="dateofbirth" id="dateofbirth" value="dd/mm/yyyy" /><label>Date of Birth</label> <input type="text" name="phone" id="phone" value="Phone" /> <label>Phone Number</label> <input type="text" name="email" id="email" value="Email" /> <label>Email</label> <input type="text" name="currentaddress" id="currentaddress" value="Current Address" /><label>Current Address</label> </div> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input class="submit" type="submit" name="submit_first" id="submit_first" value="" /> </div> <!-- #second_step --> <div id="second_step"> <h1>Application <span>Step 2/5</span></h1> <div class="form"> <input type="text" name="JobTitle" id="JobTitle" value="Job Title" /> <label>Job Title</label> <input type="text" name="AnnualIncome" id="AnnualIncome" value="Annual Income" /> <label>Annual Income</label> <select id="IncomeType" name="IncomeType" style="margin-top:-30px">> <option value="ChooseOne">Choose One</option> <option value="Salary">Salary</option> <option value="Commission">Commission</option> <option value="Business">Business Owner</option> <option value="Other">Other</option> </select> <label class="selectlb">Income Type </label> <input type="text" name="TotalMonthlyPayments" id="TotalMonthlyPayments" value="Monthly Payments" /> <label class="selectlb">Total Monthly Payments (credit cards, car)</label> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input type="text" name="TotalSavings" id="TotalSavings" value="Total Savings" /><label>Total Savings</label> </div> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input class="submit" type="submit" name="submit_second" id="submit_second" value="" /> </div> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <!-- #third_step --> <div id="third_step"> <h1>Step 3 -- <span>Co-Applicant</span></h1> <div class="form"> <input type="text" name="cfullname" id="cfullname" value="Full Name" /> <label>Fullname</label> <input type="text" name="cdateofbirth" id="cdateofbirth" value="dd/mm/yyyy" /><label>Date of Birth</label> <input type="text" name="cphone" id="cphone" value="Phone" /> <label>Phone Number</label> <input type="text" name="cemail" id="cemail" value="Email" /> <label>Email</label> <input type="text" name="ccurrentaddress" id="ccurrentaddress" value="Current Address" /><label>Current Address</label> </div> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input class="submit" type="submit" name="submit_third" id="submit_third" value="" /> </div> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <!-- #fourth_step --> <div id="fourth_step"> <h1>Step 4 -- <span>Co-Applicant</span></h1> <div class="form"> <input type="text" name="cJobTitle" id="cJobTitle" value="Job Title" /> <label>Job Title</label> <input type="text" name="cAnnualIncome" id="cAnnualIncome" value="Annual Income" /> <label>Annual Income</label> <select id="cIncomeType" name="cIncomeType" style="margin-top:-30px">> <option value="chooseone">Choose One</option> <option value="Salary">Salary</option> <option value="Commission">Commission</option> <option value="Business">Business Owner</option> <option value="Other">Other</option> </select> <label class="selectlb">Income Type </label> <input type="text" name="cTotalMonthlyPayments" id="cTotalMonthlyPayments" value="Monthly Payments" /> <label class="selectlb">Total Monthly Payments (credit cards, car)</label> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input type="text" name="cTotalSavings" id="cTotalSavings" value="Total Savings" /><label>Total Savings</label> </div> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input class="submit" type="submit" name="submit_fourth" id="submit_fourth" value="" /> </div> <!-- #fifth_step --> <div id="fifth_step"> <h1>Application <span>Step 5/5</span></h1> <div class="form"> <select id="PurposeofMortgage" name="PurposeofMortgage"> <option value="chooseone">Choose One</option> <option value="Pre-Approval">Pre-Approval</option> <option value="Purchase">Purchase</option> <option value="Refinance">Refinance</option> </select> <label class="selectlb">Purpose of Mortgage</label> <select id="DoYouWant" name="DoYouWant"> <option value="chooseone">Choose One</option> <option value="Variable">Variable</option> <option value="Fixed">Fixed</option> <option value="Not sure">Not sure</option> </select> <label class="selectlb">Type of Mortgage</label> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input type="text" name="downPayment" id="downPayment" value="How much is your down payment?" /><label>How much is your down payment?</label> <input type="text" name="propertyAddress" id="propertyAddress" value="" /><label>What is the property address (if applicable)?</label> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <textarea name="comments" id="comments" cols="40"></textarea><label>Any other comments?</label> </div> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input class="submit" type="submit" name="submit_fifth" id="submit_fifth" value="" /> </div> <!-- #sixth_step --> <div id="sixth_step"> <h1>Summary</h1> <h2 style="margin-left:60px">Summary</h2> <div class="form" style="height:240px; width:700px; overflow:scroll; margin:0 auto 0 auto; position:relative"> <table style="position:relative;top:-20px"> <tr><td>Fullname</td><td></td></tr> <tr><td>Date of Birth</td><td></td></tr> <tr><td>Phone</td><td></td></tr> <tr><td>Email</td><td></td></tr> <tr><td>Current Address</td><td></td></tr> <tr><td>Job Title</td><td></td></tr> <tr><td>Annual Income</td><td></td></tr> <tr><td>Income Type</td><td></td></tr> <tr><td>Total Monthly Payments</td><td></td></tr> <tr><td>Total Savings</td><td></td></tr> <tr><td>Co-Applicant Fullname</td><td></td></tr> <tr><td>Co-Applicant Date of Birth</td><td></td></tr> <tr><td>Co-Applicant Phone</td><td></td></tr> <tr><td>Co-Applicant Email</td><td></td></tr> <tr><td>Co-Applicant Current Address</td><td></td></tr> <tr><td>Co-Applicant Job Title</td><td></td></tr> <tr><td>Co-Applicant Annual Income</td><td></td></tr> <tr><td>Co-Applicant Income Type</td><td></td></tr> <tr><td>Co-Applicant Total Monthly Payments</td><td></td></tr> <tr><td>Co-Applicant Total Savings</td><td></td></tr> <tr><td>Purpose of Mortgage</td><td></td></tr> <tr><td>Do you want a</td><td></td></tr> <tr><td>How much is your down payment?</td><td></td></tr> <tr><td>What is the property address (if applicable)</td><td></td></tr> <tr><td>Comments</td><td></td></tr> </table> </div> <!-- clearfix --><div class="clear"></div><!-- /clearfix --> <input type="hidden" name="sendtoemail" value="hello@wordpresswebsites.ca"> <input type="hidden" name="redirect" value="http://www.yourvancouvermortgagebroker.ca/thanks"> <input class="send submit" type="submit" name="submit_sixth" id="submit_sixth" value="" /> </div> </form> <!-- ////////////////////////////// Form area ///////////////////////// --> </div> <div id="progress_bar"> <div id="progress"></div> <div id="progress_text">0% Complete</div> </div> And here is the apply.js file: $(function(){ //original field values var field_values = { //id : value 'fullname' : 'Fullname', 'dateofbirth' : 'Date of Birth', 'phone' : 'Phone', 'email' : 'Email', 'currentaddress' : 'Current Address', 'JobTitle' : 'Job Title', 'AnnualIncome' : 'Annual Income', 'IncomeType' : 'Income Type', 'TotalMonthlyPayments' : 'Total Monthly Payments', 'TotalSavings' : 'Total Savings', 'cfullname' : 'Fullname', 'cdateofbirth' : 'Date of Birth', 'cphone' : 'Phone', 'cemail' : 'Email', 'ccurrentaddress' : 'Current Address', 'cJobTitle' : 'Job Title', 'cAnnualIncome' : 'Annual Income', 'cIncomeType' : 'Income Type', 'cTotalMonthlyPayments' : 'Total Monthly Payments', 'cTotalSavings' : 'Total Savings', 'PurposeofMortgage' : 'Purpose of Mortgage', 'DoYouWant' : 'Do you want a', 'downPayment' : 'How much is your down payment?', 'propertyAddress' : '', 'comments' : 'Comments' }; var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/; //inputfocus $('input#fullname').inputfocus({ value: field_values['fullname'] }); $('input#dateofbirth').inputfocus({ value: field_values['dateofbirth'] }); $('input#phone').inputfocus({ value: field_values['phone'] }); $('input#email').inputfocus({ value: field_values['email'] }); $('input#currentaddress').inputfocus({ value: field_values['currentaddress'] }); $('input#JobTitle').inputfocus({ value: field_values['JobTitle'] }); $('input#AnnualIncome').inputfocus({ value: field_values['AnnualIncome'] }); $('input#IncomeType').inputfocus({ value: field_values['IncomeType'] }); $('input#TotalMonthlyPayments').inputfocus({ value: field_values['TotalMonthlyPayments'] }); $('input#TotalSavings').inputfocus({ value: field_values['TotalSavings'] }); $('input#cfullname').inputfocus({ value: field_values['cfullname'] }); $('input#cdateofbirth').inputfocus({ value: field_values['cdateofbirth'] }); $('input#cphone').inputfocus({ value: field_values['cphone'] }); $('input#cemail').inputfocus({ value: field_values['cemail'] }); $('input#ccurrentaddress').inputfocus({ value: field_values['ccurrentaddress'] }); $('input#cJobTitle').inputfocus({ value: field_values['cJobTitle'] }); $('input#cAnnualIncome').inputfocus({ value: field_values['cAnnualIncome'] }); $('input#cIncomeType').inputfocus({ value: field_values['cIncomeType'] }); $('input#cTotalMonthlyPayments').inputfocus({ value: field_values['cTotalMonthlyPayments'] }); $('input#cTotalSavings').inputfocus({ value: field_values['cTotalSavings'] }); $('input#PurposeofMortgage').inputfocus({ value: field_values['PurposeofMortgage'] }); $('input#DoYouWant').inputfocus({ value: field_values['DoYouWant'] }); $('input#downPayment').inputfocus({ value: field_values['downPayment'] }); $('input#propertyAddress').inputfocus({ value: field_values['propertyAddress'] }); $('input#comments').inputfocus({ value: field_values['comments'] }); //reset progress bar $('#progress').css('width','0'); $('#progress_text').html('0% Complete'); //first_step $('form').submit(function(){ return false; }); //step 1 $('#submit_first').click(function(){ //remove classes $('#first_step input').removeClass('error').removeClass('valid'); //ckeck if inputs aren't empty var fields = $('#first_step input[type=text]'); var error = 0; fields.each(function(){ var value = $(this).val(); if( value.length<1 || value==field_values[$(this).attr('id')] || ( $(this).attr('id')=='email' && !emailPattern.test(value) ) ) { $(this).addClass('error'); $(this).effect("shake", { times:3 }, 50); error++; } else { $(this).addClass('valid'); } }); if(!error) { //update progress bar $('#progress_text').html('20% Complete'); $('#progress').css('width','68px'); //slide steps $('#first_step').slideUp(); $('#second_step').slideDown(); } else return false; }); //step 2 $('#submit_second').click(function(){ //remove classes $('#second_step input').removeClass('error').removeClass('valid'); var fields = $('#second_step input[type=text]'); var error = 0; fields.each(function(){ var value = $(this).val(); if( value.length<1 || value==field_values[$(this).attr('id')]) { $(this).addClass('error'); $(this).effect("shake", { times:3 }, 50); error++; } else { $(this).addClass('valid'); } }); if(!error) { //update progress bar $('#progress_text').html('40% Complete'); $('#progress').css('width','136px'); //slide steps $('#second_step').slideUp(); $('#third_step').slideDown(); } else return false; }); //step 3 $('#submit_third').click(function(){ //remove classes $('#third_step input').removeClass('error').removeClass('valid'); //ckeck if inputs aren't empty var fields = $('#third_step input[type=text]'); var error = 0; fields.each(function(){ var value = $(this).val(); if( value.length<1 || value==field_values[$(this).attr('id')] || ( $(this).attr('id')=='cemail' && !emailPattern.test(value) ) ) { $(this).addClass('error'); $(this).effect("shake", { times:3 }, 50); error++; } else { $(this).addClass('valid'); } }); if(!error) { //update progress bar $('#progress_text').html('60% Complete'); $('#progress').css('width','204px'); //slide steps $('#third_step').slideUp(); $('#fourth_step').slideDown(); } else return false; }); //step 4 $('#submit_fourth').click(function(){ //remove classes $('#fourth_step input').removeClass('error').removeClass('valid'); var fields = $('#fourth_step input[type=text]'); var error = 0; fields.each(function(){ var value = $(this).val(); if( value.length<1 || value==field_values[$(this).attr('id')]) { $(this).addClass('error'); $(this).effect("shake", { times:3 }, 50); error++; } else { $(this).addClass('valid'); } }); if(!error) { //update progress bar $('#progress_text').html('80% Complete'); $('#progress').css('width','272px'); //slide steps $('#fourth_step').slideUp(); $('#fifth_step').slideDown(); } }); // step 5 $('#submit_fifth').click(function(){ //remove classes $('#fifth_step input').removeClass('error').removeClass('valid'); var fields = $('#fifth_step input[type=text]'); var error = 0; fields.each(function(){ var value = $(this).val(); if( $(this).attr('id')=='downPayment' && (value.length<1 || value==field_values[$(this).attr('id')])) { $(this).addClass('error'); $(this).effect("shake", { times:3 }, 50); error++; } else { $(this).addClass('valid'); } }); if(!error) { //update progress bar $('#progress_text').html('100% Complete'); $('#progress').css('width','339px'); //prepare the fourth step var fields = new Array( $('#fullname').val(), $('#dateofbirth').val(), $('#phone').val(), $('#email').val(), $('#currentaddress').val(), $('#JobTitle').val(), $('#AnnualIncome').val(), $('#IncomeType').val(), $('#TotalMonthlyPayments').val(), $('#TotalSavings').val(), $('#cfullname').val(), $('#cdateofbirth').val(), $('#cphone').val(), $('#cemail').val(), $('#ccurrentaddress').val(), $('#cJobTitle').val(), $('#cAnnualIncome').val(), $('#cIncomeType').val(), $('#cTotalMonthlyPayments').val(), $('#cTotalSavings').val(), $('#PurposeofMortgage').val(), $('#DoYouWant').val(), $('#downPayment').val(), $('#propertyAddress').val(), $('#comments').val() ); var tr = $('#sixth_step tr'); tr.each(function(){ //alert( fields[$(this).index()] ) $(this).children('td:nth-child(2)').html(fields[$(this).index()]); }); //slide steps $('#fifth_step').slideUp(); $('#sixth_step').slideDown(); }else{ return false; } }); //step 6 $('#submit_sixth').click(function(){ //send information to server alert('Thanks'); }); }); Mod edit: . . . tags added.
  18. Hey I'm really new at this so I hired someone to help me make a nice form, but it doesn't send it to my email and now he has gone MIA. Here is the site in question: www.yourvancouvermortgagebroker.ca The application has 5 pages, with the 6th being a summary. I need that summary to be sent when the user clicks "submit". Please give this noob some detailed instructions as my head is about to asplode. I have a custom .js file that I am using, there is also a bluemail script which might help, but obviously I am implementing something wrong. Thanks!!!!
  19. How about here: <div style="text-align: center; background-color: #fff; color: #000; border: 1px solid #000; margin: 10px; padding: 10px; width: 450px;"> <p><strong style="font-size: 150%;"><?php echo wqp_escape_string($title); ?></strong></p> <?php if (!empty($image)): ?> <p><img src="<?php echo wqp_escape_string($image); ?>" alt="<?php echo wqp_escape_string($title); ?>" /></p> <?php endif; ?> <p><?php echo wqp_escape_string($desc); ?></p> </div> Sorry, this is really like trying to teach english to a dog.
  20. Hey, I want to start by saying this is the first time I've ever looked at PHP. I'm using a Wordpress plugin from http://www.netconcepts.com/wordpress-quiz-plugin/ The user answers a few questions, and based off that, they get a results sheet with their personality type. The only issue is that none of the line breaks that I've used in the results show up. It's just one big paragraph (even when in the editing stage, I've made it look all nice). There's no plugin support for this. I think it has something to do with this file maybe... "<?php /* Copyright © 2007 Andrew Shell (http://blog.andrewshell.org) and Netconcepts (http://www.netconcepts.com) WordPress Quiz Plugin is released under the GNU General Public License (GPL) http://www.gnu.org/licenses/gpl.txt */ class WQP_Factory { function add_quiz_type($type, $typename, $classname, $classpath) { if (!isset($GLOBALS['WQP_Factory']['QUIZ_TYPES']) || !is_array($GLOBALS['WQP_Factory']['QUIZ_TYPES'])) { $GLOBALS['WQP_Factory']['QUIZ_TYPES'] = array(); } $GLOBALS['WQP_Factory']['QUIZ_TYPES'][$type] = array( 'type' => $type, 'typename' => $typename, 'classname' => $classname, 'classpath' => $classpath ); } function get_quiz_types() { if (!isset($GLOBALS['WQP_Factory']['QUIZ_TYPES']) || !is_array($GLOBALS['WQP_Factory']['QUIZ_TYPES'])) { $GLOBALS['WQP_Factory']['QUIZ_TYPES'] = array(); } return $GLOBALS['WQP_Factory']['QUIZ_TYPES']; } function by_id($quiz_id) { require_once dirname(__FILE__) . "/wqp-quiz.php"; global $wpdb; $quiz_id = intval($quiz_id); $sql = "SELECT * FROM " . $wpdb->wqp_quizzes . " WHERE quiz_id = {$quiz_id} LIMIT 1"; $row = $wpdb->get_row($sql); $quiz_type = strtolower($row->quiz_type); $quiz_types = WQP_Factory::get_quiz_types(); if (empty($quiz_type)) { return null; } elseif (!isset($quiz_types[$quiz_type])) { die("Invalid Quiz Type: {$quiz_type}"); } $quiz_class = $quiz_types[$quiz_type]['classname']; $quiz_file = $quiz_types[$quiz_type]['classpath']; require_once $quiz_file; $quiz = new $quiz_class($row->quiz_id); $data = unserialize($row->quiz_data); $quiz->assign_all($data); return $quiz; } function by_type($quiz_type) { require_once dirname(__FILE__) . "/wqp-quiz.php"; $quiz_type = strtolower($quiz_type); $quiz_types = WQP_Factory::get_quiz_types(); if (!isset($quiz_types[$quiz_type])) { die("Invalid Quiz Type: {$quiz_type}"); } $quiz_class = $quiz_types[$quiz_type]['classname']; $quiz_file = $quiz_types[$quiz_type]['classpath']; require_once $quiz_file; $quiz = new $quiz_class(); $quiz->assign_defaults(); return $quiz; } } if (!function_exists('scandir')) { function scandir($directory, $sorting_order = 0) { if (!is_string($directory)) { user_error('scandir() expects parameter 1 to be string, ' . gettype($directory) . ' given', E_USER_WARNING); return; } if (!is_int($sorting_order) && !is_bool($sorting_order)) { user_error('scandir() expects parameter 2 to be long, ' . gettype($sorting_order) . ' given', E_USER_WARNING); return; } if (!is_dir($directory) || (false === $fh = @opendir($directory))) { user_error('scandir() failed to open dir: Invalid argument', E_USER_WARNING); return false; } $files = array (); while (false !== ($filename = readdir($fh))) { $files[] = $filename; } closedir($fh); if ($sorting_order == 1) { rsort($files); } else { sort($files); } return $files; } } // Escape output string function wqp_escape_string($value) { $escaped = $value; $escaped = wp_specialchars($escaped, true); return $escaped; } // Filter input string function wqp_filter_string($value) { $filtered = $value; $filtered = strip_tags($filtered); $filtered = stripslashes($filtered); return $filtered; } function wqp_safe_array(&$value, $default_value = array()) { if (!isset($default_value) || !is_array($default_value)) { $default_value = array(); } return (isset($value) && is_array($value) ? $value : $default_value); } function wqp_safe_value(&$value, $default_value = '') { return (isset($value) ? $value : $default_value); } function wqp_the_content($content) { preg_match_all( '!\[quiz=([0-9]+)\]!isU', $content, $matches ); foreach (array_keys($matches[0]) as $i) { $quiz = WQP_Factory::by_id($matches[1][$i]); if (!empty($quiz) && is_object($quiz)) { if (isset($_POST['answer']) && is_array($_POST['answer'])) { $content = str_replace($matches[0][$i], $quiz->fetch_answer($_POST['answer']), $content); } else { $content = str_replace($matches[0][$i], $quiz->fetch_quiz(), $content); } } } return $content; } function wqp_the_title($title) { preg_match_all( '!\[quiz=([0-9]+)\]!isU', $title, $matches ); foreach (array_keys($matches[0]) as $i) { $quiz = WQP_Factory::by_id($matches[1][$i]); if (!empty($quiz) && is_object($quiz)) { $title = str_replace($matches[0][$i], $quiz->get_title(), $title); } } return $title; } function wqp_get_query_template($template_dir, $type) { $template = ''; if (file_exists(TEMPLATEPATH . "/{$type}.php")) { $template = TEMPLATEPATH . "/{$type}.php"; } elseif (file_exists($template_dir . "/{$type}.php")) { $template = $template_dir . "/{$type}.php"; } return apply_filters("wqp_{$type}_template", $template); } function wqp_fetch_template($template_dir, $type, $params = null) { if (!empty($params) && is_array($params)) { extract($params); } $template = wqp_get_query_template($template_dir, $type); if (file_exists($template)) { ob_start(); include($template); $contents = ob_get_contents(); ob_end_clean(); } else { $contents = ''; } return $contents; } function wqp_plugins_loaded() { WQP_Factory::add_quiz_type('personality', 'Personality', 'WQP_Quiz_Personality', dirname(__FILE__) . '/quizzes/personality.php'); do_action('wqp_register_quiz_types');" I might have to add an nlbr somewhere or something??? Let me know how to proceed. 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.