FreiChat related discussions
file upload only work in firefox

Hello,

the file upload only works in firefox on my site. If i will do an file upload in chrome and internet explorer it is open a new window. But the window is blank.

Hello, the file upload only works in firefox on my site. If i will do an file upload in chrome and internet explorer it is open a new window. But the window is blank.

Can you provide us with two test accounts and your website address via the contact us form ?

Can you provide us with two test accounts and your website address via the contact us form ?

I bought Freichat 3 times for 3 websites and I cannot get file sharing to work at all for any SMF installation.

I bought Freichat 3 times for 3 websites and I cannot get file sharing to work at all for any SMF installation.

I have found it. If i come to my site with www. fileupload do not work in all browser. If i come to my site witout www. in the adress everything is fine in all browser.

What must i change, that freichat works with all?

I have found it. If i come to my site with www. fileupload do not work in all browser. If i come to my site witout www. in the adress everything is fine in all browser. What must i change, that freichat works with all?

Looks like a problem of CROSS origin .

If you have copy pasted the freichat code during the installation, you need to rewrite the path in that code depneding on your domain .

If you can post the freichat installation code here , we can help you in achieving the above .

Looks like a problem of CROSS origin . If you have copy pasted the freichat code during the installation, you need to rewrite the path in that code depneding on your domain . If you can post the freichat installation code here , we can help you in achieving the above .

Do you mean the code in my header.php? That is it:

if(!isset($userdata['user_id'])){
$ses=0;
}
else{
$ses=$userdata['user_id'];
}


if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

       if(is_file(THEMES."../freichat/hardcode.php")){

               require THEMES."../freichat/hardcode.php";

               $temp_id =  $ses . $uid;

               return md5($temp_id);

       }
       else
       {
               echo '<script>alert("module freichatx says: hardcode.php file not found!");</script>';
       }

       return 0;
}
}

echo '<script type="text/javascript" language="javascipt"
src="http://harlekin-power.harlekin304.de/freichat/client/main.php?id='.$ses.'&xhash='.freichatx_get_hash($ses).'">
</script>';echo '<link rel="stylesheet" href="http://harlekin-power.harlekin304.de/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">';
Do you mean the code in my header.php? That is it: ```` if(!isset($userdata[&#039;user_id&#039;])){ $ses=0; } else{ $ses=$userdata[&#039;user_id&#039;]; } if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash($ses){ if(is_file(THEMES.&quot;../freichat/hardcode.php&quot;)){ require THEMES.&quot;../freichat/hardcode.php&quot;; $temp_id = $ses . $uid; return md5($temp_id); } else { echo &#039;&amp;lt;script&amp;gt;alert(&quot;module freichatx says: hardcode.php file not found!&quot;);&amp;lt;/script&amp;gt;&#039;; } return 0; } } echo &#039;&amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;http://harlekin-power.harlekin304.de/freichat/client/main.php?id=&#039;.$ses.&#039;&amp;xhash=&#039;.freichatx_get_hash($ses).&#039;&quot;&amp;gt; &amp;lt;/script&amp;gt;&#039;;echo &#039;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;http://harlekin-power.harlekin304.de/freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&amp;gt;&#039;; ````

Yes,

You can do something like this:

if((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
    || $_SERVER['SERVER_PORT'] == 443) {  

   $protocol = "https://"; 
} else {  

   $protocol = "http://"; 
} 

echo '<script type="text/javascript" language="javascipt"
src="'.$protocol.'harlekin-power.harlekin304.de/freichat/client/main.php?id='.$ses.'&xhash='.freichatx_get_hash($ses).'">
</script>';echo '<link rel="stylesheet" href="'.$protocol.'harlekin-power.harlekin304.de/freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">';
Yes, You can do something like this: ``` if((!empty($_SERVER[&#039;HTTPS&#039;]) &amp;&amp; $_SERVER[&#039;HTTPS&#039;] !== &#039;off&#039;) || $_SERVER[&#039;SERVER_PORT&#039;] == 443) { $protocol = &quot;https://&quot;; } else { $protocol = &quot;http://&quot;; } echo &#039;&amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;&#039;.$protocol.&#039;harlekin-power.harlekin304.de/freichat/client/main.php?id=&#039;.$ses.&#039;&amp;xhash=&#039;.freichatx_get_hash($ses).&#039;&quot;&amp;gt; &amp;lt;/script&amp;gt;&#039;;echo &#039;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&#039;.$protocol.&#039;harlekin-power.harlekin304.de/freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&amp;gt;&#039;; ```
209
6
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft