Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2007
Posts: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
Likes: 8
The owners are resistant to updating the code that they use for the column layout. I'm trying to convince them to change to modern layout using css and html. This is an example of one column that is currently on our board.

Code
/* DO NOT CHANGE THE LINE BELOW */
$body = <<<EOF


<table width="210">
<td align="center">


<span style='font-size:12pt;font-family:"Arial"; color:#339900'><em>We are still asking:</em></span><br>

<span style='font-size:14pt;font-family:"Arial"; color:#6699FF'><b>What did you<br>get done on<br>your Bolt today<br>????</b></span></p><br>

<p><span style="font-size:11pt;font-family:'Arial';color:#6699FF" ;><em>The question, initially posted May 23, 2005, was:<br>
"Whatcha do on your Bolt<br>this weekend?"</em></span> <br>

After 52,094,057 views, 7409 replies over 186 pages, this thread in General Truck Talk is a happening!  And it's not just weekends anymore.</p>
    <br>

<p>  <span style='font-size:12pt;font-family:"Arial"; color:#339900'>Now with pictures<br>and No BOTS.</span></p>    <br>

<span style='font-size:12pt;font-family:"Arial"; color:#339900'>So ... </span>
    </p><br>

<p><span style='font-size:12pt;font-family:"Arial";color:#6699FF';><b><a href="https://www.stovebolt.com/ubbthreads/ubbthreads.php/topics/1451709/re-what-did-you-get-done-on-your-bolt-today.html#Post1451709 target="_blank"> What did you get done on your Bolt today????</a></b></span></p>
<br>

</td>
</table>


EOF;
/* DO NOT CHANGE THE LINE ABOVE */
I'd like to be able to recode this and test it without affecting the live board. I have a copy of the board here; Test board But it's connected to the database and any updates I made would affect the live board.

Is there a way to emulate the live board to test changes without affecting the live board? (And no, I don't want to setup a mirror database.)


The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Perform a fresh install with a freshly made database to test your customizations on. Then you will be sure that whatever changes you've made are the result of you, and not something that has happened beyond your control -- such as a user or live forum script/advertisement. You will need to create some test categories, forums, and posts to work with.

Be aware, that columns are affected also by the user settings. ie; all-on/all-off, left-only/right-only, show profile-details-on-left for profile editor, hide columns for registration settings, ignore shoutbox in column for shoutchat page, and several other locations. There are template column controls in the libraries files which also need to be updated.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
I've just read the first two lines in your code onoes

Code
<table width="210">
<td align="center">


edit, since i kept reading lines:
wow. the whole thing is a mess.

for some direction, pass your html through a validator, and read each error from the results
https://validator.w3.org/#validate_by_input

Last edited by isaac; 07/21/2022 1:10 PM.

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2007
Posts: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
Likes: 8
Originally Posted by isaac
Perform a fresh install with a freshly made database to test your customizations on. Then you will be sure that whatever changes you've made are the result of you, and not something that has happened beyond your control -- such as a user or live forum script/advertisement. You will need to create some test categories, forums, and posts to work with.

Be aware, that columns are affected also by the user settings. ie; all-on/all-off, left-only/right-only, show profile-details-on-left for profile editor, hide columns for registration settings, ignore shoutbox in column for shoutchat page, and several other locations. There are template column controls in the libraries files which also need to be updated.

That's what I wanted to avoid.

I read through the source code for the page, and looked at some of the css. If I understand it correctly, the size of the left column is controlled by the ubb code. If iI'm correct, then trying to control the size by using a table inside the column element will override the ubb design and could throw things off, correct?

Originally Posted by isaac
I've just read the first two lines in your code onoes

Code
<table width="210">
<td align="center">


edit, since i kept reading lines:
wow. the whole thing is a mess.

for some direction, pass your html through a validator, and read each error from the results
https://validator.w3.org/#validate_by_input
There is a ton of code just like that, and much worse, on the site. I'm trying to convince them to clean it up, but if I can just get the forum columns clean, that will be an accomplishment.


The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
column width size is controlled by the selected forum style. you can manage this through the style editor per each style. have a brief look at the options in the UBB.threads default style, UBBT77. The widths are set in LEFT/RIGHT COLUMNS section

[Linked Image]


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2007
Posts: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
Likes: 8
Thanks. That means the tables they are using are superfluous.


The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB
1 member likes this: isaac
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Custom islands are stored as flat files and are not pushed to the database, look in cache_builders/custom


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!
1 member likes this: isaac
Joined: Oct 2007
Posts: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
Likes: 8
Thanks, Gizmo.


The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 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)