PDA

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


mtha
12-02-2009, 10:00 PM
[APM] Advanced Product Management 4.0.001


/*================================================* \
|| ########################################## ||
|| # Advanced Product Management [APM] ? by HacNho
|| # Copyright (C) 2006 by HacNho, All rights reserved.
|| # ----------------------------------------------------------
|| # For use with vBulletin Version 4.0.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=229418
|| ########################################## ||
\*================================================ =*/

Hack Version: 4.0.001.091204
Compatible vB version: 4.0.0
Support: https://vborg.vbsupport.ru/showthread.php?t=229418

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

APM for vB version: 3.7.x
Support: https://vborg.vbsupport.ru/showthread.php?t=197071

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 the product itself (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 ...
2009.12.04: version 4.0.001 - release for vB 4.0


Updated, just remove the space in navcp that create the link problem and phrase some text

mtha
12-03-2009, 10:12 AM
reserved



Note: This is a beta version, upgraded from the old version. I run though the process, but if you still find bug/error, please notify me.

Hasann
12-03-2009, 11:14 AM
Best Mod Ever Thanks For Upgrading it mtha

NFLfbJunkie
12-03-2009, 12:45 PM
Can't upload product. Getting the message "This product is not compatible with version 4.0.0 Beta 4 of vBulletin. (Compatible starting with 4.0.0)"

TheSupportForum
12-03-2009, 12:53 PM
remove the dependancy line in the xml file

TheSupportForum
12-03-2009, 12:55 PM
The following dependencies were not met:

This product is not compatible with version 4.0.0 Beta 4 of vBulletin. (Compatible starting with 4.0.0)also removing the dependancy line in the xml file does not fix this, although it does install there is no extras added in the install products section

SİMAR
12-03-2009, 01:27 PM
thanks man

mtha
12-03-2009, 03:31 PM
I couldn't install the mod right now to test, but i just change min version requirement to 4.0.0 Beta 3 in the uploaded file. nothing else changed.

Hasann
12-03-2009, 03:45 PM
I couldn't install the mod right now to test, but i just change min version requirement to 4.0.0 Beta 3 in the uploaded file. nothing else changed.


Database error in vBulletin 4.0.0 Beta 4:

Invalid SQL:

UPDATE product SET
title = '[APM] Advanced Product Management',
description = 'Product Management Center: add/edit/delete product\'s components.',
version = '4.0.001',
apm_releasedate = '',
apm_author = '',
apm_relatedurl = '',
apm_extrainfo = '',
apm_extraedit = '',
apm_installdate = '',
url = 'https://vborg.vbsupport.ru/showthread.php?t=229418',
versioncheckurl = 'https://vborg.vbsupport.ru/misc.php?do=checkversion&t=229418'
WHERE productid = 'adv_product_management4';

MySQL Error : Unknown column 'apm_releasedate' in 'field list'
Error Number : 1054
Request Date : Thursday, December 3rd 2009 @ 06:45:25 PM
Error Date : Thursday, December 3rd 2009 @ 06:45:25 PM
Script : http://localhost/vb4/admincp/apm_product.php?do=productsave
Referrer : http://localhost/vb4/admincp/apm_product.php?do=managedetails&productid=adv_product_management4&s=
IP Address : 127.0.0.1
Username : Hasann
Classname : vB_Database
MySQL Version : 5.1.37-community-log

mtha
12-03-2009, 06:42 PM
Hasann

1. Did you upgrade the hack, or install new?
2. Did you use vBulletin's standard import tool to import the product file (install)?

You may use APM to import itself, if that case, please try:
" Import XML product (product-adv_product_management_XXX.xml) using vBulletin standard product import tool."

Michael Biddle
12-03-2009, 07:31 PM
Does this have the version checker? I know the last one did not.

Michael Biddle
12-03-2009, 07:49 PM
Also not working on my RC1. The cpnav is not working correctly. It is showing the *[]*

MrZeropage
12-03-2009, 07:55 PM
This is a MUST HAVE for every vBulletin-Admin, THANKS for the upgrade to vB 4.0 ! :)

But I don't get the cpnav-XML working, it just shows an empty new settingsgroup instead of adding the APM-options to the product-section ... ?

Hasann
12-03-2009, 08:24 PM
Hasann

1. Did you upgrade the hack, or install new?
2. Did you use vBulletin's standard import tool to import the product file (install)?

You may use APM to import itself, if that case, please try:
" Import XML product (product-adv_product_management_XXX.xml) using vBulletin standard product import tool."
1. installed new.
2. yes i did it.
This is a MUST HAVE for every vBulletin-Admin, THANKS for the upgrade to vB 4.0 ! :)

But I don't get the cpnav-XML working, it just shows an empty new settingsgroup instead of adding the APM-options to the product-section ... ?

@MrZeropage try this cpnav.xml file.

mtha
12-03-2009, 09:12 PM
Does this have the version checker? I know the last one did not.

No it does not.
hurik got one before, if it doesn't get developed, i may think about adding it.
https://vborg.vbsupport.ru/showthread.php?t=133366

Also not working on my RC1. The cpnav is not working correctly. It is showing the *[]*

RC1? I don't have RC1 yet, just beta4.

This is a MUST HAVE for every vBulletin-Admin, THANKS for the upgrade to vB 4.0 ! :)

But I don't get the cpnav-XML working, it just shows an empty new settingsgroup instead of adding the APM-options to the product-section ... ?

did you get the newest file? try to download the file Hasann give and see if it works. (it is the same file i have in the current zip.


1. installed new.
2. yes i did it.

@MrZeropage try this cpnav.xml file.
Hasann, you upload the same file I have, isnt it?
when do you get the error? during the APM installation? or when you're updating? as I install the hack on a new board fine, without error.

the apm_releasedate column (and others) should be created during the installation process. Could you try to uninstall/install the hack? using VB's standard product import tool and see if it works.

Michael Biddle
12-03-2009, 09:26 PM
I am on the alpha team so I have RC1, I was just letting you know that it worked other then the cpnav.

As for the cpnav, I took the above one, and it seemed to work out.

mtha
12-03-2009, 09:35 PM
I am on the alpha team so I have RC1, I was just letting you know that it worked other then the cpnav.

As for the cpnav, I took the above one, and it seemed to work out.

:> cool.

I check the one above is exactly the same as the one i have, not sure what you have wrong. if you see the different, let me know.

DS MrSinister
12-04-2009, 02:32 AM
:> cool.

I check the one above is exactly the same as the one i have, not sure what you have wrong. if you see the different, let me know.

only thing i saw that was different sir. in the first line of cpnav file was a space.

Dr.osamA
12-04-2009, 04:35 AM
try

goood job man
________
MAGIC FLIGHT LAUNCH BOX REVIEW (http://mflbvaporizer.com)

TheSupportForum
12-04-2009, 06:17 AM
still no dirrent with vb 4 beta 4 not working

micheal332001
12-04-2009, 06:53 AM
still no dirrent with vb 4 beta 4 not working

It dose work if you put the includes folder from the old version in and use the new admincp files.

so download this version for vb3.7.X
https://vborg.vbsupport.ru/showthread.php?t=197071

and upload only the includes folder.

Then download this new version for vb 4.0 and only upload the admincp files and use the vb4.0 product.xml file to install.

Thats how i got mine to work, and its all working fine now.

TheSupportForum
12-04-2009, 06:57 AM
It dose work if you put the includes folder from the old version in and use the new admincp files.

so download this version for vb3.7.X
https://vborg.vbsupport.ru/showthread.php?t=197071

and upload only the includes folder.

Then download this new version for vb 4.0 and only upload the admincp files and use the vb4.0 product.xml file to install.

Thats how i got mine to work, and its all working fine now.

THIS IS WHAT I EXACTLY DID, AND STILL DID NOT WORK

halkum
12-04-2009, 07:33 PM
The includes folder fix worked fine for me.

Thanks.

MrZeropage
12-05-2009, 08:22 PM
Thanks, the CPNAV-File from Hasann helped, everything fine now :)

Fr4n-FX
12-05-2009, 09:21 PM
thanks a lot mtha

Delifed
12-05-2009, 11:54 PM
It dose work if you put the includes folder from the old version in and use the new admincp files.

so download this version for vb3.7.X
https://vborg.vbsupport.ru/showthread.php?t=197071

and upload only the includes folder.

Then download this new version for vb 4.0 and only upload the admincp files and use the vb4.0 product.xml file to install.

Thats how i got mine to work, and its all working fine now.

Thanks Worked.

mtha
12-07-2009, 11:55 PM
Does this have the version checker? I know the last one did not.

it is compatible with this hack.

https://vborg.vbsupport.ru/showthread.php?p=1927052#post1927052

you need to make that modification in Check Version hack to make it work


Btw. the zip file is updated with the "clean" version of navcp.

messengermatt
12-08-2009, 10:10 AM
This needs to work with vb4 out of the box not with some old files added :S

mtha
12-08-2009, 04:48 PM
This needs to work with vb4 out of the box not with some old files added :S

sorry, but i don't know what you mean?

i just said above, that the zip file is updated with the clean cpnav file, which should be good.

mtha
12-08-2009, 04:51 PM
1. installed new.
2. yes i did it.


@MrZeropage try this cpnav.xml file.


Hasann, ... did you have this one installed successfully or or not?

Hasann
12-08-2009, 11:28 PM
Hasann, ... did you have this one installed successfully or or not?

Yes, installed successfully
No Problem anymore thanks again :up:

RadioErewan
12-09-2009, 01:19 PM
I did not "installed" as it is test drive. But reporting such message:
Fatal error: Call to undefined function bitwise() in /path/admincp/apm_product.php(441) : eval()'d code on line 5
vB4 beta5. On blog plugin advanced edit.

DS MrSinister
12-09-2009, 03:25 PM
get this error on vB4 beta5. On CMS plugin advanced edit.

Fatal error: Call to undefined function fetch_phrase() in admincp/apm_product.php(238) : eval()'d code on line 1

mtha
12-09-2009, 08:10 PM
confirmed bug on Blog and CMS. Never look at cms and blog code, so i have no idea what's going with those two yet.

anyway i will take a look at those next week.

SemperFideles
01-10-2010, 06:12 PM
Outstanding modification. This ought to be a default feature. Well done.

meissenation
01-21-2010, 12:09 AM
Holy s**t! This is the first time I've used this product even though I've seen it in the thread listing since I started using 3.5.x and WOW... amazing.

manofphat
02-17-2010, 08:06 PM
Is this fully functional on 4.0.2?

Brew
02-18-2010, 09:21 PM
Is this fully functional on 4.0.2?

Seems to be working good for me with 4.0.2

manofphat
02-18-2010, 10:40 PM
Seems to be working good for me with 4.0.2

Thanks Brew! :)

