jpg background

102 views
Skip to first unread message

francesco francavilla

unread,
Apr 9, 2018, 2:09:26 PM4/9/18
to AJAX-chat
hello I do not know how to insert a background jpg I ask for help thanks
image-sfondo.png

Miles

unread,
Apr 9, 2018, 7:46:30 PM4/9/18
to AJAX-chat
For a background image in your very chat (being logged in!) just use your theme css like /css/prosilver.css
and put some lines into the content:section

#content {


 background
-image: url('img/your_image.jpg');
 background-repeat: no-repeat;
 background-position: bottom right;


}


Your screenshot suggests though that you want to put a background image on the Login page.
This can be done in /lib/template/loggedOut.html:at the beginning of the body tag and should look more or less like:

<body class="ajax-chat" onload="initializeLoginPage();">
<div id="loginContent" style="background-position: center center; background-repeat: no-repeat; background-image: url(img/your_image.jpg);">


Hope that helps.

francesco francavilla

unread,
Apr 10, 2018, 5:52:38 AM4/10/18
to ajax...@googlegroups.com
thanks  I have error upload avatar the charge but from error
----------------------------------------------
                      $current = "./img/avatars/avatar_'.$id.'.png";
unlink($current); <------------------------------- error

$allowedExts = array("gif", "jpeg", "jpg", "png");
$extension = end(explode(".", $_FILES["file"]["name"]));  <----------------------------------- error
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/jpg")
|| ($_FILES["file"]["type"] == "image/png"))
&& ($_FILES["file"]["size"] < 200000)
&& in_array($extension, $allowedExts)){
  if ($_FILES["file"]["error"] > 0){
    echo "Return Code: " . $_FILES["file"]["error"] . "<br>";
    }else{
      move_uploaded_file($_FILES["file"]["tmp_name"],
      "img/avatars/" . $_FILES["file"]["name"]);

francesco francavilla

unread,
Apr 23, 2018, 12:38:06 AM4/23/18
to AJAX-chat
Hello! what line should be changed?


Il giorno martedì 10 aprile 2018 01:46:30 UTC+2, Miles ha scritto:
Reply all
Reply to author
Forward
0 new messages