Previous Thread
Next Thread
Print Thread
Hop To
Joined: Dec 2006
Posts: 5
Z
stranger
stranger
Z Offline
Joined: Dec 2006
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.

Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
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
Joined: Dec 2006
Posts: 5
Z
stranger
stranger
Z Offline
Joined: Dec 2006
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>)

Last edited by zane; 04/26/2007 11:34 PM.
Joined: Dec 2006
Posts: 5
Z
stranger
stranger
Z Offline
Joined: Dec 2006
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?

Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
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
Joined: Dec 2006
Posts: 5
Z
stranger
stranger
Z Offline
Joined: Dec 2006
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.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by zane
I owe you, brother.
hulk hogan?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Nightcrawler, Ruben), 694 guests, and 214 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)