+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Listing type URL format

  1. #1
    Senior Member
    Join Date
    Aug 2014
    Posts
    105

    Listing type URL format

    Hi,

    I'm only using one listing type on my site. I have to use www.mysite.com/listingtype/category, I would like to use the URL format of www.mysite.com/category.

    Does anyone know where to make the code or settings changes to allow this?

    Many thanks.

  2. #2
    Hello Spencer,

    Please try to use the code:

    PHP Code:
    Only registered members can view the code
    insert this code in file index.php at line ~ 31 below the code:
    PHP Code:
    Only registered members can view the code
    then go to ftp://templates>>your_template>>tpl>>blocks and find files with code:
    Code:
    Only registered members can view the code.
    or
    Code:
    Only registered members can view the code.
    and remove it. (for example file: listing.tpl, my_listing.tpl, featured.tpl, categories.tpl, categories_block.tpl and other )
    also try to find other files in blocks and controllers folders. Save and check links on your site.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Senior Member
    Join Date
    Aug 2014
    Posts
    105
    Hi Viktor,

    Thanks for your help, it's much appreciated.

    Cheers, Spencer

  4. #4
    Senior Member
    Join Date
    Aug 2014
    Posts
    105
    Hi Viktor,

    When I make the code changes as above, I get a 404 page error. I've added the code to the index.php, and all works still OK, but when I delete the "{$pages[$listing_type.Page_key]}/", the URL's new format is correct, not showing "/listings/", but I get a 404 "Undefined Page" error. Can you suggest what the problem may be?

    Thanks again for your help, Spencer

  5. #5
    Hello Spencer Culpin,

    Would you please send ftp access to my PM and I will check where is a problem.
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #6
    Senior Member
    Join Date
    Aug 2014
    Posts
    105
    Thanks Viktor for your help, I've sent my details in a PM.
    Cheers, Spencer

  7. #7
    Hello Spencer Culpin,

    Yes my fears were confirmed.

    Please see my code. Last line:
    Code:
    Only registered members can view the code.
    see my comment!!!

    Go to admin Panel >> Listing types and click edit you will see type key and insert instead of ''listing_type_key' and then check again.
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Senior Member
    Join Date
    Aug 2014
    Posts
    105
    Thanks Viktor for your help.

    I'm still getting a problem though. When I go to a listing or category URL without the /listingtype/, the /listingtype/ is automatically put back. Do I need to update my .htaccess file or some other file also?

    Thanks, Spencer

  9. #9
    Hello Spencer,

    Yes you are right exist 1 more thing where you should change code. Go to ftp://includes>>controllers>>listings_details.inc.php find code at line ~72

    PHP Code:
    Only registered members can view the code
    and replace to:

    PHP Code:
    Only registered members can view the code
    save and check again.


    PS: I have implemented it for you Spencer already
    Viktor,
    Flynax technical department,
    Best wishes.

  10. #10
    Senior Member
    Join Date
    Aug 2014
    Posts
    105
    Thanks Viktor, that works great now!

    I'm trying to find where to make the changes to the category tree plugin, recently viewed plugin, new listings plugin and keyword search box.

    Any help would be appreciated.

    Thanks, Spencer

+ Reply to Thread