default message in troubleshooting forum?

dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Tue, 2003-07-29 18:04

i noticed that in the troubleshooting forum, you have a default message requesting config info from the user. it isn't present in any of the other forums i've looked at. what code change did you make to your phpBB code to enable this? i'm looking to do the same at www.nukedgallery.net

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2003-07-30 05:06

I modified the phpBB2 code directly to make that default message. Here's a patch to posting.php that I think is all you need (but I could be wrong -- you might need more code).

*** PNphpBB2.orig/posting.php   Fri Apr 18 07:09:56 2003
--- /usr/www/website/gallery.menalto.com/modules/PNphpBB2/posting.php   Mon Jun  9 21:05:53 2003
***************
*** 1122,1127 ****
--- 1122,1144 ----
        }
  
        $template->assign_var_from_handle('POLLBOX', 'pollbody');
+ 
+       // add our template
+       if ($mode == 'newtopic' && ($forum_id == 3 || $forum_id == 4) && empty($message)) {
+           $template->assign_vars(array('MESSAGE' => '
+ &your message here&
+ ----
+ Give us your Gallery/webserver information to get a faster answer.
+ Get this information from the PHP diagnostic (in the configuration wizard).
+ Gallery URL (optional but very useful): 
+ Gallery version: 
+ Apache version: 
+ PHP version (don\'t just say PHP 4, please): 
+ Graphics Toolkit: 
+ Operating system: 
+ Web browser/version (if applicable): '));
+       }
+ 
  }
 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Wed, 2003-07-30 12:44

awesome, thanks dude.