![]() |
Why do my var doesn't display in its template (sidebar) ?
1 Attachment(s)
I'm trying to integrate my chatbox to the sidebar on the forum
My bloc forum calls my template (which displays well Chatbox [Archives] output_template : $output) my bloc content is : Code:
$output='$output'; If I put an echo $output in the forum.php file, it displays well at the top of the forum But not in my template (whereas I put Code:
{vb:raw output} Code:
$templater->register('output',$output); |
I think your problem is this:
PHP Code:
|
If I don t add it, the bloc disent display at all I think ...
|
I'm not exacly sure what you're trying to do. Where does $output get set?
|
Code:
//affichage widget dans forum whereas in my template, this Code:
output template {vb:raw output} $output |
The code you posted above, where so you have that? Is it in a plugin, in the forum block, or in forum.php?
You mentioned you template. What template is it, and where is the code that renders it? You said you added a call to $templater->register at the end of forum.php? Is hat where your template rendering code is, or are you adding it to the line for registering to FORUMHOME? |
This code is my forum.php
I m trying to do a "plugin" to add the chatbox in the side bar ! The content of my bloc is Code:
$output='$output'; Code:
<li> |
OK, I think what you could do is to change the output part of the template to this:
Code:
<td>{vb:raw content}</td> PHP Code:
You could also put all the code in the bloc content area, and return $output at the end, but maybe you're not doing that because you need $show['mgc_cb_evo'] set before it gets to the block code? |
1 Attachment(s)
Thank you it works great ! :)
|
All times are GMT. The time now is 12:27 PM. |
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:
|