[ITW] Avatar Frame mod? Maybe? A. YES
Select messages from # through # Forum FAQ
[/[Print]\]

HeadShot Extreme -> PC & Codeing Talk

#1: No icon [ITW] Avatar Frame mod? Maybe? A. YES Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu Oct 14, 2021 7:51 pm
    —
When I was collecting the Steam avatars to release to you guys, I had a thought, what if I can make a mod that would allow you to select an Avatar frame to go around your avatar like Steam does. Then I started thinking, what if I could make it tiers, (possibly). I would need to get with Lonestar on this and figure out some stuff, but let's take my avatar on this site. I will talk about the tier idea at the bottom pf this post.

Currently, it's
Expand

Now, lets look at a little animated video of what it could be with the frames, (just note), this animation is just using a little array JavaScript toggle system so when I click on the image, the border changes, just for this demo.

Expand

It's just a thought of a possible mod, but, my questions is, does anyone want it?
If not, or I get very little support for it, it's not worth proceeding any further.

Just note, the avatar frames I used here are from steam, but, for all you artist out there, all you need to do is make an animated frame and export it as an animated .png.
You can do the research to make your own.



What did I mean by tiers previously, well, I was thinking that you could unlock the ability to use frames after X post, and the more you post, you can unlock higher tiers that have better frames. Of course, to combat spamming, would have to build an admin section that would allow you to lock out a spammer so no matter how much they post, they would not qualify for the avatar.

This was just a random thought I had.

Update: Here is a link to the example page.
Please login to see this link
Get registered or Log in


[UPDATE 2/20/2022]
I just posted about the current progress here:
Please login to see this link
Get registered or Log in
Last edited by coRpSE on Mon Feb 21, 2022 8:12 pm; edited 3 times in total

#2: No icon Re: Avatar Frame mod? Maybe? Author: Lonestar PostPosted: Fri Oct 15, 2021 4:12 am
    —
I really like this idea lachen

#3: No icon Re: Avatar Frame mod? Maybe? Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Fri Oct 15, 2021 7:25 am
    —
I second that,  big grin

#4: No icon Re: Avatar Frame mod? Maybe? Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Oct 15, 2021 11:47 am
    —
I updated the first post and put the example page available for you to view. I also added a few more still image frames to show that you are not just limited to animated png.

#5: No icon Re: Avatar Frame mod? Maybe? Author: zardosLocation: North west of England PostPosted: Fri Oct 15, 2021 2:44 pm
    —
Another cool mod, very nice work.

#6: No icon Re: Avatar Frame mod? Maybe? Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat Oct 16, 2021 8:34 pm
    —
Thanks.

First off, I updated the demo page from my OP that now shows 5 different sizes. I also have it start off with no frame to see what frameless looks like.

Well, there are some things that I am going to have to figure out first before I go forth with development, and I am open to suggestions. This issues that I can think of at the moment is as follows.
Note: These issues are with the current setup that I am using, which is a parent div, with a child div, (allows positioning of the avatars within the parent, centering), then, within the child div, I have the images with a position of absolute. Image 1, also known as the avatar, is 26px smaller than image 2, (the frame), since the frames have about a 13px transparency around them, (the animated ones I have).

  1. Avatars will need to be set to a fixed size. Because of how the frames are overlapping the images, and the way I have it set up, would probably have to do a few tiers, like a 100x100, 120x120, and a 150x150 tier, or, (sm, md, lg, and xl), and where you place the avatars, you would have to define it. Those that are running a responsive theme, may be able to do something different with that. Could probably do it as a function.

    I'm not looking to replace the avatar system, this system will not touch or replace any of the backend, just replace where the avatar is called for viewing.

  2. Would need to set it so the avatar images, no matter what, show the size we want it, (easy to do). But, that means, those that uploaded or use avatars below what this mod requires, on the larger sizes, it may stretch the image a bit and **can**, not will, can distort the image. Of course, that would only be on locations where the larger avatars are used.

  3. Selection of the frame, this, Lonestar, I will need your help on. I was thinking to use something like my demo where it would show your current avatar, and you just click it till you find the frame you want, then what ever it is on when you click save, is the one you will get.

  4. To add more frames, maybe just have it where you can just drop them into the folder, and they will automatically be added to the rotation, just like the current avatar system. Doing that would eliminate the need to have an admin back end for uploading the images, saving time and headaches

  5. Now, coming up with a way to replace the current way the avatar is displayed, maybe with a function where you input the global avatar info, ($userinfo['user_avatar']), and then you can put in a size you want would work.

    Example:

    Code: [ Select all ]

    avatar_frame($userinfo['user_avatar'], lg);


    I am just spitballing here. I'm open completely to suggestions.  


