Previous Thread
Next Thread
Print Thread
Hop To
#265029 08/26/2021 10:45 PM
Joined: Oct 2007
Posts: 286
Likes: 2
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 286
Likes: 2
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.)

Attached Images
Screen Shot 2021-08-26 at 9.32.45 PM.png

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

UBBThreads 7.7.4
Web Server Apache/2.4.48
PHP Version 7.4.22
MySQL Version 5.6.49
Database Size 2.26 GB
Joined: Jun 2006
Posts: 16,113
Likes: 78
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,113
Likes: 78
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: 286
Likes: 2
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 286
Likes: 2
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

UBBThreads 7.7.4
Web Server Apache/2.4.48
PHP Version 7.4.22
MySQL Version 5.6.49
Database Size 2.26 GB

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Incorrect integer value
by DaveZ - 09/26/2021 4:09 PM
"Hide" a member rather than delete?
by jgeoff - 09/24/2021 4:38 PM
Send Email to "All Members in Search"
by JetStar - 09/20/2021 1:29 AM
Cancel subscription membership
by Morgan - 09/10/2021 4:16 AM
Who's Online Now
2 members (jgeoff, 1 invisible), 45 guests, and 91 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5