2015-07-30, 09:18 PM
Hello guis, I'm creating a plugin but I can't continue.
With my plugin I insert in headerinclude this text:
Now I need to change the variable showmsg when a user connect to forum.
I tried to do it adding hook global_start and using the eval below but it don't work
How I can do it?
With my plugin I insert in headerinclude this text:
{$stylesheets}
<!-- start: Full PM --><script>
var fullpm_language = {
title: \'{$lang->fullpm_title}\',
text: \'{$lang->fullpm_text}\'
};
var showmsg = \'{$showmsg}\';
</script><script type="text/javascript" src="{$mybb->asset_url}/jscripts/fullpm.js"></script><!-- end: Full PM -->
Now I need to change the variable showmsg when a user connect to forum.
I tried to do it adding hook global_start and using the eval below but it don't work
$showmsg = "1";
eval('$showmsg = "'.$showmsg.'";');
How I can do it?