I am planning to setup a drupal based commerce site. The site will have a support forum - I know drupal has a forum module but I like the way phpBB forum works (organizing in posts, neatly seperated and many mods that are available). Is there a way that I can sue Drupal and phpBB together - that they will use the same theme.

Your suggestions are welcome.

- Dollars5
http://www.dollars5.com

Comments

ergophobe’s picture

Is there a way that I can sue Drupal and phpBB together

Yes. Hire a lawyer ;-)

Okay, I'll assume you mean sew... I don't know, but before you go down that road, I recommend that you check out

http://www.drupalart.org/phpbb

which details how to make Drupal Forums look and act a lot like phpBB forums. Unless you have some phpBB mod that you absolutely need, this solution will give you better integration with user login and so forth.

Yosemite Explorer - hiking and climbing in Yosemite (drupal)

Dollars5’s picture

Acutally I meant use and it became a typo :(

Thanks for the reply - is that the only solution or anything else available? Isn't there a way to mod phpBB itself to integrate with Drupal (my main aim is to display recent forum topics in main page)

Dollars 5 Solution
Mobile Software Developer

vph’s picture

If you already have a large phpBB site, then it may make sense to use the phpbb integration module. Otherwise, I think it's better in a long run to use Drupal's forum. Unfortunately, currently Drupal's forum is very very very lacking.

Dollars5’s picture

If you already have a large phpBB site, then it may make sense to use the phpbb integration module. Otherwise, I think it's better in a long run to use Drupal's forum. Unfortunately, currently Drupal's forum is very very very lacking.

I am to create a fresh forum - but I am looking for neat forum that allows user to have an avatar, give contacts like AIM//Y!/ MSN/ ICQ etc, track recent posts (they get posted last and I can reply them accordingly - actually it will be a product support forum), Blocking users(if violating forum rules), basic mod - these are what I am looking for.

Dollars 5 Solution
Mobile Software Developer

sepeck’s picture

Drupal supports avatars. Users can use /tracker... or there individual tracker. Yours on Drupal.org is http://drupal.org/user/65956/track

You can use profile module to add fields to a users profile for spots like AIM/Y!/etc.... There may be a module for this as well to indicate online/offline status but I don't remember if it was ever actually finsihed and released.

blocking users is built in, we use it here on drupal.org to block spammers, you can also block by IP address. You can implement rules on user names in the same spot.

With integrated forums all your content is in one package. You can promote content to the front page, you can add a forum post to the book module outline,

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

Dollars5’s picture

Thanks for clarifying my doubts - I will install and let you know the results very soon.

Dollars 5 Solution
Mobile Software Developer

vph’s picture

If you are creating a fresh forum, I strongly suggest that you go with the Drupal's forum module. Even though it currently is lacking in terms of features in comparison to phpBB, I think these lacking can be fixed in the near future, assuming "forum" is on top of the the developers' list.

PhpBB is very elaborate in many aspects of a forum. Still there are features in phpBB that I don't think you need, e.g. "sticky threads", polls, etc. because it's already implemented in Drupal in some other way, not necessarily assoicated with the forum module.

Speaking of "basic mod", this is where Drupal is superior to phpBB. For phpBB, "mod" means "modifications". And when you apply enough mods to your phpBB forum, it'll be so scary that you don't want to touch it when upgrades come along. For Drupal, "mod" means "modules", which add features but in superior ways.

I think things that the Drupal people need to work on is private forums, lock forums, and integrations of forum and organic groups, or very simple things that will make a big difference like allow people to jump to the last thread or display page numbers in forum for long threads.

sol77’s picture

I am running a phpBB site myself but am also thinking about integrating it with drupal, or even convert the database to drupal before it gets too big. I have som questions myself though.

1. Setting posts as settings or flagging them as announcements is something I need to do, but you say this is integrated in Drupal?

2. Also I want threads that have recently been posted in to appear at the top of the forum. Is this possible?

3. Is there no way of making forums private? Or locking down threads?

4. How do installation of modules and updates work? It seems to me like it is simply a matter of installing some files with no need for manual editing of files. Am I understanding it correctly?

Thanks.

vph’s picture

Based on my experience

[1. Setting posts as settings or flagging them as announcements is something I need to do, but you say this is integrated in Drupal?]

In Drupal, you can make a topic sticky and/or making it appearing in the front page.

[2. Also I want threads that have recently been posted in to appear at the top of the forum. Is this possible?]

Do you mean the thread that is last commented upon should appear first in the forum? If so, yes.

[3. Is there no way of making forums private? Or locking down threads?]

You can lock threads by disabling the the comment option on the thread. Because forums are taxonomy terms, you can't make a forum private. You can use taxonomy access but I think it's not nice and using taxonomy access with organic group is problematic (I think).

[4. How do installation of modules and updates work? It seems to me like it is simply a matter of installing some files with no need for manual editing of files. Am I understanding it correctly? ]

You'll need to play around with it to know, but it's a lot better than phpBB's "mods" in that you can enable and disable it easily.

sepeck’s picture

I believe Taxonomy Access
http://drupal.org/project/taxonomy_access
or Taxonomy Access Control Lite
http://drupal.org/node/53738

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

vph’s picture

Yes, Taxonomy Access should be able to do it. But I find that using organic group with forums in a community setting is very powerful, and TA and OG have some kind of conflict I haven't sorted out yet, so having to tradeoff I would have to turn off one (TA). I think in a large community site it's desirable to have OG, which unfortunately currently can't be used with TA.

The right solution I think is for the forum module to have its own access mechanism.

sepeck’s picture

Yes, but OG seems a bit over kill for the intial description. A little discrete control rather then the all encompassing OG solution. For a tech forum with a private area that he is requesting one of the more focused access modules seems the direction to start.

With the permission systems, it's best to evaluate your needs and then pick one. The different approaches fill different needs.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

sol77’s picture

[You'll need to play around with it to know, but it's a lot better than phpBB's "mods" in that you can enable and disable it easily.]

Dang that was a pleasant surprise! Drupal is awesome. :)
Now if I can only tweak the forum module like I want to. Is there a way to make subforums look like this with e.g flatforums or any other module?
Otherwise the list of forums looks too long.

andre75’s picture

I don't think the drupal forums are that bad. They can be made to look quite good too:
http://www.opentravelinfo.com/node/598 (some small problems with IE will be fixed soon)
and they have the advantage of being fully integrated with Drupal. So clean urls or url alias / pathauto work nicely with the forum.
Displaying sidebars (ads?) is easy too.
A lot of things that require a mod in phpBB can be accomplished this way.
To me the main reason to stay away from phpBB was security and resource usage.
But suit yourself. Here is a module for you:
http://drupal.org/project/phpbb

Andre

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

Dollars5’s picture

Me too had a look at that module - but with my experiments - I feel better with Drupal forums itself.

Thanks for the suggestions.

Is there a way to make the threads sticky and organize them by posts (new post in last) instead of by replies (i.e each post can have a reply as in current forum)?

TIA.

Dollars 5 Solution
Mobile Software Developer

vph’s picture

If you and/or your users have been familiar with phpBB, it's very difficult to swallow Drupal's forum at this point. And I'm not talking about the visual differences. For example, in a large forum-oriented community, there are really long threads and people would like to jump to the last post in the forum view. They can do it in PHPBB, VB, and all other forum software I know of. Currentlly, it CAN'T be done in Drupal. This is very annoying and I have people complain about it.

If you take a look at Drupal's forum, there aren't many long threads. But that's the nature of this forum, but unfortunately I think because of that Drupal people don't feel the pain. Just like users have complained about so many things to the PhpBB people (http://area51.phpbb.com/phpBB), but they don't feel the need for it, and think that their users don't either. Unfortunately.

Dollars5’s picture

I actually do like Drupal's forum (some of my previous company's site have a similar developer forums as that of Drupal [threaded view]), but since many users visiting my forum will be members of forums that have forum posts listed by post time they might feel difficult with Drupal forums - that is the reason I asked for it.

But for now - since I want a uniform look and feel like updating drupal's forum with any future updates would be easy (my assumption - if wrong correct me please) I decided to go with Drupal forum itself.

Thanks for the suggestions vph.

Dollars 5 Solution
Mobile Software Developer

vph’s picture

I hope Drupal's forum works for you. It doesn't completely satisfy my needs, but I still chose it.

[forums that have forum posts listed by post time they might feel difficult with Drupal forums - that is the reason I asked for it.]

Do you mean you want the sorting order of forum topics in "creation time" instead of "reply time"? If you look at the headers of the forum page (for exmaple, http://drupal.org/forum/8 ) you will see Topics, Created, Replies, Last Replies. If you click on any of these four things, the threads will be sorted according to that criterion. :)

If you want to change the default sorting criterion, then you'll need to modify the forum module, but shouldn't be difficult.

Dollars5’s picture

This will solve many of my problems - is there a way to set it by default?

Thanks for pointing it - I never noticed it.

Dollars 5 Solution
Mobile Software Developer

andre75’s picture

I have had some trouble with one of my sites coming under heavy load (lots of users). I think I am going to stick with the Drupal Forums. I have a poll asking my users, and it appears that most are o.k. with the functionality. Many didn't even bother to vote.
I guess what I am saying is this: The content of your forum and the users is what attracts people. Functionality only plays a secondary role, if all the essential things are implemented (with additional modules).
I use quotes/subscriptions/TinyMCE and a bunch of other plugins and I changed the way the forum looks like. Seems to be enough.
I get the occasional rant, but usually I can fix the problem with Drupal modules or theme changes.

On a secondary note: Due to the node structure and clean urls, my forum urls don't look like forum urls at all. I think this may have a positive impact on Google (not sure though).

Andre

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

mikeszewil’s picture

I tried this on my 4.7 installation, and this is all I get for each page.

Fatal error: Call to undefined function: theme_comment_form() in /home/mikesze/public_html/themes/spreadfirefox/template.php on line 70

andre75’s picture

Did you use the 4.7 version of the theme?

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

Mr.Sollis’s picture

I am getting the same error on my 4.7 install as well... have you found a solution to this. My theme is a custom theme, but has worked with everything else on 4.7.

Other then this one problem, the phpbb look alike tutorial has been perfect.

Thanks.

andre75’s picture

Sorry for not replying sooner. I have been busy.
I will make the transition to 4.7 during the next weeks and then I will also re-write parts ot my theme that I don't like.
I will share the results for the forum template.
I haven't laid my hands on 4.7 yet, so I really cannot say what the error is, but I will start on that soon (wish I had more time and skills).

Andre

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

andre75’s picture

I updated to 4.7. Went surprisingly smooth.

I have re-done my forums. I have removed the buttons and restyled the forum to give it a more classy look.
I also put the user info and avatar above the post, to make it look more in line with vBulletin and phpBB.
I am quite happy now with my forum.
I't was quite easy to do. If someone cares, I can release the code for 4.7

Here is a peek:
http://www.opentravelinfo.com/node/633

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

andre75’s picture

I got a couple of emails asking for mods I made. As I said previously I removed all the buttons and went for a little more classy look. I have installed flatforum and followed the installation to the letter.
Then I modyfied node-forum.tpl.php:

<?php
  if (!_is_forum()) {
    include('node.tpl.php');
    return;
  }
  $curr_user = user_load(array('uid' => $userid));
  $sig = $curr_user->signature;
?>
<div class="comment forum-comment comment-<?php print $row_class; print $comment->new ? ' comment-new forum-comment-new' : ''; ?>">

<table border="0" id="comment-left">
  <tr>
    <td>
      	<?php print $picture ?>
    </td>
    <td>
      	<pre id="author-name"><?php print   '  ' .$name. '   '   ?></pre>
    </td>
<?php if (module_exist('flatforum')): ?>
    <td id="author-posts">
    	<code><?php print t('Posts:') . ' ' . $posts. '    '; ?>
<?php print t('Joined:') . ' ' . $joined; ?>

endif

print check_plain($comment->subject)

if ($comment->new) :

print $new
endif

print $content
if ($sig):
--
print check_markup($sig);

endif



As you can see I did nothing else but replace the user, posts and joined div with a table so I can arrange them easier. It can also be done with div, but I am lazy.

The flatforum.css has the following mods:

.comment-left {
  width: 93%;
  float: none;
  font-size: 11px;
  padding: 5px;
}

.comment-right {
  float: none;
  width: 95%;
}

plus some color adjustments. Thats about it. Doesn't get any simpler.

Andre

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

ckeo’s picture

Have a look at my forums.... at www.newfoundnews.com
its based on the phbb subza theme.

but... you'll have to login and change the theme to aquasoft2 to see what im talking about....
aquasoft2 is my development version.

trust me.. you'll want to look

Craig.

dahli.llama’s picture

That is really nice!

andre75’s picture

You have a security issue on your site. Created user account "andre" and got a duplicate entry MySQL warning. Then all of a sudden I was logged in as "andrea7am". Not sure if this a drupal bug.

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

ckeo’s picture

just some issues left over from when i upgraded from 4.6.
its all good.... i dont have many registered users and... they are not active... so its nothing to worry about...
i had the same problem with submitting stories... until i got past the number i already had then everything was fine.

Craig.

andre75’s picture

I also upgraded from 4.6, but I haven't ever seen this kind of behavior. I had full access to that users profile. I could have deleted her files, changed her password and done whatever I liked. Good for you I am not that kind of person.

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

dahli.llama’s picture

I just added this as is to my test site, and I like the look. It's simple, but it's getting closer to what I need, and at least from here I think I can figure things out better.

One thing I noticed though, was that my avatar picture wasn't showing up. I have them enabled and have one uploaded and it appears in my profile, but not on the forums. Is there something I'm doing wrong?

Thanks

dahli.llama’s picture

Ok, I know I'm replying to myself, but I have another question.

Is there any way to specify different coment layouts for different sections?

To make the forums look right, flat comments and ordering from newest to oldest must be used. But for normal content, I'd like to keep the threaded layout (the order isn't as important).

Is this at all possible?

andre75’s picture

You should be able to do this with different templates (e.g. node-forum.tpl.php, node-book.tpl.php ...).

About the picture, I remember I used to mess with it a while, when I first took the forum online, but I somehow forgot what I did. I even did some posts about this.

If you want it to look more like php, you can replace the links with buttons. I did this once on Drupal 4.6:
I posted how to do this here:
http://drupal.org/node/56127

But somehow I like the standard text links better now.

Anyways, If you want to get the phpBB/vB look, simply add a border around each post (in the css file for the forum) and one around the header, use some small repeating png file for the background of the header and add the buttons (maybe you need to modify the code for 4.7). Its really not all that hard to completely clone phpBB if thats what you are after.

Andre

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

ckeo’s picture

Im using the forum module from here: http://drupal.org/node/77074

get the css code from the phpBB theme you are going to use. (i dont have the css all figured out yet myself.
And get the icon set you will be using from there also.

This is a work in progress and im sure there are other ways of doing this... but its more of a learning process for me.

post back with any changes you can come up with and i'll do the same.

Craig.

put this in your template.php file:

/**
 * Format the forum listing.
 * Reference: phpbb theme subza, file: index_body.tpl
 * @ingroup themeable
 */
php function phptemplate_forum_display($forums, $topics, $parents, $tid, $sortby, $forum_per_page) {
  global $user;
  // forum list, topics list, topic browser and 'add new topic' link

  $vocabulary = taxonomy_get_vocabulary(variable_get('forum_nav_vocabulary', ''));
  $title = $vocabulary->name;

  // Breadcrumb navigation:
  $breadcrumb = array();
  if ($tid) {
    $breadcrumb[] = array('path' => 'forum', 'title' => $title);
  }

  if ($parents) {
    $parents = array_reverse($parents);
    foreach ($parents as $p) {
      if ($p->tid == $tid) {
        $title = $p->name;
      }
      else {
        $breadcrumb[] = array('path' => 'forum/'. $p->tid, 'title' => $p->name);
      }
    }
  }

  drupal_set_title($title);

  $breadcrumb[] = array('path' => $_GET['q']);
  menu_set_location($breadcrumb);

  if (count($forums) || count($parents)) {
    $output  = '<div id="forum">';
    $output .= '<ul>';

    if (module_exist('tracker')) {
      if ($user->uid) {
        $output .= ' <li>'. l(t('My discussions.'), "tracker/$user->uid") .'</li>';
      }

      $output .= ' <li>'. l(t('Active discussions.'), 'tracker') .'</li>';
    }

    if (user_access('create forum topics')) {
      //$output .= '<li>'. l(t('Post new forum topic.'), "node/add/forum/$tid") .'</li>';
      $output .=  l('<img class="icon"
                    src="'. base_path() . path_to_theme() . '/templates/subza/images/lang_english/post.gif" />'
                    ,"node/add/forum/$tid",NULL, NULL, NULL, NULL, TRUE
                   );
    }
    else if ($user->uid) {
      $output .= '<li>'. t('You are not allowed to post a new forum topic.') .'</li>';
    }
    else {
      $output .= '<li>'. t('<a href="%login">Login</a> to post a new forum topic.', array('%login' => url('user/login'))) .'</li>';
    }
    $output .= '</ul>';

    $output .= theme('forum_list', $forums, $parents, $tid);

    if ($tid && !in_array($tid, variable_get('forum_containers', array()))) {
      drupal_add_link(array('rel' => 'alternate',
                            'type' => 'application/rss+xml',
                            'title' => 'RSS - '. $title,
                            'href' => url('taxonomy/term/'. $tid .'/0/feed')));

      $output .= theme('forum_topic_list', $tid, $topics, $sortby, $forum_per_page, $forums);
      $output .= theme('feed_icon', url("taxonomy/term/$tid/0/feed"));
    }
    $output .= '</div>';
  }
  else {
    drupal_set_title(t('No forums defined'));
    $output = '';
  }

  return $output;
}

/**
 * Format the forum listing.
 * Reference: phpbb theme subza, file: index_body.tpl
 * @ingroup themeable
 */
function phptemplate_forum_list($forums, $parents, $tid) {
  global $user;

  if ($forums) {

    $description = '<table width="80%" cellpadding="2" cellspacing="1" border="0" class="forumline">
                     <tr>
                       <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;Forum&nbsp;</th>
                       <th width="50" class="thTop" nowrap="nowrap">&nbsp;Topics&nbsp;</th>
                       <th width="50" class="thTop" nowrap="nowrap">&nbsp;Posts&nbsp;</th>
                       <th class="thCornerR" nowrap="nowrap">&nbsp;Last Post&nbsp;</th>
                     </tr>';

    foreach ($forums as $forum) {
      if ($forum->container) {
        $description .= '<tr>
                          <td class="catLeft" colspan="2" height="28">
                            <span class="cattitle">
                             '.l($forum->name, "forum/$forum->tid").'
                            </span>
                         </td>
                         <td class="rowpic" colspan="3" align="right">&nbsp;</td>
                        </tr>';
      }
      else {
        $new_topics = _forum_topics_unread($forum->tid, $user->uid);
        $forum->old_topics = $forum->num_topics - $new_topics;

        if (!$user->uid) {
          $new_topics = 0;
        }

        $description .= '<tr>
                         <td class="row1" align="center" valign="middle" height="50">
                           <span class="new">
                             '.theme('forum_list_icon', $forum->last_post,$forum->num_topics,$forum->num_posts).'
                           </span>
                         </td>';

        $description .=   '<td class="row1" width="100%" height="50">
                             <span class="forumlink">
                             '.l($forum->name, "forum/$forum->tid").'
                               <br />
                             </span>';

        if ($forum->description) {
          $description .=   '<span class="genmed">
                              '.filter_xss_admin($forum->description).'
                                <br />
                             </span>';
        }
        if ($forum->moderators) {
          $description .=     '<span class="gensmall">
                                  Moderators
                                '.l($forum->moderators).'
                               </span>';
        } else {
            $description .=   '<span class="gensmall">
                                 Moderators: none
                               </span>';
          }

        $description .=      '</td>';

        $description .=      '<td class="row2" align="center" valign="middle" height="50">
                                <span class="gensmall">
	        	         '.$forum->num_topics . ($new_topics ? '<br />'. l(format_plural($new_topics, '1 new', '%count new'), "forum/$forum->tid", NULL, NULL, 'new') : '').'
                 	        </span>
                              </td>';

        $description .=      '<td class="row2" align="center" valign="middle" height="50">
	        	        <span class="gensmall">
	        	         '.$forum->num_posts.'
                	        </span>
                              </td>';

        $description .=      '<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap">
	        	         <span class="gensmall">
	         	         '._forum_format($forum->last_post)
	         	          .l('<img class="icon"
                                       src="'. base_path() . path_to_theme() . '/templates/subza/images/icon_latest_reply.gif" />'
                                       ,"forums/$topic->last_post",NULL, NULL, NULL, NULL, TRUE
                                     ).'
                	         </span>
                              </td>';

       $description .=   '</tr>';
      }
    }

    $description .= '</table>';

    return $description;

  }

}

/**
 * Format the topic listing.
 *  Reference: phpbb theme subza, file: viewforum_body.tpl
 * @ingroup themeable
 */
function phptemplate_forum_topic_list($tid, $topics, $sortby, $forum_per_page, $forums) {
  global $forum_topic_list_header;


  if ($topics) {

    $description = '<table width="80%" cellpadding="4" cellspacing="1" border="0" class="forumline">
                      <tr>
                        <th colspan="2" align="center" class="thCornerL" height="25" nowrap="nowrap">&nbsp;Topics&nbsp;</th>
                        <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;Replies&nbsp;</th>
                        <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;Author&nbsp;</th>
                        <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;Views&nbsp;</th>
                        <th width="150" align="center" class="thCornerR" nowrap="nowrap">&nbsp;Last Post&nbsp;</th>
                      </tr>';

    foreach ($topics as $topic) {
      // folder is new if topic is new or there are new comments since last visit
      if ($topic->tid != $tid) {
          $description .=  theme('forum_icon', $topic->new, $topic->num_comments, $topic->comment_mode, $topic->sticky)
                                  .check_plain($topic->title)
                                  .l(t('This topic has been moved'), "forum/$topic->tid");
      }
      else {
          $description .= '<tr>
	                     <td class="row1" align="center" valign="middle" width="20">
                               '.theme('forum_icon', $topic->new, $topic->num_comments, $topic->comment_mode, $topic->sticky).'
                             </td>';

          $description .=   '<td class="row1" width="100%">';

          $description .=     '<span class="topictitle">';
          $description .=         l($topic->title, "node/$topic->nid");
          $description .=     '</span>';
          $description .=   '</td>';
          $description .=   '<td class="row2" align="center" valign="middle">
                               <span class="postdetails">
                                '.$topic->num_comments . ($topic->new_replies ? '<br />'. l(format_plural($topic->new_replies, '1 new', '%count new'), "node/$topic->nid", NULL, NULL, 'new') : '').'
                               </span>
                             </td>';

          $description .=   '<td class="row2" align="center" valign="middle">
                              <span class="name">
                               '.theme('username', $topic).'
                              </span>
                            </td>';

          $description .=   '<td class="row2" align="center" valign="middle">
                               <span class="postdetails">
                                 '.$topic->views.'
                               </span>
                             </td>';

	  $description .=   '<td class="row2" align="center" valign="middle" nowrap="nowrap">
                                <span class="postdetails">
                                '._forum_format($topic->last_reply).'
                                  <br />
                                '.$topic->name.'
                                '.l('<img class="icon"
                                    src="'. base_path() . path_to_theme() . '/templates/subza/images/icon_latest_reply.gif" />'
                                   ,"forums/$topic->last_post",NULL, NULL, NULL, NULL, TRUE
                                  ).'
                               </span>
                             </td>';

          $description .= '</tr>';
    
      }
    }
  }

  $description .= '</table>';
  $description .= theme('pager', NULL, $forum_per_page, 0);
  return $description;
}

dahli.llama’s picture

Maybe it's just too early in the morning, but now I'm lost.

What exactly is needed to get this to work? I assume that new forums module replaces the original drupal forum module, correct? When I install it, it seems to work, but I can't access the top levels of my forum. I can get to the post just fine through my Recent Posts block, but that's it.

I assume a standard FlatForum install is also needed (which I have). What exactly do I need to do with the phpBB style? Do I need to add the information from the style into the drupal theme style.css?

Right now I think my test site is such a mess that I'll need to start over from scratch, but I really want to get this done, so I'm going to keep pressing on. Thanks for the help so far guys.

Edit:

OK, it was too darn early evidentally. I got the forum module to work. I wasn't renaming it to forums.module.

I'm still a bit confused on the whole CSS thing, though.

dahli.llama’s picture

I got the template.php working for the most part and the forums look decent. I am having a problem every time I try to submit anything to the site now.

I get this error:

Cannot modify header information - headers already sent by (output started at /home2/whatnnet/public_html/drupal/themes/bluemarine/template.php:332) in /home2/whatnnet/public_html/drupal/includes/common.inc on line 266.

Line 332 in template.php is after the end of the file.
The code at line 266 of common.inc is:

header('Location: '. $url);

// The "Location" header sends a REDIRECT status code to the http
// daemon. In some cases this can go wrong, so we make sure none
// of the code below the drupal_goto() call gets executed when we redirect.
exit();
}

