Closed (fixed)
Project:
phpBB Forum Integration
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2010 at 08:15 UTC
Updated:
9 Jan 2012 at 08:00 UTC
Hello,
I finally got the module working (pretty heavy installation-time) and everything works just fine, but now I got a zero printed between te content and phpbbcomments. (screen attached)
I'm not fancy playing with the .module file self as I'm an adept.
this is how i make my comments work;
in phpbbforum.module:
if (variable_get('phpbbforum_submission_append_to_content_'. $node->type, 0)) {
if ($vars['phpbbforum_comments']) {
$phpbbforum_comments_render = '<div id="phpbbforum-node-comments">';
$phpbbforum_comments_render .= $vars['phpbbforum_comments'];
$phpbbforum_comments_render .= '</div>';
$vars['comment'] .= $phpbbforum_comments_render;
$vars['phpbbforum_comments'] = '';
}
}
and this is what I print outside the last div in node.tlp.php
<?php print $comment ?>
It looks pretty easy though, but I just can't relocate where the zere is coming from...
Thanks in advance!
| Comment | File | Size | Author |
|---|---|---|---|
| zeroprint.JPG | 33.36 KB | apoc1 |
Comments
Comment #1
apoc1 commentedI noticed, when I'm on a page where phpbb submissions are not used, it prints a '2'...
What am I missing?
Comment #2
fizk commented