PDA

View Full Version : [APM] Advanced Product Management 2.0.4


mtha
09-05-2005, 10:00 PM
[APM] Advanced Product Management 2.0.4


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

Hack Version: 2.0.3.051105
Compatible vB version: 3.5.1 (and later)
Support: https://vborg.vbsupport.ru/showthread.php?t=95741
Translated Versions:
http://www.vbhacks-germany.com/forum/showthread.php?t=1971

NOTE: This release is to fix few function name changes in vB 3.5.1
if you have vB 3.5.0, please DONOT upgrade to this version
For vB version later than 3.5.1, you can use the version for 3.5.1 (was named for 3.5.1 only) without problem.

Beta release for vB 3.6.0 RC2 is AVAILABLE here:
https://vborg.vbsupport.ru/showthread.php?t=121792

DESCRIPTION:

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

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.

CHANGES/MODIFICATION:

- Query: 1 (ADD 5 additional fields to product table)
- Files to add: 5
- Product to import: 1

INSTALL:
(2005.10.06: for safer installation, please do step 2 (import the product) first, then upload the files.)

2. Import XML product product-adv_product_management.xml using vBulletin standard product import tool.
1. Upload all files in UPLOAD folder to your server
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.


SCREENSHOT:
Included


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. More product information fields. Better product's component adding/editting
2005.10.03: version 2.0.1: FIX bug on updateactive plugins in one product that de-active all other plugins. upgrade is recommended for the function to work right
2005.10.06: v2.0.2 Fix post #41 (https://vborg.vbsupport.ru/showpost.php?p=785202&postcount=41) bug when debug mod is on

2005.11.05: v2.0.3 Fix bug on post #48 (https://vborg.vbsupport.ru/showpost.php?p=812337&postcount=48) for vBulletin 3.5.1
{NOTE: This release is to fix few function name changes in vB 3.5.1
if you have vB 3.5.0, please DONOT upgrade to this version}

2006.03.20: v. 2.0.4 fix bug on post #64 (https://vborg.vbsupport.ru/showpost.php?p=908443&postcount=64)

2006.07.21: v. 3.0.0
Beta release for vB 3.6.0 RC2 is AVAILABLE here:
https://vborg.vbsupport.ru/showthread.php?t=121792
(https://vborg.vbsupport.ru/showpost.php?p=908443&postcount=64)

mtha
09-06-2005, 10:17 AM
reserved for updates

uae
09-06-2005, 10:29 AM
You guys are on fire, and the sky is raining mo and mo cool hacks.

Keep'em coming :)

Thanks for sharing mtha

Snake
09-06-2005, 10:42 AM
Thanks for the hack.

Andreas
09-06-2005, 12:55 PM
Dunno if it is just me, but

$products = $db->query_read("
SELECT pr.*
,count(DISTINCT pl.pluginid) AS plugin
,count(DISTINCT ph.phraseid) AS phrase
,count(DISTINCT templateid) AS template
# ,count(DISTINCT se.varname) AS setting
FROM " . TABLE_PREFIX . "product AS pr
LEFT JOIN " . TABLE_PREFIX . "plugin AS pl ON (pl.product = pr.productid)
LEFT JOIN " . TABLE_PREFIX . "phrase AS ph ON (ph.product = pr.productid)
LEFT JOIN " . TABLE_PREFIX . "template AS te ON (te.product = pr.productid)
# LEFT JOIN " . TABLE_PREFIX . "setting AS se ON (se.product = pr.productid)
GROUP BY productid
ORDER BY title");
while ($product = $db->fetch_array($products))

keeps killing my Server. This Query takes over 1 Minute to execute and while it does run, the machine is almost unusable - CPU 100%.

Therefore I replaced that Code with

$productq = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "product ORDER BY title");
while ($product = $db->fetch_array($productq))
{
$products["$product[productid]"] = $product;
$products["$product[productid]"]['plugin'] = 0;
$products["$product[productid]"]['phrase'] = 0;
$products["$product[productid]"]['template'] = 0;
$products["$product[productid]"]['setting'] = 0;
}

$pluginq = $db->query_read("SELECT product, COUNT(pluginid) AS plugin FROM " . TABLE_PREFIX . "plugin WHERE product != 'vbulletin' GROUP BY product");
while ($plugin = $db->fetch_array($pluginq))
{
$products["$plugin[product]"]['plugin'] = $plugin['plugin'];
}

$phraseq = $db->query_read("SELECT product, COUNT(phraseid) AS phrase FROM " . TABLE_PREFIX . "phrase WHERE languageid=-1 AND product != '' AND product != 'vbulletin' GROUP BY product");
while ($phrase = $db->fetch_array($phraseq))
{
$products["$phrase[product]"]['phrase'] = $phrase['phrase'];
}

$templateq = $db->query_read("SELECT product, COUNT(templateid) AS template FROM " . TABLE_PREFIX . "template WHERE styleid=-1 AND product != '' AND product != 'vbulletin'GROUP BY product");
while ($template = $db->fetch_array($templateq))
{
$products["$template[product]"]['template'] = $template['template'];
}

$settingq = $db->query_read("SELECT product, COUNT(varname) AS setting FROM " . TABLE_PREFIX . "setting WHERE product != '' AND product != 'vbulletin' GROUP BY product");
while ($setting = $db->fetch_array($settingq))
{
$products["$setting[product]"]['setting'] = $setting['setting'];
}

foreach ($products AS $product)

This shows the Results instantly.

Andreas
09-06-2005, 01:39 PM
Just a thought:
If you could make it so the Blocks (Product Details, Install/Uninstall Codes, etc.) are collapsable and when editing/adding an Item one gets taken back to the advanced Product Edit Page - that would be perfect :D

Boofo
09-06-2005, 01:54 PM
I used your code above Kirby and I got a line that is blank at the bottom of the listing that says it has 11 plugins and an x under the settings column.

mtha
09-06-2005, 03:53 PM
Dunno if it is just me, but
keeps killing my Server. This Query takes over 1 Minute to execute and while it does run, the machine is almost unusable - CPU 100%.

well, i was trying to save few queries but it doesnt seem to do much good hah. it took about 1 second for that code to run on my server. Anyway I will switch to using your code then. Thanks for the code :)


