V4.2.x for listings how

Discussion in 'Modules / Plugins / Modifications' started by kuniv, Dec 22, 2012.

  1. kuniv Customer

    Hi
    How change in file searchresults.php

    $Listings= Library::loadLibrary('Listings');

    Change to

    $Listings= Library::loadLibrary('Listings2');


    Change name 'listings' to 'listinges2'
  2. Blair Administrator

    I'm not sure why you would want to do this?

    The $Listings= Library::loadLibrary('Listings'); basically just loads the includes/classes/kernel/Listings.php file.
  3. kuniv Customer



    Because I want one category of the random show listings of services and the rest of the category is the of new show listings add
  4. Mike-N-Tosh Developer & Moderator

    Wow... That's kind of like buying a bulldozer when you just need a shovel.

    Why not just use the built in smarty listings plugin or make your own smarty plugin and place it in the appropriate template file where you want it? You could even place the plugin call {my_custom_services_listings} within a smarty {if ...} to have it only show when you want it to.
  5. kuniv Customer

    same restaurant number show random for



    The best way is to work is to change,

    $listingsSQL for ORDER RAND


    but an error occurs in the case of a change file name listings.php

    icant change listings.php to listings2.php

    how change this

Share This Page