Log In · Register

 
 
Closed TopicStart new topic
display any amount of entries, not working?
ixi jp ixi
post Apr 14 2006, 11:02 AM
Post #1


Senior Member
***

Group: Member
Posts: 35
Joined: Feb 2005
Member No: 104,141



umm, so i installed the code, the one that enables you to display any number of entries on your xanga site, and i want to display two, but it won't work for some reason. idk why, because on my old xanga it worked perfectly, but when i moved to this xanga it didn't. so, is there something wrong with the code? or is it just my computer? heres the code that i use:

CODE
<!-- start code provided by createblog.com -->
<script>
numberOfEntries = 2; //Change this value here...
if(location.pathname=='/dopestkiddd'){
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>
<!-- end code provided by createblog.com -->


anyone know whats wrong?
 
talcumpowder
post Apr 14 2006, 12:30 PM
Post #2


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



The one in your source says 1 entry, not that it matters. Try putting it closer to the top, it might be reacting with the codes above it.
 
ixi jp ixi
post Apr 14 2006, 09:55 PM
Post #3


Senior Member
***

Group: Member
Posts: 35
Joined: Feb 2005
Member No: 104,141



ok, so when i put that on the top of the web stats, and clicked preview. it seemed to work. it only displayed 2 entries [ the number of entries that i wanted it to display], but when i saved changes and clicked public preview, it still showed 5 blogs at one time . why is that?
 
rockstar_jude
post Apr 26 2006, 08:48 AM
Post #4


Member
**

Group: Member
Posts: 11
Joined: Apr 2006
Member No: 397,596



Oh yes, it doesnt work for me either...
even when i put it at the top of the web stats :(
 
whataloser
post Mar 23 2008, 10:55 AM
Post #5


Newbie
*

Group: Member
Posts: 5
Joined: Nov 2006
Member No: 480,636



I saw someone suggest putting
pathname=='/home.aspx')
instead of
pathname=='/YOUR EXACT USER NAME HERE')

I tried it, and it worked for me _smile.gif

it says here that your site address is supposed to just be your username now, but "home.aspx" is what actually works for some reason

and if you want to keep your next and previous links, this code still works for me
 
Friend14
post Mar 28 2008, 02:26 AM
Post #6


Member
**

Group: Member
Posts: 19
Joined: Mar 2008
Member No: 629,338



The last code worked for me well
Thanks Mate.
 
emberfly
post Mar 29 2008, 06:29 PM
Post #7


kthxbai
******

Group: Official Designer
Posts: 2,832
Joined: Feb 2008
Member No: 621,203



I put in my username instead of home.aspx and it worked 100%; never had any problems.


edit//

I just tried home.aspx and it dind't work.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: