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

Thread: Remove category from listing URL

Hybrid View

  1. #1

    Remove category from listing URL

    Is there a way to remove category from listing URL?

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    Go to ftp > includes > classes > reefless.class.php > public function url > case 'listing':

    remove:
    PHP Code:
    Only registered members can view the code

  3. #3
    [QUOTE=Rudi;30335]Hello,

    Go to ftp > includes > classes > reefless.class.php > public function url > case 'listing':

    remove:
    PHP Code:
    Only registered members can view the code
    /QUOTE]

    Thanks Rudi, but then i get 404 error when try to open listing.

  4. #4
    [QUOTE=Rudi;30335]Hello,

    Go to ftp > includes > classes > reefless.class.php > public function url > case 'listing':

    remove:
    PHP Code:
    Only registered members can view the code
    /QUOTE]

    Hello Rudi,

    I need do the same thing but there is not the code like
    $url .= $categoryPath in public function url > case 'listing'

    Version 4.8.1
    May be it was in the previous versions?

  5. #5
    [QUOTE=Rudi;30335]Hello,

    Go to ftp > includes > classes > reefless.class.php > public function url > case 'listing':

    remove:
    PHP Code:
    Only registered members can view the code
    /QUOTE]

    Hello Rudi,

    I need do the same thing but there is not the code like
    $url .= $categoryPath in public function url > case 'listing'

    Version 4.8.1
    May be it was in the previous versions?

  6. #6
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    You should enable Full URL for your listing type

    because there should be some identifier of the page like listing type or category

    otherwise, it will require a customization to identify page by listing id only

  7. #7
    Quote Originally Posted by Rudi View Post
    You should enable Full URL for your listing type

    because there should be some identifier of the page like listing type or category

    otherwise, it will require a customization to identify page by listing id only
    Many thanks. If it is complicated to give the needed codes here, please consider it for next version

  8. #8
    Quote Originally Posted by Rudi View Post
    You should enable Full URL for your listing type

    because there should be some identifier of the page like listing type or category

    otherwise, it will require a customization to identify page by listing id only
    Hello Rudi, if i enable Full URL with remove
    Code:
    Only registered members can view the code.
    then already indexed listings with

    Short URL shows 404 not found

  9. #9
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello Bahram,

    Add the following code for redirection into listing details controllers:

    includes > controllers > listing_details.inc.php > // get "Login" parameter of "View Details" page

    replace:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code

  10. #10
    [QUOTE=Rudi;30415]Hello Bahram,

    Add the following code for redirection into listing details controllers:

    includes > controllers > listing_details.inc.php > // get "Login" parameter of "View Details" page

    replace:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code
    /QUOTE]

    Hello Rudi, It does not work. All previous indexed listings ( with short URL ) still shows 404.

+ Reply to Thread