Please note: Due to minimum changes inside the
class_core.php file, the following fix is necessary! Here's a way to get it work in using vB 3.8. Enjoy
Full Credit goes to Stoebi! All Infos would not have been possible without him :up:
File
admincp/apm_product.php
In Line 523 search for:
PHP Code:
$vbulletin->input->clean_gpc('r', 'vbulletin_collapse', TYPE_NOCLEAN);
Replace with:
PHP Code:
if ($vbulletin->options['templateversion'] < '3.8')
{
$vbulletin->input->clean_gpc('r', 'vbulletin_collapse', TYPE_NOCLEAN);
}
Since vB version 3.8, VBulletin provides an Button for "Save" and "Reload" in case of editing the Plugins. The following step will show you how get this Button in APM. The following solution is devided in 3 steps as follows...
File
admincp/apm_product.php
Step 1. Search for:
PHP Code:
'showplugins' => TYPE_UINT,
Add below:
PHP Code:
'return' => TYPE_STR
Step 2. Search for:
PHP Code:
// stuff to handle the redirect
define('CP_REDIRECT', 'apm_product.php?do=managedetails&productid=' . $vbulletin->GPC['product'] . "&showplugins=" . $vbulletin->GPC['showplugins']);
Replace with:
PHP Code:
// stuff to handle the redirect
if ($vbulletin->GPC['return'])
{
define('CP_REDIRECT', "apm_product.php?do=edit&pluginid=" . $vbulletin->GPC['pluginid']);
}
else
{
define('CP_REDIRECT', 'apm_product.php?do=managedetails&productid=' . $vbulletin->GPC['product'] . "&showplugins=" . $vbulletin->GPC['showplugins']);
}
Step 3. Search for:
PHP Code:
print_submit_row($vbphrase['save'], $vbphrase['reset']);
Replace with:
PHP Code:
//print_submit_row($vbphrase['save'], $vbphrase['reset']);
print_submit_row($vbphrase['save'], '_default_', 2, '', "<input type=\"submit\" class=\"button\" tabindex=\"1\" name=\"return\" value=\"$vbphrase[save_and_reload]\" accesskey=\"e\" />");
Additional APM Dropdown Items
The following way is for User who are using the
TMS AddOn and always missed the well known Menu Items "Test" / "Delete" / "Export".
File
admincp/apm_product.php
Search for:
PHP Code:
case 'productexport': page = "apm_product.php?do=productexport&productid="; break;
Add below:
PHP Code:
case 'tmsdeleteedits': page = "templateedits.php?do=deleteall&productid="; break;
case 'tmstestproduct': page = "templateedits.php?do=test&productid="; break;
case 'tmsexport': page = "templateedits.php?do=files&productid="; break;
BTW: German vB Users may can take a look at
your-vb to get more detailed infos. You gonna love this