This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Ignoring file submissions


avatar
cosmin 269
From: -
I would suggest adding a button to "ignore this update". When running "check pad files for updates", there are apps, for which their creators just make a small change to the version number, meaning they are always picked up. Now I really doubt that they update those apps from one day to the next, especially since it always happens with the same apps. It may even be automated, so it would be nice to have the ability to disregard them.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Ignoring file submissions
avatar
OP 269
From: -
This one works.
1 Re: Ignoring file submissions
avatar
Administrator
1340
From: Vienna, Austria
Ok, change the last one to:

    $input_doignore = ( isset( $_POST[ 'input_doignore' ] ) ) ? $security -> checkvar( $_POST[ 'input_doignore' ] ) : "" ;
if( $input_doignore)
{
$database -> dbquery( "UPDATE " . DB_PREFIX . "esselbach_ct_files SET file_paddate = now() WHERE file_id = '" . $input_id . "'" );
$html -> login( $words_files[ 'CHECK_PAD_UPDATES' ], "File ignored.", "index.php?action=checkpadupdates" );
}
1 Re: Ignoring file submissions
avatar
OP 269
From: -
Not yet. I may have done something wrong, but if I click "ignore" it will return to the same file again and again and won't process the next file.
1 Re: Ignoring file submissions
avatar
Administrator
1340
From: Vienna, Austria
Not really a bug but a feature suggestion Winking Face

Very easy to implement. Open /cadmin/files/admincheckpadupdates.php and find:
        if( function_exists( "pspell_new" ) )
{
echo "<input type=\"submit\" class=\"button\" name=\"input_dospellcheck\" value=\"" . $words_files[ 'SPELLING' ] . "\" />";
}


Then add:
        echo "<input type=\"submit\" class=\"button\" name=\"input_doignore\" value=\"Ignore this update\" />";


Open /cadmin/files/admindocheckpadupdates.php and find:
    $input_dospellcheck = ( isset( $_POST[ 'input_dospellcheck' ] ) ) ? $security -> checkvar( $_POST[ 'input_dospellcheck' ] ) : "" ;
$input_security_hash = ( isset( $_POST[ 'input_security_hash' ] ) ) ? $security -> checkvar( $_POST[ 'input_security_hash' ] ) : "" ;


Then add:
    $input_doignore = ( isset( $_POST[ 'input_doignore' ] ) ) ? $security -> checkvar( $_POST[ 'input_doignore' ] ) : "" ;
if( $input_doignore)
{
$html -> login( $words_files[ 'CHECK_PAD_UPDATES' ], "File ignored.", "index.php?action=checkpadupdates" );
}


That's it Smiling Face

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.