Just a thought:
If you could make it so the Blocks (Product Details, Install/Uninstall Codes, etc.) are collapsable and when editing/adding an Item one gets taken back to the advanced Product Edit Page - that would be perfect images/newsm/grin.gif

hehe, yeah. i just thought about the collapsing blocks this morning. it was a quick extension in few hours, so I havent got anything fancy in there yet.

A perfect product should be completed, yes. At the moment, it's only a quick link to other sections. I will gather some more code in there :)


I used your code above Kirby and I got a line that is blank at the bottom of the listing that says it has 11 plugins and an x under the settings column.

I didnt try the code, but x means you dont have any setting for the coresponding product. I will come back with a new code tonight though

Revan
09-06-2005, 05:03 PM
Can you please try to make it look like Live Wire in the thread you got the idea from? If you will, then notice my idea of making disabled plugins red.
If you do then this will rox0r t3h b0x0rz and youll have my install.

Btw why is the 2nd ss showing the hack printing a "Edit vBulletin Options"-ish page underneath the notice of there being no Settings?

evesve
09-06-2005, 05:22 PM
Hi!
I have upload both files to the right place.
Refresh the side, but I don´t have the Advanced Manage Product in the Plugin System.
(RC1)

What´s wrong?

Boofo
09-06-2005, 07:44 PM
I didnt try the code, but x means you dont have any setting for the coresponding product. I will come back with a new code tonight though

What I'm saying is there is a blank line with no product name at all. It just has 11 and x in it.

mtha
09-06-2005, 09:05 PM
What I'm saying is there is a blank line with no product name at all. It just has 11 and x in it.

Hi!
I have upload both files to the right place.
Refresh the side, but I don?t have the Advanced Manage Product in the Plugin System.
(RC1)

What?s wrong?
If you uploaded the xml file to /includes/xml folder, you should see the link in Plugin menu, after refreshing browser.
If you still dont see it, I think there's a "How-To" thread showing you how to work around on AdminCP menu.



What I'm saying is there is a blank line with no product name at all. It just has 11 and x in it.


Boofo, hehe, I got the same problem, with 4 plugins. I look at the database and find out that I have some plugins that have "product name" but doesnt actually have a product for it. that's why.

Maybe, adding someing like "Un-assigned product" on that line would help :D, or building a product list and just count in the list

