Simple Machine Codes
March 18, 2010, 01:19:20 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Affiliates Code Index Staff List Calendar Members Login Register  

Hide Skins from Guests V1


Pages: [1]   Go Down
  Print  
Author Topic: Hide Skins from Guests V1  (Read 192 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,668



View Profile WWW
« on: July 19, 2007, 09:53:02 am »

Quote
<script>
function memonly(skin){
//Created by Agent Moose
$(function(){
$("strong").contains("Guest").append( $("option").contains(skin) ).hide();
});}
memonly("Members Only");
</script>

All you have to do is change the red text to the name of the skin that you don't want guests to see.

If you want to add more, just add more of these lines:
Quote
memonly("Members Only");

Problems:
It doesn't show the Guest part right after welcome before you log in.  That is the only one I have spotted so far.

EXPECT IT V2:
-Make it so that is shows Guest next Welcome up top.
-Beable to make it so that only certain members(or groups) can see certain skins.


Preview of this Code
EDIT:
When your a guest, you don't see the skin called Members Only.  But when you do log in, you do see it...
Share Report Spam   Logged



Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting