PDA


View Full Version : CMPS and hooking into vB3.5


Arjan
07-18-2005, 03:51 AM
Hi,

I was wondering is there (or will there) be a way to hook the CMPS into vB3.5 without altering the code?

I mean, if you want the vBadvance modules displayed on the forum pages, then you need to add some code. Nothing serious, but if it works through the new hooking system, then it has some very nice advantages. :)

Semere
09-06-2005, 09:26 PM
Brian,
Are there any plans to turn the cmps into a product/plugin utilizing the hooks system? Obviously we will still have to upload files but is there anyway to get away from altering the code?
By the way it is amazing how much code altering has gone down. Now we only have to make a few edits unlike before when we had to hack alot.

Congrats on the new release you really have an awesome product here!

Brian
09-07-2005, 03:48 PM
Unfortunatly vB does not have hooks in all of the places we need them. There is one in global.php that we could use instead of a file modification, but considering the fact that you'll have to edit that file anyways to add the other two modifications, I don't see much of a point in using the one hook that is available.

Semere
09-08-2005, 12:49 AM
I guess with the release of RC3 there are supposed to be more hookpoints added according to this little quote.
RC3 fixes dozens of bugs in RC2. RC3 also finalizes the Hooks/Plugin/Product system with many more hooks and overall improvements that will make elegant hacks possible that would have required file modifications in RC2. There were some more issues addressed with Hooks/Plugins/Products/XML import in RC3 that are vital to the writing of Hooks/Plugins/Products.

Everyone keep your fingers crossed that they allow great things for Brian!

Thanks agian for all of your hardwork here.

rossco_2005
09-10-2005, 12:43 PM
Unfortunatly vB does not have hooks in all of the places we need them. There is one in global.php that we could use instead of a file modification, but considering the fact that you'll have to edit that file anyways to add the other two modifications, I don't see much of a point in using the one hook that is available.
If you haven't already, you should put in a request at vbulletin.com to have that hook added.
It would be really great to not have any file edits. :D


edit: I've been playing around with the plugin system and vbadvanced and i've been able to get 2 of the edits into the plugin system so far.

The vba_cmps_include_top.php file can be run on the hook 'style_fetch'.
The vba_cmps_include_bottom.php file can be run on the hook 'parse_templates'.

What do you make of this? Maybe there's some feature in the f iles that i'm not using which cant run in this place but as far as everything i've tested this seems to work fine. :)

I'm going to keep trying to get the third global.php edit to work in plugins system.

edit2: maybe i'm missing something but you can add
if (defined('VBA_PORTAL'))
{
require_once('./includes/vba_cmps_include_template.php');
}
to global.php right before it includes the global.php file. :p

therefore, no file edits. :)

Semere
09-14-2005, 01:42 AM
I am pretty sure that Brian has already long requested the hooks to be implemented the question now would be have they seen fit to add the hook points in the RC3 release? I have no idea where to look but I bet Brian can give a simple yes or no to settle our racing minds.

Semere
09-14-2005, 11:40 PM
Bumping to see Brians reply after rc3 being released...

rossco_2005
09-14-2005, 11:43 PM
There is 1 new hook in global.php since the rc3 release. Called 'parse_templates'.

That one is needed for what I posted above so I guess now the portal can be amde a plugin.

Brian still hasn't replied to this thread, i also PMed him on the day I posted to make sure he saw that post.

Semere
09-15-2005, 09:30 PM
Well lets wait to see if he updates the install to include this new hook and go with the total plugin because that is really what I am waiting for. I am still running RC1 with RC2 cmps untill it gets updated to a plugin. The only thing at this point that would cause me to update would be the release of 3.5 Gold and I don't see that for about another month.

KW802
09-15-2005, 10:24 PM
Brian has been away from his PC lately for some personal items to be taken care of; when he has time I'm sure he'll address whether RC3 can handle all of the edits needed. Based upon my conversations with him in the past I can assure you that he's doing everything possible to try & get CMPS to be a 'edit-free' application.

Semere
09-15-2005, 11:15 PM
Oh I am not bugging hehe... I just like to bump up every few days. Beleive me I totally understand "life" we all have one.

FleaBag
10-03-2005, 01:05 PM
The use of hooks to get the modules on non vB pages would be splendid... Especially as I'm having issues with it at the moment.

bulbasnore
11-11-2005, 12:47 AM
Would truly be 'smokin' to get CMPS (and Gallery) as vB Modules. I hate having to re-edit every security release (or fall back on the 'patch' which sometimes could be re-edit anyway).

KW802
11-11-2005, 12:52 AM
The current version of Gallery doesn't require any file edits.