Home › Forums › Scripts › Other Scripts › ListingAdmin: Double Display Error
Tagged: alpha, beta, error, help, listingadmin
This topic contains 9 replies, has 3 voices, and was last updated by Anonymous 10 months, 1 week ago.
-
AuthorPosts
-
July 16, 2012 at 2:01 pm #14062
AnonymousFor 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.
July 17, 2012 at 5:41 am #15192You’re including (i.e. by using require) the PHP files too many times. Just once/file is enough.
July 17, 2012 at 12:17 pm #15193
AnonymousWhat 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!
July 17, 2012 at 12:49 pm #15194
AnonymousIt 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.
July 18, 2012 at 3:56 am #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.
July 18, 2012 at 12:12 pm #15196
AnonymousIt does the same for me. I think there’s a bug in the script.
July 18, 2012 at 4:56 pm #15197These 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.
July 18, 2012 at 10:45 pm #15198
AnonymousAs 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.
July 20, 2012 at 7:36 pm #15199Oh 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.
July 20, 2012 at 10:35 pm #15200
AnonymousI 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.
-
AuthorPosts
You must be logged in to reply to this topic.



Recent Comments