• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

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 πŸ˜€
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:
Oh, I only use English on my account, changed that πŸ™‚ Appreciate it πŸ˜€

Cheers,
- the Vikingdude πŸ˜›
 
Back
Top