Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
How do I change the table format in the Main Index?

My goal is to adjust column widths. I went into ubbthreads.php and remove the last post information at this level, now I want to make my far right column narrower to clean up the look. I had it this way before the 6.2 upgrade, but it was something that was done prior to me arriving, so I have no docs on where it was adjusted.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Should be in the ubbthreads.tmpl template file.

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
In my ubbthreads.php I changed this line

// Now cycle through the boards in this category
$firstpass = 0;
$y = 0;
while ( $boardrows = $dbh -> fetch_array($boards)) {
list($Title,$Description,$Keyword,$Total,$Last,$Number,$Moderated,$ReadPerm,$WritePerm,$Threads,$Sorter,$Posterid,$lastmain,$lastnumber,$Poster,$Subject,$Icon,$Reged,$AnonName) = $boardrows;


by removing the varibables at the end
,$Poster,$Subject,$Icon,$Reged,$AnonName


Now I have several spaces and a 'dash' in my Main Index to the right under Last Post, along with what I want.. only the date and time of the last post.

Any ideas. (Also still looking for a reference source of the variable definitions)

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Sorry, didn't understand what you were trying to do before.

You might not have needed to fool with the .php file.

Try this... in the ubbthreads.tmpl file

code:

Find this:

<td class="posttime" nowrap="nowrap">
{$forum[$c][$f]['lastpost']}
<br />
     
{$forum[$c][$f]['lastposter']}
- {$forum[$c][$f]['time']}
</td>


Change it to this:

<td class="posttime" nowrap="nowrap">
{$forum[$c][$f]['time']}
</td>



That shoudl get rid of the spaces and the dash etc...

Last edited by JoshPet; 12/30/2002 2:10 AM.

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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)