Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2002
Posts: 160
Member
Member
Offline
Joined: Jun 2002
Posts: 160
Ok, on the listings for the Last Post column that displays the short post title, username of the user who posted it, and the time of the post - which is displayed on the ubbthreads.php page - where exactly do I look in the php or template files to modify that text?

What I'm trying to do is to make that information list all on one line, when it's possible, rather than the seemingly forced 2-line format it's using apparently by default.

Also, if anyone can point me towards the code that lists the icon image for that entry, I'd like to see if it's possible to mod the forum to display a different colored icon if the post is new to the user (much like the quick and easy mods listed by JustDave in the CSS forum recently).

Sponsored Links
astre #237255 02/19/2003 7:25 PM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
You probably need to modify the ubbthreads.tmpl which is located under the /templates/default folder.


Nikos
Hal_dup2 #237256 02/20/2003 4:09 PM
Joined: Jun 2002
Posts: 160
Member
Member
Offline
Joined: Jun 2002
Posts: 160
[]dimopoulos said:
You probably need to modify the ubbthreads.tmpl which is located under the /templates/default folder. [/]
Yeah, I've looked at that, as it was the obvious first place to look, but as near as I can tell, there's a code element listed there that seems to be for the entire Last Post column entry - nothing I can find that seems to be an indication of a line break I can remove. So, I'm thinking it's probably in one of the PHP files somewhere, and I'm rather less adventurous about poking about in those exploratively.

astre #237257 02/20/2003 4:36 PM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I think you'll find what you are looking for in the ubbthreads.tmpl file in this area:

Code
 <td class="posttime" nowrap="nowrap"><br />{$forum[$c][$f]['lastpost']}<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />{$forum[$c][$f]['lastposter']} 


Notice the line break?

jacksonm99 #237258 02/20/2003 5:12 PM
Joined: Jun 2002
Posts: 160
Member
Member
Offline
Joined: Jun 2002
Posts: 160
Ahah. Thank you. I've looked at that file, and somehow missed that before. I suspect that because for some reason, there's a blank line in there before the line break on the version I have, and it threw some kink into my visual pattern recognition attempts.

Have made the change to try to make all that one line, and have mixed feelings about it.

Now, can anyone point me to where in what .php file the icon for the last post display is done, so I can see if I can make that change color to the orange icons if the post is new to the user as well?

Sponsored Links
astre #237259 02/20/2003 5:47 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You'll see that defined in the ubbthreads.php script. To a search for the second occurance of $lastpost



Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,834
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1731
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 20
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)