Welcome to the Koken CMS community!

Here at KCS, you will find a friendly bunch of photographers who like to share their love for the Koken CMS. We hope that you will enjoy your time here and thrive in our community!

You asked for it: Donations!
You asked for it, and it's here: The possibility to "buy me a beer (or more)"!

Seriously: By giving a small paypal donation you will help with keeping this site afloat and also give me more incentive to develop OxyGen further... ;)

// Bjarne Varöystrand and the KCS Team
Koken Development

CDN plugin for Koken

Release and discuss your custom plugins here
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

CDN plugin for Koken

Postby Bjarne Varöystrand » Tue 23 Jun 2015, 19:04

Name: CDN plugin for Koken
Description: This Koken plugin allows to use an alternate domain name for different asset types (images, scripts, stylesheets) and thereofre route them through a CDN instead of serving them directly.
Creator: Daniel Muller
Source code: https://github.com/DanielMuller/koken-plugin-cdn
Downloads: https://github.com/DanielMuller/koken-p ... master.zip

Note:
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
Carmen33
Newbie
Newbie
Posts: 1
Joined: Tue 17 May 2016, 10:59
Your name: Carmen jones

Re: CDN plugin for Koken

Postby Carmen33 » Tue 17 May 2016, 11:06

Bjarne Varöystrand wrote:Name: CDN plugin for Koken (Digital ocean review)
Description: This Koken plugin allows to use an alternate domain name for different asset types (images, scripts, stylesheets) and thereofre route them through a CDN instead of serving them directly.
Creator: Daniel Muller
Source code: https://github.com/DanielMuller/koken-plugin-cdn
Downloads: https://github.com/DanielMuller/koken-p ... master.zip

Note:


Sounds Interesting to me,
If I want to uses this plugin with my CDN, then do I have to pay any fees for using it?
please let me know if there is any charges. Thanks
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: CDN plugin for Koken

Postby Bjarne Varöystrand » Tue 17 May 2016, 12:08

Hi Carmen.
The plugin is completely free to download/use, same goes for all the other plugins listed here.
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
User avatar
cielitolindo
Developer
Developer
Posts: 11
Joined: Sat 21 May 2016, 00:15
Your name: JM

Re: CDN plugin for Koken

Postby cielitolindo » Sat 21 May 2016, 00:23

Hi,
I managed to include a CDN into my Koken-page and wrote a small tutorial about it.
Please checkhttp://cielitolindo.de/essays/2016/05/use-koken-with-a-content-delivery-network-cdn/
User avatar
Chris
Webbplatsadministratör
Webbplatsadministratör
Posts: 148
Joined: Fri 31 Jul 2015, 18:47
Your name: Christopher Bayer
Contact:

Re: CDN plugin for Koken

Postby Chris » Sat 23 Jul 2016, 13:11

Hi cielitolindo!
Thank you for your well written tutorial. This will be a great help for many people.
Christopher Bayer - Image || Reddit || Twitter|| Facebook

Image
User avatar
pahvi
Donator
Donator
Posts: 6
Joined: Tue 27 Sep 2016, 20:50
Your name: Patrick Hvid

Re: CDN plugin for Koken

Postby pahvi » Thu 29 Sep 2016, 11:12

Seems very interresting?
Does this plugin also "cdn" the image cache on the site or just static ones?

/p
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: CDN plugin for Koken

Postby Bjarne Varöystrand » Thu 29 Sep 2016, 11:44

Looking in the code, it looks as it handles the image cache to :ugeek:
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
User avatar
pahvi
Donator
Donator
Posts: 6
Joined: Tue 27 Sep 2016, 20:50
Your name: Patrick Hvid

Re: CDN plugin for Koken

Postby pahvi » Thu 29 Sep 2016, 11:50

Then it's a needtotest :)

Tack Bjarne
User avatar
pahvi
Donator
Donator
Posts: 6
Joined: Tue 27 Sep 2016, 20:50
Your name: Patrick Hvid

Re: CDN plugin for Koken

Postby pahvi » Thu 29 Sep 2016, 12:25

Hmmm

Seems like koken is serving the images with full urls, which shouldn't work with cdn if I remember correctly.
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: CDN plugin for Koken

Postby Bjarne Varöystrand » Thu 29 Sep 2016, 12:43

Daniel is rewriting the urls, to reflect your CD's URL

Code: Select all

if (trim($this->data->cdn_host)!="" && $this->data->cdn_image==1 && $live) {
      $url_parts = parse_url(base_url("/"));
      $data['cache_path']['prefix']=str_replace($url_parts['host'],trim($this->data->cdn_host),$data['cache_path']['prefix']);
            foreach ($data['presets'] as $quality => $details) {
                  $data['presets'][$quality]['url']=str_replace($url_parts['host'],trim($this->data->cdn_host),$details['url']);
                  $data['presets'][$quality]['hidpi_url']=str_replace($url_parts['host'],trim($this->data->cdn_host),$details['hidpi_url']);
                  $data['presets'][$quality]['cropped']['url']=str_replace($url_parts['host'],trim($this->data->cdn_host),$details['cropped']['url']);
                  $data['presets'][$quality]['cropped']['hidpi_url']=str_replace($url_parts['host'],trim($this->data->cdn_host),$details['cropped']['hidpi_url']);
}
So it "should work" :)
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
User avatar
Errrwin
User
User
Posts: 27
Joined: Sat 28 Nov 2015, 18:38
Your name: Erwin
Contact:

Re: CDN plugin for Koken

Postby Errrwin » Thu 06 Oct 2016, 10:50

Never mind. :)
Last edited by Errrwin on Thu 06 Oct 2016, 11:33, edited 1 time in total.
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: CDN plugin for Koken

Postby Bjarne Varöystrand » Thu 06 Oct 2016, 11:12

Errrwin wrote:Source of the post I was using this plugin and found out my pictures were being served from the ABUNDANCESHOPS.COM domain, which is NOT my domain. Furthermore, that domain has now my entire website on it. When turning off the plugin, all is back to normal. Apart from the content of my website still being on that domain.

I don't know what exactly happened, but this plugin is not on my website anymore and I do not recommend anybody from using it.
:shock: :shock: :shock: Erm, what CDN provider did you use when this happened?

I just looked over the plugin code, and it doesn't contain anything that could cause this! :?
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
User avatar
Errrwin
User
User
Posts: 27
Joined: Sat 28 Nov 2015, 18:38
Your name: Erwin
Contact:

Re: CDN plugin for Koken

Postby Errrwin » Thu 06 Oct 2016, 11:20

Bjarne Varöystrand wrote:Source of the post
Errrwin wrote:Source of the post I was using this plugin and found out my pictures were being served from the ABUNDANCESHOPS.COM domain, which is NOT my domain. Furthermore, that domain has now my entire website on it. When turning off the plugin, all is back to normal. Apart from the content of my website still being on that domain.

I don't know what exactly happened, but this plugin is not on my website anymore and I do not recommend anybody from using it.
:shock: :shock: :shock: Erm, what CDN provider did you use when this happened?

I just looked over the plugin code, and it doesn't contain anything that could cause this! :?


www.keycdn.com
User avatar
Errrwin
User
User
Posts: 27
Joined: Sat 28 Nov 2015, 18:38
Your name: Erwin
Contact:

Re: CDN plugin for Koken

Postby Errrwin » Thu 06 Oct 2016, 11:24

Hm. I re-activated it and now it's okay again. (but check abundanceshops.com, it has my website on it)
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: CDN plugin for Koken

Postby Bjarne Varöystrand » Thu 06 Oct 2016, 11:29

Errrwin wrote:Source of the post Hm. I re-activated it and now it's okay again. (but check abundanceshops.com, it has my website on it)

Yep, I can confirm this: but since the plugin onlu have one input field (CDN domain) and the code is only replacing your domain with the cdn domain.
I would point my finger towards the CDN provider, so I think you will need to get in touch with them and ask #¤%##¤ is going on here :evil:
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
User avatar
Errrwin
User
User
Posts: 27
Joined: Sat 28 Nov 2015, 18:38
Your name: Erwin
Contact:

