vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   PHP upload for Images (https://vborg.vbsupport.ru/showthread.php?t=203031)

PakFuse 01-25-2009 09:15 AM

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 :(

glennybee 01-25-2009 09:22 AM

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?

PakFuse 01-25-2009 09:29 AM

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 (Post 1724078)
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...


PakFuse 01-27-2009 03:53 AM

:( no one?

cellarius 01-27-2009 02:02 PM

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.

PakFuse 01-30-2009 07:28 PM

^ 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 :)

cellarius 01-31-2009 07:18 AM

Quote:

Originally Posted by PakFuse (Post 1729384)
^ 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.


All times are GMT. The time now is 02:20 AM.

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.01084 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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