Welcome to Geeklog Friday, September 20 2019 @ 05:59 am EDT

Geeklog Forums

Poll Block Code


Status: offline

jbpaul17

Forum User
Chatty
Registered: 14/05/04
Posts: 49
Location:New York City
hungry
hi, i'm working on tweaking the Tabular_Dynamics theme and have noticed that when you view that theme in IE that the radio buttons in the Poll block are enclosed by boxes for some reason.

I'm looking at the pollboth.thtml code and see "{poll_answers}" and am trying to figure out if that controls this section. does anyone know if that's the case? if so, does anyone know where to find that {poll_answers}code to edit?

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
that's a style issue with IE--sucks doesn't it?!

you cant get rid of the box that seems to surround the radio button, but you can set the button's background color to the same as your page's bg color. That will take care of the box. Just use CSS.

Status: offline

jbpaul17

Forum User
Chatty
Registered: 14/05/04
Posts: 49
Location:New York City
you cant get rid of the box that seems to surround the radio button, but you can set the button's background color to the same as your page's bg color. That will take care of the box. Just use CSS.


where can i find the code that edits the radio buttons for polls? i checked the various pollboth php files, but see a lot of {variables} and nowhere that I can easily edit the style for the radio buttons.

Any ideas?

Status: offline

jbpaul17

Forum User
Chatty
Registered: 14/05/04
Posts: 49
Location:New York City
cheerful
Got it fixed!

It wasn't so much that the radio buttons background color differed as that there was apparently a border around each item.

1.) I edited */layout/Tabular_Dynamics/pollbooth/pollanswer.thtml to be:
PHP Formatted Code
<input type="radio" name="aid" value="{answer_id}" class="radio">{answer_text}<br>
 

2.) I added:
PHP Formatted Code
input.radio {
    background-color: #FFFFFF;
   color: black;
    border: 0px;
    border-bottom : 0px;
    border-top : 0px;
    padding: 0;
}
 

to: */layout/Tabular_Dynamics/style.css

now its better!

Status: offline

machinari

Forum User
Full Member
Registered: 22/03/04
Posts: 1512
pollanswer.thtml
or just use the CSS file for your theme.

edit: yeah, like that

All times are EDT. The time is now 05:59 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content