[ABD] Camo SSL Image Proxy

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
kaspir
Registered User
Posts: 203
Joined: Sun Jul 27, 2008 5:05 am
Name: Greg
Contact:

Re: [BETA] Camo SSL Image Proxy

Post by kaspir » Sat Nov 26, 2016 1:11 pm

I successfully added one template, but it was a little bugging at first. Had to refresh and input a second time to get it to save it. Then I went to add another I need, no matter how many times I input the values and click save, it just refreshes, but doesn't save. I've tried several times.

Successfully worked (Avatars on Memberlist ext by Senky):
memberrow AVATAR_IMG Avatars on Memberlist Ext

Just not saving a second custom, not working when I do another here:
forumrow AVATAR_IMG Last Post Avatar ext by bb3mobi

It's just simple NOT saving another location for me. Without that, I'm clueless... help please.
World of Phaos RPG online is making it's come back! Play free now!
Check out phpBB contributions & extension downloads. :P

v12mike
Registered User
Posts: 341
Joined: Thu Jul 09, 2015 5:03 pm

Re: [BETA] Camo SSL Image Proxy

Post by v12mike » Sat Nov 26, 2016 4:14 pm

kaspir wrote:I successfully added one template, but it was a little bugging at first. Had to refresh and input a second time to get it to save it. Then I went to add another I need, no matter how many times I input the values and click save, it just refreshes, but doesn't save. I've tried several times.

Successfully worked (Avatars on Memberlist ext by Senky):
memberrow AVATAR_IMG Avatars on Memberlist Ext

Just not saving a second custom, not working when I do another here:
forumrow AVATAR_IMG Last Post Avatar ext by bb3mobi

It's just simple NOT saving another location for me. Without that, I'm clueless... help please.
I tried adding that "location" on my forum, and it goes into the database OK.
I think that you might be clicking the wrong button to add another template location. Don't click the 'Save proxy configuration' button near the top of the page, click the 'Add Location' button at the bottom right.

For published extensions, please post here all the added "locations" and I will put together a list to help others (and maybe add some as defaults for this extension).

v12mike
Registered User
Posts: 341
Joined: Thu Jul 09, 2015 5:03 pm

Re: [BETA] Camo SSL Image Proxy

Post by v12mike » Sat Nov 26, 2016 5:09 pm

HiFiKabin wrote:Is there any change of making http://images.weserv.nl/ work with this?
I have uploaded a new version 1.1.1 with a small change to 'simple mode' configuration and operation for compatibility with this.

I have amended the instructions in the posts above to reflect the change.

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 3986
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [BETA] Camo SSL Image Proxy

Post by HiFiKabin » Sat Nov 26, 2016 5:24 pm

v12mike wrote:
HiFiKabin wrote:Is there any change of making http://images.weserv.nl/ work with this?
I have uploaded a new version 1.1.1 with a small change to 'simple mode' configuration and operation for compatibility with this.

I have amended the instructions in the posts above to reflect the change.
Thanks Mike, off to download it now

EDIT:- Perfect. Many thanks Mike.

kaspir
Registered User
Posts: 203
Joined: Sun Jul 27, 2008 5:05 am
Name: Greg
Contact:

Re: [BETA] Camo SSL Image Proxy

Post by kaspir » Sun Nov 27, 2016 9:27 am

v12mike wrote:
kaspir wrote:I successfully added one template, but it was a little bugging at first. Had to refresh and input a second time to get it to save it. Then I went to add another I need, no matter how many times I input the values and click save, it just refreshes, but doesn't save. I've tried several times.

Successfully worked (Avatars on Memberlist ext by Senky):
memberrow AVATAR_IMG Avatars on Memberlist Ext

Just not saving a second custom, not working when I do another here:
forumrow AVATAR_IMG Last Post Avatar ext by bb3mobi

It's just simple NOT saving another location for me. Without that, I'm clueless... help please.
I tried adding that "location" on my forum, and it goes into the database OK.
I think that you might be clicking the wrong button to add another template location. Don't click the 'Save proxy configuration' button near the top of the page, click the 'Add Location' button at the bottom right.

