Members Only Homepage

User avatar
by DataMine · 4 posts
9 years ago
Posted 9 years ago · Author
This code will make your homepage only visible to people who are logged in:

<script type="text/javascript">
if(document.getElementById("mininav-userarea-line2") && document.getElementById("mininav-userarea-line2").getElementsByTagName("a")[0]) {
if (document.getElementById("mininav-userarea-line2").getElementsByTagName('a')[0].innerHTML == "Member Login") {
alert('Please log in and come back.');
document.location.href = "";

You can place it inside any of your panels.
Posted 9 years ago
Thanks DM
Posted 9 years ago · Author
You're welcome. I haven't used it or ran it through thorough tests to see if you can bypass it though. A simple script blocker might work.
Posted 9 years ago
I suppose if someone is being sneaky and trying to see your page without being logged in, they'd have that, so let me check..

Create an account or sign in to comment

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

Sign in

Already have an account? Sign in here


Create an account

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

Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts