inherit
164980
0
Oct 11, 2012 23:21:29 GMT -8
Tohsaka Rin
Why do men keep falling into my residence? I can collect on the damage insurance, right?
602
March 2011
lunacticinferno
|
Post by Tohsaka Rin on Apr 6, 2013 9:45:15 GMT -8
How to put this...
I am looking for the variable code for a specific user's avatar to be automatically displayed in an area. For example, if I wanted user1's avatar to be displayed automatically on a side bar, rather than put the image itself in, to put in the variable to fetch that user's avatar that is already saved/displayed in their profile. That way if it changes, the variable is already there and automatically changes the avatar image to whatever is the current avatar the user has.
I needed it for a spot on a side bar.
Thanks.
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Apr 6, 2013 11:09:50 GMT -8
This data isn't always fetched on each page load, and therefore cannot be retrieved by codes.
|
|
inherit
164980
0
Oct 11, 2012 23:21:29 GMT -8
Tohsaka Rin
Why do men keep falling into my residence? I can collect on the damage insurance, right?
602
March 2011
lunacticinferno
|
Post by Tohsaka Rin on Apr 6, 2013 11:54:43 GMT -8
Well it is used for things like the mini-profile, I just do not know how to specify one user rather than the generic variable. I suppose it is similar to this: [ Here] I am not sure if it can be used outside of like, a mini-profile template. I had tried certain variations of it but either I am missing something or not getting it right.
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Apr 6, 2013 14:11:43 GMT -8
That data is only loaded when the user's mini profile is though. For example, on this page here, your avatar and mine are loaded, but not VS Admin's, since he hasn't posted here.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Apr 8, 2013 13:19:37 GMT -8
The HTML for the current user's avatar can always be grabbed via proboards.data('user').avatar in a Javascript function.
Other users' avatars cannot be obtained unless they're on the current page.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Apr 8, 2013 15:18:22 GMT -8
If its always a specific user's avatar, why not just post the actual image in the sidebar?
|
|
inherit
164980
0
Oct 11, 2012 23:21:29 GMT -8
Tohsaka Rin
Why do men keep falling into my residence? I can collect on the damage insurance, right?
602
March 2011
lunacticinferno
|
Post by Tohsaka Rin on Apr 9, 2013 8:27:48 GMT -8
Oh, there were a variety of reasons why I needed the actual variable and not to post in the actual link to the image. There were some refresh/hosting issues that were arising from the code we were working on. Some of the changes that proboards made to tables really were making it impossible for us to work with.
Personally, there should have been no chances to ubbc code, the stuff is universal but now that they changed it tables themselves just... ugh.. I won't even get started or I will get ticked off again.
All I will say is that I am super-greatful for the code. I will get back to working with what I was doing and hopefully get this finished.
People will also need that later for if they were going to make custom login areas where the login area is to display their "currently logged-in character avatar." There are various necessities for needing this.
For me, we were starting to try and work on coding a game... and it needed to be able to fetch things like that.. for us, that was one of the primary tests needed to make sure that the scripting functions would work.
Our main issue is going to end up being how the program saves the game data and transfers it into sections of a mini-profile/profile and vice-versus.
The most simple thing we were trying out was to see if it would load a person's avatar, update if their avatar updates, and what have you. If we were to load in ever individual's avatar manually... ugh.. Just ugh.
Ok, off I go now.
Thanks~
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Apr 9, 2013 21:12:54 GMT -8
I guess I misunderstood what you were after there. the wording made me believe you were trying to put the avatar of a single specific user in there. which, true, wouldnt change if they changed it, but as everyone said you wouldnt be able to fetch it unless they appeared on the page.
|
|
inherit
164980
0
Oct 11, 2012 23:21:29 GMT -8
Tohsaka Rin
Why do men keep falling into my residence? I can collect on the damage insurance, right?
602
March 2011
lunacticinferno
|
Post by Tohsaka Rin on Apr 10, 2013 9:37:11 GMT -8
Yep, that is fine. Hopefully the information will be useful for others in the future that also need it.
|
|