Import Plugin Bootstrap - (3.65 install)

8 posts by 3 authors in: Forums > CMS Builder
Last Post: March 13, 2024   (RSS)

By KennyH - February 21, 2024 - edited: February 21, 2024

For the importCSV 1.14 plugin, the upload File button is not showing up since /3rdParty/clipone/plugins/bootstrap/css/bootstrap.min.css no longer exists. 

<link rel="stylesheet" href="<?php echo CMS_ASSETS_URL ?>/3rdParty/clipone/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="<?php echo noCacheUrlForCmsFile("3rdParty/clipone/css/".$GLOBALS['SETTINGS']['cssTheme']); ?>" type="text/css" id="skin_color">

I replaced this line 74 in csvImport_uploadIframe.php with the bootstrap CDN and it now shows up. 

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="<?php echo noCacheUrlForCmsFile("3rdParty/clipone/css/".$GLOBALS['SETTINGS']['cssTheme']); ?>" type="text/css" id="skin_color">

By Dave - February 21, 2024

Hi Kenny, 

Great catch, thanks.  I've attached an updated csvImport_uploadIframe.php with the following updates: 

  • Updated your fix to use CDN URL for Boostrap
  • Uses the new includeCDN() function to allow for caching and offline access when needed
  • Replaces jQuery 1.4.2 with v3.6.0 and loads from cdnjs with includeCDN function.

Can you let me know if this one works for you?  If so I'll release that as an update.

Thanks!

Dave Edis - Senior Developer
interactivetools.com

By KennyH - February 22, 2024

Hi Dave -

The attached file you provided works great and resolves this problem without any issues.

Thanks,

Kenny

By Dave - February 22, 2024

Hi Kenny, 

Okay, perfect, thanks.  For anyone who needs it, the updated version is now available here: 

https://www.interactivetools.com/plugins/csv-import/

Dave Edis - Senior Developer
interactivetools.com

Shouldn't the default encoding now be UTF-8, which is pretty much the default for everything nowadays? CP1252 is obsolete.

Jeff Shields

By KennyH - February 23, 2024

This is true. With CP1252 it changes some special characters like:

  • Apostrophes are displayed as don’t  (don't)
  • Double spaces are displayed as Â

I have to change it to UTF-8 for it to work properly

Kenny

The same holds true for the cvsexport plugin

Jeff Shields