Log In · Register

 
 
Closed TopicStart new topic
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
 
freeflow
post Sep 25 2006, 08:38 AM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



What? But you know that you can ask more than one question in one topic. Next time I suggest you do that. Its easier to keep track of.
 
zaher1988
post Sep 25 2006, 10:55 AM
Post #3


Member
**

Group: Member
Posts: 25
Joined: Sep 2006
Member No: 467,408



I just made a new thread, because it is a total different topic.

Basicaly i would like to move ZAHER HAS X FRIENDS to somewhere else. So to make X automaticaly replaced by the actuall number of friends i have the moment the page is being parsed i need the variable that is used to represent the results of the query that count the friends.

SO what is that variable ?

regards
 
zaher1988
post Sep 30 2006, 02:29 AM
Post #4


Member
**

Group: Member
Posts: 25
Joined: Sep 2006
Member No: 467,408



Excuse me for the DOUBLE POST, but i haven't got any reply.

I guess i have explained what i mean very clear in the last post, didnt I :$?

Anyway for more illustration, this is my space here. To the left there is a vertical custom made top friends box that i have coded, the problem is that i also need to have the same thing that is found in the original friend's box, which, how many friends i have, however, i dont wan't to enter the count manually each time i add a new friend, i want it to be dynamic.

For that reason, i have asked for the Variable used in the main codes so i can use it.

I have found few days ago, some custom made friends box in this site, but, i looked at the codes, but it seems you need also to add the friends total manually.

So any help?
 
freeflow
post Sep 30 2006, 11:14 AM
Post #5


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



I don't think you can. Thats why its called custom friends. Most people just put a random number in for that part. Because no one wants to do it manually.
 
zaher1988
post Sep 30 2006, 03:58 PM
Post #6


Member
**

Group: Member
Posts: 25
Joined: Sep 2006
Member No: 467,408



But if you have the variable used in the original box, it should work
 
freeflow
post Sep 30 2006, 04:12 PM
Post #7


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



Thats the thing you can't. You can make it the style of the text but you can't. I don't know where you can get (the variable) it because of the fact that when you try to view the source of a myspace and look for it you get the number.

So where are you expecting us to get it? It hasn't been done and I doubt it can be unless you've seen it done, and if you have I suggest messaging that person.
 
zaher1988
post Oct 1 2006, 01:32 AM
Post #8


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
post Oct 6 2006, 06:42 AM
Post #9


Member
**

Group: Member
Posts: 25
Joined: Sep 2006
Member No: 467,408



So any of the staff is willing to cooperate :D ?
 
freeflow
post Oct 6 2006, 11:15 AM
Post #10


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



Its myspace.. you can't do everything you want. Its not really possible. As I said you would have to ask the people at myspace, which I doubt most of them would know.

And you can't use php either. I know what you mean, but you can't do it on myspace without asking the people that most likely created it. We would have no way of knowing.
 

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