PDA

View Full Version : Where is the Hook Location for Article Save


Silver89
12-31-2009, 01:09 AM
Does anyone know the hook location of the initial article save?

Lynne
12-31-2009, 02:17 AM
did you try looking at vbcms_article_save_start or vbcms_article_save_end?

Silver89
12-31-2009, 11:09 AM
Yes, I have tried both of these but they don't seem to perform the code, I know it works because it works If I run it at global_complete.

Lynne
12-31-2009, 02:10 PM
Sometimes the variables you use are named differently depending on what hook you use. It could be that your variables are incorrectly named. Find the hook location in the code and look around to see what variables they are using there.

Silver89
12-31-2009, 03:07 PM
Well even if the php is just

echo "Test";

or

print("Test");

With the vbcms_article_save_start or vbcms_article_save_end, is still doesn't even seem to show this?

I have tried having the product set to cms and just vBulletin but no change?

Lynne
12-31-2009, 06:00 PM
Usually you cannot use echo or print. The templates want a variable, like $output or similar... you'd have to look in the template to see what it is expecting as the variable.

Spiritvn
03-17-2010, 02:29 AM
I created a hook plugin to add a variable to "vbcms_content_article_preview" template. What hook location can I choose?