Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 14
Newbie
Newbie
Offline
Joined: Aug 2002
Posts: 14
I'm trying to come up to speed with UBB.threads as I set up my board, but one issue to which I have found no answer concerns the background color scheme of the board.

The default for a threaded, expanded view of the board is for alternating light and dark background colors. I am preparing to migrate my users over from a board where they had the good sense to differentiate the first post in a thread from replies by using background colors.

Here's a link to the current board so you can see what I'm talking about: ivybasketball.com Message Board

The new board we're setting up using UBB.threads 6.0.3 uses the alternating background colors for rows. For those who don't know what I'm talking about, here's a link to the in-progress version of the new board: new UBB.threads board

When I spoke to the UBB.threads salesperson before purchasing, she stated that she believed there was a code modification out there that could accomplish this. However, I have been unable to find this for whatever reason.

Does anyone know of any code that would be able to accomplish this?

Thanks for any help you might be able to provide.

Jake Wilson
ivybasketball.com

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I don't think there is any templates released that changes the look like that. But to get you started, here is a small code change that fixes the background color:

Find this block of code in postlist.tmpl:
code:

for ($i=0;$i<$postrowsize;$i++) { //UBBTREMARK
echo <<<UBBTPRINT

<tr class="{$postrow[$i]['color']}">


And replace it with this:
code:

for ($i=0;$i<$postrowsize;$i++) { //UBBTREMARK
if ($postrow[$i]['indentsize'] == 0) {
$bgcolor = "darktable";
} else {
$bgcolor = "lighttable";
}
echo <<<UBBTPRINT

<tr class="{$bgcolor}">



Usual disclaimers apply, take backup of everything before you change anything etc.

Joined: Aug 2002
Posts: 14
Newbie
Newbie
Offline
Joined: Aug 2002
Posts: 14
Thanks so much. That was exactly what I needed.

Regards,

Jake


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
Greg Hard 4,625
Top Posters(30 Days)
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)