Re: CDN plugin for Koken

Postby Errrwin » Thu 06 Oct 2016, 12:14

Bjarne Varöystrand wrote:Source of the post
Errrwin wrote:Source of the post Hm. I re-activated it and now it's okay again. (but check abundanceshops.com, it has my website on it)

Yep, I can confirm this: but since the plugin onlu have one input field (CDN domain) and the code is only replacing your domain with the cdn domain.
I would point my finger towards the CDN provider, so I think you will need to get in touch with them and ask #¤%##¤ is going on here :evil:


I agree. Gonna change my earlier post.

* update *

Live changes appear on the other domain and I've contacted Keycdn.
Ah, the wrong domain is in the source of my site again.

Reply Keycdn:

"Erwin,

I'm sorry but this problem is not related to us.

Thanks,
Roger"

They just lost a customer.
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: CDN plugin for Koken

Postby Bjarne Varöystrand » Sat 08 Oct 2016, 19:04

Errrwin wrote:Source of the post * update *

Live changes appear on the other domain and I've contacted Keycdn.
Ah, the wrong domain is in the source of my site again.

Reply Keycdn:

"Erwin,

I'm sorry but this problem is not related to us.

Thanks,
Roger"

They just lost a customer.

Very odd response to say atleast!

Have you been in contact with the owner of the other site?
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
User avatar
Errrwin
User
User
Posts: 27
Joined: Sat 28 Nov 2015, 18:38
Your name: Erwin
Contact:

Re: CDN plugin for Koken

Postby Errrwin » Mon 10 Oct 2016, 15:58

Bjarne Varöystrand wrote:Very odd response to say atleast!

Have you been in contact with the owner of the other site?


I sent an email, but there's (obviously) no response from Romania.. ;) Not using the CDN (or the plugin) anymore and since he's hotlinking my photo's, I turned on my hotlink protection and link the hotlink to an appropriate image. 8-)

Now trying to figure out how to stop stealing my stuff.
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: CDN plugin for Koken

Postby Bjarne Varöystrand » Mon 10 Oct 2016, 16:04

Errrwin wrote:Source of the post I sent an email, but there's (obviously) no response from Romania.. ;) Not using the CDN (or the plugin) anymore and since he's hotlinking my photo's, I turned on my hotlink protection and link the hotlink to an appropriate image. 8-)

Now trying to figure out how to stop stealing my stuff.

:lol: :lol: :lol: I love your very subtle approach to this "dilemma" :lol: :lol: :lol:

No one going in to that site will miss it, that is for sure 8-)
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
akirichev
Newbie
Newbie
Posts: 1
Joined: Wed 26 Oct 2016, 13:30
Your name: real world

Re: CDN plugin for Koken

Postby akirichev » Wed 26 Oct 2016, 13:32

Is it possible to use Flickr as a CDN?

P.S. Even with slight modifications

  • Similar Topics
    Replies
    Views
    Last post
  • Cart plugin
    by thp » Yesterday, 09:17 » in Plugins
    2
    50
    by thp View the latest post
    Today, 04:55
  • cart plugin
    by jphillips » Sun 16 Sep 2018, 16:02 » in Plugins
    2
    941
    by jphillips View the latest post
    Fri 21 Sep 2018, 19:58
  • Instagram plugin
    by faustvasea97 » Mon 01 Oct 2018, 22:11 » in General Errors and usage problems
    4
    650
    by Bjarne Varöystrand View the latest post
    Wed 16 Jan 2019, 00:58
  • Image protector plugin
    by faustvasea97 » Wed 06 Feb 2019, 22:15 » in Installation and Setup
    2
    316
    by faustvasea97 View the latest post
    Tue 12 Feb 2019, 14:52
  • Image tittle on password plugin.
    by faustvasea97 » Sat 06 Oct 2018, 13:05 » in Site Publishing
    2
    646
    by faustvasea97 View the latest post
    Fri 12 Oct 2018, 08:46

Return to “Plugins”



Who is online

Users browsing this forum: No registered users and 1 guest