Log In · Register

 
Friends count variable
zaher1988
post 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
 
 
Start new topic
Replies
zaher1988
post 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
 

Posts in this topic


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