• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Upload button stopped working after activating HTTPS

Status
Not open for further replies.

mbek

Chevereto Member
Website URL
<private>

Chevereto version
3.10.8

Description of the issue
Hi
I have an SMF forum which i just activated https on.
The button has worked just fine until this.
This is the script I use:
<script async src="https://bilder.mbentusiastklubb.no/sdk/pup.js" data-url="https://bilder.mbentusiastklubb.no/upload" data-auto-insert="bbcode-embed-full"></script>


I have also tried
<script async src="https://www.mbentusiastklubb.no/bilder/sdk/pup.js" data-url="https://www.mbentusiastklubb.no/bilder/upload" data-auto-insert="bbcode-embed-full"></script>
but the result is the same, no upload button
before the change both addresses in the script was with http but changing to https did not help.

Is there any limitations with https versus http?
the script is inserted in a Global Headers and Footers plugin in the SMF forum and placed in the footer.



full footer script:

<script language="JavaScript">
var posters = document.getElementsByClassName('poster');
for(x in posters){
if(posters[x].children){
var type = '';
for(y in posters[x].children[1].children){
if(posters[x].children[1].children[y].className == 'membergroup'){
type = posters[x].children[1].children[y].innerHTML;
}
}
if(type == 'Administrator'){
posters[x].children[0].children[1].style.color = '#CC0000';
}else if(type == 'Betalende medlem'){
posters[x].children[0].children[1].style.color = '#267F00';
}else if(type == 'Gjest' || type == 'Guest'){
posters[x].children[0].style.color = '#606060';
}else if(!type){
posters[x].children[0].children[1].style.color = '#69ABED';
}
}
}
</script>
<center>
<SCRIPT LANGUAGE="JavaScript">

var theImages = new Array();

theImages[0] = '<a href="http://bergsauto.no/" target="_blank"><img src="https://www.mbentusiastklubb.com/smf/images/reklamebanner01.jpg"></a>'
theImages[1] = '<a href="https://www.mbentusiastklubb.no/?page_id=2477" target="_blank"><img src="https://www.mbentusiastklubb.no/wp-content/uploads/2011/08/annonse02.jpg"></a>'
theImages[2] = '<a href="https://mbtreff.no" target="_blank"><img src="https://www.mbentusiastklubb.com/smf/images/mbtreff_banner.png"></a>'
theImages[3] = '<a href="https://diagnosebutikken.no/butikk/bildiagnose/mercedes-benz" target="_blank"><img src="https://www.mbentusiastklubb.no/wp-content/uploads/2016/08/Diagnosebutikken-Mercedes.png"></a>'
theImages[4] = '<a href="https://www.mbentusiastklubb.no/?page_id=2473" target="_blank"><img src="https://www.mbentusiastklubb.no/wp-content/uploads/2018/01/Grasrotandel.jpg"></a>'


var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer = new Image()
preBuffer.src = theImages
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write(''+theImages[whichImage]+'');
}
showImage();

</script>
<script async src="https://bilder.mbentusiastklubb.no/sdk/pup.js" data-url="https://bilder.mbentusiastklubb.no/upload" data-auto-insert="bbcode-embed-full"></script>
</center>
 
Have you tried opening the site in a private window with firefox or chrome? Sounds like a browser caching issue.
 
HTTPS is not even handled at the script layer so no, there's no special setting when using https. I tested PUP on a basic textarea and in SMF and it both cases it worked.

I won't be able to help you unless you show me where this thing is failing, which most likely isn't related to the script itself.
 

Attachments

Status
Not open for further replies.
Back
Top