PDA

View Full Version : Using vbphrases from within a plugin


CyberRanger
04-27-2006, 12:36 PM
I have a plugin that uses an include to call a script as described in the vb manual (http://www.vbulletin.com/docs/html/optimizing_plugin_memory). The plugin at Hook Location : cron_script_cleanup

The plugin itself simply states:
include('./includes/plugin_abouttoday.php');

At the top of the plugin_abouttoday.php script I have:
global $vbulletin, $vbphrase;

$phrasegroups = array('abouttoday', 'posting', 'cpglobal');

require_once('./global.php');


The phrase that I want is part of the "abouttoday" phrases. I know it is there and works in my non-plugin scripts. Any pointers? Thanks!