For published extensions, please post here all the added "locations" and I will put together a list to help others (and maybe add some as defaults for this extension).
As I stated, I successfully added a template. I am not clicking on the wrong save. I am seriously reporting to you exactly what I am getting, unfortunately. HOWEVER, I am using HIFIKabin's proxy edit. NOT, cloudinary since none us wanted $50/mo fee down the road. PM me if you need anything at all for assist.

EDIT: Should I go for your patch download?

EDIT2: http://prntscr.com/dcb9ir This is what I got, I am clicking on "Add Location". The only one I added was memberrow, I did not add the others that allow deletion.
World of Phaos RPG online is making it's come back! Play free now!
Check out phpBB contributions & extension downloads. :P

v12mike
Registered User
Posts: 341
Joined: Thu Jul 09, 2015 5:03 pm

Re: [BETA] Camo SSL Image Proxy

Post by v12mike » Sun Nov 27, 2016 4:49 pm

kaspir wrote:
v12mike wrote:
kaspir wrote:I successfully added one template, but it was a little bugging at first. Had to refresh and input a second time to get it to save it. Then I went to add another I need, no matter how many times I input the values and click save, it just refreshes, but doesn't save. I've tried several times.
I tried adding that "location" on my forum, and it goes into the database OK.
As I stated, I successfully added a template. I am not clicking on the wrong save. I am seriously reporting to you exactly what I am getting, unfortunately. HOWEVER, I am using HIFIKabin's proxy edit. NOT, cloudinary since none us wanted $50/mo fee down the road. PM me if you need anything at all for assist.

EDIT: Should I go for your patch download?

EDIT2: http://prntscr.com/dcb9ir This is what I got, I am clicking on "Add Location". The only one I added was memberrow, I did not add the others that allow deletion.
I do not know what is happening on your board.
Can you try deleting all the deletable locations (including those that are there by default) and add yours again?

If that does not work, try disabling the extension and deleting the data (in the ACP/customise/extensions page), then enable and configure again.

Also, please check your phpBB error log for anything relevant, and your server httpd error logs.

v12mike
Registered User
Posts: 341
Joined: Thu Jul 09, 2015 5:03 pm

Re: [BETA] Camo SSL Image Proxy

Post by v12mike » Sun Nov 27, 2016 10:28 pm

I think that the problem is that the later entries are going into the database (and probably working) correctly, but they don't get displayed on the ACP page. I will try a quick patch to fix this.
[edit]
I have increaed the database query limits in the ACP, which I think should fix this issue.
Please download again from github and replace (at least) the file acp/camosslimageproxy_module.php

v12mike
Registered User
Posts: 341
Joined: Thu Jul 09, 2015 5:03 pm

Re: [alpha] Camo SSL Image Proxy

Post by v12mike » Sun Nov 27, 2016 11:06 pm

v12mike wrote:
Cin- wrote:Is this 3.2 compatible?
Not yet.
I have now installed this extension (v1.1.1) on phpBB 3.2.0-rc1, and it appears to be operating correctly.

kaspir
Registered User
Posts: 203
Joined: Sun Jul 27, 2008 5:05 am
Name: Greg
Contact:

Re: [BETA] Camo SSL Image Proxy

Post by kaspir » Mon Nov 28, 2016 7:04 am

v12mike wrote: I do not know what is happening on your board.
Can you try deleting all the deletable locations (including those that are there by default) and add yours again?

If that does not work, try disabling the extension and deleting the data (in the ACP/customise/extensions page), then enable and configure again.

Also, please check your phpBB error log for anything relevant, and your server httpd error logs.
Error logs completely empty.

You're right, they were saving in the DB and not ACP: http://prntscr.com/dcncnf (as I described).

I installed the new 1.1.1 now it's saving templates correctly. Thank you for w/e your edit.


EDIT:
######
@v12mike,
Sorry, I wasn't aware of all the locations for the donations ext. That seemed to be my confusion with that. :roll: Thanks all of your help, muchas gracias!
######

Okay, I'm going to try and help out future users of these extensions paired with Camo. I can update this as I get more, or v12mike can take over for his guides. Just trying to give back the help that was given to me. :)

FYI: You must purge cache after adding/removing template locations.

Dmzx's Donations 1.1.4, only found on http://www.dmzx-web.net as a VIP member (shout out to dmzx for awesome work time and time again). I haven't yet upgraded to 1.1.5, but it was a minor update and should work regardless. For this, the following template locations are required:
Image

Senky's Avatars on Memberlist 1.0.1, just one location.
Image

Avatar in Last Post 1.0.3
So far, this seems to work on index:
Image

Though, I can't get it working in viewforum.php where lists topics. Now, this may be due to that the ext has been last updated for 3.1.9 and I got 3.1.10. Anyone else is welcome to try.

Also, it seems that Camo is limiting me on how many custom template locations you can add after I add 7, the 8th is not recorded in DB.
World of Phaos RPG online is making it's come back! Play free now!
Check out phpBB contributions & extension downloads. :P

v12mike
Registered User
Posts: 341
Joined: Thu Jul 09, 2015 5:03 pm

Re: [BETA] Camo SSL Image Proxy

Post by v12mike » Mon Nov 28, 2016 6:58 pm

kaspir wrote:
You're right, they were saving in the DB and not ACP: http://prntscr.com/dcncnf (as I described).

I installed the new 1.1.1 now it's saving templates correctly. Thank you for w/e your edit.


EDIT:
######
@v12mike,
Sorry, I wasn't aware of all the locations for the donations ext. That seemed to be my confusion with that. :roll: Thanks all of your help, muchas gracias!
######

Okay, I'm going to try and help out future users of these extensions paired with Camo. I can update this as I get more, or v12mike can take over for his guides. Just trying to give back the help that was given to me. :)

FYI: You must purge cache after adding/removing template locations.

Dmzx's Donations 1.1.4, only found on http://www.dmzx-web.net as a VIP member (shout out to dmzx for awesome work time and time again). I haven't yet upgraded to 1.1.5, but it was a minor update and should work regardless. For this, the following template locations are required:
Image

Senky's Avatars on Memberlist 1.0.1, just one location.
Image

Avatar in Last Post 1.0.3
So far, this seems to work on index:
Image

Though, I can't get it working in viewforum.php where lists topics. Now, this may be due to that the ext has been last updated for 3.1.9 and I got 3.1.10. Anyone else is welcome to try.

Also, it seems that Camo is limiting me on how many custom template locations you can add after I add 7, the 8th is not recorded in DB.
Thank you for your feedback. I agree that it is painful to find all of the template variables for some extensions (even with the source code sometimes).

I am also having trouble with avatar in last post, but I will find the issue.

I will look at the database limitation, although I have previously tested here with more than 50 locations stored.

[edit]
Sorry about the cache purge, the extension should do this aitomatically, but a line of code seems to have been deleted somehow. I will fix this shortly.

v12mike
Registered User
Posts: 341
Joined: Thu Jul 09, 2015 5:03 pm

Re: [BETA] Camo SSL Image Proxy

Post by v12mike » Mon Nov 28, 2016 7:44 pm

kaspir wrote:
Though, I can't get it working in viewforum.php where lists topics. Now, this may be due to that the ext has been last updated for 3.1.9 and I got 3.1.10. Anyone else is welcome to try.
Please download again from github, and replace the file acp/camosslimageproxy_module.php. This will eliminate the need to manually clear the cache after adding of deleting domains or locations.

For the Avatar in Last Post, try adding 'topicrow' 'LAST_POST_AUTHOR_FULL'. It seems to work for me.

v12mike
Registered User
Posts: 341
Joined: Thu Jul 09, 2015 5:03 pm

Re: [BETA] Camo SSL Image Proxy

Post by v12mike » Wed Nov 30, 2016 7:11 am

