Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-05-2001 Last Update: Never Installs: 29
 
No support by the author.

Update : Sept 6
-- Thanks to wajones who pointed out a couple of things, I updated the files.
-- 1. The icons in the top right corner, one of them was suppose to point to the user help file but it was renamed and I forgot to update the code.
-- 2. There was a header error in the admin panel, which was corrected by wajones... if future problems happens please tell me.

------end update.

Well everyone, I decided tonight to release this and just see what happens from there on. I got caught up in working on my multi-page profile for my site, and kind of forgot about this. Sorry I do that a lot, in which I am sure everyone does.

First off... please read all of the files that I have included in this, the Installation.txt file is something I slapped together at the last minute and probably needs proof read... but who cares. The Readme.txt file explains what all the files are, and has some other tidbit information.

The only things you will really need to upload is: upload.php, userhelp.html, vbuploadinstall.php and the images and image folder.

I tried to explain the best way to have it... is putting those three files in the root of your vb folder, then just upload the images folder, which will create a sub folder inside that for the two image icons. Then you will have to create another folder like I suggested named "uploaded" meaning uploaded pictures. Then you will have to chmodd that to 777 and go from there. Then you will have to go through the upload.php file and change the variable preferences to fit your site. I tried to do the best possible explanation of how to do it through my comments throughout the files. So pay attention to those, also feel free to customize the userhelp file to fit your site and everything.

One thing I kind of fell short on.. was a cool profile page.. I mean I included a getinfo template that I used when I first made this, which was on vb2.0.1 and now that added like ignore and stuff so.. you might just want to create your own template up in your favorite web page builder or in notepad.. whatever. And go from there with the variables that I include.

Just pretty much go through the installation files and everything and follow the steps and you should not have any problems.. not saying you won't but... hopefully the F.A.Q. file will help with that.

Some might hate it, some might like it... if you hate it.. don't download it.. or install it.

To uninstall, follow the steps you took to install it and reverse them

ALWAYS BACKUP Before doing hacks... installations, changes, etc!

**Warning** Install at your own risk!

and... there is no place like home! Just remember that!

P.S. search these forums.. for screen shots and there is no demo as of right now... well there was but I Took it down

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 09-14-2001, 05:19 PM
numerodix
Guest
 
Posts: n/a
Default

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

/.
Reply With Quote
  #64  
Old 09-14-2001, 05:37 PM
numerodix
Guest
 
Posts: n/a
Default

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

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

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>
Reply With Quote
  #67  
Old 09-14-2001, 06:16 PM
numerodix
Guest
 
Posts: n/a
Default

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

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.
Reply With Quote
  #69  
Old 09-14-2001, 09:05 PM
numerodix
Guest
 
Posts: n/a
Default

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!
Reply With Quote
  #70  
Old 09-18-2001, 02:47 PM
Kevin Zi Lung
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Nemesis77
Getting this error now

Cannot redeclare stripslashesarray() in /usr/local/httpd/htdocs/TheDaene2/admin/global.php on line 5
I am getting the same error too.. when I got to Control Panel and choose "Edit Photo Uploads"

" 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
Reply With Quote
  #71  
Old 09-18-2001, 11:33 PM
BradC
Guest
 
Posts: n/a
Default

please review above comments.
Reply With Quote
Reply

Thread Tools

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 01:57 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.04957 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_onlinestatus
  • (11)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete