vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Pop Up buddy list/Mood Hack/Picture Upload/User Profile (https://vborg.vbsupport.ru/showthread.php?t=25540)

Freddie Bingham 08-16-2001 11:33 PM

Why not just name it only userid.gif , why even bother with filenames and such as that is where you start to get into security issues.

ToraTora! 08-17-2001 12:08 AM

so basically, instead of having something along this path..

pikachusucks.jpg

it would be...

$userid.jpg

The folder that the images are uploaded into is chmoded, so would that cause any conflicts in pulling the code from the folder, or is it suggested that instead of having the folder, one could make a new table in the user db, and than just have it stored there?

BradC 08-17-2001 12:32 AM

well that will work for the most part.. just have the userid, jpg..

but I will have to have it where there is more than one picture for my site.. hehe :)

that and I am not really and totally for sure how to code this..

cause right now I have it as $picture_name... so I would have to have it I guess something like ...

rename("$picturename", "$bbuserinfo[userid] + _ + $picturename")

that might work... dunno.. any suggestions from the C background.. or php background :)

ToraTora! 08-17-2001 01:58 AM

i think you have it figured out, post the results to fred and see what he thinks. It looked like it should do the trick. :)

BradC 08-17-2001 02:11 AM

lol to simple... :)

question freddie.. why don't ya like the username as a value..

like here is my dilema..

user :

$id + _ + picture_name

or

$id + _ + photo

or

$id + _ + username


no those are not how it looks in the script.. just should I use the pictures name, or should I just add a text name like photo.. or should I go ahead and add their username? I know I can do this on my own.. but what was would be proficient :)

BradC 08-17-2001 02:24 AM

I think I am going to name it like this

userid+_+photo

that way it will look like this :

1_photo

or in my case

1_photo1
1_photo2
1_photo3

etc..

Bane 08-17-2001 02:40 AM

I know at least one of these I've been waiting for for a while Brad ;) Glad its coming up!

ethank 08-17-2001 05:19 AM

I like the buddy list and user profile hacks a lot. The user profile one I was thinking about doing...anyhow, my vote goes in for those two. I wish I had time to sit down and do really good documentation for the Mark Read hack...maybe this next week...

webhost 08-17-2001 12:31 PM

GReat Looking hacks Guys. You have done a bangup job.

Joey

ToraTora! 08-17-2001 01:48 PM

Thanks guys, its appreciated. :)


All times are GMT. The time now is 07:56 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.03548 seconds
  • Memory Usage 1,723KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete