Browsing this Thread:   1 Anonymous Users






Re: Classified Ads 1.0 modified 1-5-08
#3
Webmaster
Webmaster


See User information
I have released this on Xoops today.

Thanks,

John

Posted on: 2008/1/6 10:52
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Classified Ads 1.0 modified 1-5-08
#2
Webmaster
Webmaster


See User information
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Classified Ads 1.0 modified 1-5-08
#1
Webmaster
Webmaster


See User information
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top







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.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

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

Members: 0
Guests: 2

more...
 
Donat-O-Meter
Make donations with PayPal!
Stats
Goal: $25.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $25.00