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 |
|
|
|
![]() |
Jun 21 2005, 01:21 AM
Post
#2
|
|
![]() define our lives for us. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
Can you give the link of what code you're using from createblog?
|
|
|
|
Jun 21 2005, 02:11 AM
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 289 Joined: Jun 2004 Member No: 24,564 |
QUOTE(Spiritedfreak @ Jun 21 2005, 1:21 AM) Alright this is a tough question so bare with me. Alright. You guys have the code for removing certain parts of the Modules {http://www.createblog.com/forums/index.php?showtopic=45} so i was just wondering if you can remove the subscription too. Why you might ask? Because the people that i currently live around they only subscribe to me because they either want comments or just blah nosey. Yes i know i can put my enteries in private, for right now i am putting it in Protected mode, and i know i cant fit all the screen names that i want. Also remove the subscribe on top of the left module.. so yeah any ideas? suggestions? advice??? |
|
|
|
Jun 21 2005, 02:57 AM
Post
#4
|
|
![]() define our lives for us. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
MMmmm..
This is an idea. It .. makes it.. o_O it makes it small: Put this code in your website stats before everything. okay, so if you put it, it will create a big space in your left module. nowww that doesn't matter, it would be a little space if you go to http://www.xanga.com/private/subsmgr.aspx and under Module: make sure you've checked 'hide' okay, haha, that's the only idea I have.. |
|
|
|
Jun 21 2005, 05:37 AM
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 289 Joined: Jun 2004 Member No: 24,564 |
Could there be any possiblity have more people on the protected list, i know Xanga Preium but my mom wont buy me it.
|
|
|
|
![]() ![]() |