I have just uploaded a new v1.1.2 of this extension, which has a few minor tweaks and one major new feature.

I have updated the instructions on the first page of this topic.

The new feature is a 'training mode'. This eliminates the (considerable) trouble of making this extension compatible with other extensions (which put insecure image links into all manner of unexpected templates).

In training mode, this extension rewrites all of the known insecure image urls that it finds from its configuration, then it rescans the entire set of template data looking for any remaining insecure image urls. If it finds any, it adds their location to the database! Training mode only operates when specifically configured and only for users with admin permissions.

So in practice, when you first open a page which has an insecure image url, your browser will show that it is insecure, but by the next visit to the page (e.g. by page refresh), the image links will all magically become secure. If you wan't to see training working, but don't have an extension that needs it, then try installing the Topic Preview or Last Post Avatar extensions,

For those who have been using V1.1.0 or v1.1.1, I strongly recommend disabling the extension and deleting the extension data from the database before installing v1.1.2 or later versions. The database schema has not changed, but there are semantic changes to some of the data, and some default values have changed.

kaspir
Registered User
Posts: 203
Joined: Sun Jul 27, 2008 5:05 am
Name: Greg
Contact:

Re: [BETA] Camo SSL Image Proxy

Post by kaspir » Wed Nov 30, 2016 1:49 pm

Nice work!
Auto clears cache now, love the new enable/disable template, and good deal on that Last Post Avatar ext!
:cheers: v12mike

forgot this, EDIT:
Just to be clear for the Last Post Avatar ext, you would need both:

'topicrow' 'LAST_POST_AUTHOR_FULL' (for topicview)
'forumrow' 'AVATAR_IMG' (for index)

... at least I do. 8-)
World of Phaos RPG online is making it's come back! Play free now!
Check out phpBB contributions & extension downloads. :P

Cin-
Registered User
Posts: 55
Joined: Fri Feb 06, 2015 2:06 pm

Re: [alpha] Camo SSL Image Proxy

Post by Cin- » Mon Dec 05, 2016 2:01 pm

v12mike wrote:
Cin- wrote:Is this 3.2 compatible?
Not yet.

[edit] It is now

I have labelled this version of the extension as being "alpha", but it has been in use on a couple of live forums for a while and appears to be quite stable.
Hi Mike,

I'm testing phpBB 3.2.0-RC2 (3.2.0 github build of today) but I can't seem to get it to work. Not with a camo proxy server installed, not with cloudinary.

I am however running my server in apache + Nginx (reverse proxy). Do you think this is the reason both modes don't work? I thought you maybe hard coded the ports in your extension but that's not the case.

I configured camo to run on port 3000, (it works, no firewall probs). but even if this was configured badly, it doesn't explain why cloudinary doesn't work.

v12mike
Registered User
Posts: 341
Joined: Thu Jul 09, 2015 5:03 pm

Re: [alpha] Camo SSL Image Proxy

Post by v12mike » Mon Dec 05, 2016 5:28 pm

Cin- wrote: I'm testing phpBB 3.2.0-RC2 (3.2.0 github build of today) but I can't seem to get it to work. Not with a camo proxy server installed, not with cloudinary.

I am however running my server in apache + Nginx (reverse proxy). Do you think this is the reason both modes don't work? I thought you maybe hard coded the ports in your extension but that's not the case.

I configured camo to run on port 3000, (it works, no firewall probs). but even if this was configured badly, it doesn't explain why cloudinary doesn't work.
I am not sure whether you are saying that the extension breaks all your remotely hosted images, or that it just does nothing.

For the cloudinary configuration, there is no need for any server configuration changes.

If you inspect the html link of an image that appears to be broken by the extension, (in most browsers, right click the image ink and "inspect element"), you should see the rewritten link, which should (for cloudinary) be like
<img src="https://res.cloudinary.com/abcdefg/imag ... 1d7160.jpg" class="postimage" alt="Image">

Check that the correct number of slashes are present and that your cloudinary code is OK.

Locked

Return to “Abandoned Extensions”