Jump to content

virtualadz

Members
  • Posts

    489
  • Joined

  • Last visited

Posts posted by virtualadz

  1. can't it be done in one codesomething likeif( strlen($enquiry) < 50 > 400 ) { $messageStack->add('contact_us', 'Please type some more text or decrease some'); $error = true;}

  2. ok i will look back at it after sometime. for now i think i should proceedwith my next question:i have my email box set to be filled, but the enquiry and name can be sent empty , is a way there to make it required "to enter at least 50 characters into the enquiry box, but not more than 400" i will come to name box later, this is the code i could come up to: here min is 50 how to set up max as 400 and also anything wrong in thise code

    if( strlen($enquiry) < 50 ) {        $messageStack->add('contact_us', 'Please type some more text to send this form');        $error = true;}

    and in the body

    <?php  if ($messageStack->size('contact_us') > 0) {?>      <tr>        <td><?php echo $messageStack->output('contact_us'); ?></td>      </tr><?php  }?>

  3. ok here i go , one more question, i did a liitle mistake yesterday, i downloaed paint.net full, but then by mistake after downloading was finished i presses the don't run button instead of run the application. i assume that these files are installed in a temporary directory, could i get hold of that so as not to download paint.net once again

  4. ok i am going to download photoshop cs2 trial from adobe now, which one should i use, i.e. one is under Print publishingand othe other photoshop cs2 is underWeb design, development and publishing

  5. so now i get it, well, tep_image_submit is a core part of osc and i did rather stay away from that/ taking your solution, think i am left with only that, but since the tep_image_submit may be connected with security feature i am really afraid to use html there, really confused??

  6. hello im new here. i doubt you guys care, and im sorry for cluttering up the forums with my n00bie message. but i just wanna thank you guys for this website, its truly awesome and hopefully ill be able to pass my multimedia exam. now i just need some people to do photoshop, dreamweaver, cool edit pro, and some 3d studio max tutorials  :)

    that's true , i think some tut's should be done in photoshop and paint.net or in other words programs making eye-catching images. atleast a few.
  7. as far as i can see these are 2 codes<td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_WHOLESALE, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"><td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>i dont want to change the base fuctionality of the button. so in which code of the either should i place the js

  8. this is my contact page

    <?php/*  $Id: wholesale_inquiry.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $*/  require('includes/application_top.php');  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WHOLESALE);  $error = false;  if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {    $name = tep_db_prepare_input($HTTP_POST_VARS['name']);    $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);    $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);    if (tep_validate_email($email_address)) {      tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);      tep_redirect(tep_href_link(FILENAME_WHOLESALE, 'action=success'));    } else {      $error = true;      $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);    }  }  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_WHOLESALE));?><!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"><html <?php echo HTML_PARAMS; ?>><head><?php// BOF: Header Tag Controller v2.5.7if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {  require(DIR_WS_INCLUDES . 'header_tags.php');} else {?>   <title><?php echo TITLE; ?></title><?php}// EOF: Header Tag Controller v2.5.7?><base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"><link rel="stylesheet" type="text/css" href="stylesheet.css"><link rel="stylesheet" media="all" type="text/css" href="basic_dd.css" /><!--[if lte IE 6]><link rel="stylesheet" media="all" type="text/css" href="basic_dd_ie.css" /><![endif]--></head><body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"><!-- header //--><?php require(DIR_WS_INCLUDES . 'header.php'); ?><!-- header_eof //--><!-- body //--><table border="0" width="100%" cellspacing="3" cellpadding="3">  <tr>    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"><!-- left_navigation //--><?php require(DIR_WS_INCLUDES . 'column_left.php'); ?><!-- left_navigation_eof //-->    </table></td><!-- body_text //-->    <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_WHOLESALE, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">      <tr>        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">          <tr>            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>            <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>          </tr>        </table></td>      </tr>      <tr>        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>      </tr><?php  if ($messageStack->size('contact') > 0) {?>      <tr>        <td><?php echo $messageStack->output('contact'); ?></td>      </tr>      <tr>        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>      </tr><?php  }  if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {?>      <tr>        <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td>      </tr>      <tr>        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>      </tr>      <tr>        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">          <tr class="infoBoxContents">            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">              <tr>                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>                <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>              </tr>            </table></td>          </tr>        </table></td>      </tr><?php  } else {?>      <tr>        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">          <tr class="infoBoxContents">            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">               <tr>                <td class="main"><?php echo ENTRY_NAME; ?></td>              </tr>              <tr>                <td class="main"><?php echo tep_draw_input_field('name'); ?></td>              </tr>              <tr>                <td class="main"><?php echo ENTRY_EMAIL; ?></td>              </tr>              <tr>                <td class="main"><?php echo tep_draw_input_field('email'); ?></td>              </tr>              <tr>                <td class="main"><?php echo ENTRY_ENQUIRY; ?></td>              </tr>              <tr>                <td>     <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, tep_sanitize_string($_POST['enquiry']), '', false); ?>      </td>             </tr>            </table></td>          </tr>        </table></td>      </tr>      <tr>        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>      </tr>      <tr>        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">          <tr class="infoBoxContents">            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">              <tr>                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>                <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>              </tr>            </table></td>          </tr>        </table></td>      </tr><?php  }?>    </table></form></td><!-- body_text_eof //-->      </tr></table><!-- body_eof //--><!-- footer //--><?php require(DIR_WS_INCLUDES . 'footer.php'); ?><!-- footer_eof //--><br></body></html><?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

  9. where do i add this in php image code:<td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>like this<td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE, onclick="java script:alert('hi');this.disabled=true;"); ?></td>

  10. i found in my contact page, that anyone sending me message can press the submit button and then click on stop button in their browser and i stiil recieved email, i tried this 3 times and and all those 3 emails reached me. i want to disable the function so that once pressed it doesn't allow clicking once more. i found an example on dynamicdrive.com but it uses a submit button, and i have a image, i dont to replace it: <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>this is the image code, cani disable it for a image

  11. yes, russia is in Asia for many reasons.  Here are a couple:a.) The USSR was never considered part of Europeb.) They would have never needed the word Eurasia to describe Europe and Asia - they would have just said Europe and the Far East.c.) Russia is not part of the European Union (EU) but that is more a policial measure, not a geographic measure.

    :)
  12. there's no <? before the starting of the IF statement.....

    woo thanks, i forgot
    <tr><td><?php if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { ?><?php echo '<a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . tep_image(DIR_WS_IMAGES . 'beta_hmore.gif', 'Gifts') . '</a>'; ?><?php} else { ?><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'register-free.gif', 'Register for Free') . '</a>'; ?><?php}?></td></tr>

  13. ok here is the final version of the code, i dont know for what reason the images and the code itself is shown, bhuratea.com

    <td>if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {<?php echo '<a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . tep_image(DIR_WS_IMAGES . 'gifts.gif', 'Gifts') . '</a>'; ?>} else {<?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'register-free.gif', 'Register for Free') . '</a>'; ?>}</td>

  14. ok now do you see something wrong in this code ( i know something is), i am going to display 2 images, image 1 for visitor, image 2 for member, when i placed this code in my site , it displayed it as it is, the reason i think is bcoz i mixed html with php without using the <?php and ?> delimiters, how can i correct it??

    if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {<a href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'register-free.gif', REGISTER); ?></a>} else {<a href="<?php echo tep_href_link(FILENAME_SPECIALS); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'specials.jpg', SPECIALS); ?></a>}

  15. I too gave my answer when i saw this page after google search. but i got my list from a reputed source ( i guess), i think they mistakenly named Russia as part of europe. anyways i will give Russia in Asia

  16. is russia in europe??silly question i know.i made a payment module to ship to all eu countries, and found this list, but is russia in europeAlbaniaAndorraAustriaBelarusBelgiumBosnia and HerzegovinaBulgariaCroatiaCyprusCzech RepublicDenmarkEstoniaFinlandFranceGermanyGreeceHungaryIcelandIrelandItalyLatviaLiechtensteinLithuaniaLuxembourgMacedoniaMaltaMoldovaMonacoNetherlandsNorwayPolandPortugalRomaniaRussiaSan MarinoSerbia and MontenegroSlovakia (Slovak Republic)SloveniaSpainSwedenSwitzerlandUkraineUnited KingdomVatican City

  17. I use gimp to make animated gifs heres all I have ever made on this page. http://joshandcoding.atspace.com/emotes/ Note:These were made by request of the people a few of them concern and I have written permission for them to br online.

    your page gives a error.ah , thanx for the flashy advice, i am going to use flash for image animation.i too have downloaded gimp, and paint.net was just about to be completed when i mistakenly pressed the dont run button after download was complete. now will have to download paint.net once more.
  18. ok, i am downloading gimp now. in the mean time, does someone here have photoshop, as i said earlier i have the file but not the software, i will be very glad if someone could help me, all you need to do is open the file edit the text and export. thanks for any help you(anyone) can offer

×
×
  • Create New...