Sador
02-19-2010, 02:36 PM
Just installed on my testboard, nice work.

However, for some reason the layout is a bit messed up in this mod. Anything I can do? (check attachment for a screenshot)

Thanks.

War.Frog
02-19-2010, 03:04 PM
Wow, this looks like a FANTASTIC mod. How is this stuff not built right into the product!?

Tagged for install post-4.02 upgrade!

thincom2000
06-20-2010, 10:52 PM
Several bugs:

This doesn't purge the type cache when products are disabled/enabled. In turn, causes database errors when turning on/off products with their own content types (e.g. vBulletin Blog or vBulletin CMS). See the current plugin.php for the appropriate code to handle this. As seen in that file, blocks also need to be rebuilt.

It's also possible you need to update the import/export to handle grids, blocks, etc.

gamerfu
07-23-2010, 08:37 PM
I am using 4.0.5 and AME does not display Release Date nor the Install Date.

Any ideas why?

Both fields are blank. :(

thincom2000
07-23-2010, 10:46 PM
It's possible AME's author didn't use APM or didn't bother filling in these fields before exporting the product.

KURTZ
07-24-2010, 09:50 AM
simply AWESOME product! Installed/Rated/Nominated!

icemann
07-24-2010, 01:15 PM
Working fine on 4.0.5 :cool:

KURTZ
07-27-2010, 04:44 PM
Working fine on 4.0.5 :cool:

yes, but needs an improvement, the possibility to enable/disable more than one product simultaneously ...

Fraxter
08-15-2010, 09:25 PM
If i add a template to a product i get always
Invalid Product Specified
The templatet were created, but it's not integrated in the plugin.

vB 4.0.5

Make i something wrong?

Boofo
08-15-2010, 10:35 PM
You need to set which product it is for. vBulletin is the default.

Michlerish
08-16-2010, 05:36 AM
Installed and seems to be working in 4.0.6

Thanks :)

Fraxter
08-16-2010, 06:25 PM
You need to set which product it is for. vBulletin is the default.

I did that of course. First i created the template and after that comes the error message. The template is there, but's not specified to the addon.

thincom2000
08-23-2010, 05:13 AM
Several bugs:

