Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter stuart0870

    (@stuart0870)

    Never mind, fixed it. Leaving it here in case anyone comes up against this too.

    <h3>1st XI Division Table</h3>
    <div style="font-size:small;">
    [jsoncontentimporter url=https://www.stalybridgecricketclub.co.uk/wp-content/uploads/json/1st_xi_league.json basenode=league_table]{subloop:headings:-1}
        <table id="League_Table_Div3" class="tablepress" width="95%">
            <thead>
                <tr class="row-1 odd">
                    <th style="width: 30% !important;">{headings.column_1}</th>
                    <th style="text-align: right;">{headings.column_2}</th>
                    <th style="text-align: right;">{headings.column_3}</th>
                    <th style="text-align: right;">{headings.column_4}</th>
                    <th style="text-align: right;">{headings.column_5}</th>
                    <th style="text-align: right;">{headings.column_6}</th>
                    <th style="text-align: right;">{headings.column_7}</th>
                    <th style="text-align: right;">{headings.column_8}</th>
                    <th style="text-align: right;">{headings.column_9}</th>
                    <th style="text-align: right;">{headings.column_10}</th>
                    <th style="text-align: right; width: 7.5%;">{headings.column_11}</th>
                    <th style="text-align: right;">{headings.column_12}</th>
                    <th style="text-align: right;">{headings.column_13}</th>
                    <th style="text-align: right;">{headings.column_14}</th>
                    <th style="text-align: right;">{headings.column_15}</tr>
            </thead>{/subloop:headings}{subloop-array:values:-1}
            <tbody class="row-hover">
                <tr style="border-bottom: 1px solid #ddd;">
                    <td style="text-align: left;">{values.column_1}</td>
                    <td style="text-align: right;">{values.column_2}</td>
                    <td style="text-align: right;">{values.column_3}</td>
                    <td style="text-align: right;">{values.column_4}</td>
                    <td style="text-align: right;">{values.column_5}</td>
                    <td style="text-align: right;">{values.column_6}</td>
                    <td style="text-align: right;">{values.column_7}</td>
                    <td style="text-align: right;">{values.column_8}</td>
                    <td style="text-align: right;">{values.column_9}</td>
                    <td style="text-align: right;">{values.column_10}</td>
                    <td style="text-align: right;">{values.column_11}</td>
                    <td style="text-align: right;">{values.column_12}</td>
                    <td style="text-align: right;">{values.column_13}</td>
                    <td style="text-align: right;">{values.column_14}</td>
                    <td style="text-align: right;">{values.column_15}</tr>
            </tbody>{/subloop-array:values}</table>
        <div style="text-align: justify;">{key}</div>[/jsoncontentimporter]</div>
    Thread Starter stuart0870

    (@stuart0870)

    Thanks again, I figured that might be the case, ah well.

    Thread Starter stuart0870

    (@stuart0870)

    Thank you, I’ll give that a try.

    Thread Starter stuart0870

    (@stuart0870)

    If it helps to see the code I’m currently butchering, it’s here.

    Thread Starter stuart0870

    (@stuart0870)

    Thanks for getting back to me Herr Kux, I have been messing around with it all day, and managed to kludge together a working version, once I got my head around the subloop and subloop-arrays.

    [jsoncontentimporter url=https://www.sspcc.co.uk/wp-content/uploads/json/2nd_xi_league.json basenode=league_table]
    {subloop:headings:-1}
    <table id="League_Table_Div5" class="tablepress">
    <thead>
    <tr class="row-1 odd">
    <th style="width: 25% !important;">{headings.column_1}</th>
    <th>{headings.column_2}</th><th>{headings.column_3}</th>
    <th>{headings.column_4}</th><th>{headings.column_5}</th>
    <th>{headings.column_6}</th><th>{headings.column_7}</th>
    <th>{headings.column_8}</th><th>{headings.column_9}</th>
    <th>{headings.column_10}</th>
    <th style="text-align: right; width: 7.5%;">{headings.column_11}</th>
    <th>{headings.column_12}</th>
    <th>{headings.column_13}</th>
    </tr>
    </thead>
    {/subloop:headings}
    {subloop-array:values:-1}
    <tbody class="row-hover"><tr style="border-bottom: 1px solid #ddd;">
    <td>{values.column_1}</td>
    <td>{values.column_2}</td>
    <td>{values.column_3}</td>
    <td>{values.column_4}</td>
    <td>{values.column_5}</td>
    <td>{values.column_6}</td>
    <td>{values.column_7}</td>
    <td>{values.column_8}</td>
    <td>{values.column_9}</td>
    <td>{values.column_10}</td>
    <td>{values.column_11}</td>
    <td>{values.column_12}</td>
    <td>{values.column_13}</tr>
    </tbody>
    {/subloop-array:values}
    </table>
    <div style="text-align: justify;">{key}</div>
    [/jsoncontentimporter]

    I had to strip all the linefeeds out of it though, as pasting it into a WordPress page insisted on leaving a big blank space above the table for every time I pressed return, but it now looks like this.

    Thank you again for making and supporting your plugin, it is much appreciated.
    -Stuart Elliott

    Ok, cheers, I’ll try and find a work around.

    I have a page at mysite.com/score-card/ with the [auto-iframe] code in, that I want to reference in links as mysite.com/score-care/506263 for example so that the page loads [auto-iframe link=iframe.com/plugins/base/matches/506263/ query=yes width=900 height=1350 autosize=yes] where the number at the end of the link changes depending on what I put in the calling URL (if that makes sense).

    Is this possible ?

    TL;DR want number added to page URL to be passed to auto-iframe url to load different pages

    • This reply was modified 7 years, 10 months ago by stuart0870.
    • This reply was modified 7 years, 10 months ago by stuart0870.
Viewing 7 replies - 1 through 7 (of 7 total)