• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

User name -

Could anyone help me with this?
Only show for members: if(!get_logged_user() and CHV\Login::getUser('enable_signups')) {
I can''t find out the code for "members only..


This are for guests, and are not showed to logged in members:

PHP:
    <?php
        if(!get_logged_user() and CHV\getSetting('enable_signups')) {
    ?>
<div id="home-join" class="c20 fluid-column center-box text-align-center">
        <h1>Velkommen</h1>
        <p>Administrer ditt innhold, opprett private album, tilpass din profil og mer.</p>
        <div class="c20 center-box">
                <div class="home-buttons"><a href="https://norpx.no/explore" class="btn btn-big green">Se andre Opplastninger<span class="icon-uniE8A9 margin-left-10"></span></a></div><div class="home-buttons"><a href="<?php echo G\get_base_url('signup'); ?>" class="btn btn-big blue"><?php _se('Create account'); ?></a></div>
                </div>
    </div>
    <?php
        }
    ?>

This, i want this to show only for memeber and not for guests..
PHP:
    <?php
        if(!get_logged_user() and CHV\Login::getUser('enable_signups')) {
    ?>
<div id="home-join" class="c20 fluid-column center-box text-align-center">
        <h1>Hei på deg, /*brukernavn*/</h1>
       
        <p></p>
        <div class="c20 center-box">
                <div class="home-buttons"><a href="https://norpx.no/explore" class="btn btn-big green">Se andre Opplastninger<span class="icon-uniE8A9 margin-left-10"></span></a></div>
                </div>
    </div>
    <?php
        }
    ?>
 
Code:
        <h1><?php _se('Welcome '); echo CHV\Login::getUser()["name_short_html"]; ?></h1>

Give me a moment and I'll edit it for users and then guests.
 
This is so nice, Thanks so much and for your time to help :D
Code:
    <?php    if(!get_logged_user()) { ?>
    <h1><?php _se('NO USER WELCOME MESSAGE'); ?> </h1>
<? } else { ?>
        <h1><?php _se('Welcome '); echo CHV\Login::getUser()["name_short_html"]; ?></h1>
<? } ?>

Hopefully you can see the two areas to change.
 
Last edited:
Wow. It won't let me edit that.. But the second line is wrong. It should be </h1> not </h2>
Edit: Fixed.
 
Last edited:
Back
Top