This doesn't purge the type cache when products are disabled/enabled. In turn, causes database errors when turning on/off products with their own content types (e.g. vBulletin Blog or vBulletin CMS). See the current plugin.php for the appropriate code to handle this. As seen in that file, blocks also need to be rebuilt.

It's also possible you need to update the import/export to handle grids, blocks, etc.

These bugs still haven't been addressed. It drives my clients mad whenever they install/enable/disable mods using this. It also breaks functionality in the default vB Suite.

Boofo
08-23-2010, 11:11 AM
How does it break functionality in the default vB Suite?

sulasno
09-20-2010, 12:26 PM
tagged for reference

mgurain
11-26-2010, 12:20 PM
Screen shots ?

COL NIL SATIS
11-27-2010, 06:10 PM
tagged

Brew
01-13-2011, 01:06 PM
With vB4.1.0pl2 I get this error when I go to the APM screen:

-----------------------------------------------------
Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

* Please contact the website owners to inform them of this problem.
------------------------------------------------------

This only started after installing 4.1pl2

Also, the new cpnav that was posted above gives this error:

--------------------------------
Invalid File Specified
--------------------------------

Any ideas?

Thanks!

steve1966
04-17-2011, 10:23 PM
thank you

kisanjong
04-20-2011, 06:08 AM
does this work with 4.13 ?

HMBeaty
04-20-2011, 03:38 PM
does this work with 4.13 ?
Yes

kisanjong
04-20-2011, 08:05 PM
Thanks HMbeaty. Installing :)

Delphiprogrammi
05-18-2011, 06:38 AM
hi, working fine but the collapse functionality is broken looks like the code for that is old and needs an update not a real bug just annoying to see a death image

Welshy2008
05-18-2011, 07:16 AM
** Tagged **

This looks great. Thanks. :)

Delphiprogrammi
05-27-2011, 03:37 PM
These bugs still haven't been addressed. It drives my clients mad whenever they install/enable/disable mods using this. It also breaks functionality in the default vB Suite.

every time you view vbCMS or vbBlog PHP throws an error message you got that error to ? i think it's being caused by outdated code in apm_options.php and apm_product.php while i'm digging anyway i'll see if i find a way around

Boofo
05-27-2011, 03:58 PM
I'm not getting any errors when I view CMS or Blog php code.

Delphiprogrammi
05-29-2011, 05:52 AM
I'm not getting any errors when I view CMS or Blog php code.

try to view it's settings through apm it's throwing PHP errors about a function call to bitwise();(/includes/functions_misc.php) "fixed" also when you view vbblog settings tghrough apm it displays some blank phrases yet apm_options.php?do=options&dogroup=vbblog works normal

Boofo
05-29-2011, 07:03 AM
Maybe post the fixes for those who are having the same issues?

Delphiprogrammi
05-29-2011, 10:23 AM
Maybe post the fixes for those who are having the same issues?

Sure to correct the error about a bitwise() function call make sure this is there in apm_product.php


require_once(DIR . '/includes/functions_misc.php');


to correct the error about empty phrases in vbblog in apm_product.php add cpuser to the $phrasegroups array

Boofo
05-29-2011, 11:09 AM
I have not run into these issues but I added the stuff to the apm_product.php file, anyway, just in case. ;)

Delphiprogrammi
05-30-2011, 05:35 PM
Boofo,

I'm trying to fix the broken collapse/expand stuff.This has changed from the way it whas done in the past.I just don't understand there seems to be a css thrick involved i admit i'm not the best with css.You always seem to find your way around things do you have *any* idea how to fix that stuff ? i'm just to stupid to find how :o and if it's displaying 100+ of templates it's a nice thing to have

Boofo
05-30-2011, 11:56 PM
Look in my User CP Referral ID and Referrer/Referrals in Profile for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243455) mod as see if that helps you. I added the collapse/expand to that a little while back. If you still can't get it after that, let me know in PM and I will take a look at it for you.

Delphiprogrammi
05-31-2011, 08:53 AM
Look in my User CP Referral ID and Referrer/Referrals in Profile for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243455) mod as see if that helps you. I added the collapse/expand to that a little while back. If you still can't get it after that, let me know in PM and I will take a look at it for you.

Thanks Boofo i saw something in that code i didn't know about i will try it on my "/testvb/" before i screw things up hower i have this thought the addiotional.css template isn't processed in the AdminCP i might be wrong we'll see