Boofo
09-06-2005, 09:20 PM
Boofo, hehe, I got the same problem, with 4 plugins. I look at the database and find out that I have some plugins that have "product name" but doesnt actually have a product for it. that's why.

Maybe, adding someing like "Un-assigned product" on that line would help :D, or building a product list and just count in the list

But that never showed up in the regular product listing. This is the first time I have seen it.

Is there a way to do the product listing alphabetically like it was originally?

mtha
09-06-2005, 10:27 PM
But that never showed up in the regular product listing. This is the first time I have seen it.


well, because it doesnt have a real product. it's like when you add a plugin, or phrase, or something to database, and just give it some product name. This name doesnt actually exist in product table, => not listed in product listing.


Is there a way to do the product listing alphabetically like it was originally?

Query fixed and sorted. Updated on the attachment

I modify alitle bit on KirbyDE code, adding the product list to counting queries.

$productq = $db->query_read("
SELECT *
FROM " . TABLE_PREFIX . "product
ORDER BY title");

while ($product = $db->fetch_array($productq))
{
$products["$product[productid]"] = $product;
$products["$product[productid]"]['plugin'] = 0;
$products["$product[productid]"]['phrase'] = 0;
$products["$product[productid]"]['template'] = 0;
$products["$product[productid]"]['setting'] = 0;
}
ksort($products);
$productlist = "'". implode('\',\'',array_keys($products)) ."'";

$pluginq = $db->query_read("SELECT product, COUNT(pluginid) AS plugin FROM " . TABLE_PREFIX . "plugin WHERE product IN ($productlist) GROUP BY product");
while ($plugin = $db->fetch_array($pluginq))
{
$products["$plugin[product]"]['plugin'] = $plugin['plugin'];
}

$phraseq = $db->query_read("SELECT product, COUNT(phraseid) AS phrase FROM " . TABLE_PREFIX . "phrase WHERE languageid=-1 AND product IN ($productlist) GROUP BY product");
while ($phrase = $db->fetch_array($phraseq))
{
$products["$phrase[product]"]['phrase'] = $phrase['phrase'];
}

$templateq = $db->query_read("SELECT product, COUNT(templateid) AS template FROM " . TABLE_PREFIX . "template WHERE styleid=-1 AND product IN ($productlist) GROUP BY product");
while ($template = $db->fetch_array($templateq))
{
$products["$template[product]"]['template'] = $template['template'];
}

$settingq = $db->query_read("SELECT product, COUNT(varname) AS setting FROM " . TABLE_PREFIX . "setting WHERE product IN ($productlist) GROUP BY product");
while ($setting = $db->fetch_array($settingq))
{
$products["$setting[product]"]['setting'] = $setting['setting'];
}

Boofo
09-06-2005, 10:44 PM
well, because it doesnt have a real product. it's like when you add a plugin, or phrase, or something to database, and just give it some product name. This name doesnt actually exist in product table, => not listed in product listing.

Then it shouldn't show up in this listing either, right? ;)

Boofo
09-06-2005, 10:51 PM
Ok, with the update, my problem has been fixed. The blank line is no longer there. But there is a new problem. The beginning of the line has the actual product file name and not the title. Shouldn't it have the title there instead like it did in the old one?

mtha
09-07-2005, 03:35 AM
download the file again, and you get what you want :)

Boofo
09-07-2005, 03:45 AM
download the file again, and you get what you want :)

Thank you, sir, but they are still not in alphabetical order. Close though. ;)

mtha
09-07-2005, 06:18 AM
Thank you, sir, but they are still not in alphabetical order. Close though. ;)

Agrrr, you are fooling me around :>

It was sorted by title, but I shows the productid for testing, then I force it to resort by productid, and display title :))

now you have the product list sorted by title

and you have the product's details collapsible

have fun. I will do the "come back after editting" later :)

Boofo
09-07-2005, 06:32 AM
No, sir, I'm not fooling with you. See the attached. ;)

mtha
09-07-2005, 06:54 AM
:> I was joking.

Download the file again, you should get what you want

Boofo
09-07-2005, 06:57 AM
Excellent! Thank you, sir! ;)

Boofo
09-07-2005, 07:00 AM
Ok, found one thing. The date is off for the last modified on the templates.

Jan 1st, 1970 12:00 am / Boofo

