Stop viewing my xanga?, Can I stop people from viewing |
Stop viewing my xanga?, Can I stop people from viewing |
Aug 21 2004, 10:55 AM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 53 Joined: Aug 2004 Member No: 38,459 |
I was just wondering...I dont want certain people viewing my xanga. Is there way???
|
|
|
|
![]() |
Aug 22 2004, 12:51 AM
Post
#2
|
|
|
Stalking Createblog... ![]() ![]() ![]() ![]() Group: Member Posts: 155 Joined: Jan 2004 Member No: 1,300 |
(This script is taken from Createblog.com Scripts, but I can't really lecture you about going there first cuz the name is so weird... "private blogging script".)
Here's the code that allows you to do the opposite of what you wanted, but still... same results... insert usernames of people you want to have access to your xanga - the rest cannot see it; Instead, they get the notification (Message is editted near bottom in place of "Sorry this is a private blog!") and below that is the command to go back to the site they were before. You can also redirect them to another page and whatever with those types of commands. There is a flaw to that script... you can't stop them from subscribing (unless you block them) and if they link to your xanga with no history in their browser, the command of "go back" is void and they stay there (which is why I recommend using the redirect command). It's late CODE <!-- 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 --> |
|
|
|
oomamasitaxx Stop viewing my xanga? Aug 21 2004, 10:55 AM
Beyond Elite You can always make your posts private. Aug 21 2004, 10:58 AM
oomamasitaxx yeah thats true...but i want other people to view ... Aug 21 2004, 11:03 AM
Beyond Elite QUOTE(oomamasitaxx @ Aug 21 2004, 12:03 PM)ye... Aug 21 2004, 11:05 AM
oomamasitaxx Oooh alright. Well if anyone else knows how to sto... Aug 21 2004, 11:14 AM
shortvi3tlaydee u can do the password protection and only tell you... Aug 21 2004, 09:32 PM
sweetxsimplicity Umm..I think you can check Protected Post and only... Aug 21 2004, 09:36 PM
xoxo CODE<!-- begin code provided by createblog... Aug 21 2004, 10:12 PM
jz1134 i dont think theres a way to stop somebody from ve... Aug 21 2004, 10:51 PM
sewerz1000 yea, but u have to give all your friends the passw... Aug 22 2004, 12:07 PM
sweetdreamsx3 Well, there used to be this code ( I can't fin... Aug 22 2004, 01:12 PM![]() ![]() |