There are two widget on every page active they work like a charm. The head section of the external files gets copied in the head section of vbulletin like they should.
The preregister function looks like this:
PHP Code:
function preregister ($template,$rawName,$variable){
vB_Template::preRegister($template,array($rawName => $variable));
}
If I look in the hooks of a debug:
init_startup
database_pre_fetch_array
database_post_fetch_array
friendlyurl_resolve_class
fetch_userinfo_query
fetch_musername
fetch_userinfo
global_bootstrap_init_start
global_bootstrap_init_complete
cache_permissions
global_state_check
global_bootstrap_complete
style_fetch
vbcms_phpeval_save_start
database_pre_fetch_row
database_post_fetch_row
vbcms_collection_content_querydata
vbcms_phpeval_save_end
vbcms_content_querydata
vbcms_phpeval_populate_start
vbcms_content_populate_start
vbcms_content_populate_end
tag_fetchbit_complete
cache_templates
template_register_var
parse_templates
notices_check_start
notifications_list
process_templates_complete
memberaction_dropdown
vbcms_phpeval_populate_end
vbcms_layout_querydata
vbcms_collection_widget_querydata
navbits
navbits_complete
vbcms_phpeval_populate_start is before parse_templates, I don't understand why the value isn'wriiten to the headinclude template on {vb:raw headinclude}