+ Reply to Thread
Results 1 to 6 of 6

Thread: How do we clear options from drop down sort menus ?

Hybrid View

  1. #1
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028

    How do we clear options from drop down sort menus ?

    In the drop down menu's I keep getting the text in regards bumps up / down, this in no way should be a public option to sort by bumps and is an error in the monetization plugin, it has a totally meaningless function to any visitor and I would like to remove it from my drop downs.

    From memory Viktor coded it out last time but I am always updating to new templates and it seems back, so rather than keep anoying people could you please show us where we can edit this out of the drop down in categories sort please.

    Attached Images Attached Images

  2. #2
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    SOS any help or create a ticket ?

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

    you can disable it via mysql query

    go to Common > Database >insert this query:

    Code:
    Only registered members can view the code.
    and click 'Go'

  4. #4
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Rudi can I just comment block it code somewhere ?

  5. #5
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Actually it's the easiest and right way to solve it
    but if you need to remove it via code:

    go to ftp > plugins > monetize > rlMonetize.class.php > hookPhpListingTypeTop > remove/comment out the code inside this function

  6. #6
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    public function hookPhpListingTypeTop()
    {
    /*global $date_field;

    $sort_by_bump_up[$this->orderBy] = array(
    'Key' => $this->orderBy,
    'Type' => 'date',
    'name' => $GLOBALS['lang']['bump_up'],
    );
    $date_field = array_merge($sort_by_bump_up, $date_field);*/
    }

    Thanks Rudi, this worked that I can see, the reason I asked to block the code is I have had some custom work done to the sorts etc and was not sure if running the code would affect things, so was cautious.

    thank you
    Last edited by Pete Young; January 6, 2018 at 02:40 AM.

+ Reply to Thread