• Resolved swollenfox

    (@swollenfox)


    http://theswollenfox.com/?page_id=2760&preview=true

    I’m having a couple of problems. I set the column width using percentages (it wasn’t responding to pixels… any ideas there?), but if you sort an album, it messes with the column width, always making the 4th column the widest.

    Another is I tried to make the first column unsortable, using Tobias’ suggestion here, but everytime I try it it just makes all of the columns unsortable and messes with the column width again.

    I figure I must have messed something up that’s throwing everything off, but can’t figure it out.

    Any help would be hugely appreciated. Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    there likely is a problem in the JavaScript code.
    Unfortunately I could not check or verify that, as the link you posted is not accessible. (The post is not published and anonymous users can not view drafts.) Can you maybe publish the page with the table?

    Regards,
    Tobias

    Tobias, I work for a non-profit and maintain our website, which is WP. http://www.wku.edu/gifted. I am not a web developer, but I do have some limited skills and understanding. I am wanting to develop the Alum section of our website.

    I would like our Alum section to look like this http://www.baylorschool.org/alumni/notablealums.aspx. In the old days (haha) I would have created a table for this in Dreamweaver but I don’t know enough about WP and short codes and the type of coding to know how to do this successfully. Do you have any tips for me?

    Thanks for any advice you might have
    Cara

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Cara,

    I would actually not recommend a table for this. Tables should only be used for showing data, but not for doing the layout of a site, as that is not their semantic meaning.
    Instead, I suggest contacting a theme developer who might be able to help you in a better way.

    Best wishes,
    Tobias

    Thread Starter swollenfox

    (@swollenfox)

    Sorry about that Tobias,

    Here’s the published page: http://theswollenfox.com/philadelphia-concert-calendar-draft/

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the new link.
    I had a look at the site and the source code.

    As you have set the column widths by yourself, you will need to add a special command to the JavaScript Custom Commands, which you can find in the answer to the question “How can I set column widths?” in the FAQ on my website (http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/faq/).

    Additionally, can you please provide the code with which you tried to make that first column unsortable?

    Best wishes,
    Tobias

    Thread Starter swollenfox

    (@swollenfox)

    I tried this — “bAutoWidth”: false — but it didn’t seem to do anything, the 4th column still gets wider when you sort

    for the unsortable column i tried this:

    “aoColumns”: [ {“bSortbale”: false}, null, null, null ]

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    there is a typo in the bSortbale. Is it just here or in your code as well?

    And additionally to the "bAutoWidth": false, it might be needed to add the following CSS to the “Custom CSS”. Can you try that?

    .wp-table-reloaded {
      width: auto!important;
    }

    Best wishes,
    Tobias

    Thread Starter swollenfox

    (@swollenfox)

    the typo was in then code as well, good catch! can’t believe i didn’t notice that.

    unfortunately adding that code to the custom css didn’t seem to fix it, the column is still getting wider when things are sorted. still can’t figure out what’s making it do that.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem 🙂

    One problem in column 4: There’s an entry for 01/14 which has invalid HTML for a link. Due to that, the HTML is displayed as text, but there is no chance for the browser to add a line break in that text, because there are no spaces in it. If you fix that, that might really help.

    Best wishes,
    Tobias

    Thread Starter swollenfox

    (@swollenfox)

    YES. that’s it! thank you so much tobias! i really appreciate you helping me out, you do amazing work in supporting this plugin and i know i’m not the only one who couldn’t have fixed things without your help. thanks so much!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great to hear that this fixed it 🙂

    Best wishes,
    Tobias

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: WP-Table Reloaded] – custom commands and css won't work’ is closed to new replies.