1
Beast
Problem with private forum block - drops last post info.
  • 2004/4/20 2:08

  • Beast

  • Just popping in

  • Posts: 26

  • Since: 2003/9/7 2


Hi all,

I've recently switch my forum blocks to side by side (center block left and center block right) for my public and private forums. To save lateral screen space I selected "Display in full size" to "off". This drops the "Forum" and "Views" columns, which is fine by me.

Anyway, to get to the point... for the private forum the "Last Post" column is empty. This happens only for the private forums, no matter where the block is, and only when "Display in full size" is set to "off". Unfortunately this is the option I need to keep my site displayable at a min of 1024x768. See below for the problem:

Resized Image

You can see clearly what I mean here. Also of note is that the colour of the column headers is different. See the shot below for how it looks when "Display in full size" is set to "on".

Resized Image

This would be ok except the overall width is far too much.

While I'm asking for solutions, what would I need to hack to alter the date info in the "last post" column. I'd prefer a simple "dd Mmm" with no time.

2
Dave_L
Re: Problem with private forum block - drops last post info.
  • 2004/4/20 2:27

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Here's the fix for the missing date/time:

modules/newbb/blocks/newbb_new.php

In function b_newbb_new_private_show, change:

[color=ff0000]if ( $options[1] != ) {[/color]
   
$topic['time'] = formatTimestamp($arr['topic_time'],'m').$tmpuser";
[
color=ff0000]}[/color]


to:

$topic['time'] = formatTimestamp($arr['topic_time'],'m').$tmpuser";


3
Beast
Re: Problem with private forum block - drops last post info.
  • 2004/4/20 3:29

  • Beast

  • Just popping in

  • Posts: 26

  • Since: 2003/9/7 2


Thank you, I just commented out those lines and it worked well. Cheers.

I would still like to be able to modify the timestamp format, but I guess that will affect the timestamp thoughout the forums right? I only want to change it in the block.

4
Dave_L
Re: Problem with private forum block - drops last post info.
  • 2004/4/20 3:57

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


In that same code, changing 'm' to 's' will cause only the date to be displayed, and that only affects that one block.

If you want to customize the date further, you could replace the call to formatTimestamp() with your own formatted date, using the formatTimestamp function in include/functions.php as a guideline.

Login

Who's Online

245 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 245


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits