ATSWorld
First of all, thanks for letting us know the sql worked.
Along with RixStix ,you may have made the cardinal mistake of not reading the readme throughout. My mother used to call it "jumping on your horse and riding madly off in all directions."
The readme says a couple of very important things.
- The included files that overwrite core files DO NOT contain ANY changes other than those specifically for CAPTCHA 1.5.
- If you had made any other changes to those files with another mod, those changes are now gone.
- The readme specifically reminds you to backup, WinMerge (or something similar), and THEN upload.
- Apologies if "I didn't delete the old files just over wrote" actually meant you check first to make sure you weren't wiping a previous mod's info from your site.
- The files included are meant to be used with Zen-Cart v1.5.0 and its basic install.
- Again, the readme states that the login works with the split-login set to true. (I did not work on this as all our sites use split login. Maybe in the near future.)
- Trying to create a version that will work with FEC, LM, or any other mod that involves a submission form would bloat the mod beyond imagination. If no one is reading the docs now, I can only imagine the size of the support thread for a bloated mod. (Ultimate SEO comes to mind).
One of the things about open source is that you are free to change things to suit your needs. We all do it with just the basic cart or else every Zen Cart site would have the "Welcome" notice. From the simple beginnings to the adding of mods, pages, etc; we all strive to get it just right and maybe learn something along the way.
On the subject of Links Manager, CAPTCHA adds the following to contact_us (includes\templates\YOUR_TEMPLATE\templates\tpl_contact_us_default.php):This comes after a </filedset> and before the <div class="buttonRow forward....<!--START CAPTCHA INPUT HERE -->
<?php
if (ACCOUNT_VALIDATION == 'true' && CONTACT_US_VALIDATION == 'true') {
?>
<?php
if (strstr($_SERVER['REQUEST_URI'],'contact_us') && CONTACT_US_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'login') && LOGIN_VALIDATION == 'true') {
?>
<?php
if ($is_read_only == false || (strstr($_SERVER['REQUEST_URI'],'contact_us')) || (strstr($_SERVER['REQUEST_URI'],'login'))) {
$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
$reg_key = generate_captcha_code();
$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>
<fieldset>
<legend><?php echo CATEGORY_ANTIROBOTREG; ?></legend>
<label class="inputLabel" for="antirobotreg"><?php echo ENTRY_ANTIROBOTREG ?></label>
<?php
$validation_images = '';
for($i = 0; $i < ENTRY_VALIDATION_LENGTH; $i++)
{
$parse_image = 'validation/validation_' . $reg_key{$i} . '.gif';
$parse_image_alt = $reg_key{$i};
$validation_images .= zen_image(DIR_WS_IMAGES . $parse_image, $parse_image_alt);
}
echo '<div class="centered">';
echo $validation_images . '<br />';
echo '</div>';
?>
<?php echo zen_draw_input_field('antirobotreg','', 'id="antirobotreg"') . (zen_not_null(ENTRY_ANTIROBOTREG) ? '<span class="alert">' . ENTRY_ANTIROBOTREG_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<?php
}
?>
<?php
}
?>
</fieldset>
<!-- END CAPTCHA INPUT -->
You might try entering the above code around line 158 of the includes\templates\YOUR_TEMPLATE\templates\tpl_lings_submit_default.php
MAKE SURE YOU BACK EVERYTHING UP FIRST!!!!
Bookmarks