Boofo
05-31-2011, 09:14 AM
Thanks Boofo i saw something in that code i didn't know about i will try it on my "/testvb/" before i screw things up hower i have this thought the addiotional.css template isn't processed in the AdminCP i might be wrong we'll see

Let me know what you find out. ;)

Delphiprogrammi
05-31-2011, 10:54 AM
Let me know what you find out. ;)

the code like this


vb:raw relpath#top
it is producing raw putput same goes for "vbcollapse.collapseimg"' stuff looks like this is not processed in the AdminCP but couldn't that be replaced since relpath is only what comes behind the domain eg

$vbulletin->path;

but since touching that stuff can create security related holes i rather leave it alone

Boofo
05-31-2011, 11:12 AM
Have you tried adding the full path instead?

Delphiprogrammi
05-31-2011, 11:35 AM
Have you tried adding the full path instead?

i whas about to try that till i got interrupted by a woman :D:p so in the img tag put the full path and in the a tag just #top but i highly doubt that will work maybe with the $vbcollapse variable

Delphiprogrammi
05-31-2011, 03:11 PM
hi,

I give up this bloody thing just doesn't work it looks like it's changed so you can only do this with templates the old way was so much easier

edit

look at the screenshot we're coming closer though nothing happens when you click rhe icon

TombstoneWarrior
01-22-2012, 08:31 PM
WERE DO I UPLOAD THE FILE>> cpnav_adv_product_management.XML ??????

HMBeaty
01-22-2012, 08:34 PM
WERE DO I UPLOAD THE FILE>> cpnav_adv_product_management.XML ??????
In your includes/xml/ folder

TombstoneWarrior
01-22-2012, 08:57 PM
In your includes/xml/ folder THANKS IM DUMB I DONT KNOW WHY I COULD NOT FIND THAT FOLDER I QUESS I WAS JUST RUSHING A BIT THANKS FOR THE HELP THOUGH!!!!!!!

TombstoneWarrior
01-22-2012, 09:08 PM
I WOULD LIKE TO DO THIS>>> {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 the product itself (product-adv_product_management.xml) BEFORE step 2

BUT AFTER UPLOAD I CAN NOT FIND THE APM import product tool I SEE THE MOD ON MY PLUGIN PAGE BUT CANT FIND APM import product tool. can someone explain were it is located?

HMBeaty
01-22-2012, 09:14 PM
I WOULD LIKE TO DO THIS>>> {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 the product itself (product-adv_product_management.xml) BEFORE step 2

BUT AFTER UPLOAD I CAN NOT FIND THE APM import product tool I SEE THE MOD ON MY PLUGIN PAGE BUT CANT FIND APM import product tool. can someone explain were it is located?
AdminCP > Plugins & Products > Advanced Product Management > Scroll all the way down and you should see [Add/Import Product]

Slow down and look at/review your options.....

HMBeaty
01-22-2012, 09:14 PM
Also, turn your caps lock off ;)

TombstoneWarrior
01-22-2012, 09:39 PM
AdminCP > Plugins & Products > Advanced Product Management > Scroll all the way down and you should see [Add/Import Product]

Slow down and look at/review your options.....Tre hanks for the quick response. thats were i thought the button should be, but for some reason i could not see it. LOL oh well thanks again for the help and sorry about the cap's. Didnt even releaze it was on been a real lomg day.

thincom2000
03-29-2012, 04:39 AM
This needs to be updated for vBulletin 4.1.11+, so we can add Master Mobile Style templates to our products.

DirtRider
05-26-2012, 11:55 AM
Something I would really like to see this mod do is also delete all associated files to any mod that it uninstalls

BirdOPrey5
05-26-2012, 02:17 PM
There would be no way to know what files are used by what mod. Files aren't listed anywhere in the xml files.

Boofo
06-02-2012, 01:39 AM
This mod needs to be updated to handle the navigation stuff in vB 4.2.0. It does not save any navigation items when exporting.

BirdOPrey5
06-02-2012, 09:44 AM
This mod needs to be updated to handle the navigation stuff in vB 4.2.0. It does not save any navigation items when exporting.

Coder last active in 2010 and no longer licensed. Not likely to happen.

Boofo
06-02-2012, 03:13 PM
I'm sure someone will come up with a fix for it and post it in here.

Hasann
03-09-2014, 07:57 PM
Thank you for this great Addon