Just thought you should know. ;)

Marco van Herwaarden
09-07-2005, 07:04 AM
We knew you where old Bob, but THAT old? You where already working on templates in 1970!

mtha
09-07-2005, 07:09 AM
oopssss he might had ... :)

get the new file Bob

Boofo
09-07-2005, 07:23 AM
We knew you where old Bob, but THAT old? You where already working on templates in 1970!

And even before then. ;)

Boofo
09-07-2005, 07:26 AM
oopssss he might had ... :)

get the new file Bob

Whew! All is well once again. ;)

Revan
09-07-2005, 03:13 PM
Can you please try to make it look like Live Wire in the thread you got the idea from? If you will, then notice my idea of making disabled plugins red.
If you do then this will rox0r t3h b0x0rz and youll have my install.

Btw why is the 2nd ss showing the hack printing a "Edit vBulletin Options"-ish page underneath the notice of there being no Settings?
Bump.

mtha
09-07-2005, 07:08 PM
Can you please try to make it look like Live Wire in the thread you got the idea from? If you will, then notice my idea of making disabled plugins red.
If you do then this will rox0r t3h b0x0rz and youll have my install.


well, i wasnt really get the idea from that thread, i get the idea from what I need/want to do.

talking about Live Wire, you mean this (http://www.vbulletin.com/forum/attachment.php?attachmentid=15483&d=1122518017)?

but it's Product/Plugin System, how it fit in my system, with all other information (phrases, templates, settings)?
For product/plugin, you can take a look at Kirby's
https://vborg.vbsupport.ru/showthread.php?t=95738



* The color red for Disabled hooks

Well, it's read/strike now

Btw why is the 2nd ss showing the hack printing a "Edit vBulletin Options"-ish page underneath the notice of there being no Settings?

I'd want to leave it there so if anyone want to add a setting group, or edit some current setting, he can do it in there. Might not a very good idea, huh :)

Revan
09-08-2005, 09:22 AM
For product/plugin, you can take a look at Kirby's
https://vborg.vbsupport.ru/showthread.php?t=95738That wasn't there when I posted, I swear :p
I'd want to leave it there so if anyone want to add a setting group, or edit some current setting, he can do it in there. Might not a very good idea, huh :)It just looks messy, IMO. Im not telling you to get rid of it or die :p
Anyways, Im gonna take the suggestion out to Kirby now then. :)

Gizmo5h1t3
09-08-2005, 04:03 PM
Hi!
I have upload both files to the right place.
Refresh the side, but I don?t have the Advanced Manage Product in the Plugin System.
(RC1)

What?s wrong?

im also having the same problem.
refreshed page, logged out and back in, all to no avail.
re downloaded files and upped to the ftp, but no luck..
weird.......

ckmarkhsu
09-08-2005, 04:42 PM
me....2

evesve
09-08-2005, 04:47 PM
I?ve still no Advanced Product Manager.
Even my old Product Manager is lost.

I installed Advanced Plugin Manager before advanced Product Manager.

Conflict?

=====================

Later:
I changed from<navoption debug="1" displayorder="11">to:<navoption displayorder="11">
Then I can see Advanced Product Manager in the menu.

It works now!!!

mtha
09-08-2005, 07:27 PM
Later:
I changed from<navoption debug="1" displayorder="11">to:<navoption displayorder="11">
Then I can see Advanced Product Manager in the menu.

It works now!!!

oops, i forgot the debug mode :) thanks. Removed the debug=1 from xml.

evesve
09-08-2005, 07:40 PM
oops, i forgot the debug mode :) thanks. Removed the debug=1 from xml.

:up: :up: :up:

Logician
09-26-2005, 01:33 PM
Very useful hack! Should be a default feature.. ^^

mtha
10-02-2005, 07:20 AM
APM Version 2 is released

You now can add/edit all components (codes/plugins/phrases/templase/settings) in one place.

Some additional fields for more hack information is added

Very easy and convenient to create new products or manage

Check it out and let me know how you like it :)

Snake
10-02-2005, 11:18 AM
Like it? I'm lovin' it!

mtha
10-03-2005, 12:35 PM
Advanced Product Management 2.0.1 is released


2005.10.03: version 2.0.1: FIX bug on updateactive plugins in one product that de-active all other plugins.

Upgrade is recommended for the function to work right.

