If you can wait until tommorow, I'll write you a detailed, step by step guide, including (working) source code and screenshots.
It's just that today we have planned a relaunch of one of our mayor sites

Don't have really time for this ATM.
But please, don't get angry or sad - I know the vBulletin software is lacking good docs, which is really sad - I fiddled around about 2 full 8h workdays to understand how the new extension system in vB5 works - it's a shame.
I'll come back to you tomorrow, k?
--------------- Added [DATE]1379336922[/DATE] at [TIME]1379336922[/TIME] ---------------
Quote:
Originally Posted by jdorsey
Ok, I pulled my {vb:raw} code out of the header template and made a new template, "wp_header_footer" and put it in there:
HTML Code:
<h1>Start</h1>
{vb:data wphead, wpHeaderFooter_Api_Options, wpHeader}
{vb:raw wphead}
<h2>End</h2>
Then I created a new hook. - product: "WP Header and Footer"
- title: "WP Header Footer Hook"
- hook location: header_toolbar
- execution order: 10 (Default)
- template name: "wp_header_footer"
- hook arguments: left blank
The html I put in the template shows up (h2 and h1), but the {vb:raw wphead} does not.
The thing I am bit worried about is that when I created a new Product ("WP Header and Footer"), I didn't have any way I could see to link it to my wpHeaderFooter_Api_Options class listed in the extensions. Am I missing a step?
|
I'm really sorry for such misleading information ... must have been a lack of sleep & coffee on my side..
HTML Code:
<h1>Start</h1>
{vb:data wphead, options, wpHeader}
{vb:raw wphead}
<h2>End</h2>
it has to be options, because you are simply extending the options api from vbulletin..