Redtie

Redtie

beta
www.redtie.ro

Creative coding...


Unapproved - Web Directory admin issue

31-03-2009 by tobeyjaggle
On my test site I get an "Unapproved" error when I go the Admin page. See http://directory.yozconnect.com/admin/ My admin directory is password protected (admin/1234) & I do have the websnapr key in the config file. Any help would be appreciated Thanks

3 Replies

31-03-2009 by Admin
A typing error led to that problem. I am sorry for not noticing it. I have updated the download script with the fix.
To resolve the problem without downloading the script again, in functions.php change lines 76 to 83 to:
$count_cat=mysql_query("select * from categories");
$res_cat=mysql_num_rows($count_cat);
$count_subcat=mysql_query("select * from subcategories");
$res_subcat=mysql_num_rows($count_subcat);
$count_sites=mysql_query("select * from web_directory where status='1'");
$res_sites=mysql_num_rows($count_sites);
$count_app=mysql_query("select * from web_directory where status='0'");
$res_app=mysql_num_rows($count_app);
31-03-2009 by tobeyjaggle
I really want to thank you for the effort your putting into help, however ... I downloaded the new files, but they seem to be identical to the old ones. I'm also not sure that my lines 76-83 are the same as yours - they are .. I tried putting these lines before line 76, but it still doesn't work. Sorry for being a pain, I'm just anxious to see this work. Thanks.
01-04-2009 by Admin
If the problem is not with the actual count of the statistics, it must be with the display. And so it is, sorry for not spotting the problem sooner. The download script has been updated and this is the fix at lines 87 to 93 in admin/index.php:
<table width="100%" cellpadding="0" cellspacing="0"> <tr><td width="50%" valign="top"><? echo $statistics_approved; ?></td><td width="50%" valign="top"><? echo $res_sites; ?></td></tr> <tr><td width="50%" valign="top"><? echo $statistics_unapproved; ?></td><td width="50%" valign="top"><? echo $res_app; ?></td></tr> <tr><td width="50%" valign="top"><? echo $statistics_categories; ?></td><td width="50%" valign="top"><? echo $res_cat; ?></td></tr> <tr><td width="50%" valign="top"><? echo $statistics_subcategories; ?></td><td width="50%" valign="top"><? echo $res_subcat; ?></td></tr> </table>


  • Your username will be shown. If this is your first reply, it will be verified for spam before it will appear on the site.

Search

Login