Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #112  
Old 10-12-2001, 05:05 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could someone help me. when i upload a picture. it says that it uploaded it but i cannot find the file. i have the upload path settings correct but it still wont work.. here is my code
Quote:
/* Folder variables */

/*-----------------------------------------------------------------*/

$path = "/home/username/public_html/images/uploaded";

/* this is the path to your uploaded */

/* image folder where the pictures */

/* are going to be stored. */

$cpurl = "http://animegathering.com/";

/* The path where your vb files are */

/* located at */

$shortpath = ""; /* folder where the file is located */

/* anything after the domain name */

/* like www.domain.com/vb/...file */

$imagepath = "/images/uploaded";

/* folder where the uploaded images */

/* are going to be stored. This will */

/* be used to pull the images up to */

/* show on this page. */
Reply With Quote
  #113  
Old 10-12-2001, 05:30 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also it seems it wont let me upload .gif files.

Quote:
/* File Type Restrictions Variables */
/*-----------------------------------------------------------------*/
$max_height = "200"; /* Max Image Height */
$max_width = "200"; /* Max Image Width */
$Size_Restrictions = "2000000"; /* image size limit in bytes */
$Width_Restrictions = "200"; /* your width limit */
$Height_Restrictions = "200"; /* your height limit */
/*-----------------------------------------------------------------*/
/* If you want to have it chosen where you can enable users to be */
/* able to upload gif formated pictures to... then use this next */
/* line that is commented out, instead of the other one. */
$Type_Restrictions = "jpg,gif,jpeg"; /* your upload file types */
/* $Type_Restrictions = ""; /* your upload file types */
//*---------------------------------------------------------------*//
/* This is where you fill in your server information so that it */
/* knows where and what to connect to. */
i use this code but it does not work.
Reply With Quote
  #114  
Old 10-12-2001, 10:24 PM
BradC
Guest
 
Posts: n/a
Default

At first glance.. I cannot actually tell why it won't upload or it uploads but you can find it..

I take it your public_html folder is your root web folder, and inside that folder is some vb files, like index.php, member.php, register.php and that inside that is your admin, mod, images folder..

and inside the images folder is the uploaded folder.. which is set to chmod @ 777..

and you have your actual username.. or account name instead of username in this next lines username area..

$path = "/home/username/public_html/images/uploaded";


IF so.. then I am not for sure.. it does not show up at all anywhere on the server.. does the script find it? Like after it refreshes.. does it show the image, or a small box with a Red X in it?

Also on the second question you asked.. there is one more section.. that needs to be changed.. to be able to use gif... which is on line. 307.. that reads and looks like this.

PHP Code:
       /* again if you are giving the users the ability to upload gif formated pictures use the commented out line */
    /* else if (($picture_type != "image/pjpeg") && ($picture_type != "image/jpeg") && ($picture_type != "image/gif")) */
    
else if (($picture_type != "image/pjpeg") && ($picture_type != "image/jpeg")) 
hope that helps..

just reply either way.. so I know and if it does not.. we can take it another step
Reply With Quote
  #115  
Old 10-13-2001, 11:50 AM
joergh's Avatar
joergh joergh is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

i had problems with this hack. Upload went well but for heavens sake the photos weren?t shown in the profiles of my users.

After testing eveything (chmod, paths ..) teh solution for my problem was the following:

I took the second solution for the getinfo-template from the html-filechangesfile:

Edit to this template:
getinfo

And add these two variables:

Original (no Fotos):
PHP Code:
$picture_name 

$userinfo
[photodesc
My version (finally the Fotos work)

PHP Code:
$userinfo[picture_name]

$userinfo[photodesc
Of course its easy but it took my some evenings to find this

Hope it helps ...

but i have one last question for this hack:

Is it possible to define a standard-pic (f.e. nofoto.jpg) for users that havn?t uploaded their photo yet?

joergh
Reply With Quote
  #116  
Old 10-13-2001, 03:11 PM
BradC
Guest
 
Posts: n/a
Default

Glad that way works for ya... interesting... never really tried it that way.

and yes... I know a couple of people that added a no photo for those users that don't have a photo..

in your template named : photo_unknown


it says this

"Sorry, No Photo Available"

just change that to have an image instead of saying text..

like

<img src="images/nophoto.jpg">

or something like that..
Reply With Quote
  #117  
Old 10-13-2001, 07:25 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the help. i am now able to show the image, which it only showed a box with a red x in it before. but i still cant get it to upload .gif files it gives me a erroe saying its not one of the correct files extensions.
Reply With Quote
  #118  
Old 10-14-2001, 08:04 AM
BradC
Guest
 
Posts: n/a
Default

Here is the code I have in my script..

PHP Code:
else if (($picture_type != "image/pjpeg") && ($picture_type != "image/jpeg") && ($picture_type != "image/gif")) 
now on my personal sites I don't allow gif's for my own personal reasons..

but maybe instead of being && .. && make it OR.. like this

PHP Code:
else if (($picture_type != "image/pjpeg") or ($picture_type != "image/jpeg") or ($picture_type != "image/gif")) 
and see if that fixes it or helps it.
Reply With Quote
  #119  
Old 10-14-2001, 04:15 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

umm ok i try that aswell and it still does not seems to want to wrok so i got the upload.php file and if you could take a quick look and see if their is anything wrond that would help out alot.
Reply With Quote
  #120  
Old 10-14-2001, 05:37 PM
BradC
Guest
 
Posts: n/a
Default

Yah forgot to change what I said above..

but that is ok..

you were suppose to uncomment this line:

PHP Code:
    else if (($picture_type != "image/pjpeg") && ($picture_type != "image/jpeg") && ($picture_type != "image/gif"))
    
/* else if (($picture_type != "image/pjpeg") && ($picture_type != "image/jpeg")) 
but ya left that commented and just changed it from && to or.. and left the other one uncommented..

but I attached it again so see if this new one works
Reply With Quote
  #121  
Old 10-14-2001, 05:55 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats alot this really help. to bad i cant think or i would have figured it out
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:04 PM.


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.08327 seconds
  • Memory Usage 2,320KB
  • 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
  • (6)bbcode_php
  • (2)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
  • (2)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
  • (6)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