Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • juhuhu Friend
    #1045912

    Hi,

    How can I remove login field on offline page and how to make inserted image full screen?


    1. Fullscreen-capture-04072017-090059
    Saguaros Moderator
    #1046214

    Hi,

    To customize the Offline page, you can edit this file: [root]/templates/ja_hotel/offline.php

    The image you’re mentioning is the offline image set in Global Configuration in admin panel of your site, if you want it displays in full screen, look for the body tag: and change it to:

    <body style="background-image: url(<?php echo $app->getCfg('offline_image'); ?>" alt="<?php echo htmlspecialchars($app->getCfg('sitename')); ?>);">

    The default image rendered by this snippet of code:

    <?php if ($app->getCfg('offline_image') && file_exists($app->getCfg('offline_image'))) : ?>
        <div id="offline-img"><img src="<?php echo $app->getCfg('offline_image'); ?>" alt="<?php echo htmlspecialchars($app->getCfg('sitename')); ?>" /></div>
    <?php endif; ?>

    You can remove it if you want.

    Regards

    juhuhu Friend
    #1046243

    And one more thing, I`d like to remove login field and login option as well.

    Thank you

    Saguaros Moderator
    #1046246

    In the same file, you can see snippet of code for form login, you can remove that code:

    <form action="<?php echo JRoute::_('index.php', true); ?>" method="post" id="form-login">
    <div class="input">
            <div class="form-offline">
                <div id="form-login-username" class="form-group" >
                    <label class="control-label" for="username"><?php echo JText::_('JGLOBAL_USERNAME') ?></label>
                    <input class="control-input" name="username" id="username" type="text" class="inputbox" alt="<?php echo JText::_('JGLOBAL_USERNAME') ?>" size="18" />
                </div>
                <div id="form-login-password" class="form-group" >
                    <label class="control-label" for="passwd"><?php echo JText::_('JGLOBAL_PASSWORD') ?></label>
                    <input class="control-input" type="password" name="password" class="inputbox" size="18" alt="<?php echo JText::_('JGLOBAL_PASSWORD') ?>" id="passwd"/>
                </div>
            </div>
        <?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>
        <div id="form-login-remember">
            <input type="checkbox" name="remember" class="inputbox" value="yes" alt="<?php echo JText::_('JGLOBAL_REMEMBER_ME') ?>" id="remember" />
            <label for="remember"><?php echo JText::_('JGLOBAL_REMEMBER_ME') ?></label>
        </div>
        <?php  endif; ?>
    
        <div id="submit-buton">
            <input type="submit" name="Submit" class="button login" value="<?php echo JText::_('JLOGIN') ?>" />
        </div>
    
        <input type="hidden" name="option" value="com_users" />
        <input type="hidden" name="task" value="user.login" />
        <input type="hidden" name="return" value="<?php echo base64_encode(JURI::base()) ?>" />
        <?php echo JHtml::_('form.token'); ?>
    </div>
    </form>
    juhuhu Friend
    #1046247

    Thank you :))))

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 4 replies, has 2 voices, and was last updated by  juhuhu 7 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum