![]() |
This is a great thread and I know I'm on the right track.
I am trying to add a custom profile field to the memberaction_dropdown template. {vb:raw post.field5} How would I register this to work in the memberaction_dropdown? It works on postbit (because I'm assuming it is registered) Thanks again for a great write-up! |
Quote:
thanks anyway for your time mate to reply on this... best regards... :p |
i want to do that some codes work in navbar template but same code dont work in header or navbar . for example how can i run vb:raw forum.title} in forumhome.lastpostinfo template ?
|
i'm a little confused on how to get my loops into the templates.
how would i get mypage.php: Code:
while ($result = $db->fetch_array($results)){ Code:
<ul> |
I've been trying like crazy... We need more turorials...
@ vB staff: RTFM should be WTFM |
Quote:
Quote:
$templater->register('navbits', $navbits); |
Thanks a bunch for the reply :) :)
Quote:
And in the case of the footer template, which has no hook-location, which hook location is best used ? Quote:
And if the navbar template was built after the footer, in which hook-location would I need to pre-register the $navbits ? Thanks ! |
as far as I have seen, footer template is created at the moment any other template is done...
example: if at the top of a file.. before you did any template stuff... you do PHP Code:
but if you do: PHP Code:
--> so just find a place before the first template is created... Felix |
Please can somebody help, I just can't figure out what I'm doing wrong.
I'm trying to add to FORUMHOME and I can't get the basic example working. I've created a new plugin (hook: forumhome_start) with the following PHP code: PHP Code:
PHP Code:
Am I right in expecting <p>abc</p> to appear in my forum home page source? Because I just get empty <p></p>, i.e. the variable doesn't exist. I've tried different hook locations. I also tested the forumhome_start location by adding an "echo 'abc'; in the plugin php, and as expected "abc" appears right at the top of my forum home source. What am I doing wrong? :S EDIT!:: Apologies, missed this post: https://vborg.vbsupport.ru/showpost....1&postcount=72 |
As you wrote it you should use my_var first in template mytemplate.
Then when you use <p>{vb:raw my_insertvar}</p> in FORUMHOME all content from mytemplate will be appear. |
All times are GMT. The time now is 11:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|