1

Topic: In view forum: topic posted by in a seperate column.

Hello,

On my forum people complained that it's not really "logical" to
have the user that started a topic at the end of the sentence.

for example if someone would start a topic with the title:
Help, I'm scammed.

in viewforum it would say,
Help, I'm scammed. by HSL

now I've made a modification to viewforum.php and /styles/imports/base.css
and I have a seperate column where the post starter is in.

Can this be standard in the next revision or can it be optional?

Regards,

Harold

2

Re: In view forum: topic posted by in a seperate column.

ok, it's live for almost a week now, I've *hacked* it myself.

http://www.macminds.net/viewforum.php?id=20

doesn't it look neat?

Re: In view forum: topic posted by in a seperate column.

Looks kinda like this: Author Column mod

4

Re: In view forum: topic posted by in a seperate column.

wow, yeah,.. why didn't i found that? smile

but i can tell you, my changes are not that big,
i've just added an extra column tc1 added the css code and moved the poster from one to another column:

                <tr class="tc-header">
                    <th class="tcl" scope="col"><?php echo $lang_common['Topic'] ?></th>
                    <? //added one line to show the poster name in a separate column ?>
                    <th class="tc1" scope="col"><?php echo 'Door' ?></th>
                    <th class="tc2" scope="col"><?php echo $lang_common['Replies'] ?></th>
                    <th class="tc3" scope="col"><?php echo $lang_forum['Views'] ?></th>
                    <th class="tcr" scope="col"><?php echo $lang_common['Last post'] ?></th>
                </tr>

&

                    </td>
                    <? //added lines to show the poster name in a separate column ?>
                    <td class="tc1">
                    <?php 

                    $suffix = "..";
                    $maxChar = 9;

                    if (strlen($cur_topic['poster']) > $maxChar){
                        $cur_topic['poster'] = substr($cur_topic['poster'],0,$maxChar);
                        $cur_topic['poster'] = $cur_topic['poster'] . $suffix;
                    }

                    echo ($cur_topic['moved_to'] == null) ? $cur_topic['poster'] : ' ' 

                    ?>
                    </td>
                    <? //end change?>
                    <td class="tc2"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_replies'] : ' ' ?></td>
                    <td class="tc3"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_views'] : ' ' ?></td>
                    <td class="tcr"><?php echo $last_post ?></td>

and deleted this piece 3 times:

<span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_topic['poster']).'</span>'

all three of these changes above where in the viewforum.php

next piece of code is changed in the css:

.tcl {TEXT-ALIGN: left; WIDTH: 50%}

.tc2, .tc3, .tcmod {WIDTH: 9%; TEXT-ALIGN: center}

.tc1 {WIDTH: 10%; TEXT-ALIGN: left; overflow: hidden;}

.tcr {WIDTH: 28%; TEXT-ALIGN: left}

I'll make an official mod somewhere this weekend smile

Re: In view forum: topic posted by in a seperate column.

You could also have done something like this:

.pun span.byuser { display: block }

It wouldn't be exactly the same, but you would have clearly separated the topic title & the original posters name, without having to modify any of the source smile

Re: In view forum: topic posted by in a seperate column.

did mine myself, not that hard.  I had no clue that there was a mod published for that.

Re: In view forum: topic posted by in a seperate column.

This is what I was looking for, because the other mod did not work for me. So thanks a lot!!!
But I can't get it to work in search.php, when users choose "recent posts" of "posts since last visit".

When i use the second part of the code, the cell stays blank: no author is shown in the search results. Any suggestions?

8

Re: In view forum: topic posted by in a seperate column.

hsl wrote:

Hello,

On my forum people complained that it's not really "logical" to
have the user that started a topic at the end of the sentence.

for example if someone would start a topic with the title:
Help, I'm scammed.

in viewforum it would say,
Help, I'm scammed. by HSL

now I've made a modification to viewforum.php and /styles/imports/base.css
and I have a seperate column where the post starter is in.

Can this be standard in the next revision or can it be optional?

Regards,

Harold

it would be good if it was optional.

9

Re: In view forum: topic posted by in a seperate column.

yes this is true that the more optional features there is the better it will be in my opinion smile so i agree with mark on this one.