Announcement

Collapse
No announcement yet.

Two files very different - but differences not detected

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Two files very different - but differences not detected

    beyond compare 3.3.8 trial, default settings i believe

    i am comparing two files that have lots of different content but bc isn't detecting the differences, other files so far do show the differences, but something is happening with these two particular template files

    here is the code

    LEFT SIDE:

    Code:
    <?php if(!$memberships) { ?>
        No products available.
    <?php } else { ?>
        <div style="height: 100%">
            <table width="100%" cellpadding="10" cellspacing="10" align="left">
                <tr>
                    <td align="right"><strong><?php echo $lang['public_compare_features']; ?></strong></td>
                    <?php foreach($membership_names as $name) { ?>
                        <td align="center"><strong><?php echo $this->escape($name); ?></strong></td>
                    <?php } ?>
                </tr>
                <?php foreach($memberships as $membership) { ?>
                    <tr>
                    <td width="20%" align="right"><strong><?php echo $this->escape($membership['title']); ?>:</strong></td>
                    <?php foreach((array) $membership['values'] as $value) { ?>
                        <td align="center">
                            <?php if($value == 'yes') { ?>
                                <img src="<?php echo $this->urlCDN('images/icon_checkmark.gif'); ?>" />
                            <?php } else {?>
                                <?php echo $this->escape($value); ?>
                            <?php } ?>
                        </td>
                    <?php } ?>
                    </tr>
                <?php } ?>
                <tr>
                <td width="20%" align="right" valign="top"><strong><?php echo $lang['public_compare_pricing']; ?>:</strong></td>
                <?php foreach($pricing as $price) { ?>
                    <td align="center" valign="top">
                    <?php foreach($price['pricing'] as $key=>$value) { ?>
                        <?php if(count($price['pricing']) > 1) { ?><strong><?php echo $lang['public_compare_option']; ?> <?php echo $key+1; ?></strong><br /><?php } ?>
                        <?php if($value['label']) { ?>
                            <?php echo $this->escape($value['label']); ?><br />
                        <?php } else { ?>
                            <?php echo $lang['public_compare_term']; ?>:
                            <?php if($value['period_count']) { ?>
                                 <?php echo $this->escape($value['period_count']); ?> <?php echo $this->escape($value['period']); ?><br />
                            <?php } else { ?>
                                <?php echo $lang['public_compare_lifetime']; ?><br />
                            <?php } ?>
                            <?php if($value['setup_price'] != '0.00') { ?>
                                <?php echo $lang['public_compare_setup']; ?>: <?php echo $this->escape(format_number_currency($value['setup_price'])); ?><br />
                            <?php } ?>
                            <?php echo $lang['public_compare_price']; ?>:
                            <?php if($value['price'] != '0.00') { ?>
                                <?php echo $this->escape(format_number_currency($value['price'])); ?><br />
                            <?php } else { ?>
                                <?php echo $lang['public_compare_free']; ?><br />
                            <?php } ?>
                        <?php } ?>
                        <a href="<?php echo BASE_URL.MEMBERS_FOLDER; ?>user_orders_add_listing.php?pricing_id=<?php echo $value['id']; ?>"><?php echo $lang['public_compare_order']; ?></a><br /><br />
                    <?php } ?>
                    </td>
                <?php } ?>
                </tr>
            </table>
        </div>
        <br class="clear" />
    <?php } ?>
    RIGHT SIDE:

    Code:
    <div style="height: 100%; width: 90%; padding: 0; margin: 0;">
        <table width="100%" cellpadding="5" cellspacing="5" align="left">
            <tr>
                <td align="right"><strong class="title1"><?php echo $lang['public_compare_features']; ?></strong></td>
                <?php foreach((array) $membership_names as $name) { ?>
                    <td align="center"><strong class="title1"><?php echo $this->escape($name); ?></strong></td>
                <?php } ?>
            </tr>
            <?php foreach((array) $memberships as $membership) { ?>
                <tr>
                <td width="15%" align="right"><strong class="title1"><?php echo $this->escape($membership['title']); ?>:</strong></td>
                <?php foreach((array) $membership['values'] as $value) { ?>
                    <td align="center">
                        <?php if($value == 'yes') { ?>
                            <img src="<?php echo $this->urlCDN('images/icon_checkmark.gif'); ?>" />
                        <?php } else {?>
                            <?php echo $this->escape($value); ?>
                        <?php } ?>
                    </td>
                <?php } ?>
                </tr>
            <?php } ?>
            <tr>
            <td width="15%" align="right" valign="top"><strong class="title1"><?php echo $lang['public_compare_pricing']; ?>:</strong></td>
            <?php foreach((array) $pricing as $price) { ?>
                <td align="center" valign="top">
                <?php foreach($price['pricing'] as $key=>$value) { ?>
                    <?php if(count($price['pricing']) > 1) { ?><strong class="title1"><?php echo $lang['public_compare_option']; ?> <?php echo $key+1; ?></strong><br /><?php } ?>
                    <?php if($value['label']) { ?>
                        <?php echo $this->escape($value['label']); ?><br />
                    <?php } else { ?>
                        <?php echo $lang['public_compare_term']; ?>:
                        <?php if($value['period_count']) { ?>
                             <?php echo $this->escape($value['period_count']); ?> <?php echo $this->escape($value['period']); ?><br />
                        <?php } else { ?>
                            <?php echo $lang['public_compare_lifetime']; ?><br />
                        <?php } ?>
                        <?php if($value['setup_price'] != '0.00') { ?>
                            <?php echo $lang['public_compare_setup']; ?>: <?php echo $this->escape(format_number_currency($value['setup_price'])); ?><br />
                        <?php } ?>
                        <?php echo $lang['public_compare_price']; ?>:
                        <?php if($value['price'] != '0.00') { ?>
                            <?php echo $this->escape(format_number_currency($value['price'])); ?><br />
                        <?php } else { ?>
                            <?php echo $lang['public_compare_free']; ?><br />
                        <?php } ?>
                    <?php } ?>
                    <a href="<?php echo BASE_URL.MEMBERS_FOLDER; ?>user_orders_add_listing.php?pricing_id=<?php echo $value['id']; ?>"><?php echo $lang['public_compare_order']; ?></a><br /><br />
                <?php } ?>
                </td>
            <?php } ?>
            </tr>
        </table>
    </div>
    <br class="clear" />
    any ideas on this? Is it doing this for you too?

    thanks

  • #2
    Hello,

    Using your example files, I see differences when they are compared. Which file extension would these be (html)? That would determine which File Format they are using, which would then determine how Importance is handled.

    Could you also email us at [email protected] with your BCSupport.zip (Help menu -> Support; Export)? This would include all of your settings, which should be default but even a small change might alter the comparison results. A full screen screenshot might also help.

    We can help troubleshoot this with the trial and make sure BC3 meets your needs before any purchase is necessary.
    Aaron P Scooter Software

    Comment


    • #3
      hi Aaron

      thanks so much

      1. the file extension is:

      .tpl

      it's a script template file

      2. regarding the BCSupport.zip file, which specific stuff do you need? the boss is reluctant to send stuff with paths and things, paranoia

      lemme know, super thanks

      Comment


      • #4
        To selectively control what you export, use the "Tools > Export Settings" command.
        For "What settings do you want to export?", Check to export "Sessions" and "File Formats". In Sessions, only check "Text Compare" under defaults. If you are using a saved Text Compare session, you can save that as well. In "File Formats to Export" export all formats.

        The file is exported with file extension .bcpkg, but it is really a zip file. If you want to see what you're sending us, rename the extension to .zip. The files inside are all XML files, so you can view all of them with a text editor to see what you're sending us.

        File Formats don't contain paths, so you should only need to review the sessions portion of the XML for confidential paths.

        A screen shot showing the problem comparison in Beyond Compare might help too.

        After reviewing the files, you can send everything to [email protected]. Please include a link to this forum post in your email.
        Chris K Scooter Software

        Comment

        Working...
        X