[Elgg 1.8-1.12 & 2.X: Login required] v1.8.5

Release Notes

  • Change site's default access level to "logged-in" in case it's "public",
  • Remove "public" option from access level selection when creating / editing content,
  • Remove "public" option from visibility selection on group edit page.
  • I try to change the layout of the login page adding this in index-example

    body{
        font-family: "Tw Cen MT", Helvetica, Arial, sans-serif !important;
        background: red url(../images/myimage.jpg) repeat center;
        font-weight: 800;
        font-size: 15px;
        color: #ffffff;
        overflow-y: scroll;
    }

    I've moved the folder images everywhere but the background is only red and the image doesn't show, what I'm doing wrong? need help please

     

  • @marisa I suspect the problem is that you don't provide an absolute url to the image and/or that the image isn't saved within the document root directory (briefly speaking the Elgg install directory or any subdirectory within). The image must be saved within the document root directory or it's not viewable on the Internet because the webserver can't access it. You should also remove write access to the image file, i.e. permissions should be 644.

    Try it for example with

    background: red url(<?php echo elgg_get_site_url(); ?>images/myimage.jpg) repeat center;

    In this case you would have to place the images folder with the images in the Elgg install directory). This is maybe the best choice. Or

    background: red url(<?php echo elgg_get_site_url(); ?>mod/loginrequired/images/myimage.jpg) repeat center;

    In this case the images folder would have to be placed inside the loginrequired plugin's folder - not the best option though as you might delete the images folder by mistake if you ever remove the loginrequired plugin.

Stats

  • Category: Misc
  • License: GNU General Public License (GPL) version 2
  • Updated: 2016-12-11
  • Downloads: 7495
  • Recommendations: 27

Other Projects

View iionly's plugins