Skip to content

help me to get rid of my old CDN

Moved Customisation
13 2 3.7k 1
  • wrote on last edited by
    #1

    i have decided to stop using stackpathCDN and removed it from my CW subscription. i have checked all the WordPress settings but for some reason, i could not able to get rid of stackpathCDN

    pages are trying for old stack path JS but failing to load, any suggestions?

  • wrote on last edited by
    #2

    searched MySQL DB now replacing stack path URLs with my domain name

  • searched MySQL DB now replacing stack path URLs with my domain name

    wrote on last edited by
    #3

    @Hari you should also check and temporarily disable any caching - particularly cloudflare.

  • @Hari you should also check and temporarily disable any caching - particularly cloudflare.

    wrote on last edited by Hari
    #4

    @phenomlab i have cleared it and for now it is in dev mode
    now manually editing few PHP files

  • @phenomlab i have cleared it and for now it is in dev mode
    now manually editing few PHP files

    wrote on last edited by phenomlab
    #5

    @Hari I don’t see any need to manually edit PHP files. Are to sure there is no plugin making changes ?

  • @Hari I don’t see any need to manually edit PHP files. Are to sure there is no plugin making changes ?

    wrote on last edited by
    #6

    @phenomlab we have built a few custom PHP files and embedded iframes … so we need to update them manually 🙂

    happiness is fixing things 🙂

  • @phenomlab we have built a few custom PHP files and embedded iframes … so we need to update them manually 🙂

    happiness is fixing things 🙂

    wrote on last edited by
    #7

    @Hari that makes sense. Not something I’d generally recommend, but ok.

  • @Hari that makes sense. Not something I’d generally recommend, but ok.

    wrote on last edited by
    #8

    @phenomlab CW support agent is helping, he is running some commands to replace 00252.stackpateh.com domain with mine.

    enjoying CW support

  • @phenomlab CW support agent is helping, he is running some commands to replace 00252.stackpateh.com domain with mine.

    enjoying CW support

    wrote on last edited by
    #9

    @Hari if this in WordPress, or other custom PHP files ?

  • @Hari if this in WordPress, or other custom PHP files ?

    wrote on last edited by
    #10

    @phenomlab few pages are PHP.

    what is the command line to find and replace a text from all files?

    i want to find 00-00-raikfcquaxqncofqfm.stackpathdns.com and replace with www.mydomain.com

    he has done the major part and said it is taking time since the directory has many files, then he opened a ticket and said he will esclate it soon.

  • @phenomlab few pages are PHP.

    what is the command line to find and replace a text from all files?

    i want to find 00-00-raikfcquaxqncofqfm.stackpathdns.com and replace with www.mydomain.com

    he has done the major part and said it is taking time since the directory has many files, then he opened a ticket and said he will esclate it soon.

    wrote on last edited by
    #11

    @Hari what you need here is awk, sed, and probably grep but the two former listed are extremely powerful and can be very dangerous if used incorrectly. Not sure I understand why it’s taking so long for the support technician to complete as these commands - gratuitous in nature - are usually very quick - even when traversing a large directory tree.

  • @Hari what you need here is awk, sed, and probably grep but the two former listed are extremely powerful and can be very dangerous if used incorrectly. Not sure I understand why it’s taking so long for the support technician to complete as these commands - gratuitous in nature - are usually very quick - even when traversing a large directory tree.

    wrote on last edited by
    #12

    @phenomlab they have done the necessary changes. now everything is working fine. 👍

  • @phenomlab they have done the necessary changes. now everything is working fine. 👍

    wrote on last edited by
    #13

    @Hari Ok. Good. Thanks

  • phenomlab phenomlab moved this topic from Guides on

Related Topics
  • 2 Votes
    1 Posts
    640 Views
    No one has replied
  • navbar

    Solved Customisation navbar harmony
    2
    2 Votes
    2 Posts
    1k Views
    phenomlab
    Marking as resolved, based on https://community.nodebb.org/topic/18625/navbar/2
  • Forum customisation

    Customisation nodebb forum customised
    11
    2
    6 Votes
    11 Posts
    3k Views
    JAC
    Thank you Mark, the changes look fantastic!!
  • Fancybox zoom

    Unsolved Customisation fancybox zoom image
    2
    1
    0 Votes
    2 Posts
    944 Views
    phenomlab
    @DownPW Technically, it should be possible with the addition of the below Toolbar: { display: { left: ["infobar"], middle: [ "zoomIn", "zoomOut", "toggle1to1", "rotateCCW", "rotateCW", "flipX", "flipY", ], right: ["slideshow", "thumbs", "close"], }, }, Meaning your code block becomes function fancybox() { if (top.location.pathname !== '/login') { $(document).ready(function() { $('a').not('.forum-logo').not(".avatar").not(".emoji").not(".bmac-noanimate").each(function() { $('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"], a[href*=".webp"], a[href*=".svg"]').addClass("noanimate"); }); }); Fancybox.bind( 'a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"], a[href*=".webp"], a[href*=".svg"]', { Toolbar: { display: { left: ["infobar"], middle: [ "zoomIn", "zoomOut", "toggle1to1", "rotateCCW", "rotateCW", "flipX", "flipY", ], right: ["slideshow", "thumbs", "close"], }, }, } ); } } Note, that you just need to add/remove the elements in the toolbar you do not need. Obviously, zoomIn and zoomOut are the ones you are specifically interested in. However, if Fancybox detects that the image has already been zoomed as far as possible, then this will not work. You’d need an external library such as zoom.js to add this functionality, or perhaps simpler https://www.jacklmoore.com/zoom/ A good example of how you’d make these two independent libraries work together is below https://codepen.io/ezra_siton/pen/VgrjKw It’s worth nothing that this specific code is based on Fancybox 3, so may need to be refactored to work with the latest version 5.
  • CSS code customization for the link preview plugin

    Solved Customisation css nodebb
    6
    2
    3 Votes
    6 Posts
    3k Views
    phenomlab
    @kadir-ay-0 marking as resolved based on https://community.nodebb.org/topic/17109/manual-build-a-night-mode-for-harmony/5 Please do not raise requests in two places - here and the NodeBB forums. All this does is create unnecessary load for both parties.
  • navigation bar is misplaced when the window gets smaller

    Solved Customisation bugs
    23
    1
    10 Votes
    23 Posts
    8k Views
    phenomlab
    @DownPW sounds good.
  • [NODEBB] Help for my custom CSS

    Solved Customisation nodebb css bugfix
    258
    49 Votes
    258 Posts
    168k Views
    cagatay
    mark hi, Refused to apply style from ‘https://efelsefe.com/assets/customfonts/FontAwesome-6-Pro/pro/css/v4-font-face.css’ because its MIME type (‘text/plain’) is not a supported stylesheet MIME type, and strict MIME checking is enabled. I keep getting this error.
  • CSS Help on my Flarum

    Solved Customisation
    5
    2
    2 Votes
    5 Posts
    3k Views
    phenomlab
    @mike-jones Yes, you’ll typically see this type of behaviour if there is another style that has higher priority in the sense that yours will be overridden. Using !important will override the higher preference, but should be used sparingly rather than everywhere.