Advertisement:

Author Topic: 3.3.2 - Bender - "Are You Sure You Want to Delete Your Account?" on every page!!  (Read 728 times)

BicycleClassifieds.com

  • Newbie
  • *
  • Posts: 9
Hey guys,

After upgrading to Osclass 3.3.2, when I go to the "My Account" page, EVERY page in the left sidebar for some reason has "Are you sure you want to delete your account" on the top of the page! And actually clicking the real "delete account" button in the left sidebar doesn't seem to do anything. (I do not want to delete an account I was just trying to find problems  with my site.)

Has anyone else seen this?

Thanks a ton.

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
do a forum search. and be careful where you put your code....

ben_dchost1

  • Jr. Member
  • **
  • Posts: 92
In your bender theme folder open common/head.php.

Find this code and add semicolon (; ) at the end of 4th line:
Code: [Select]
<script type="text/javascript">
    var bender = window.bender || {};
    bender.base_url = '<?php echo osc_base_url(true); ?>';
    bender.langs = <?php echo json_encode($js_lang); ?>; // add semicolon here
    bender.fancybox_prev = '<?php echo osc_esc_js__('Previous image','bender')) ?>';
    bender.fancybox_next = '<?php echo osc_esc_js__('Next image','bender')) ?>';
    bender.fancybox_closeBtn = '<?php echo osc_esc_js__('Close','bender')) ?>';
</script>

Cut the whole javascript and paste it after <?php osc_run_hook('header') ; ?>, so it should look like this:

Code: [Select]
<?php osc_run_hook('header') ; ?>
<script type="text/javascript">
    var bender = window.bender || {};
    bender.base_url = '<?php echo osc_base_url(true); ?>';
    bender.langs = <?php echo json_encode($js_lang); ?>;
    bender.fancybox_prev = '<?php echo osc_esc_js__('Previous image','bender')) ?>';
    bender.fancybox_next = '<?php echo osc_esc_js__('Next image','bender')) ?>';
    bender.fancybox_closeBtn = '<?php echo osc_esc_js__('Close','bender')) ?>';
</script>

That should work. I've grabbed all this from this post: http://forums.osclass.org/3-3-x/are-you-sure-you-want-to-delete-your-account/15/