Browsing this Thread:
1 Anonymous Users
Classified Ads 1.0 modified 1-5-08 |
||
|---|---|---|
|
Webmaster
![]()
Joined:
2004/10/6 16:13 Posts:
927
![]() |
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
|
||
Re: Classified Ads 1.0 modified 1-5-08 |
||
|---|---|---|
|
Webmaster
![]()
Joined:
2004/10/6 16:13 Posts:
927
![]() |
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
|
||
Re: Classified Ads 1.0 modified 1-5-08 |
||
|---|---|---|
|
Webmaster
![]()
Joined:
2004/10/6 16:13 Posts:
927
![]() |
I have released this on Xoops today.
Thanks, John
Posted on: 2008/1/6 10:52
|
|
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.




Transfer