WordPress.org

Ready to get started?Download WordPress

Forums

Tabluar Data Plug-In? (11 posts)

  1. databell96
    Member
    Posted 7 years ago #

    I'm looking for a way to allow for an easy to use plugin to display tabular data similar to the kind you see on MySpace where artists can list their tour dates in a nice table format. In other words, I'd like for someone to come in, make a post with tour information and then it appears in the post properly formatted with the date in one column, venue in the next and time after that. I don't even know how they do that on MySpace so does anyone know of a plugin that can do this?

  2. vkaryl
    Member
    Posted 7 years ago #

    I don't think there is a plugin. I wrote an addition to the quicktags to display some pretty complex tables for a client who has a bridge blog and some investment blogs.

    Here's the "simplest" table one:

    edButtons[edButtons.length] =
    new edButton('ed_table'
    ,'Table'
    ,'<strong>*</strong>nn<table class="table" cellspacing="2" cellpadding="7">n<tr>n<td class="td1">*</td>n<td class="td2">*</td>n<td class="td3">*</td>n</tr>n<tr>n<td class="td1">*</td>n<td class="td2">*</td>n<td class="td3">*</td>n</tr>n<tr>n<td class="td1">*</td>n<td class="td2">*</td>n<td class="td3">*</td>n</tr>n<tr>n<td class="td1">*</td>n<td class="td2">*</td>n<td class="td3">*</td>n</tr>n</table>nn'
    ,''
    );

    This is a fairly simple table with areas for text entry noted by *. It should work if you simply plug it in just like that in quicktags.js. You can style it through the style.css of course. And you should be able to extrapolate from how that one's laid out, how to change to the sort of tabular display you need.

  3. databell96
    Member
    Posted 7 years ago #

    Anywhere specific in the quicktags.js file? Or does it matter?

  4. vkaryl
    Member
    Posted 7 years ago #

    I generally put my additions at the top, as they're the ones most likely to need editing/emending at some point. And that way the show up first in the row of buttons.

  5. databell96
    Member
    Posted 7 years ago #

    I'll try that and come back if I have any questions/problems. Thanks, vkaryl.

  6. vkaryl
    Member
    Posted 7 years ago #

    Please do! Happy to help....

  7. databell96
    Member
    Posted 7 years ago #

    OK, I've got the change to my .js but how do I use it in a post?

  8. vkaryl
    Member
    Posted 7 years ago #

    From the write post screen.... in the quicktags bar (um. this WON'T work if you're using the wysiwyg!), you should see a new button labeled "Table".

  9. databell96
    Member
    Posted 7 years ago #

    I'm using a Mac so I guess I'm not getting that quicktags bar at all.

  10. vkaryl
    Member
    Posted 7 years ago #

    Oy. Ouch. The things we forget to ask the poster. I'm sorry, yes, I guess unless you have one of the new mac/intel munges you don't get it. So all my posts in this topic were of no use whatsoever.

    My aplogies.... the only thing I can think of for you to do then would be set up the table the way you want it, save it to a text file, then copy and paste from the text file whenever you need the table.

  11. databell96
    Member
    Posted 7 years ago #

    Well, fortunately the clients are the ones doing the editing and they'll be on PCs for the most part. I do have Virtual PC so I could try that just for kicks.

    But thanks for everything. I'm no programmer so any advice is extremely beneficial to me.

Topic Closed

This topic has been closed to new replies.

About this Topic