|
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. /* 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.)
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
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.
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
I've just read the first two lines in your 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.
|
|
|
|
Joined: Oct 2007
Posts: 354 Likes: 8
Enthusiast
|
Enthusiast
Joined: Oct 2007
Posts: 354 Likes: 8 |
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? I've just read the first two lines in your 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_inputThere 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.
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
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
|
|
|
|
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.
|
1 member likes this:
isaac |
|
|
|
Joined: Jun 2006
Posts: 16,292 Likes: 116
|
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
|
1 member likes this:
isaac |
|
|
|
Joined: Oct 2007
Posts: 354 Likes: 8
Enthusiast
|
Enthusiast
Joined: Oct 2007
Posts: 354 Likes: 8 |
|
|
|
|
|