Friends count variable |
Friends count variable |
Sep 25 2006, 04:25 AM
Post
#1
|
|
|
Member ![]() ![]() Group: Member Posts: 25 Joined: Sep 2006 Member No: 467,408 |
Hey guys
I'm gonna use the friends count somwhere else in the page, so i need the variable used in the friends box for show the count, so i can add it to my html in the other part of my profile. thx |
|
|
|
![]() |
Oct 1 2006, 01:32 AM
Post
#2
|
|
|
Member ![]() ![]() Group: Member Posts: 25 Joined: Sep 2006 Member No: 467,408 |
Well i'll give some example from php as long as my experience is php. (i know myspace isn't php).
Whenever you parse a php file with its templates, any variable declared in that php file can be used ANYWHERE in that designated template, so if you create for example a variable $hi = 1; , and add $hi to the template it will display 1. So what i meant here is, as long as the page has loaded, and we already have a counter for the friends in the same page, then that variable that is displayed in this page somewhere, can be used in a different place, in the same page. But, we the end users, can't know what that varibale has been declared as (its name), we can only see the final output which is the total count, so who will have to provide us with that variable would be someone from those who code myspace main files. and as far as i know, as i am coding HTML in that part of my page, i have to be able to use the variable the same way the developers did. Many thanks |
|
|
|
zaher1988 Friends count variable Sep 25 2006, 04:25 AM
toyo loco What? But you know that you can ask more than one ... Sep 25 2006, 08:38 AM
zaher1988 I just made a new thread, because it is a total di... Sep 25 2006, 10:55 AM
zaher1988 Excuse me for the DOUBLE POST, but i haven't g... Sep 30 2006, 02:29 AM
toyo loco I don't think you can. Thats why its called cu... Sep 30 2006, 11:14 AM
zaher1988 But if you have the variable used in the original ... Sep 30 2006, 03:58 PM
toyo loco Thats the thing you can't. You can make it the... Sep 30 2006, 04:12 PM
zaher1988 So any of the staff is willing to cooperate :D ? Oct 6 2006, 06:42 AM
toyo loco Its myspace.. you can't do everything you want... Oct 6 2006, 11:15 AM![]() ![]() |