ListingAdmin: Double Display Error

Home Forums Scripts Other Scripts ListingAdmin: Double Display Error

This topic contains 9 replies, has 3 voices, and was last updated by  Anonymous 10 months, 1 week ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #14062

    Anonymous

    For some reason, the Newest, Random, and Joined buttons are displaying twice. You can see the errors at aloveletter.co.uk. At the top in the black box you’ll see the double display of the images/links.

    I thought that I had all of the coding right. But just encase, here is what the code display is.

    <table width="100%" cellpadding="4" cellspacing="4">

    <tr>

    <td width="120"><center><b>Newest</b></center>

    </td>

    <td width="120"><center><b>Random</b></center>

    </td>

    <td width="120"><center><b>Joined</b></center>

    </td>

    </tr>

    <td><center>

    <?php

    #


    require("jac.inc.php");

    #


    $show_joined = 'n';

    $show_joined_number = 0;

    $show_joined_rotate = 'n';

    $show_owned = 'y';

    $show_owned_number = 1;

    $show_owned_rotate = 'n';

    #


    require(STPATH . "show-random.php");

    #


    ?>

    </center>

    </td>

    <td><center>

    <?php

    #


    require("jac.inc.php");

    #


    $show_joined = 'n';

    $show_joined_number = 0;

    $show_joined_rotate = 'n';

    $show_owned = 'y';

    $show_owned_number = 1;

    $show_owned_rotate = 'y';

    #


    require(STPATH . "show-random.php");

    #


    ?>

    </center>

    </td>

    <td><center>

    <?php

    #


    require("jac.inc.php");

    #


    $show_joined = 'y';

    $show_joined_number = 1;

    $show_joined_rotate = 'y';

    $show_owned = 'n';

    $show_owned_number = 0;

    $show_owned_rotate = 'n';

    #


    require(STPATH . "show-random.php");

    #


    ?>

    </center>

    </td>

    </tr>

    </table>

    Can anyone help?

    The script used is ListingAdmin 2.3 Alpha.

    #15192

    Vera
    Participant

    You’re including (i.e. by using require) the PHP files too many times. Just once/file is enough.

    #15193

    Anonymous

    @Vera

    What do you mean? I don’t understand. I want the images to display in 3 different places. So how can I use the PHP files just once? I don’t follow. Can you explain?

    Thanks! :)

    #15194

    Anonymous

    It has nothing to do with the multiple requires. I have

    <?php
    #
    require("jac.inc.php");
    #
    $show_joined = 'n';
    $show_joined_number = 0;
    $show_joined_rotate = 'n';
    $show_owned = 'y';
    $show_owned_number = 1;
    $show_owned_rotate = 'y';
    #
    require(STPATH . "show-random.php");
    #
    ?>

    In a file and it’s doing the same thing. It appears to me that you can’t JUST show random listings. By turned show_owned (or show_joined) on, it automatically displays a newest listing and then if you turn rotate on, it also shows one random listing.

    #15195

    Anonymous

    @Jme

    But for me, its showing 2 listings regardless of the fact that rotate is on or off. Its always shows 2 listings.

    #15196

    Anonymous

    It does the same for me. I think there’s a bug in the script.

    #15197

    Vera
    Participant

    These two lines:

    require("jac.inc.php");
    and
    require(STPATH . "show-random.php");

    are present in the code snippet you posted, 3 times. They should only be present ONCE. So remove the extra appearances.

    Looking at your code more carefully, I see that you have the following:

    <td><center>
    <?php
    #
    require("jac.inc.php");
    #
    $show_joined = 'n';
    $show_joined_number = 0;
    $show_joined_rotate = 'n';
    $show_owned = 'y';
    $show_owned_number = 1;
    $show_owned_rotate = 'n';
    #
    require(STPATH . "show-random.php");
    #
    ?>
    </center>
    </td>

    Twice, one after another. Delete one of those.

    #15198

    Anonymous

    As I said Vera, that is NOT the problem because even when you only have one include the same result happens. There is a bug in the script.

    #15199

    Vera
    Participant

    Oh sorry about that, I missed your earlier answer.

    If someone could please send me an installation kit (with instruction, since I haven’t used Listing Admin before)… I could try to debug it. Maybe find a fix for the issue.

    #15200

    Anonymous

    I have found a fix for it but thanks :) – emailed the script author. It’s actually pretty simple fix.

    @AngelicLies – if you email me, I can send you a copy of the corrected file you need.

    jme@captious.net

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.