TinyPortal

Development => Support => Topic started by: Mick on May 11, 2009, 11:39:48 PM

Title: SSi. function side by side?
Post by: Mick on May 11, 2009, 11:39:48 PM
Hey all,its been awhile ;)

Im just starting to use the ssi function.  My question is,....is there a way to show them side by side? Like maybe 2 per row?

If you see here, http://www.chevyavalancheclub.com/index.php?action=polls

Theyre just going straight down and wide as the page.

Any ideas? :buck2:
Title: Re: SSi. function side by side?
Post by: JPDeni on May 12, 2009, 01:02:44 AM
You can do anything you want with them, structure-wise.

QuoteLike maybe 2 per row?

Two what per row?

QuoteTheyre just going straight down and wide as the page.

That's because your table is set to a 100% width.

I'd have to see your code in order to be able to help you with it, though.

Title: Re: SSi. function side by side?
Post by: Mick on May 12, 2009, 01:55:29 AM
I knew it :D   TP should pay you for all your willing help :buck2:


I mean,the polls are like this:

Poll
poll
poll
poll


I'd like to have them to show like this:


poll poll
poll poll
poll poll
poll poll


or....


poll poll poll
poll poll poll
poll poll poll

Get the idea? :-\


The code im using is just the simple ssi poll function.  Nothing else.

Thanx,
Mick.
Title: Re: SSi. function side by side?
Post by: Mick on May 12, 2009, 02:00:12 AM
I wonder if adding cells this would work.

Hmmm...maybe 3 rows and 3 cells.

lol...back to the drawing board.
Title: Re: SSi. function side by side?
Post by: Mick on May 12, 2009, 02:04:23 AM
Heres the table cells.    lol...great idea.

3 rows & 3 cells

<table cellspacing="1" cellpadding="1" width="100%" border="1" align="" summary="">
    <tbody>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
    </tbody>
</table>
Title: Re: SSi. function side by side?
Post by: JPDeni on May 12, 2009, 02:05:52 AM
QuoteThe code im using is just the simple ssi poll function.  Nothing else.

Can you give me the actual name of the function? Searching for the word "poll" in SSI.php is taking forever.
Title: Re: SSi. function side by side?
Post by: Mick on May 12, 2009, 02:15:28 AM
Ah ok.

Im using the:

ssi_showPoll(4701);

dont mind the 4701,thats the topic number.

Title: Re: SSi. function side by side?
Post by: JPDeni on May 12, 2009, 03:15:12 AM
Okay, so you have a number of calls to ssi_showPoll, yes? You can easily put them into a table.


echo '<table>
  <tr><td>';
ssi_showPoll(xxxx);
echo '</td><td>';
ssi_showPoll(xxxx);
echo '</td><td>';
ssi_showPoll(xxxx);
echo '</td></tr>

<tr><td>';
ssi_showPoll(xxxx);
echo '</td><td>';
ssi_showPoll(xxxx);
echo '</td><td>';
ssi_showPoll(xxxx);
echo '</td></tr>
<tr><td>';
ssi_showPoll(xxxx);
echo '</td><td>';
ssi_showPoll(xxxx);
echo '</td><td>';
ssi_showPoll(xxxx);
echo '</td></tr></table>';


Just fill in your topics numbers where the xxxx is. It should work.  :)