Previous Thread
Next Thread
Print Thread
Hop To
#265029 08/26/2021 10:45 PM
Joined: Oct 2007
Posts: 448
Likes: 11
Addict
Addict
Joined: Oct 2007
Posts: 448
Likes: 11
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 8.0.0
Release 20240826
Server OS Linux
Server Load 0.11
Web Server Apache/2.4.37
PHP Version 8.3.11
MYSQL Version 8.0.39
Database Size 1.82 GB
Joined: Jun 2006
Posts: 16,354
Likes: 125
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,354
Likes: 125
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: 448
Likes: 11
Addict
Addict
Joined: Oct 2007
Posts: 448
Likes: 11
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 8.0.0
Release 20240826
Server OS Linux
Server Load 0.11
Web Server Apache/2.4.37
PHP Version 8.3.11
MYSQL Version 8.0.39
Database Size 1.82 GB

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Is this a cookie usse?
by Baldeagle - 10/05/2024 2:01 PM
Search button not there
by ehill - 10/02/2024 2:56 PM
Change the Order of the buttons in a post
by Unixspot - 09/19/2024 10:04 PM
How do I get rid of this?
by Baldeagle - 09/12/2024 6:30 PM
Purging logs does not work
by Baldeagle - 09/12/2024 5:16 PM
Who's Online Now
4 members (Gizmo, Ravenfreak, Ruben, Baldeagle), 308 guests, and 71 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.1
(Snapshot build 20240918)