Edit: *grumble* Ok, it was because there were a couple extra lines at the end of template.php It's fixed now.

dahli.llama’s picture

Ok, I think I've got things figured out for the most part.

The only thing I would still like to see is your node-forums.tpl.php file Craig. I've got the overall forums looking pretty good and to the point where things are starting to make sense. The indivual posts still need some significant work, though.

The only issues I'm having are that the little icon on the far left of the forums that is supposed to take you to the newest post, isn't working, and I don't know why. The other is that I would like to get rid of the navigation between threads that shows up in the first post. I don't mind the concept of it, but the fact that it shows up between the original post and the users sig is kind of annoying. The last one is that I still can't get users' avatars to show up.

I'll be sure to post if I find anything out.

ckeo’s picture

never mind.... i cant seem to post it here.... when i preview comment... the subject comes up blank.
i'll email it to you right away... tho... keep in mind that its a wark in progress... and like the previous files... there are things that display but are not doing what they are supposed to... but im working on them.

Craig

ckeo’s picture

Add this to your css file:

.forum-topic-navigation
{
display: none;
}

sepeck’s picture

You must have a subject. If you don't then it will try and auto-populate the subject withthe first line. If you fist line is code not wrapped in code tags then you might have issue's

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

ckeo’s picture

i had a subject and my code was wrapped in php tags.

same way i posted the previous files.

craig.

amir99’s picture

See this thread if you can't see the avatars: http://drupal.org/node/78618