If you did use the APM tool to updateactive plugins for any product, you should check your plugin list, and make sure that all other plugin are working fine. If all others are inactive, you may want to activate them again.
http://your.forum.url/admincp/plugin.php?do=modify

Sorry for any inconvenient!

Snake
10-03-2005, 01:26 PM
Thanks for the update.

CMX_CMGSCCC
10-03-2005, 02:26 PM
I get this error when I goto Advanced Edit on a plugin.


Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT setting.*, settinggroup.grouptitle
FROM forums_settinggroup AS settinggroup
LEFT JOIN forums_setting AS setting USING(grouptitle)
WHERE settinggroup.displayorder <> 0
WHERE settinggroup.product = 'active_link_security'
OR setting.product = 'active_link_security'
ORDER BY settinggroup.displayorder, setting.displayorder;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE settinggroup.product = 'active_link_security'
OR setti


Looks like "WHERE" is in there twice thats causing the problem.

-CMX

csidlernet
10-05-2005, 02:44 AM
/installs

Kurisu
10-06-2005, 08:52 PM
And I get this error when trying to import the product:


Invalid SQL:

INSERT INTO forum_product
(productid, title, description, version, active, apm_releasedate, apm_author, apm_relatedurl, apm_extrainfo, apm_extraedit)
VALUES
('adv_product_management',
'Advanced Product Management',
'A powerful tool to manage product. All (codes/plugins/templates/phrases/settings) in one!',
'2.0',
1,
'1128232800',
'HacNho',
'https://vborg.vbsupport.ru/showthread.php?t=95741',
'Install\r\n\r\n- Upload files in UPLOAD folder to your server\r\n- Import XML Product (using vBulletin\'s standard Product Import tool)',
''
);

mtha
10-06-2005, 09:03 PM
And I get this error when trying to import the product:


Invalid SQL:

INSERT INTO forum_product
(productid, title, description, version, active, apm_releasedate, apm_author, apm_relatedurl, apm_extrainfo, apm_extraedit)
VALUES
('adv_product_management',
'Advanced Product Management',
'A powerful tool to manage product. All (codes/plugins/templates/phrases/settings) in one!',
'2.0',
1,
'1128232800',
'HacNho',
'https://vborg.vbsupport.ru/showthread.php?t=95741',
'Install\r\n\r\n- Upload files in UPLOAD folder to your server\r\n- Import XML Product (using vBulletin\'s standard Product Import tool)',
''
);


please read the install instruction:


INSTALL:

1. Upload all files in UPLOAD folder to your server
2. Import XML product product-adv_product_management.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.

mtha
10-06-2005, 09:09 PM
I get this error when I goto Advanced Edit on a plugin.


Database error in vBulletin 3.5.0:

Invalid SQL:
WHERE settinggroup.displayorder <> 0
WHERE settinggroup.product = 'active_link_security'


Looks like "WHERE" is in there twice thats causing the problem.

-CMX

You can just delete line # 2698:

" . iif($vbulletin->debug, '', 'WHERE settinggroup.displayorder <> 0') . "

I will update in the file. Thanks :)

Omranic
10-20-2005, 12:32 PM
I'm lovin' it!
Very Very Good Work
It Must Be Merged to vBulletin Default Features
Thanks alot for your work

Valter
10-20-2005, 07:38 PM
Nice work. Thanks.

Installed.

Omranic
11-04-2005, 09:12 AM
after upgrading to 3.5.1 & trying to uminstall a product I got the following Error ::

Fatal error: Call to undefined function: fetchtableinfo() in /hsphere/local/home/phpkd/phpkd.com/vb/admincp/apm_product.php on line 1117

this error repeated to any product uninstallation & the product doesn't uninstalled

mtha
11-05-2005, 05:53 PM
after upgrading to 3.5.1 & trying to uminstall a product I got the following Error ::


Fatal error: Call to undefined function: fetchtableinfo() in /hsphere/local/home/phpkd/phpkd.com/vb/admincp/apm_product.php on line 1117


this error repeated to any product uninstallation & the product doesn't uninstalled

There was few changes in function names for vB 3.5.1.

Version 2.0.3 is released to fix the problem

Please upload the new files.
(reimport XML product is recommended for hack version update)

