locking xanga, sign in |
locking xanga, sign in |
May 15 2006, 08:33 PM
Post
#1
|
|
![]() "my girls rock balenciaga and smoke mad marijuana" ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,089 Joined: Dec 2004 Member No: 70,049 |
I cant figure out how to change the xanga settings so that you have to log in to view my page, because latley i have been getting soooo much traffic and someone already tried to be me! like they tried to pretend to be like me, so it would help if i had this feature.
please&thank you. example. here to view it sign out if you are logged on!! |
|
|
|
![]() |
May 15 2006, 08:43 PM
Post
#2
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
Stupid new scropts section.
QUOTE Description: This script blocks unwanted visitors and unregistered guests from viewing your xanga. A pop-up will come up telling them that they've been blocked, and then it will redirect the visitor to another page. (The pop-up is optional, see "customizing the script" if you want it removed. Right now, it is set to redirect to the sign-in page. Depending on what codes you have on your xanga, the blocked user may or may not see your page, before getting redirected. What I do (even though I think it's an annoying script to have) is put a splash screen script on the page, so all they see when it's finished loading, is the splash image or text. This part goes in header:CODE <!-- Part I of Block Users Script submitted by xanga.com/sherrys_designs --> This part goes in Webstats:<script LANGUAGE="JavaScript"> function redirect () { location.href = 'http://www.xanga.com/signin.aspx'; } </SCRIPT> CODE <!-- Part II of Block Users Script submitted by xanga.com/sherrys_designs --> <script language="javascript"> function getXName() { for (var i = 0; i < document.links.length; i++) { if (document.links[i].href.substring(0,38)=="http://www.xanga.com/private/home.aspx") { var link = document.links[i]; var text = document.all ? link.innerText : link.text ? link.text : ''; return text; break; }} return null; } xName = getXName(); if (xName == 'USERNAME' || xName == 'USERNAME' || xName == null) { alert("Sorry, you are either blocked from this site or not logged in."); redirect(); } </script> QUOTE Customizing the Script:
- Replace QUOTE USERNAME with the username of who you want blocked. - To add more users to the list, just follow the pattern and add QUOTE || xName == 'USERNAME' behind eachQUOTE USERNAME' - To change the message that appears on the pop up, replaceQUOTE Sorry, you are either blocked from this site or not logged in. with your own message.- If you do not want the pop-up to appear, and have the blocked user be immediately redirected, remove this line from the script QUOTE alert("Sorry, you are either blocked from this site or not logged in."); - To change where the blocked user gets redirected to, changeQUOTE to your desired target. This can be found in "Part I" or the "Header" part of the script.Note: Please keep in mind that there are a number of ways to bypass this script. Also, if you wish to keep certain users from subscribing and commenting, go here: http://help.xanga.com/blockcommenting.htm If you have any other problems or questions about this script, please PM me, or create a topic in the Xanga Help forum. Thanks. Credits: Author Unknown. If you are the author of this script and wish to have it removed from this site, or have your name listed in the credit section, please PM me. Note that you will have to provide me with proof that you created this script. I found this a long time ago and didn't keep track of who made it. I apologize. I'm just posting this script because a lot of members have been asking for it. |
|
|
|
May 16 2006, 06:38 PM
Post
#3
|
|
![]() "my girls rock balenciaga and smoke mad marijuana" ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,089 Joined: Dec 2004 Member No: 70,049 |
somethings not working for me, i used both codes in the correct place and then i deleted username because i dont want to block anyone. so whats wrong?
|
|
|
|
May 16 2006, 06:40 PM
Post
#4
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
Could I see exactly what you used and your xanga please?
|
|
|
|
May 17 2006, 04:33 PM
Post
#5
|
|
![]() "my girls rock balenciaga and smoke mad marijuana" ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,089 Joined: Dec 2004 Member No: 70,049 |
ahh nvm. i knew their was a way to do it on the xanga server. this can now be closed.
|
|
|
|
![]() ![]() |