Previous Thread
Next Thread
Print Thread
Hop To
#265029 08/26/2021 10:45 PM
Joined: Oct 2007
Posts: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
Likes: 8
I just noticed this in our forums. I don't know if it's been that way for a while or something changed recently. (I recently made some updates to installed applications on the server.) ALL of the buttons, regardless of what style you are using, are really really long. (I've attached a picture so you can see what I mean.)

Is the length of buttons determined in a style sheet? In the html code? Where do I go to adjust this to something reasonable? (I have root access, and I'm not afraid to edit files manually or make changes to the database.)
Attachments
Screen Shot 2021-08-26 at 9.32.45 PM.png


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: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
This is directly related to the 3rd party content in your custom island #6; more specifically this bit:
Code
<style>
button {
  color: #00F;
  font-weight: bold;
  border-sizing: border-box;
  border-radius: 4px;
  bottom-border: 1px solid blue;
  background-color: #eee;
  width: 27%;
  height: 30px;
  font-size: 12px;
  padding: 6px 6px;
}
input {
   height: 30px;
   border-radius: 4px;
   font-size: 14px;
   width: 70%;
}
</style>

Which is overriding the UBB.threads style. Take care in the future when adding new coding so that you can ensure the classes defined will not be overriding the stock ones the forum offers; simply rename the classes in use in the target code to use something different such as "islandbutton" (or just remove the CSS and let it use the UBB.threads class)


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!
Joined: Oct 2007
Posts: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
Likes: 8
Thank you for the quick help. I changed the style to an id with a unique name, and it solved the problem. I should have realized that using well-known elements in a style might have unexpected consequences.

Code
<style>
#searchButton {
  color: #00F;
  font-weight: bold;
  border-sizing: border-box;
  border-radius: 4px;
  bottom-border: 1px solid blue;
  background-color: #eee;
  width: 27%;
  height: 30px;
  font-size: 12px;
  padding: 6px 6px;
}
#searchInput {
   height: 30px;
   border-radius: 4px;
   font-size: 14px;
   width: 70%;
}
</style>


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)