The problem created with the javascript dropdown category select box on the write_ad page of Adsmanager is a major problem for those people who are trying to run the sh404 mod as well as adsmanager. Adsmanager does a great job of rewriting urls for all other pages, but there is a bug when it comes to the adding of a listing.
Basically to first understand the problem, it occurs because the javascript is used to pass a variable of the category ID to the write_ad page. When the url rewriting occurs, the redirect is broken because all of the write_ad pages are viewed as the same by sh404 SEF.
The solution to this problem is to edit adsmanager.html.php
Scroll down to about line 1370 where you see
| Code: |
if ($catid == 0)
echo "<option value='#' selected=selected>".ADSMANAGER_SELECT_CATEGORY."</option>";
|
change the second line of the above code to
where the 2 above is the category of the default category you would like your users to see when they are posting an ad.
Please let me know if this works for you guys.
Thanks,
Drew Towers
www.drewtowers.com