akanevsky
11-05-2005, 07:01 PM
Wow... This needs be HOTM, matey. Keep up the good work ;)
Nice coding style, too. I'll definitely install later.

Paul M
11-05-2005, 11:01 PM
Hmm, totally missed this when it came out.

This is excellent, installed. :)

The Wise One
11-07-2005, 09:02 AM
very nice. installed.

Omranic
11-07-2005, 09:14 AM
thnx for 3.5.1 update
re-installed

biggjoe
11-13-2005, 09:41 PM
HacNho, this hack kicks-ass! Thanks so much for the awesome work!

Installed baby, all working perfectly in 3.5.1!

J.

-=Sniper=-
12-20-2005, 01:05 PM
Since the filename suggests 3.5.1 only "AdvancedProductManag ement 2.0.3 for vB351only.zip"

Just wondering has anyone tested it with 3.5.2?

sinoeu
01-15-2006, 03:13 PM
And for 3.53 ?

Paul M
01-15-2006, 03:14 PM
Works fine on 3.5.2 & 3.5.3

EasyTarget
01-15-2006, 03:44 PM
Hmm, totally missed this when it came out.

This is excellent, installed. :)
as did myself.. I've been using kirbys but I think its time to move to this.

* EasyTarget installs

Princeton
02-12-2006, 08:44 PM
need to call /includes/functions_misc.php before eval setting[optioncode] in adminfunction_apm_options.php

needed to display multiple options when using bitwise()

another problem that I encountered is when a product has more than 1 vboptions group ... actually, it's a problem with your collapse/expand modification (this is in regards to managedetails area

attached is the modified managedetails code
(I fixed all of the html errors that it had ... now, only the default vb html bugs occur. There's alot more changes that I did so, I recommend making a backup before you commit to the changes. Below is a screenshot of how the section will look like with the new modifications.)

pauloo
02-22-2006, 03:27 PM
I have a problem after install vb 3.5.4.
When i want to run Advanced Product Management in admincp, i have this error:

Fatal error: Cannot redeclare delete_product() (previously declared in /home/***/admincp/apm_product.php:49) in
/home/***/forum/includes/adminfunctions.php on line 3195

Have you a solution please?

Thank you

TTG
02-23-2006, 03:29 PM
I have a problem after install vb 3.5.4.
When i want to run Advanced Product Management in admincp, i have this error:


Fatal error: Cannot redeclare delete_product() (previously declared in /home/***/admincp/apm_product.php:49) in
/home/***/forum/includes/adminfunctions.php on line 3195

Have you a solution please?

Thank you

Same problem here :ermm:

Paul M
02-23-2006, 04:50 PM
Jelsoft have added a function called delete_product() to the software which clashes with the function of the same name in the hack. Oddly enough, both are absolutely identical, so one of them needs commenting out or removing - the apm one being the most obvious. Try just editing apm_product.php and alter function delete_product($productid) to function delete_product_apm($productid) (line 49).

pauloo
02-23-2006, 05:20 PM
Yes it's good now !

Thank you Paul ;)

Andreas
02-23-2006, 06:54 PM
delete_product() existed since product management first appeared, but it was moved to adminfunctions.php in vBulletin 3.5.4

Cross-Version Solution:
Wrap the function in APM in

if (!function_exists('delete_product'))
{

}

MThornback
02-23-2006, 09:23 PM
Thanks Andreas your my hero :cool:

lolo?
02-28-2006, 06:58 AM
dosent work for me in 3.5.4
where your modification must do it
sorry for my english

pauloo
02-28-2006, 12:32 PM
Try just editing apm_product.php and alter function delete_product($productid) to function delete_product_apm($productid) (line 49).

it's ok for me

lolo?
03-01-2006, 05:13 AM
thnaks work great for me next time i read better the thread :p

EasyTarget
03-08-2006, 07:10 PM
thanks guys... updated and working good so far.

gothicuser
03-17-2006, 04:01 AM
Thanks everybody. Really great, installed and working perfectly
.. .. :D :D

mtha
03-20-2006, 10:36 AM
delete_product() existed since product management first appeared, but it was moved to adminfunctions.php in vBulletin 3.5.4

Cross-Version Solution:
Wrap the function in APM in

if (!function_exists('delete_product'))
{

}


sweet. updated on the file. thanks Andreas

Hornstar
03-21-2006, 11:18 PM
another hack that should be standard with Vb great work, clicks install

