No users online
Guests: 101
Reptile Classifieds Discussion Board
Welcome, Guest
Please Login or Register.    Lost Password?
Adsmanager 2.9 [post ad and sh404 bug] (1 viewing) (1) Guest
General Discussion
Go to bottom Post Reply Favoured: 0
TOPIC: Adsmanager 2.9 [post ad and sh404 bug]
#3
drew (Visitor)
Fresh Boarder
Posts: 9
graph
User Offline Click here to see the profile of this user
Adsmanager 2.9 [post ad and sh404 bug] 2 Years, 2 Months ago Karma: 0  
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
Code:

$catid=2;
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Adsmanager 2.9 [post ad and sh404 bug]
drew 2008/05/22 16:32
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop