vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Possible? Store avatar cookie for logged out user... (https://vborg.vbsupport.ru/showthread.php?t=317494)

Dr.CustUmz 02-24-2015 07:59 AM

Possible? Store avatar cookie for logged out user...
 
so i have an idea, dont want to spoil it too much, but before i even begin i thought i'd ask. Is it possible to store a cookie of the users avatar so even logged off it will be like oh hey heres your avatar, or is this beyond cookies?

Zachery 02-24-2015 10:29 AM

Why would you want to store avatar data about a logged out user? Sounds like a bad idea.

kh99 02-24-2015 10:32 AM

You could store the user's id in a cookie, then use that to get the avatar. I don't know if you could or that you'd want to save the entire avatar image in a cookie. If you have user profiles available to guests then you already have the ability for anyone to see the avatar just by providing the userid, so you're not exposing anything extra. Just don't do anything that assumes they are really that user based on the cookie.

Edit: There's also the issue of more than one person using a computer, or using public computers, which I believe is why the cookies are normally all deleted when you log out.

Dr.CustUmz 02-24-2015 10:58 AM

Quote:

Originally Posted by Zachery (Post 2538545)
Why would you want to store avatar data about a logged out user? Sounds like a bad idea.

the idea is a login system, that displays the last user logged in on that pc's avatar, forms now days already remember usernames and passwords so having a system where is shows the avatar of the user (like facebook for example) would not hurt anything, or even having a fetch function that fetches the avatar on every keyup so as your logging in its finding user's avatar then finally usernames avatar. or when usernames box is unfocussed (the password box is activated) it could fetch then.

but the original idea (damn A.D.D. lol) where it just stores a cookie, would be something like this:
https://s3.amazonaws.com/f.cl.ly/ite...Untitled-1.jpg
then once the user clicked not username, it would clear the cookie and refresh the page or ajax refresh resulting in a default set img.

I myself think that'd be pretty cool and can see this on a variety of applications not just limited to vBulletin.

or figuring out a way like google does, and storing all recent users (with avatars) and user can just click which one they are and enter thier password.

http://cl.ly/image/1U2w1Q0a3F01/Imag...03.04%20AM.png


All times are GMT. The time now is 08:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01128 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete