Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 08-17-2001, 12:33 AM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #12  
Old 08-17-2001, 01:08 AM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #13  
Old 08-17-2001, 01:32 AM
BradC
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #14  
Old 08-17-2001, 02:58 AM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 08-17-2001, 03:11 AM
BradC
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #16  
Old 08-17-2001, 03:24 AM
BradC
Guest
 
Posts: n/a
Default

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..
Reply With Quote
  #17  
Old 08-17-2001, 03:40 AM
Bane's Avatar
Bane Bane is offline
 
Join Date: Oct 2001
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know at least one of these I've been waiting for for a while Brad Glad its coming up!
Reply With Quote
  #18  
Old 08-17-2001, 06:19 AM
ethank's Avatar
ethank ethank is offline
 
Join Date: Oct 2001
Location: Toluca Lake, CA
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #19  
Old 08-17-2001, 01:31 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Joey
Reply With Quote
  #20  
Old 08-17-2001, 02:48 PM
ToraTora! ToraTora! is offline
 
Join Date: Nov 2001
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks guys, its appreciated.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:32 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04434 seconds
  • Memory Usage 2,257KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete