Referring to the template tags in /lang/English/mail_templates/new_reply_full.tpl.

Is there a quick way to display the recipient's username?

Referring to:
http://punbb.org/docs/dev.html#dbtables

There's a small error with the description for the following database field under the reports table.

reported_by

Current description:
The username of the user that reported the post.

It should state user ID instead.

3

(6 replies, posted in General discussion)

Woops! My bad. The $ was just an indication that it was a command line entry. tongue

It seems like you probably haven't set the permissions for hdiff to be executable. Try:

chmod 744 hdiff

This should allow you to execute hdiff as root or a power user.

4

(6 replies, posted in General discussion)

I'm assuming you're trying to run hdiff on Linux.

If so, just copy hdiff somewhere, and execute it as follows.

$ ./hdiff -n -l "3" -o "output.html" -t "Report Title" file1 file2

Use hdiff help for more info on the operators:

$ ./hdiff help

You could also make hdiff an executable by copying it into your bin folder (e.g. /usr/bin)

You will notice that PunBB's version of hdiff differs from the original version found on the ginini website. Personally, I think Rickard's changes are cooler as it strips out the timestamp from each filename in the hdiff report. Moving the legend to the top also makes comprehending the report a breeze. (Thanks Rickard!)

The modified version of hdiff can be found here:
http://punbb.org/stuff/hdiff

In case you're looking for the hack used to remove the timestamps from the report, it looks like this. It simply removes the last 36 characters in the filename:

$leftfile = substr($leftfile, 0, -36);

$rightfile = substr($rightfile, 0, -36);

In the event you face problems running hdiff with the -n operator for line numbering, refer to a possible reason and fix here:
http://www.ginini.com/cgi-bin/yabb/YaBB … 1116585570

Hope this helps.