Xanga Code, Private Blog |
Xanga Code, Private Blog |
Jun 21 2005, 01:17 AM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 289 Joined: Jun 2004 Member No: 24,564 |
QUOTE <!-- begin code provided by createblog.com --> <script> // Private Blogging // By Paul Chen // --- Coyote // Put your list of (exact) names here. // Make sure they are all lowercase. // "join" = unregistered viewers // Go to end of the script and change // the custom alert message. var allowed = new Array( "USERNAME HERE", "USERNAME HERE", "USERNAME HERE", "USERNAME HERE", "USERNAME HERE" ) var links = document.getElementsByTagName('a'); name=""; for(i=0;i<links.length;i++) { if(links[i].innerText.match(/xanga/i) && links[i+2].innerText.match(/sign out/i)){ i++; if(links[i].href.match('/private/home.aspx') || links[i].innerText.match('join')){ name = links[i].innerText.toLowerCase(); break; } } } enter=false; for(j=0;j<allowed.length;j++) { users = allowed[j]; if(users.indexOf(name)==0 && users.length==name.length){ enter=true; break; } } if(enter!=true){ alert('Sorry, this is a private blog!'); //change the message history.go(-1); } </script> <!-- end code provided by createblog.com --> How do i do this code? What do i put in the username? Im confused |
|
|
|
HIMsHeartagram Xanga Code Jun 21 2005, 01:17 AM
electric shock Can you give the link of what code you're usin... Jun 21 2005, 01:21 AM
HIMsHeartagram QUOTE(Spiritedfreak @ Jun 21 2005, 1:21 AM)Ca... Jun 21 2005, 02:11 AM
electric shock MMmmm..
This is an idea. It .. makes it.. o_O it ... Jun 21 2005, 02:57 AM
HIMsHeartagram Could there be any possiblity have more people on ... Jun 21 2005, 05:37 AM![]() ![]() |