Overall, I don't see it being easy by any means, I think writing the tag mod was easier, especially since I used the tricks I did on the lottery module. I don't see it really necessary to have an admin back end since I thought more about that tier system, and I am having my doubts. I just don't see that being something that I think will be worth wild, (being more of a headache than anything else). Maybe for a later release or if someone gets adventures, but, for this first release, I think getting a basic system thats like the avatar system is fine.

#7: No icon Re: Avatar Frame mod? Maybe? Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Tue Oct 19, 2021 7:51 am
    —
Looking great, loving it so far.

#8: No icon Re: Avatar Frame mod? Maybe? Author: Megaboost PostPosted: Thu Dec 09, 2021 10:46 am
    —
I really like this Idea and feel it would encourage users to post more on forums. I know it would be good for my site.

Keep up the great work buddy  2 daumen hoch

#9: No icon Re: Avatar Frame mod? Maybe? Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Dec 10, 2021 8:55 pm
    —
Thanks. I will be digging into this over this upcoming holiday. (using it as an excuse to hide from family).

#10: No icon Re: Avatar Frame mod? Maybe? Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Tue Dec 14, 2021 9:21 am
    —
ROFLOL! No hiding for me. Have fun hacking away with coding it.  cool besessen

#11: No icon Re: Avatar Frame mod? Maybe? Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Tue Dec 14, 2021 2:53 pm
    —
big grin big grin big grin

#12: No icon Re: Avatar Frame mod? Maybe? Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun Feb 20, 2022 6:24 pm
    —
I know it's been a couple of months since I last spoke of this mod, and I am sure most of you thought I was done with the mod. Well, today, I had some time and I started working on it again, and this is where I am.

I rewrote the avatar function to continue to do what it does, but, if an additional argument is passed into the function, it will work differently. I did it this way, so there is not a need to have two functions pretty much doing the same thing. With that said, I went into the forums to see about putting it in, and I found another copy of the function in there, as well as in the usercp_viewprofile.php. I guess by doing this mod, I can see it removing several areas where the same code has been repeated. So I am doing testing on my local to see if removing the additional code found in the profile/forums area, and have it to just use the function, will cause any errors or issues. So far, so good, but, I have a bunch of testing to do.

I have not created a way to select the frame yet, so Lonestar, if you're reading this, I will need your help with this for I have an idea, but, you're better with jQuery, well if you have some time.

Here is an example of it working ATM.
Expand

Just know, once this mod is done, though this mod will be simplistic on how it works, integrating it is a different story. This will be a medium to hard mod to install for I can't guarantee how to install this on any additional block/module/theme that you may be running, and it may be up to you to figure it out. I will do what i can to ive a bunch of examples, but, it may come down to you, unless you have someone install it for you.

#13: No icon Re: Avatar Frame mod? Maybe? Author: zardosLocation: North west of England PostPosted: Mon Feb 21, 2022 8:49 am
    —
Looking very nice coRpSE  big grin

#14: No icon Re: [ITW] Avatar Frame mod? Maybe? A. YES Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Sat Feb 26, 2022 3:07 pm
    —
Looking good. CoRpSE...

#15: No icon Re: [ITW] Avatar Frame mod? Maybe? A. YES Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat Feb 26, 2022 3:15 pm
    —
Thanks. I just gave Lonestar my files/edits a couple of days ago to help me come up with an ACP for this, so when he has time, he will install this and take a look.

#16: No icon Re: [ITW] Avatar Frame mod? Maybe? A. YES Author: EmeraldDragonLocation: Vancouver, WA PostPosted: Sun Mar 06, 2022 10:43 pm
    —
Cool!

#17: No icon Re: [ITW] Avatar Frame mod? Maybe? A. YES Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Aug 05, 2022 11:40 am
    —
Was just thinking, I know there is a mod called the cash mod that could get ported for this, but, could also use a mod that is already here called the Reputation mod, which is similar to the cash mod. There are ways to get reputation, and could make it, so there are levels that you can unlock with the higher rep you get, or, you can spend some of your rep to unlock specific frames.

I'm still having thought on this mod.

#18: No icon Re: [ITW] Avatar Frame mod? Maybe? A. YES Author: zardosLocation: North west of England PostPosted: Fri Aug 05, 2022 2:50 pm
    —
I sort of recall a similar mod on those lines, cannot remember if it was phpbb or evo, but it sounds good.

#19: No icon Re: [ITW] Avatar Frame mod? Maybe? A. YES Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Aug 05, 2022 7:24 pm
    —
Well, both the cash mod and the rep mod was PHPBB. There was a ported version of the cash mod to Nuke Evolution, but that is as far as it got there, never made it to Xtreme. It is also ported for Nuke/RavenNuke, but even now, doesn't work.

Since the Reputation mod is working already, I think I would just build off that instead of trying to get the cash mod working.



HeadShot Extreme -> PC & Codeing Talk


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Page 1 of 1