Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
0 registered (), 24 Guests and 20 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 07/07/05
Posts: 62
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 109
Thelockman 80
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#183248 - 04/25/07 12:45 PM "last post" column needs to stretch
zane Offline
stranger

Registered: 12/04/06
Posts: 5
Can some ingenious person guide me today? I'm stumped. My summary pages look very uneven due to unnecessary line breaks in the last column. I either need to remove the break or stretch the cell to get the same effect.

I am not displaying the moderator column so I should have room to consistently get the last post title, author, and date & time easily onto 2 lines rather than an occasional 3 lines.

I think I am looking for the code which generates a <br /> before tha author's name, (which appears in parentheses).

Also, where O where is the mechanism which puts the 3 dots after a truncated post title link? (I would like a little more of the full topic title in this cell rather than a shortened topic title.)

I also increased the page width percentage in the cp.cgi to no avail.

This section of code below is from the Template: public_forum_summary.pl. I hope that's the right one...

Much, much thanks for your consideration.

 Code:
	#@nobrs = qq(<nobr> </nobr>)

	my($thislast, $thisbr);

	if($last_author ne '') {
		my $titler = ($long_last_subject ne $last_subject ? qq!title="$long_last_subject"! : "");
		my $pglnk = ($vars_display{HTMLDisplayMax} > 0 ? ";p=" . &round_up_always(($last_reply_number + 1) / $vars_display{HTMLDisplayMax}) : "");
		$pglnk = "" if $vars_display{ReverseThreads} eq "TRUE";
		$thislast = qq(
<a href="$ULTIMATEBB{"ubb=get_topic;f=$x;t=$last_post_number$pglnk#$last_reply_post"}" $titler>$last_subject</a>
$last_author);

	} else {
		$thislast = $last_author;
	}

	my $name_link = ($vars_display{ShowLastPostCol} ne "NONAME" ? qq!<tr>
<td width="28" valign="bottom">  </td>
<td valign="bottom">
<font size="$vars_style{FDTextSize}" face="$vars_style{FontFace}">
$thislast
</font>
</td></tr>! : "");

	$Row .= qq~

<td bgcolor="$alt_color" valign="top" align="left">

<table border="0" cellspacing="0" cellpadding="0">
$name_link
<tr><td width="28" valign="bottom"></td>
<td valign="bottom">
<font size="$vars_style{FDTextSize}" face="$vars_style{FontFace}">$TheDate</font>
<font size="$vars_style{FDTextSize}" face="$vars_style{FontFace}" color="$vars_style{TimeColor}">$LatestTime</font>
</td></tr></table>

</td>

~ Face}"><b>$Moderator</b></font>
</td>


Version: Classic 6.7.3.

Top
#183307 - 04/26/07 12:29 PM Re: "last post" column needs to stretch [Re: zane]
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
That doesn't look right for some reason - you have several empty <td> </td>'s in there for some reason. .classic was table heavy but I don't think Charles had too many empty cells.
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#183334 - 04/26/07 08:34 PM Re: "last post" column needs to stretch [Re: AllenAyres]
zane Offline
stranger

Registered: 12/04/06
Posts: 5
You're correct, Allen. I did remove the message icons to save space and hopefully lessen the occassion for long lines to be broken up.

Is the last post data part of a seperate table within a cell, btw?

What does determine where the lines are broken up?

And what does this comment signify in the above? #@nobrs = qq(<nobr> </nobr>)


Edited by zane (04/26/07 08:34 PM)

Top
#183337 - 04/27/07 02:22 AM Re: "last post" column needs to stretch [Re: zane]
zane Offline
stranger

Registered: 12/04/06
Posts: 5
In short, what I need to do is to display the last post and its authors name on a single line which does not break.

The last post is a link. The author's name is in parenthesis. On the next line is the date and time.

Where is that code for the author's name in parenthesis?

Top
#183363 - 04/27/07 10:20 AM Re: "last post" column needs to stretch [Re: zane]
AllenAyres Moderator Offline

****

Registered: 12/29/03
Posts: 1639
Loc: Texas
the nobr's line was commented out, so it doesn't get used.

Some of what you are looking for is in the ubb_forumsummary.cgi (or something similar) file that's where the titles get shortened. I don't have the files in front of me to say specifically. I'd look for

$last_subject
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#183369 - 04/27/07 01:00 PM Re: "last post" column needs to stretch [Re: AllenAyres]
zane Offline
stranger

Registered: 12/04/06
Posts: 5
Excellent. Those are the leads I am needing in order to adjust the line breaks and to get my formatting perfectly even.

I owe you, brother.

Top
#183376 - 04/27/07 03:18 PM Re: "last post" column needs to stretch [Re: zane]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12007
Loc: Portland, OR; USA
 Originally Posted By: zane
I owe you, brother.
hulk hogan?
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top


Moderator:  AllenAyres, Gizmo, Ian, Ron M 
Shout Box

Today's Birthdays
brushie, cass, Monte G., twebman, White Gold Wielder
Recent Topics
Shrinking graemlins
by Djuma
Today at 05:48 PM
2 problems I'm seeing now.
by DougMM
Today at 04:39 PM
Which CSS Style Controls the bottom lines
by David DelMonte
Today at 01:51 PM
UBBThreads vs. vBulletin -- Defections & Why So Tough to Compare?
by WebMagic
Today at 12:28 PM
Font and column shifts occuring
by Bill B
Yesterday at 06:21 PM
Forum Stats
4261 Members
33 Forums
30532 Topics
154962 Posts

Max Online: 978 @ 06/24/07 08:19 PM