Register  It's Free! Saturday,   September  4,   2010
User Name Password
  Downloads   Modules

Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
3 user(s) are online (3 user(s) are browsing Forum)

Members: 0
Guests: 3

more...
Please Read This
All my modules require users to be registered to add listings or to reply to a listing.
There are parts that NEED a user ID. to work properly.

All reputable websites DO NOT allow anonymous users to add anything, even on the
Xoops site you need to be registered, there are many reasons for this.

You may be able to hack the module to work with non registered users, it will probably not be easy, and I do not support this. I'm sorry but thats the way it is.

Browsing this Thread:   1 Anonymous Users





Classified Ads 1.0 modified 1-5-08
Webmaster
Joined:
2004/10/6 16:13
Posts: 927
Offline
There are a few spots that needed fixing, you can either redownload the module and overwrite all files or if you have modified the module and don't want to do it again follow the steps below.

I did not change the version number for these.

Any questions just ask.


___________________________________________
PROBLEM 1

On the Classifieds front page it shows view my listings even if there are no listings for that user.


FIX 1


go to index.php

around lines 76 thru 80 look for this:

if ($xoopsUser) {
$member_usid = $xoopsUser->getVar('uid');
if ($usid = $member_usid) {
$xoopsTpl->assign('istheirs', true);
}
list($show_user) = $xoopsDB->fetchRow($xoopsDB->query("select COUNT(*) FROM ".$xoopsDB->prefix("".$mydirname."_listing")." WHERE usid=$member_usid"));

$xoopsTpl->assign('show_user', $show_user);
$xoopsTpl->assign('show_user_link', "<a href=\"members.php?usid=$member_usid\">".constant($main_lang."_VIEW_YOUR_LISTINGS")."</a>");
}

change to this:

if ($xoopsUser) {
$member_usid = $xoopsUser->getVar('uid');
if ($usid = $member_usid) {
$xoopsTpl->assign('istheirs', true);

list($show_user) = $xoopsDB->fetchRow($xoopsDB->query("select COUNT(*) FROM ".$xoopsDB->prefix("".$mydirname."_listing")." WHERE usid=$member_usid"));

$xoopsTpl->assign('show_user', $show_user);
$xoopsTpl->assign('show_user_link', "<a href=\"members.php?usid=$member_usid\">".constant($main_lang."_VIEW_YOUR_LISTINGS")."</a>");
}
}

All you are doing is moving the bracket } from around line 80 and putting it after line 85.

THEN go to templates/classifieds_index.html around line 82 and look for this:

<{if $istheirs}><{$show_user_link}><{/if}>

change to :

<{if $show_user}><{$show_user_link}><{/if}>

That should do it.

_____________________________________



PROBLEM 2

When an Ad expires it does not delete the photos for that Ad.

Fix 2

Replace your current file include/functions.php with the one in the current download.


_____________________________________


PROBLEM 3

When Admin deletes a listing the photos are not deleted.

FIX 3

Replace your current files admin/index.php and language/english/admin.php with the ones in the current download.


______________________________________


PROBLEM 4

A couple places there is useless info in the admin section.

FIX 4

Replacing admin/index.php in step 3 will fix this also.


Thanks,

John

Posted on: 2008/1/5 15:29
Transfer the post to other applications Transfer


Re: Classified Ads 1.0 modified 1-5-08
Webmaster
Joined:
2004/10/6 16:13
Posts: 927
Offline
Another problem was found in the admin/index.php page. The status field was not updating from the admin modification side.
It is fixed in the current download as of 1-6-08


I found that the price type was being removed if the admin modified the listing. This is also fixed.

Only the admin/index.php page was changed.

Thanks,

John

Posted on: 2008/1/6 7:19

Edited by john on 2008/1/6 8:00:44
Transfer the post to other applications Transfer


Re: Classified Ads 1.0 modified 1-5-08
Webmaster
Joined:
2004/10/6 16:13
Posts: 927
Offline
I have released this on Xoops today.

Thanks,

John

Posted on: 2008/1/6 10:52
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Donat-O-Meter
Make donations with PayPal!

Donations
Waiting Contents Ext
System Downloads Forum Alumni Job Listings Garages classifieds
Weather
Southington
Conditions as of
3 minutes ago


partly cloudy
Temp: 72 °F ↓
Feels like: 76 °F
Rel hum: 60 % ↓
Wind: NW at 12.7 mph
Gusts 18.4 mph
view forecast
jlmzone © 2010
Powered by XOOPS 2.4.4