|
|
Joined: Jun 2002
Posts: 160
Member
|
|
Member
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).
|
|
|
|
|
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
|
|
|
|
|
Joined: Jun 2002
Posts: 160
Member
|
|
Member
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.
|
|
|
|
|
Joined: Feb 2001
Posts: 2,268
Junior Member
|
|
Junior Member
Joined: Feb 2001
Posts: 2,268 |
I think you'll find what you are looking for in the ubbthreads.tmpl file in this area: <td class="posttime" nowrap="nowrap"><br />{$forum[$c][$f]['lastpost']}<br /><br /><br /> <br />{$forum[$c][$f]['lastposter']} Notice the line break? 
|
|
|
|
|
Joined: Jun 2002
Posts: 160
Member
|
|
Member
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?
|
|
|
|
|
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 
|
|
|
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.
|
|
Posts: 5,834
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 1731
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 20
|
|
|
|