Boofo
05-02-2006, 03:54 PM
I'm running into the date showing up as Dec 31, 1969 if I don't enter a date and I save it. Also, it shows my style ID numnbers as -14xx (dxx = different numbers) and I only have 2 styles (ID 1 and ID 3). Any ideas what might be causing this?

I am on 3.5.4. ;)

mtha
05-08-2006, 01:35 PM
I'm running into the date showing up as Dec 31, 1969 if I don't enter a date and I save it. Also, it shows my style ID numnbers as -14xx (dxx = different numbers) and I only have 2 styles (ID 1 and ID 3). Any ideas what might be causing this?

I am on 3.5.4. ;)

- standard products doesnt have the release date, so it shows up as Dec 31, 1969

- for some reason, I intended to show style ID and Template ID
styleid = -1 which is MASTER STYLE, and 4xxx is the individual template ID

Those information is basically just for checking, we can ignore or remove them from displaying.

Paul M
05-08-2006, 02:28 PM
- standard products doesnt have the release date, so it shows up as Dec 31, 1969Perhaps a quick bit of logic to not display the date if it's prior to (say) 1 Jan 2000.

- for some reason, I intended to show style ID and Template ID
styleid = -1 which is MASTER STYLE, and 4xxx is the individual template ID

Those information is basically just for checking, we can ignore or remove them from displaying.Now I inderstand what it means, I would say keep it.

One thing that I would like is a link at the top/bottom of the product display screen to take you back to the list of products. :)

MThornback
06-10-2006, 03:52 AM
Is anyone else having a problem with this failing in the beta?

MrZeropage
06-11-2006, 08:38 AM
Yes, it needs an update to work with vBulletin 3.6.0 as "phrasetypeid" is no longer used for example...

Hope this will be updated to be integrated with the new vB-Product-Manager (dependencies ect.) as it is very nice to have all things (options, phrases ect.) within one click :)

Paul M
06-11-2006, 03:17 PM
Is anyone else having a problem with this failing in the beta?Failing in what way ?

Billspaintball
07-13-2006, 03:32 AM
Is this being updated to work in vB 3.6?

MThornback
07-19-2006, 10:02 AM
Failing in what way ?

Sorry paul, just saw this!

For me its not actually disabling products when I tell it to etc....basically I have just been using it to edit plugins all in 1 place....

mtha
07-20-2006, 09:13 AM
well, it's been too much changes in 3.6 and I havent got enuf time to upgrade it yet. Spent sometime on part of it, but havent got it finished. I will try to get it done ASAP guys. sorry for the delay.

Billspaintball
07-20-2006, 10:03 PM
I will try to get it done ASAP guys. sorry for the delay.
Excellent!! :D

I find that this is a huge help in creating hacks.
It really speeds the process up for me :)

Paul M
07-20-2006, 10:20 PM
well, it's been too much changes in 3.6 and I havent got enuf time to upgrade it yet. Spent sometime on part of it, but havent got it finished. I will try to get it done ASAP guys. sorry for the delay.I hope you get time to finish it - this is one excellent piece of work that I find invaluable. :) I sure as hell miss it on my 3.6 site(s). :(

mtha
07-22-2006, 12:19 AM
[APM] Advanced Product Management 3.0.0

/*================================================* \
|| ########################################## ||
|| # Advanced Product Management [APM] v3.0.0 ? by HacNho
|| # Copyright (C) 2006 by HacNho, All rights reserved.
|| # ----------------------------------------------------------
|| # For use with vBulletin Version 3.6.0 RC2 and later
|| # 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.6.0.0607021
Compatible vB version: 3.6.0 (and later)
Support: https://vborg.vbsupport.ru/showthread.php?t=121792


Beta release for vB 3.6.0 RC2 is AVAILABLE here:
https://vborg.vbsupport.ru/showthread.php?t=121792

Please check it our, and see if there's any bug.

I didnt really have time to check everything, so the code might contain bugs. If you found any, put it in a pot, and fry with oil :D

markp_2000
08-07-2006, 02:04 AM
I'm getting an invalid product error when I tried and create a new template under the APM interface.

APM 3.5

I have no issue adding other stuff.

Any ideas?

Mark

Ziki
11-06-2006, 06:19 PM
Nominated :)