PDA

View Full Version : How do we clear options from drop down sort menus ?



Pete Young
December 31, 2017, 04:11 AM
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.

http://forum.flynax.com/attachment.php?attachmentid=2679&d=1514693385

Pete Young
January 3, 2018, 04:37 AM
SOS any help or create a ticket ?

Rudi
January 4, 2018, 05:08 AM
Hello,

you can disable it via mysql query

go to Common > Database >insert this query:



UPDATE `fl_hooks` SET `Status` = 'approval' WHERE `Plugin` = 'monetize' and `Name` = 'phpListingTypeTop'


and click 'Go'

Pete Young
January 4, 2018, 05:31 AM
Rudi can I just comment block it code somewhere ?

Rudi
January 4, 2018, 06:14 AM
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

Pete Young
January 5, 2018, 11:49 PM
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