Thread: Administrative and Maintenance Tools - [APM] Advanced Product Management 3.7.004
View Single Post
  #42  
Old 01-07-2009, 09:38 PM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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&amp;productid=' $vbulletin->GPC['product'] . "&amp;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&amp;pluginid=" $vbulletin->GPC['pluginid']);
 }
 else
 {
  
define('CP_REDIRECT''apm_product.php?do=managedetails&amp;productid=' $vbulletin->GPC['product'] . "&amp;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
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01144 seconds
  • Memory Usage 1,807KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete