PDA

View Full Version : Administrative and Maintenance Tools - [APM] Advanced Product Management 3.7.004


mtha
11-22-2008, 10:00 PM
[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/) | 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 (https://vborg.vbsupport.ru/showthread.php?t=121792)

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 ...

mtha
11-23-2008, 09:58 PM
reserve .... editing

FYI.
- This mod should work with vBB 3.8.x. just install and give it a shot
- I leave the Admin Help and FAQ section available, but NOT yet implemented.

version 3.1.2 is compatible with Check All Version
version 3.1.2 partly supports Template Management System

Atakan KOC
11-23-2008, 10:05 PM
Very nice. Thanks mtha.. :)

rainyleaves
11-23-2008, 10:23 PM
Sooooooooo Great!!!
Thanks, mtha.
MOTM!

ForumsMods
11-23-2008, 11:09 PM
Can you add an option to see cron??

ymy
11-23-2008, 11:47 PM
Very nice. Thanks mtha..

I can`t find product-adv_product_management_XXX.xml in zip file

Only product-adv_product_management.xml

ymy

NolF
11-24-2008, 12:06 AM
ohhhh so many thanks mate! Great job :D

AWJunkies
11-24-2008, 12:12 AM
Thanks for updating!!

LuBi
11-24-2008, 02:05 AM
Thanks for the update and another great contribution :D

mtha
11-24-2008, 05:01 AM
Can you add an option to see cron??

cron should already be there. dont you see it?

Very nice. Thanks mtha..

I can`t find product-adv_product_management_XXX.xml in zip file

Only product-adv_product_management.xml

ymy


yeap, now it's product-adv_product_management.xml i didnt change the instruction

ry215
11-24-2008, 06:09 AM
<font color="Red">*ry215 Mark As Installed*</font>

Thanks!

Leo Brazil
11-24-2008, 11:04 AM
Great Job.

Leo clicks installed !!

MrZeropage
11-24-2008, 05:42 PM
Thanks ALOT for this, always been waiting for it :up: :up: :up:

What about implementing support for TMS (Template Modification System -> click (https://vborg.vbsupport.ru/showthread.php?t=152931)) ?

ymy
11-24-2008, 05:56 PM
yeap, now it's product-adv_product_management.xml i didnt change the instruction

Thanks for Reply :up:


Ymy

.

vip-q.com
11-24-2008, 11:15 PM
installed
but I have add option
and I can't change them ??

mtha
11-25-2008, 05:26 AM
Thanks ALOT for this, always been waiting for it :up: :up: :up:

What about implementing support for TMS (Template Modification System -> click (https://vborg.vbsupport.ru/showthread.php?t=152931)) ?

TMS is another mod, not included in official vbulletin release. it has its own "license" conditions that I prefer not interfere with it, and i myself don't use it right now, so I dont have a plan on implementing support for TMS yet.

but if it is a very useful feature that being use by a lot of user, and if it doesnt violate TMS license, i may take a look. just not right now.

installed
but I have add option
and I can't change them ??

if you can change with standard vbulletin function, you should be able to do the same with APM. If your option cant be modified using vbulletin's standard function, it cant be modified in APM either.

Paul M
11-25-2008, 06:54 AM
JFYI, the URL in the product XML file still points to an old thread, not this one. :)

MrZeropage
11-25-2008, 08:04 AM
You should check out TMS as it is really helpful for any vBulletin-installation.

It stores modifications to templates and does them on-the-fly, which means any vB-update does not need any re-work done to the templates, as the modifications stay intact.

Anybody once using TMS will never uninstall it, for sure :D

Support for it would be fantastic and your APM would be central management for all AddOns and everything related to it :)

Mike-D
11-25-2008, 10:29 AM
Anybody once using TMS will never uninstall it, for sure :DI'm the one who can't live without TMS anymore ;) It rocks till today like nice blond chicks :D

mtha
11-25-2008, 02:38 PM
JFYI, the URL in the product XML file still points to an old thread, not this one. :)

tks Paul. fixed the link. i bet you already fixed it in your install, by changing the threadid #, so dont really need to re-import.

Support for it would be fantastic and your APM would be central management for all AddOns and everything related to it :)

ok, will think and consider about it when I have time. thank you for suggestion :)

Hasann
11-27-2008, 03:00 AM
I need this for ever
Thanks a lot mtha

mtha
11-27-2008, 06:51 PM
FYI

APM 3.1.2 is now compatible with Check All Version mod (if installed), and also partially support TMS mod (if installed)

Paul M
11-27-2008, 07:30 PM
Oh good, I hate the clash with the check mod. Not bothered about TMS, dont use it.

Paul M
11-27-2008, 07:55 PM
Hmm, all my options have a big red box in them that says Error: and then the number 1

mtha
11-27-2008, 08:08 PM
oops reverse condition when checking for error. fixing in a sec.

me bad tester :">
tks Paul

mtha
11-27-2008, 08:14 PM
Hmm, all my options have a big red box in them that says Error: and then the number 1


fixed. 3.1.3
you just need to upload the apm_product.php.
option to reimport XML for the version correction.

Stoebi
11-28-2008, 07:18 AM
Hi

Thank you very much, i like and use it also. :)

My wish is to have a save & reload option for plugins (like vB 3.8.0) and save the collapse status to the cookie.
If i edit phrases and click save, apm should return to the phrase manager, please, not to the complete overview of this product.


Regards,

Stoebi

Paul M
11-28-2008, 11:10 AM
fixed. 3.1.3
you just need to upload the apm_product.php.
option to reimport XML for the version correction.
Thanks :up:

MrZeropage
11-28-2008, 06:11 PM
Thank you VERY much for adding TMS-feature to it.

Any admin should use APM :)

Hasann
11-28-2008, 06:18 PM
Thanks again for the update mtha
Thank you VERY much for adding TMS-feature to it.

Any admin should use APM :)

Im using it since 2005 :)

mtha
11-28-2008, 07:25 PM
Hi

Thank you very much, i like and use it also. :)

My wish is to have a save & reload option for plugins (like vB 3.8.0) and save the collapse status to the cookie.
If i edit phrases and click save, apm should return to the phrase manager, please, not to the complete overview of this product.


Regards,

Stoebi

version 3.7.004

fixed to display only plugins or templates or phases if they are displayed individually.

add some links for sections.

Stoebi
11-29-2008, 09:12 AM
That's really great.

Thank you so much. :)

It is possible to add functionality for Test/Delete/Export TMS modifications, please? See attachment please.


Kind Regards,

Stoebi

MrZeropage
11-29-2008, 02:59 PM
Thanks alot, this already was fantastic and now gets more and more improved :up:

Jelsoft should implement this in vBulletin itself :)

mtha
11-29-2008, 03:39 PM
That's really great.
Thank you so much. :)

It is possible to add functionality for Test/Delete/Export TMS modifications, please? See attachment please.

Kind Regards,

Stoebi

there're already some links for test / edit / delete to direct to TMS itself. that's convenient enough for coders. anyone want to use TMS should use from its interface.

Thanks alot, this already was fantastic and now gets more and more improved :up:

Jelsoft should implement this in vBulletin itself :)


:) I hope so too.

Magnumutz
11-30-2008, 01:13 PM
For some odd reason, it's not working for me...

mtha
12-01-2008, 08:50 PM
if you describe what happened, i may see what's going on.

anyway, you may need to have debug on when creating mods.

Hannan
12-08-2008, 10:00 PM
Nice mod, thanks

Wordplay
12-09-2008, 08:04 AM
has anybody tried this on 3.8 yet?

Paul M
12-09-2008, 12:14 PM
Yes, works fine.

Abe1
12-26-2008, 03:59 AM
Can you add "save and reload" to plugins as vb has now?

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 (https://vborg.vbsupport.ru/member.php?u=136823)! All Infos would not have been possible without him :up:

File admincp/apm_product.php
In Line 523 search for:
$vbulletin->input->clean_gpc('r', 'vbulletin_collapse', TYPE_NOCLEAN);


Replace with:
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:
'showplugins' => TYPE_UINT,


Add below:
'return' => TYPE_STR


Step 2. Search for:

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

// 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:
print_submit_row($vbphrase['save'], $vbphrase['reset']);


Replace with:
//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 (https://vborg.vbsupport.ru/showthread.php?t=152931) AddOn and always missed the well known Menu Items "Test" / "Delete" / "Export".

File admincp/apm_product.php
Search for:
case 'productexport': page = "apm_product.php?do=productexport&productid="; break;


Add below:

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 (http://your-vb.com/index.php) 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