vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - [APM] Advanced Product Management 3.7.004 (https://vborg.vbsupport.ru/showthread.php?t=197071)

Mike-D 01-07-2009 09:38 PM

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 :D

SorentoUltimate 08-07-2009 02:06 AM

Very Good Hack !!!!

any one can help me to add one more field ???

i want a field amp_displayatHackModList (Display at Hack/Mod List) , checkbox.

Hack/Mod List is a Form Display Hacks/Mods of your forum

muratcan25 04-05-2011 08:15 AM

Thank You


All times are GMT. The time now is 10:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01047 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete