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)

Kevin Zi Lung 09-19-2001 12:25 AM

I did, but can't find a solution.. my english isn't that good either.. :)

BradC 09-19-2001 03:41 AM

Need to check your copy paste job..

from looking above.. the solution was going back and finding an error in posting in the wrong place of the vb file.

Kevin Zi Lung 09-19-2001 12:02 PM

Thanks, I found the error.

Think you did a mistake in your filechanges.html file:

Changes to admin/user.php:

find:
<?php
and right below that put this!:

error_reporting(7);
require("./global.php");
/* ......

-

then there's going to be two of error_reporting and require in the same file - to solve it: simply delete the other two below the part you pasted in :)

BradC 09-19-2001 02:19 PM

true thanks for the heads up on that...

that was changed code after the release.. so it was a sloppy job of fixing it up lol.... but none the less should be fixed.

when I get home I will update it again.. although I thought I did.. maybe I left that on my laptop.. and forgot to upload it :(

SirSteve 09-19-2001 02:24 PM

So let me get this straight... this hack is used to add a picture of yourself (or whatever) in your profile? If yes, what if I would want to have this option only available to those who earned the right to upload when they hit a certain amount of posts like the avatars?

ToraTora! 09-19-2001 03:42 PM

The user posts, or time accumulated as a member, coupled with our mini gallery hack, is something that will appear in future versions.
For now though, this version is all that is being currently supported, documented, and released until we decide on the other aspects of the hack.

SirSteve 09-19-2001 05:46 PM

I added the hack and have these problems:

It uploaded with no errors but this is what gets displayed after a pic is uploaded:

"Last Updated : @"

Isn't the picture supposed to be viewed on the Get Info (Profile For) page?

Mine doesn't display. You can view it here:
http://www.sirstevesguide.com/forums...tinfo&userid=2

ToraTora! 09-19-2001 08:00 PM

well, the only thing i get is a user permission screen when i click on the link, and personally, im not signing up for anymore boards...lol..:)

The only advice i can offer, is to read through this thread. If your pic is not showing up, there are at least a dozen reasons why, however, the most likely is that you entered in the member.php information incorrect.
If you are not recieving any errors during, or after uploading, than it tells me you have chmod the folder correctly, and have the path correctly entered. To make sure, check your folder, and see if there is any pictures that you have uploaded inside it. If there is, like i have stated before, you have entered in your member.php information incorrectly, Not created the proper adderess in the show template, or have not used the correct variable to display the picture.

SirSteve 09-19-2001 09:39 PM

Quote:

Originally posted by ToraTora!
well, the only thing i get is a user permission screen when i click on the link, and personally, im not signing up for anymore boards...lol..:)

The only advice i can offer, is to read through this thread. If your pic is not showing up, there are at least a dozen reasons why, however, the most likely is that you entered in the member.php information incorrect.
If you are not recieving any errors during, or after uploading, than it tells me you have chmod the folder correctly, and have the path correctly entered. To make sure, check your folder, and see if there is any pictures that you have uploaded inside it. If there is, like i have stated before, you have entered in your member.php information incorrectly, Not created the proper adderess in the show template, or have not used the correct variable to display the picture.

Ok, I was able to get the photo to show. Now the only problems I have now are the following calls not displaying the information:

$pic_lastupdated and $time4lastupdate
$Width_Restrictions
$Type_Restrictions

I can dummy out the last two but need the first one working. Other than that, nice looking hack!

Also, when I click on Edit Photo Upload via admin CP, I get this:
Fatal error: Cannot redeclare stripslashesarray() in thiswasdeleted/forums/admin/global.php on line 14

Line 14 states:
$arr[$key]=stripslashes($val);

And how do I get the upload.php page to have the vbulletin header and footer?

BradC 09-20-2001 01:17 AM

Quote:

Originally posted by SirSteve


Ok, I was able to get the photo to show. Now the only problems I have now are the following calls not displaying the information:

$pic_lastupdated and $time4lastupdate
$Width_Restrictions
$Type_Restrictions

I can dummy out the last two but need the first one working. Other than that, nice looking hack!

Also, when I click on Edit Photo Upload via admin CP, I get this:
Fatal error: Cannot redeclare stripslashesarray() in thiswasdeleted/forums/admin/global.php on line 14

Line 14 states:
$arr[$key]=stripslashes($val);

And how do I get the upload.php page to have the vbulletin header and footer?

As if you did not know.. from reading above.. oh wait maybe you didn't.. and yes I am not in that good of a mood. Because of college problems..

if you would simply look above you can see the the stripslashesarry problem... and the new zip fixed it.

As for the variables not showing up... that was a given, RobAC pointed that out, and I still have not solved that mystery.

There was no header or footer added to my addon, and since it seems you did not read my documents.. I will not support nor will I help change the layout design of it. So if you want to add to it, someone else will help you out if they want to.


All times are GMT. The time now is 09:32 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.01214 seconds
  • Memory Usage 1,746KB
  • 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)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