Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Mod Name / Version: Remove White Borders Around Checkboxes & Radio Buttons

Description: This mod removes the white borders surrounding form checkboxes and radio buttons for those who find it unappealing. Instead, the border is replaced with transparency so as to show the table color defined in the theme.

However, the desireable white background used by text input boxes is left intact.

Here is an example of what's being altered across the entire messageboard system...

[]http://mameworld.petr1fied.com/smoothmame/mod.png[/]

Working Under: UBB.Threads 6.2-6.3-6.4

Mod Status: Finished

Any pre-requisites: none

Author(s): Twisty

Date: 11/24/03

Credits: none

Files Altered:
- every .css stylesheet
- editbasic.php
- editdisplay.php
- admin/approvepdn.php
- admin/approveuser.php
- admin/createboard.php
- admin/selectusers.php
- admin/showoneuser.php
- admin/showpostip.php
- admin/viewboard.php
- admin/viewunapproved.php
- admin/whichuser.php
- templates/default/editbasic.tmpl
- templates/default/editdisplay.tmpl
- templates/default/editemail.tmpl


New Files: none

Database Altered: no

Info/Instructions:

STEP 1
======

In *each* of your .css stylesheets, you'll need to...

A) Change .formboxes to:

.formboxes{
background-color: #transparent;
font-size: 14px;
}

* Adjust font-size as req'd (this is what I happen to use)


B) And also...

ADD IN THIS NEW CLASS:

.formboxesbutton{
background-color: transparent;
}


STEP 2
======

For all the .php & .tmpl files listed above, you'll need to search each file for the word 'radio' (every instance found) and then modify the class listed in that particular line as follows...

CHANGE FROM:

class="formboxes"

CHANGE TO:

class="formboxesbutton"


Voila, you're done

It's a bit of effort, but the results are pretty sweet.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.

Sponsored Links
Joined: Jul 2004
Posts: 43
User
User
Joined: Jul 2004
Posts: 43
Hi Twisty,

We have 6.5.1 and I cannot locate all the files you mentioned in the list. Some, but not all. I assume that modifying all the files that I can locate will be affected positively. However, I am certain some will be missing.

Of course, by not changing some of the .phps or unknown ones and only changing the files I can find from your list, the buttons and boxes on the unknown ones will just simply revert to their default "white bordered" state? Or can I expect further problems.

I will search around and see what files are missing, but if you already know off the top of your head, your list would be appreciated. Thx, Twisty!

Following are the files I have:

- every .css stylesheet
- editbasic.php
- editdisplay.php

- admin/viewboard.php

- templates/default/editbasic.tmpl
- templates/default/editdisplay.tmpl
- templates/default/editemail.tmpl

Following are the files I cannot find:

- admin/approvepdn.php
- admin/approveuser.php
- admin/createboard.php
- admin/selectusers.php
- admin/showoneuser.php
- admin/showpostip.php

- admin/viewunapproved.php
- admin/whichuser.php


Helping the lost & lonely one sweet soul at a time...
Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
I wouldn't really worry about the admin ones, it's just cosmetic anyway, and users won't be able to see those.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Why do I get prompted to log into loonies realm at mame.com when I view this page?

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Whoops, I had password protected some folders recently - one of which contained my banana gif in the sig. All fixed

Sponsored Links
Joined: Jul 2004
Posts: 43
User
User
Joined: Jul 2004
Posts: 43
You're right, Twisty... I was unsure and sometimes, I get too caught up in the details of making everything pretty.



Helping the lost & lonely one sweet soul at a time...

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)