Topic: Nothing but Raves .... But

Hands down, this is the best discussion program that I have either written or installed. The code writing is superb, admin and user friendly. But. Just one question. There is the written text that can be written along with html (this forum uses the tag line of "Unfortunately no one can be told .............") ---------- well, I was wondering where you can change that box to include rows like a standard text box? I have tricked up that line to include navigation and an ad navbar, but, it would be a lot easier if I inserted and managed through a text box. Anybody with the answer? You can see the way I have manipulated by going to Knox County Ohio.Net - again, stellar board design.

2

Re: Nothing but Raves .... But

I'm assuming you mean you want to be able to deal with the board description the same way you deal with the announcement box i.e. write html straight into a text box in admin/options which is then output as is to the screen. If so I think you need to look at lines 153 and 154 of admin_options.php and change it to a textarea. The bit that deals with the announcement is at line 448 if you want to use that as a guide.

Before doing this wait until somebody who knows more about the database end of PunBB posts just in case you need to adjust the field size/type to do this.

Re: Nothing but Raves .... But

Paul. Thanks for the response. I looked at those lines, but, wanted a second opinion before trashing around. I will go ahead and do a little rework, but, save the original file first. Can't break anything, so, I'll just play around. Anyone else with an opinion or hints would be happy to hear them. Thanks again.

Re: Nothing but Raves .... But

OK. This is what I added/replaced in options_admin

<td style="width: 65%"><textarea name="form[board_desc]" rows="10" cols="60" maxlength="10000" value="<?php echo pun_htmlspecialchars($pun_config['o_board_desc']) ?>"></textarea></td>

No errors, get textbox BUT no text. Hmmmmmmmm. Suggestions?

5

Re: Nothing but Raves .... But

I did this and it worked fine

<td style="width: 65%"><textarea name="form[board_desc]" rows="5" cols="55"><?php echo pun_htmlspecialchars($pun_config['o_board_desc']) ?></textarea></td>

Re: Nothing but Raves .... But

If you don't want to make any code changes you can just edit the template (include/template/main.tpl).

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Nothing but Raves .... But

Thanks Paul, Rickard. The more I look, the more I learn, the more I like .......................