vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [RELEASE vb2.0+] vB Photo Upload (https://vborg.vbsupport.ru/showthread.php?t=27475)

fridayweb 07-10-2002 01:24 AM

All right guys, I've read through this whole thread, read the FAQ and everything, and I've tried to fix it myself. I come to you for help now. Everything works except for this one small problem:

Code:

Warning: Access denied for user: 'friday13f@fridaythe13thforum.com@jupiter.hostinggroup.com' (Using password: YES)
in /home/virtual/site7/fst/var/www/html/upload.php on line 168

friday13f@fridaythe13thforum.com is the username and my server will only accept this, but when it adds @jupiter.hostinggroup.com to the end, it won't let me access it. I've tried to find a way to stop that from happening, but I believe it's in the mysql somewhere that I don't know how to get to. If anyone could help me out, it would be greatly appreciated. Thanks. :)

dreamhost 07-11-2002 03:19 AM

ok i've tried everything i can think of, but when I run the script, I get no picture uploaded, but there are no errors shown either. I look into the /images/uploaded folder there is nothing there. It just shows the x box with no pic there, when right click it shows correct path.
PLEASE HELP, SPENT ABOUT 4 HRS TROUBLESHOOTING, MY BRAIN HURTS..... :)
sorry url is
http://connect.samstech.net/forums/m...nfo&userid=482

or http://connect.samstech.net/forums/upload.php

dreamhost 07-11-2002 03:21 AM

I also noticed that on this url
http://connect.samstech.net/forums/m...nfo&userid=482
the path to the missing picture isn't correct, it is missing the /forums before the /images tag

in the upload.php though missing pic location is correct. I even tried full path urls

alanvo 07-16-2002 01:03 AM

Everything works great!! I even see the picture in my USERCP and everywhere else except the main_photogallery.php. Why is that?

I think that the upload.php didnt execute the query line that suppose to or something, can someone please help!

Fuitad 07-17-2002 04:16 AM

If you're like me, the only reason you'll use the control panel to play with pictures is to make sure nobody uploaded stupid stuff. I found it long and annoying to see the list of all the members so here's two lines you can add to this script to make it faster and one little line to make it easier.

On user.php:

find:

Code:

$users=$DB_site->query("SELECT user.userid,username,email,picture_name,photodesc,ipaddress,userfield.* FROM user,userfield WHERE $condition AND userfield.userid=user.userid ORDER BY $orderby $direction LIMIT $limitstart,$limitnumber");
and replace it with:

Code:

$users=$DB_site->query("SELECT user.userid,username,email,picture_name,photodesc,ipaddress,userfield.* FROM user,userfield WHERE $condition AND user.picture_name != '' AND userfield.userid=user.userid ORDER BY $orderby $direction LIMIT $limitstart,$limitnumber");
now find (it should be the line right under the one you just replaced):

Code:

$countusers=$DB_site->query_first("SELECT COUNT(*) AS users FROM user,userfield WHERE $condition AND userfield.userid=user.userid");
and replace it with:

Code:

$countusers=$DB_site->query_first("SELECT COUNT(*) AS users FROM user,userfield WHERE $condition AND user.picture_name != '' AND userfield.userid=user.userid");
To easily view the picture (without having to click edit and then view picture, do this:

find:

Code:

makelinkcode("<font type=verdana color=#3366cc>edit</font>","user.php?s=$session[sessionhash]&action=photosuploadedit&userid=$user[userid]").
and above it, add:

Code:

makelinkcode("<font type=verdana color=#3366cc>view</font>","../images/userpics/$user[picture_name]").
Obviously, you might need to modify this to fit your own image path.

Also, this will prevent you from manually adding pictures to users but hey, if you installed the script, they should be able to do it themselves... no?

Hope this help anybody...

Fuitad 07-22-2002 07:51 PM

Make sure you get the latest version, I fixed a little something I left in
admin/user.php.

Edit: Whoa, what the hell does that post does in this thread?

Mr L 07-24-2002 08:59 PM

Brad,

Firstly thank you very much for this hack, it is execellent. I have installed in on my board 2.2.6 and the members LOVE IT!

A couple of questions have come up, unfortunatly, I do not have the PHP skillset to fix this, otherwise I would like to.

Is it possible to add a "Photo" icon in the message information where their status and number of posts is, each time they post a message, to indicate if they have a photo. Clicking on it would launch it.

Also, is there any possibility of a PHP page much like Leasane's Award hack (showaward.php). This would list only the users that have photos and display the photo and the description.

Many thanks again, if anyone can help with any of the above I'd really appricate it, not just Brad. I am just directing this at him to give thanks to this hack.

Harvey.

ToraTora! 07-27-2002 10:03 PM

Quote:

Originally posted by HLodder
Brad,

Firstly thank you very much for this hack, it is execellent. I have installed in on my board 2.2.6 and the members LOVE IT!

A couple of questions have come up, unfortunatly, I do not have the PHP skillset to fix this, otherwise I would like to.

Is it possible to add a "Photo" icon in the message information where their status and number of posts is, each time they post a message, to indicate if they have a photo. Clicking on it would launch it.

Also, is there any possibility of a PHP page much like Leasane's Award hack (showaward.php). This would list only the users that have photos and display the photo and the description.

Many thanks again, if anyone can help with any of the above I'd really appricate it, not just Brad. I am just directing this at him to give thanks to this hack.

Harvey.

Brad has yet to update this much.. well at all.. but as for the possibility of the icon in the postbit.. yes it should be in the zip, or I hate to say this.. through looking through this topic lol.. you should be able to find it.. if not email brad I am sure he has it laying around.. :)

also look for webhost, cause I do believe he posted one of the icons..

As for the second.. it was only done in his latest stuff.. but yes it is possible... as for to get him to doing it, might be like pulling teeth..

bradc = bradc@addictedusers.com

dadymac 08-06-2002 08:31 PM

ok, guys, if you are sure that everything is right, i bet you ANYTHING that its jsut that yoru server is running safe mode....

i moved from a working non safe mode server, to one with sm enabled, and 100x checked the paths, and it wont work....everything but writing the darn image file works...db, everything, just no uploading....yes..i chmod...my lil 3 year old sister can chmod...

Tigga 08-29-2002 04:50 PM

Is there a way to get this hack to work with safemode on? I had it installed on 3 different servers without a problem. Now I'm on a new server that has safemode turned on and can't get it to work. It will display the pictures already uploaded and everything seems to work fine except it won't actually upload the picture to the directory. Has anyone gotten this to work with safemode on?


All times are GMT. The time now is 12:38 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.01438 seconds
  • Memory Usage 1,751KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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