TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,230
  • Total Topics: 21,353
  • Online today: 867
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 180
  • Total: 181
  • @rjen

SSi. function side by side?

Started by bluedevil, May 11, 2009, 11:39:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mick

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:

JPDeni

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.


Mick

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.

Mick

I wonder if adding cells this would work.

Hmmm...maybe 3 rows and 3 cells.

lol...back to the drawing board.

Mick

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>

JPDeni

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.

Mick

Ah ok.

Im using the:

ssi_showPoll(4701);

dont mind the 4701,thats the topic number.


JPDeni

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.  :)

This website is proudly hosted on Crocweb Cloud Website Hosting.