Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2007
Posts: 323
Likes: 7
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 323
Likes: 7
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

x86_64 GNU/Linux
UBBThreads 7.7.5
Web Server Apache/2.4.6
PHP Version 7.4.30
MySQL Version 5.7.38
Database Size 1.72 GB
Joined: Apr 2004
Posts: 1,917
Likes: 140
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,917
Likes: 140
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 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2004
Posts: 1,917
Likes: 140
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,917
Likes: 140
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 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2007
Posts: 323
Likes: 7
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 323
Likes: 7
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

x86_64 GNU/Linux
UBBThreads 7.7.5
Web Server Apache/2.4.6
PHP Version 7.4.30
MySQL Version 5.7.38
Database Size 1.72 GB
Joined: Apr 2004
Posts: 1,917
Likes: 140
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,917
Likes: 140
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 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2007
Posts: 323
Likes: 7
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 323
Likes: 7
Thanks. That means the tables they are using are superfluous.


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

x86_64 GNU/Linux
UBBThreads 7.7.5
Web Server Apache/2.4.6
PHP Version 7.4.30
MySQL Version 5.7.38
Database Size 1.72 GB
1 member likes this: isaac
Joined: Jun 2006
Posts: 16,185
Likes: 102
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,185
Likes: 102
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: 323
Likes: 7
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 323
Likes: 7
Thanks, Gizmo.


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

x86_64 GNU/Linux
UBBThreads 7.7.5
Web Server Apache/2.4.6
PHP Version 7.4.30
MySQL Version 5.7.38
Database Size 1.72 GB

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
You've already posted
by Baldeagle - 08/06/2022 1:12 PM
Default Group(s) for New Members
by Morgan - 08/02/2022 10:54 AM
Webhook to DISCORD
by TGCsanderson - 08/01/2022 6:42 AM
Is it possible to restore a single forum from backup?
by Baldeagle - 07/19/2022 1:18 PM
Who's Online Now
0 members (), 72 guests, and 72 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 7.7.5