PDA

View Full Version : How to use own Templates? (In navbar Template)


Raeven
05-16-2011, 11:45 AM
Ok, first of all, I already found a lot of Stuff via google and so on, but sadly either I am too stupid or I don't get it (or something for my case is missing).

(Tutorial I found so far: http://www.vbulletin-germany.org/showthread.php?7021-HOW-TO-vB4-Templates-berechnen-und-Variablen-registrieren-eine-kurze-Einf%FChrung (also the english version and a few others)).

So my Problem is kinda Simple:
Debug shows the Template is loaded, but it doesn't show (a simple text: TEST, is all it should show for now)

So the Plugin I have:

Hook Location: global_start

$my_var = "dev3_admin_tab";
$templater = vB_Template::create('dev3_admin_tab');
$templater->register('dev3_admin_tab', $dev3_admin_tab);
$templater->render();


The Template is called: dev3_admin_tab
The Template only contains atm as code: TEST
The Raw is called: {vb:raw dev3_admin_tab}

The Raw I build into the "navbar" Template, but it simply doesn't show. It's driving me crazzy for 2 days now (and I thought, making Options would be the worse of these 2 parts :P, actually thats very easy lol).

I need that Template (technical more there, but first one has to work lol) to clean up my code a bit + so I maybe can publish that addon once its done. (so I don't need to write a book, how to integrate all into existing templates :P)

Hope someone can help, thanks in advance.

--------------- Added 1305614150 at 1305614150 ---------------

no one? Would really help me.