patch for optional name display handling...
Posted by caffiend
patch for optional name display handling... July 21, 2003 01:47PM |
Registered: 19 years ago Posts: 16 |
This patch will give you the option of either displaying member names in the old style "Real Name" or the new way "Username".
Unzip it into your phorum directory and apply it with "patch" either on a Unix system or using Cygwin.
patch -p1 < patch-phorum-3.4.4name
to remove
patch -R -p1 < patch-phorum-3.4.4name
Unzip it into your phorum directory and apply it with "patch" either on a Unix system or using Cygwin.
patch -p1 < patch-phorum-3.4.4name
to remove
patch -R -p1 < patch-phorum-3.4.4name
Re: patch for optional name display handling... February 02, 2004 05:20PM |
This patch works well! Suggesting it for everyone who are missing the "realname" posters =)
But there's one slight thing that is missing, it wont patch your read.php. So when you are reading the post, you still see the account name anyway.
Here's the diff to patch read.php
409c409,413
< $author=htmlspecialchars($user['username']);
---
> if (empty($DisplayNameType)) {
> $author=htmlspecialchars($user['username']);
> } else {
> $author=htmlspecialchars($user['name']);
> }
But there's one slight thing that is missing, it wont patch your read.php. So when you are reading the post, you still see the account name anyway.
Here's the diff to patch read.php
409c409,413
< $author=htmlspecialchars($user['username']);
---
> if (empty($DisplayNameType)) {
> $author=htmlspecialchars($user['username']);
> } else {
> $author=htmlspecialchars($user['name']);
> }
Re: patch for optional name display handling... March 21, 2004 07:28PM |
Registered: 19 years ago Posts: 12 |
Sorry, you do not have permission to post/reply in this forum.