Jump to content
TNG Community
RickGleason

Invisible Text That Can Only Be Seen By Admins

Recommended Posts

RickGleason

Is there a code, or a symbol, an admin can use, among text that CAN be seen by guests of the website, that would make invisible the text within the code or symbols?

i.e. If I have the text of a source that says in its entirety the following:

"Jones Gedcom file adding 953 unique names, submitted by Joe Jones (1911-1999). NOTE: RLG has found numerous mistakes and duplicates among the data provided by this source which have been eliminated as they are discovered."

Is there a way I can keep the last line (the note) invisible to all except for admins?

 

Thank you for your time and consideration

 

Rick

https://clearfielddescendants.com/

Share this post


Link to post
Share on other sites
Brett

Rick

You can add a separate note in Sources and mark it as Private.

Share this post


Link to post
Share on other sites
Newfloridian

Hi Rick

You could use the same device that TNG uses to determine who is looking at your page. Try encircling the text you want to hide with:

(before)

<?php
    if( $currentuser ) {
?>

(after)

<?php        
    }
?>    

like this:

Jones Gedcom file adding 953 unique names, submitted by Joe Jones (1911-1999).

<?php
    if( $currentuser ) {
?>

NOTE: RLG has found numerous mistakes and duplicates among the data provided by this source which have been eliminated as they are discovered.

<?php        
    }
?>    

Will send you a PM with an example

Alan

Share this post


Link to post
Share on other sites
RickGleason
15 hours ago, Brett said:

Rick

You can add a separate note in Sources and mark it as Private.

Yes, I'm aware of that. What I want is a public Note OR a Source with hidden text within them, only visible to the admins. As my example indicated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×