display one entry |
![]() ![]() |
display one entry |
Sep 15 2005, 02:34 PM
Post
#1
|
|
![]() unique ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: May 2005 Member No: 140,137 |
I have tried all of the codes in scripts, they use to work but now they no longer work.
Does anyone have a code that DOES work? I really need this. Thanks in advance. |
|
|
|
Sep 15 2005, 03:03 PM
Post
#2
|
|
![]() yep, that's me. stop staring. :p ![]() ![]() ![]() ![]() Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
r u sure? this is the code i found.... but i think it works. i even tried it.
|
|
|
|
Sep 15 2005, 03:11 PM
Post
#3
|
|
![]() unique ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: May 2005 Member No: 140,137 |
Yup, I have that one in right now. I even changed the username part and it still doesnt work when I preview public preview.
|
|
|
|
Sep 15 2005, 03:13 PM
Post
#4
|
|
![]() yep, that's me. stop staring. :p ![]() ![]() ![]() ![]() Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
hmm... whuts ur xanga?
|
|
|
|
Sep 15 2005, 03:18 PM
Post
#5
|
|
![]() unique ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: May 2005 Member No: 140,137 |
Must I post my xanga or could I just post all my coding?
|
|
|
|
Sep 15 2005, 03:19 PM
Post
#6
|
|
![]() yep, that's me. stop staring. :p ![]() ![]() ![]() ![]() Group: Member Posts: 257 Joined: Jun 2005 Member No: 160,969 |
ok, u can post ur coding...
|
|
|
|
Sep 15 2005, 03:29 PM
Post
#7
|
|
![]() unique ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: May 2005 Member No: 140,137 |
This is everything in my webstats
|
|
|
|
Sep 15 2005, 03:32 PM
Post
#8
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,551 Joined: Feb 2005 Member No: 102,857 |
Well for this.
QUOTE <script> numberOfEntries = 2; //Change this value here... if(location.pathname=='/blahblahblahh'){ var tds = document.getElementsByTagName ('a'); for (var i = 0; i < tds.length; i++) { timeString = tds[i].innerText; if(timeString.match(/\d+:\d+ [ap]m\b/i)){break;} } stuff = tds[i].parentNode.parentNode.parentNode.parentNode.parentNode; for(j=1;j<numberOfEntries;j++){ stuff=stuff.nextSibling.nextSibling.nextSibling if(stuff.tagName=='BR'){ stuff=stuff.previousSibling; } } for(i=0;i<20;i++){ if(stuff.tagName=='HR' && stuff.nextSibling.tagName=='TABLE') { stuff.nextSibling.removeNode(true); break; } stuff = stuff.nextSibling; stuff.style.display='none'; }} </script> Change the bolded part to 1 and this code only works in your public view. |
|
|
|
Sep 15 2005, 03:42 PM
Post
#9
|
|
![]() unique ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: May 2005 Member No: 140,137 |
I changed it to one and it still doesn't work in the public preview.
I orginally had it as two because I wanted it to show two & I did check in public preview. |
|
|
|
Sep 15 2005, 03:45 PM
Post
#10
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,551 Joined: Feb 2005 Member No: 102,857 |
It should work.
When you type it in the adress make sure you type it EXACTLY the way you typed it in the code. |
|
|
|
Sep 15 2005, 03:49 PM
Post
#11
|
|
![]() unique ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: May 2005 Member No: 140,137 |
Nope, It doesn't work.
When you mean address, its the url right and must I type it in? Should I sign out of Xanga? I just clicked the one link that shows you the public preview. |
|
|
|
Sep 15 2005, 03:54 PM
Post
#12
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,551 Joined: Feb 2005 Member No: 102,857 |
Yeah like in the code if you defined your username as
asDf and when you go back to type in the adress and you type it like this http://www.xanga.com/asdf it will NOT work unless it's like the way you specified it in the code. |
|
|
|
Sep 15 2005, 03:57 PM
Post
#13
|
|
![]() unique ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: May 2005 Member No: 140,137 |
It works now, but my question is if someone doesn't type the username how its suppose to be, will they be able to view all of my entries?
edit Nevermind. I tried changing one letter and it didn't work. |
|
|
|
Sep 15 2005, 03:58 PM
Post
#14
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,551 Joined: Feb 2005 Member No: 102,857 |
Yeah they will see all of it I guess if you change your username in the code to all lowercase it might work since no one will really types with capital letters while putting in a url.
|
|
|
|
Sep 15 2005, 04:00 PM
Post
#15
|
|
![]() unique ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: May 2005 Member No: 140,137 |
What's the point of the code if people can still view your other entries if they choose to type the username anyway they wish?
Keyword, most people. (type in lowercase) Can they not fix the script to do any better? Or is there any script that works no matter how your username is typed or displayed. Oh well, thanks for all your help. |
|
|
|
Sep 15 2005, 09:08 PM
Post
#16
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
The adress bar is supposed to convert everything into all lowercase. It obviously doesn't...
And it did work. But then Xanga changed. And it still works, but it has loopholes. Just like all the other Javascript codes in scripts. |
|
|
|
Sep 22 2005, 01:51 PM
Post
#17
|
|
![]() unique ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 520 Joined: May 2005 Member No: 140,137 |
I know it use to work for me. Then all of a sudden I previewed my xanga without signing in (which is public preview) and see all of my entries. I was puzzled.
Well, "But then Xanga changed. And it still works, but it has loopholes. Just like all the other Javascript codes in scripts." has answered my question about the script. This topic may be closed now. Thanks everyone for helping, I greatly appreciate it. |
|
|
|
![]() ![]() |