Help - Search - Members - Calendar
Full Version: problem with the one entry code
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
dollface4ya
ok i tried a lot of codes tht i found for the "one entry" && none of them works. I looked & looked but none of them works. Is there one out there tht actually works? plz help
gelionie
I am sure this one works:
http://www.createblog.com/forums/index.php?showtopic=12472

Make sure you are pasting the code in the correct place.
dollface4ya
it doesn`t work
talcumpowder
What browser are you using? Doesn't work in Mozilla. It might conflict with other codes.
dollface4ya
internet explorer
talcumpowder
Oh. Code is case sensitive. So, if you put kk for the text YOUR EXACT USER NAME HERE, it won't show up correctly if the text you type into the adress bar is, say Kk.
dollface4ya
so saymy xanga user name is dollfacex3 i would type in dOlLFacEX3??
gelionie
Uhh no. Just type dollfacex3.
dollface4ya
i did type my username like tht, but still it didnt work
talcumpowder
No. That's not what I meant....
[ http://www.xanga.com/xX_your_user_name_here_Xx ]
[ http://www.xanga.com/xx_your_user_name_here_xx ]
The first will screw up when you view it, but the second won't. That's what I meant. You type exactly what you've got in the code.
dollface4ya
so this is what i put in my webstats



<!-- begin code provided by createblog.com -->
<script>
// Display Only One Entry

if(location.pathname=="/dollfacex3"){
var longer = false;
var tds = document.getElementsByTagName('td');
for(i=0; i<tds.length;i++)
{
booga = tds[i].innerHTML.indexOf('blogheader');
if(booga==11){longer=false;break;}
boogie = tds[i].innerHTML.indexOf('javascript');
if(boogie == 19){longer=true;break;}
}
var tables = tds[i].getElementsByTagName('table');
var numBreaks = 0;
var x = 0;
if(longer==true){x=3;}else{x=1}
for(j=x; j<tables.length;j++)
{
numBreaks += tables[j].getElementsByTagName('br').length;
tables[j].style.display='none';
}
var divs = tds[i].getElementsByTagName('div');
for(j=2+(2*1)-2; j<divs.length;j++)
{
divs[j].style.display='none';
}
var breaks = tds[i].getElementsByTagName('br');
for(j=breaks.length-5-numBreaks;j<breaks.length;j++)
{
breaks[j].style.display='none';
}
var horizontals = tds[i].getElementsByTagName('hr');
var j = horizontals.length-1;
horizontals[j].style.display='none';
}
</script>
<!-- end code provided by createblog.com -->
talcumpowder
Use a codebox/code.
[ http://www.xanga.com/dollfacex3 ]
Works fine for me. Except for the fact that you sit is SHUT DOWN! It doesn't work in private. Which it says.
dollface4ya
Like this??





<!-- begin code provided by createblog.com -->
<script>
// Display Only One Entry

if(location.pathname=="/[ http://www.xanga.com/dollfacex3 ]"){
var longer = false;
var tds = document.getElementsByTagName('td');
for(i=0; i<tds.length;i++)
{
booga = tds[i].innerHTML.indexOf('blogheader');
if(booga==11){longer=false;break;}
boogie = tds[i].innerHTML.indexOf('javascript');
if(boogie == 19){longer=true;break;}
}
var tables = tds[i].getElementsByTagName('table');
var numBreaks = 0;
var x = 0;
if(longer==true){x=3;}else{x=1}
for(j=x; j<tables.length;j++)
{
numBreaks += tables[j].getElementsByTagName('br').length;
tables[j].style.display='none';
}
var divs = tds[i].getElementsByTagName('div');
for(j=2+(2*1)-2; j<divs.length;j++)
{
divs[j].style.display='none';
}
var breaks = tds[i].getElementsByTagName('br');
for(j=breaks.length-5-numBreaks;j<breaks.length;j++)
{
breaks[j].style.display='none';
}
var horizontals = tds[i].getElementsByTagName('hr');
var j = horizontals.length-1;
horizontals[j].style.display='none';
}
</script>
<!-- end code provided by createblog.com -->
talcumpowder
mellow.gif No...... I was providing the URL so I could show you. &your site is shut down. It doesn't work in private. Which it says in the topic.
dollface4ya
tht`s not my real site
talcumpowder
Well then, of course it's not going to work. rolleyes.gif You put your real site name in there and type it into the adress bar exactly as you did in the code. Just like I did on mine.
dollface4ya
ok, i have a xanga site. I just made tht one up. I just need to knoe the code for the one entry in my xanga site. Is this what i put in my webstats with my real username in replace of dollfacex3




<!-- begin code provided by createblog.com -->
<script>
// Display Only One Entry

if(location.pathname=="/[ http://www.xanga.com/dollfacex3 ]"){
var longer = false;
var tds = document.getElementsByTagName('td');
for(i=0; i<tds.length;i++)
{
booga = tds[i].innerHTML.indexOf('blogheader');
if(booga==11){longer=false;break;}
boogie = tds[i].innerHTML.indexOf('javascript');
if(boogie == 19){longer=true;break;}
}
var tables = tds[i].getElementsByTagName('table');
var numBreaks = 0;
var x = 0;
if(longer==true){x=3;}else{x=1}
for(j=x; j<tables.length;j++)
{
numBreaks += tables[j].getElementsByTagName('br').length;
tables[j].style.display='none';
}
var divs = tds[i].getElementsByTagName('div');
for(j=2+(2*1)-2; j<divs.length;j++)
{
divs[j].style.display='none';
}
var breaks = tds[i].getElementsByTagName('br');
for(j=breaks.length-5-numBreaks;j<breaks.length;j++)
{
breaks[j].style.display='none';
}
var horizontals = tds[i].getElementsByTagName('hr');
var j = horizontals.length-1;
horizontals[j].style.display='none';
}
</script>
<!-- end code provided by createblog.com -->
talcumpowder
Again, it's the first, not the latest.
&again, the code is case sensitive.
dollface4ya
i have no clue what you mean by case sensitive && it doesn`t matter cohs the code don`t work.
talcumpowder
CASE SENSITIVE isn't the same as case sensitive or cAsE sEnSiTiVe. Case sensitive would mean if you type 122SSSS into your code and you type 122sSsS into your adress bar, the code WON'T WORK. Sorry if you teeny brain can't handle that concept. &the code works fine, if you know what case sensitive means. mellow.gif
dollface4ya
now i knoe what it means, && i did what you said && it still don`t work!
talcumpowder
Are you positive? Because one character difference throws everything off. &it doesn't work in private, only in public.
dollface4ya
yea i knoe it only works in public
dollface4ya
did you really try it cohs my friend tries it also & her didn`t work either
digital.fragrance
Try putting it in your header - just to rule out the possibility that it would work in that.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.