The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#62
|
|||
|
|||
As I explained earlier, I have indeed created a dir for the uploaded pictures, I have succeeded in uploading from the upload.php file, which paths read as follows:
require($DOCUMENT_ROOT . "/forum2/global.php"); $path = "/usr/home/martin/www/forum2/images/uploaded"; $cpurl = "http://www.juventuz.com/forum2"; $shortpath = "/forum2"; $imagepath = "/forum2/images/uploaded"; The picture comes up alright in the upload.php script, it does indeed upload to the specified dir, everything seems to be in order, except for displaying it in the user profile. I can also handle the pics alright from the Admin CP. I really appreciate you people trying to help me but I wouldn't have said what I did in the first post about all those thing working well if I had missed these things you mention. There must be some other possibility... |
#63
|
||||
|
||||
/.
|
#64
|
|||
|
|||
Well I changed them now and the upload also works with
$path = "/usr/home/martin/www/forum2/images/uploaded"; $cpurl = "http://www.juventuz.com/forum2"; $shortpath = "/forum2"; $imagepath = "images/uploaded"; But that doesn't change anything, the user profile still comes up empty. The $picture_name variable in getinfo is not assigned for some reason. |
#65
|
|||
|
|||
ok...hear me out..there are a couple things that may of happened.
1) CHMOD the folder incorrectly. 2) template for photo show is done incorrectly 3) Check the folder, to make sure there are pictures in there. also, are you uploading just jpg's? are they the rite size? 4) If there are pictures in there, than all that is needed is: $picture_name in the getinfo template, and for photoshow, the variable should be $userinfo[picture_name] along with the img src path. The member.php file, for showing the picture is this: if ($userinfo[picture_name] !="") { eval("\$picture_name = \"".gettemplate("photo_show")."\";"); } else { $userinfo[picture_name]=$userinfo[picture_name]; eval("\$picture_name = \"".gettemplate("photo_unknown")."\";"); } Make sure you didnt change any of that info. Also, check if there are no images in the upload folder, that your server information is completely filled out. (below) It did give me the indication the first time i monkeyed with this, that it did indeed upload, however, watching the upload error message area, it did not..so this is something you should do to pinpoint or describe to us in detail what is going on to us as well. define("SQL_SERVER", "localhost"); /* Server Name */ define("SQL_UID", "namehere"); /* Username */ define("SQL_PWD", "passwordhere"); /* User Password */ define("SQL_DB", "db name here"); /* Database Name */ |
#66
|
|||
|
|||
this is what your photo show template should resemble like..
I added a few things to keep my mini gallery in check, but the main premise of what Brad did with this, is listed below, off a working board. (images is our "uploaded" folder) <img src="images/images/$userinfo[picture_name]" height="150" width="150" alt="$userinfo[username]'s personal pic"><br> |
#67
|
|||
|
|||
Yep, it's all there:
1. 777 should be enough 2. nope, according to instructions 3. yep, it's all there, jpg and under the size limit 4. yep, all according to instructions The upload script gives no errors at all. I changed the db info around, and it gave no errors with incorrect password when uploading pictures. What puzzles me is that the info entered there is the same as in the admin/config.php file and changing the info there obviously resulted in a failure to log into the dbase... So the upload.php script does in fact not required correct dbase info, it seems to work anyhow. It seems this is vey hard to get working. Could one of the experts here perhaps have a look at my set up? |
#68
|
|||
|
|||
Well, from personal experience, it seems at first that the uploader does not need server information. I was the first to test this out, so i know from past experiences, that if none of the info is entered in the data base variables, it will not work. It will act like it is uploading, but it wont. I tried sneaking a couple of quick variables in there, and it still would not let it go past, so..i added every bit and piece of server info i could, and than it uploaded.
However, you are saying, that it is uploading pictures, so obviously it is a matter of just pulling the pictures out, and into your getinfo area. If the information that is provided for the member.php script is correct, and it is entered rite above the: "// get last post" area, than it should work without a problem. This would leave the photo_show template at fault. I gave a img src and variable example above, so that should work to bring out the picture. Obviously, from what you are stating, all information has been entered. So, that leaves once again, your image paths. If it is uploading to your folder, and there are pictures in there, than the only thing, if everything else is done rite, is the return path from the image folder. Obviously, there is a problem with one of your paths. Have you checked your: require($DOCUMENT_ROOT . "/vb/global.php"); Also, are there pictures being displayed within the upload area? They work off a image path as well, so if there is something wrong with the image path, they will not display, even if you uploaded a pic. did you change any of the varible names such as: chacha, or picture_name anywhere in the script? Without the chacha variable, there will be no way of pulling the picture out of the folder. |
#69
|
|||
|
|||
DUH!!!!! Okay I feel like an idiot now. And so I should. I'm really sorry to have taken up so much of your time, people and thanks a lot for the help!
I thought it was something serious and it was my fault all along. I checked what you said about "// get last post" area and realized that I had pasted Brad's code in the wrong place. The editor I'm using doesn't have the ability to search for multiple lines of text so I ended up inserting the code in a different function which was of course pointless! Then I checked the install directions to check whether there was a bug there, maybe two occurences of the code given. But no. It was my fault all along. But it's typical in a way. To mess up in an easy place. It would have been more likely to get the paths wrong or the dbase info. But no, this is my destiny... I can't believe you are still reading... Anyhow, THANKS AGAIN to everyone that has tried to help out, I really appreciate it! |
#70
|
|||
|
|||
Quote:
" Fatal error: Cannot redeclare stripslashesarray() " Line 5 in my global.php function stripslashesarray (&$arr) { <- line 5 while (list($key,$val)=each($arr)) { How can I fix it? I would like to be able to delete a user's photo |
#71
|
|||
|
|||
please review above comments.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|