• Resolved MAHB

    (@mahb)


    Hi Tobias,

    My site uses your wonderful plugin extensively.

    https://www.madashellboycott.com

    I would like to call up a different plug ins shortcode [emailpetition id=”55″] by inserting it into a cell within my spreadsheet and then importing that code into the spreadsheet using your short code. [table-cell id=4 cell=D2 /] were D2 would contain the short code [emailpetition id=”xx”]

    When I do this, all I get is the text “[emailpetition id=”xx”]” where I would like to have the emailpetition page show up…

    Is this possible? Does my description of the problem make sense?

    The desired results are here: https://www.madashellboycott.com/petitions/the-dirty-dozen/1-dd/ But this page I manually updated the text and did not use your shortcode.

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I can see what you are trying to achieve, but to be honest, I don’t understand the purpose… Why do you need the table to insert the email petition Shortcode?

    Regardless, this should actually work fine. The Single Cell Shortcode Extension does evaluate other plugin’s Shortcodes…

    Regards,
    Tobias

    Thread Starter MAHB

    (@mahb)

    Hi Tobias,
    Thanks for your quick response. As you very well know there are many ways to solve a problem.

    This solution, I did not start, but have been tasked with maintaining.
    There is a huge spreadsheet that supports this site, with tens of thousands of entries and hundreds added every week. The website is updated every two weeks. We short through the last two weeks of data, and compile a list (table) of the top twelve advertisers. The table itself is a poor way of displaying the data, so there are twelve pages created that basically short out the data and present it in a more useful page. The petition is one of the tables cells, and it is placed on in its own window on a page. Other cells are extracted and placed in other windows.
    The bottom line these pages change every two weeks depending on the data in the spreadsheet.

    Currently, when I update the table, the shortcode text is displayed in the window, not the actual petition.
    The page I sent to you was done manually, and was NOT imported via tablepress

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the explanation. I’m not sure that this is the best solution for your task, but the process works, that’s the best way to go, I guess.

    Could you check if the [emailpetition id="xx"] Shortcode works if you place it a new test table and then show that (full) test table using [table id=123 /] on a page?

    Regards,
    Tobias

    Thread Starter MAHB

    (@mahb)

    Tobias,

    Sorry for the slow response. This issue has not been resolved. I had issue not associated with your plug in that needed immediate attention before I could generate the page you requested.

    This page shows the results when I nest the Petitions short code command into a table and use your [table-cell id=4 cell=E2 /] to bring it up on a page. Note that in the first box with the Title “Take The First Step” you see the text for the short code, not the short code actually being implemented.

    https://www.madashellboycott.com/test-boycott-lists-page/

    Here is what I would like the page to look like. I have manually entered the short code for the plug into the page. (I would like to pull it from a table.)

    https://www.madashellboycott.com/petitions/the-dirty-dozen/1-dd/

    I am currently using Elegant Themes Divi page builder to create these pages.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    that’s strange… If possible, I’d like to take a direct look at this on your site. Could you therefore please get in touch via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!

    Regards,
    Tobias

    Thread Starter MAHB

    (@mahb)

    Absolutely possible, I trust you implicitly. Give me a little while, I am not the best at this web guru stuff.

    I will be contacting you via the site. Please monitor your spam filters.

    Thread Starter MAHB

    (@mahb)

    I have sent you an email. Please respond with Hi Steve, if it is the correct one for me to open an account .

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the email! I was able to log in and could reproduce the problem.

    This is a really nasty cause, and it’s not in TablePress, the Extension, nor the Email Petition plugin. Instead, it’s in the data in your file that you imported:
    There, the Shortcode is
    [emailpetition?id="16"]
    but it should actually be
    [emailpetition id="16"].

    Yes, these look exactly the same, but they are not: In the first one, the space character between “emailpetition” and “id” is different. It’s a so-called “non-breaking” space, and WordPress does not allow these in Shortcodes. Due to that, WordPress simply did not recognize the Shortcode.
    In order to fix this, I simply deleted that space character and typed it again simply by hitting the space bar on the keyboard. After that, the Shortcode is not parsed correctly and the email petition is shown.

    So, if this happens again, please replace the non-breaking space with a regular one in the Shortcode.

    You will now see that the styling is not working. This is caused by the Email petition plugin, which only loads the CSS file when it sees an [emailpetition] Shortcode in the page. To work around that and always load the CSS file for the styling, you’ll have to edit the Email petition plugin or e.g. add this to your theme’s “functions.php” file:

    if ( ! is_admin() ) {
      wp_enqueue_style( 'dk_speakup_css', plugins_url( 'speakup-email-petitions/css/theme-basic.css' ) );
    }
    

    Regards,
    Tobias

    Thread Starter MAHB

    (@mahb)

    Tobias,

    Thank you so much for your help in locating this problem.

    The top shortcode (the bad one) was generated in an Excel spreadsheet using the space key. That must be why the code has the “non breaking” space between the emailpetition and id.

    I find it fascinating that a space key in Excel is different than the space key in WordPress. None the less, that seems to be what is happening, and may explain the inconsistent formatting that I am experiencing in the Contact section of the same page. (Right side, bottom) I gave up on this problem due to frustration.

    I did a little experiment, where I copied the good code that worked off the website and pasted it into my excel spreadsheet, stored it, imported it via tablepress, and as you predicted, it worked. And once again, you were correct, the styling is not working.

    Editing the plug in is way beyond my programming skills, I confess that adding the text you provided to the “functions.php” file is a little scary, but will attempt to do it.

    Thanks again,

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Yeah, Excel can be tricky there. I always recommend using the CSV format, as that’s more robust and usually doesn’t do such things.
    And don’t worry about the functions.php change, it’s not that difficult ??

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter MAHB

    (@mahb)

    There seems to be so many places in this Divi Theme to put custom CSS. Not sure which one to put the code in.

    Under the Divi Active Theme menu there is a tab labeled Additional CSS.

    Would that be the place to add the code?

    Again, thanks for all your help.. You have already earned way more than I can give at this time…

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    if this is about CSS code for TablePress, there’s only one recommended place: The “Custom CSS” text field on the “Plugin Options” screen directly in TablePress.

    Regards,
    Tobias

    Thread Starter MAHB

    (@mahb)

    Tobias,

    I am sorry, but I am unable to determine how to add this to my themes “function.php” file…

    if ( ! is_admin() ) {
    wp_enqueue_style( ‘dk_speakup_css’, plugins_url( ‘speakup-email-petitions/css/theme-basic.css’ ) );
    }

    I tried adding the code to the Custom CSS in tablePress but it did not work.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    As I still had the account that you created, I now made this change. The form on https://www.madashellboycott.com/test-boycott-lists-page/ should now have the correct styling ??

    However, instead of adding it to the theme, I added it to the Single Cell Shortcode TablePress Extension. That way, you won’t have to worry about theme updates.

    Regards,
    Tobias

    Thread Starter MAHB

    (@mahb)

    Tobias,

    Thank you. I am in debt to you beyond my abilities to pay you back.

    I shall be making a contribution to your coffee funds, and I pray for you and your families prosperity and health. And of course, you get 5 stars for support.

    There are so many things that are so far above my comprehension when it comes to being a webmaster. This was one of them.

    So as I understand it, the code has now been inserted into your TablePress code and this issue is basically solved.

    Again, Thanks, and God Bless

Viewing 15 replies - 1 through 15 (of 47 total)
  • The topic ‘Nesting: [emailpetition id=”55″] into [table-cell id=4 cell=D2 /],’ is closed to new replies.