Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2009, 09:15 AM
PakFuse PakFuse is offline
 
Join Date: Jan 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default PHP upload for Images

Hello all

I am a newbie in Vbulletin community and a novice in PHP world... I hope I will get some help or guidance here by my fellow VB community members...


Basically, I am looking for a PHP script that will allow me to upload images using simple HTML form and create a thumbnail at the same time while providing me an image tag for thumbnail, which is also linked to the original image file, opened in a new browser window.

(I have both GD and ImageMagick on my server)


I've two folders for original files, and thumnbnails - ideally i'd like it to rename the photo to the same thing in both folders by appending user id with the image name...

so the image upload link is only visible when the user is logged in and therefore php file has a poster id in the url...

I have done some basic research on this type of solution and I know that images directory in this case has to have CHMOD set as 0777 so I would like to have it outside of my root....


Is there a hack or MOD available for such a solution... even an old one?? or any working script that I can get a hold of... Few on the net that I found seem not to be working for me
Reply With Quote
  #2  
Old 01-25-2009, 09:22 AM
glennybee glennybee is offline
 
Join Date: Feb 2008
Location: Scotland
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vBulletin has a section for each member to upload pictures to their profile and store them as albums. Is this what you're looking for?
Reply With Quote
  #3  
Old 01-25-2009, 09:29 AM
PakFuse PakFuse is offline
 
Join Date: Jan 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

glennybee

Thanks for asking...


I am aware of Albums feature.. but I am not looking for that....

I am looking for a separate image uploading PHP script that can create thumbnails which can be then pasted in a specific forum, say Images Gallery at my site... independent of Albums....random pictures ... political, personal, general, anything that can be used for discussion or chit chat...

--------------- Added [DATE]1232925584[/DATE] at [TIME]1232925584[/TIME] ---------------

anyone ????

Quote:
Originally Posted by PakFuse View Post
glennybee

Thanks for asking...


I am aware of Albums feature.. but I am not looking for that....

I am looking for a separate image uploading PHP script that can create thumbnails which can be then pasted in a specific forum, say Images Gallery at my site... independent of Albums....random pictures ... political, personal, general, anything that can be used for discussion or chit chat...
Reply With Quote
  #4  
Old 01-27-2009, 03:53 AM
PakFuse PakFuse is offline
 
Join Date: Jan 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no one?
Reply With Quote
  #5  
Old 01-27-2009, 02:02 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps nobody understands why you do not want to use the albums. They do exactly what you want to do. Your users can upload images there, and it generates a thumbnail. And of course you can paste those images via bbcode into posts. I for one don't see your reasoning: Why do you want to reinvent the wheel, if it's already there for you to use?

Of course, there are lots of gallery scripts out there - go and grab one. Photopost, vbGallery, Photoplog - and that's just some.

By the way: There even is quite a comfortable way of doing exactly what you want whith vB album pictures: Pasting them as thumbnails linked to gallery/original into postings. See this mod: Photo Popup.
Reply With Quote
  #6  
Old 01-30-2009, 07:28 PM
PakFuse PakFuse is offline
 
Join Date: Jan 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ That is the closest I was looking for Thanks for the help... though my goal was when I get such a solution, I would then, work to get watermark of my forum on images uploaded there...

Plus, I will have a designated folder for all images and thumbnails with user directories created within... separate from VBulletin file directory and hence, more control on things...

But for now, I think this the best I can get
Reply With Quote
  #7  
Old 01-31-2009, 07:18 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PakFuse View Post
^ That is the closest I was looking for Thanks for the help... though my goal was when I get such a solution, I would then, work to get watermark of my forum on images uploaded there...

Plus, I will have a designated folder for all images and thumbnails with user directories created within... separate from VBulletin file directory and hence, more control on things...

But for now, I think this the best I can get
Buy Photopost Pro. That does all that, including the watermarking.
Reply With Quote
Reply


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 02:41 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.04854 seconds
  • Memory Usage 2,221KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete