Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
[APM] Advanced Product Management 3.7.004 Details »»
[APM] Advanced Product Management 3.7.004
Version: 3.7.004, by mtha mtha is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.7.x Rating:
Released: 11-22-2008 Last Update: 11-27-2008 Installs: 130
DB Changes Uses Plugins
Additional Files Translations Is in Beta Stage  
No support by the author.

[APM] Advanced Product Management 3.7.004

/*================================================* \
|| ########################################## ||
|| # Advanced Product Management [APM] ? by HacNho
|| # Copyright (C) 2006 by HacNho, All rights reserved.
|| # ----------------------------------------------------------
|| # For use with vBulletin Version 3.7.x (and 3.8.x)
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html
|| # Discussion and support available at
|| # https://vborg.vbsupport.ru/showthread.php?t=121792
|| ########################################## ||
\*================================================ =*/

Hack Version: 3.7.004.081128
Compatible vB version: 3.7.x (and 3.8.x)
Support: https://vborg.vbsupport.ru/showthread.php?t=197071

NOTE:
APM for vBulletin 3.5.x:
https://vborg.vbsupport.ru/showthread.php?t=95741

APM for vBulletin 3.6.x
https://vborg.vbsupport.ru/showthread.php?t=121792

It's required that you have debug mode ON when editting/adding some features

DESCRIPTION:

A center product area which allow you to manage all codes/plugins/templates/phrases/settings /crons for any product.
It also add some additional fields to the product, just to save more information with a product
Release Date
Product Author
Extra Information
Install date

The extra information is only available if you install APM, and use APM to export/import other product.
It does not have any conflict with original product. You still can use APM to import standard product, or use standard product tool to import APM's product files.

INSTALL:
1. Upload all files in UPLOAD folder to your server
2. Import XML product (product-adv_product_management_XXX.xml) using vBulletin standard product import tool.
3. Refresh menu panel to display Advanced Product Management link in Plugin System section

{optional} - Re-import product-adv_product_management.xml using APM import product tool, with Allow Overwrite = Yes
This step is inserting more information into the product.
* CAUTION: DONOT use APM to import product-adv_product_management.xml BEFORE step 2.

UPGRADE:
1. Upload all files in UPLOAD folder to your server (replace the old files
2. Import XML product with "Allow Overwrite" option checked
3. Enjoy!


HISTORY:
v1.0: Initial release
v1.1: Improve count queries, thanks to KirbyDE, some bugs fix
v1.2: Add collapsible blocks into product detail
2005.10.02: version 2.0: Alot of improvement. After editting, redirect back to product manager
2005.11.05: version 2.0.3: change some function names, due to changes in vB3.5.1 / it may not work for 3.5.0
2006.07.21: version 3.0.0 - release for vB 3.6.0
2006.08.22: version 3.0.2: Add CRON to the APM - change dependency
2006.09.21: version 3.0.3 - with small fixes
2006.09.25: version 3.0.4 - fix "install code - invalid product" bug (p=1081739&postcount=38)
2008.11.22: version 3.1.0 - fix multiple choice bug, add install time, clean some code ...
2008.11.25: version 3.1.1 - fix "disabled no-link product" bug, to display striked red - in product list
2008.11.27: version 3.1.2 - compatible with Check All Version mod, add option to disable/enable all products, add TMS support ...
2008.11.27: version 3.7.003 - re-versioning
2008.11.28: version 3.7.004 - some clean up, show plugin,phrase,template alone ...

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #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
  #43  
Old 08-07-2009, 02:06 AM
SorentoUltimate's Avatar
SorentoUltimate SorentoUltimate is offline
 
Join Date: Jul 2009
Location: Moschato, Athens, Greece
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #44  
Old 04-05-2011, 08:15 AM
muratcan25's Avatar
muratcan25 muratcan25 is offline
 
Join Date: May 2009
Location: Turkey
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04374 seconds
  • Memory Usage 2,262KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete