1
consul
how to adjust table width of poll block
  • 2004/3/23 10:36

  • consul

  • Just popping in

  • Posts: 30

  • Since: 2004/3/15


hi y'all

i noticed that in some browsers the poll block on my homepage is too wide

Which file do i have to adjust?

you can see the problem www.immo-aksent.be

thx in advance

tc

2
Herko
Re: how to adjust table width of poll block
  • 2004/3/23 12:01

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


have you looked in system admin -> templates ?

You have to clone the default template set if you want to edit them, however, and set the new cloned set as active templates in the system admin -> preferences -> general settings page.

Herko

3
consul
Re: how to adjust table width of poll block
  • 2004/3/23 12:15

  • consul

  • Just popping in

  • Posts: 30

  • Since: 2004/3/15


i am not sure to understand this

isn't their a standard block (php file) for the poll block?

if i have to edit the default set where do i find the file to adjust?

thx

tc

4
HughG
Re: how to adjust table width of poll block
  • 2004/3/23 12:31

  • HughG

  • Not too shy to talk

  • Posts: 124

  • Since: 2003/2/21


looks perfect to me...

couple of places you can adjust this.

>admin > blocks > polls > edit template and adjust the width there.

You could also look at the theme_blockleft.html in the theme folder - and see what settings are there.

You could also look at the style css and see if there is a setting there. - look at "outer", "odd", "even" and "footer" and make sure nothing wierd is set there.

5
consul
Re: how to adjust table width of poll block
  • 2004/3/23 14:22

  • consul

  • Just popping in

  • Posts: 30

  • Since: 2004/3/15


weird

maybe it is because i am testing the site from work with an IE 5.5

@home i use IE6.0

maybe that is the problem????

6
tjnemez
Re: how to adjust table width of poll block
  • 2004/3/23 14:46

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey consul,

i am using ie 6 and it looks okay.

as herko advised, clone your templates and edit block from cloned set. you can adjust your css or your theme.html, but any changes there will affect all your blocks and this could get tricky.

7
consul
Re: how to adjust table width of poll block
  • 2004/3/23 15:34

  • consul

  • Just popping in

  • Posts: 30

  • Since: 2004/3/15


guess i won't adjust the whole thing becoz of the problem IE5.5

guess most ppl are using IE6.0 mozilla, firebird etc....

if you guys don't have any problem with it....

it's a fact that IE5.5 is giving probs coz when i look at this XOOPS site , the forum is in the right table.

thx for all replies

tc


8
T-Tech
Re: how to adjust table width of poll block
  • 2004/3/23 16:12

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


In the templates_c folder you will see a filed named something like:

db%3Axoopspoll_block_poll.html

Open that file in a html editor, if you dont have one you can just open it in notepad. The first bunch of lines will look something like this:

<?php /* Smarty version 2.5.0, created on 2004-03-03 14:16:57
         compiled from db:xoopspoll_block_poll.html */ 
?>
<?php $this
->_load_plugins(array(
array(
'function''cycle''db:xoopspoll_block_poll.html'9false),)); ?><?php if (count((array)$this->_tpl_vars['block']['polls'])):
    foreach ((array)
$this->_tpl_vars['block']['polls'] as $this->_tpl_vars['poll']):
?>
<form style="margin-top: 1px;" action="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/xoopspoll/index.php" method="post">
<table class="outer" cellspacing="1">


*
Ok now where you see the last line I have there:

<table class="outer" cellspacing="1">



Try changing it to this:

<table width="100%" class="outer" cellspacing="1">


That should make the block be the full width of the column.
Be sure you save it with the exact name as it started.


Hope that helps :)

9
consul
Re: how to adjust table width of poll block
  • 2004/3/23 19:42

  • consul

  • Just popping in

  • Posts: 30

  • Since: 2004/3/15


thx gonna try that one for a testride

tc

Login

Who's Online

185 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits