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)

Nemesis77 09-11-2001 06:57 PM

Getting this error now

Cannot redeclare stripslashesarray() in /usr/local/httpd/htdocs/TheDaene2/admin/global.php on line 5

<?php
if (isset($explain)) {
$showqueries=1;
}
if (isset($showqueries)) { <---Line 5
$pagestarttime=microtime();
}

This is the first time i've had probs installing a hack. please help.

Edit: I just removed the code that was suppose to be added to the User.php file and now when i click the link in the admin CP I get the screen that is supposed to come up listing all the members and showing the photos they have uploaded, but not showing photos casue no one has uplaoded any. This is weird. Where is the link on the board supposed to be after this hack is install Successfully? in the User CP under Profile?

BradC 09-12-2001 01:51 AM

Quote:

Originally posted by Reeve of Shinra
I cant figure out what it might be ... unless its my ip but thats not been a factor before...
It sounds more like you did not upload and run the vbuploadinstall.php file to me.

BradC 09-12-2001 01:54 AM

Quote:

Originally posted by Nemesis77
Edit: I just removed the code that was suppose to be added to the User.php file and now when i click the link in the admin CP I get the screen that is supposed to come up listing all the members and showing the photos they have uploaded, but not showing photos casue no one has uplaoded any. This is weird. Where is the link on the board supposed to be after this hack is install Successfully? in the User CP under Profile?
I have never got the error that you got... nor do I think it is because of the hack unless something was not installed.. or missed.. but that is strickly my opinion.

And yes in the user cp, is where you can put the upload script... that is where I put it or you can put it wherever you want.

Simple go into your usercpnav template file and add a link to it..

numerodix 09-14-2001 08:03 AM

I just installed the upload hack last night and I can't get it to work properly. Uplading from the CP is ok, viewing them is okay. The pictures come up in the right dir and all. The problem is in the user profile. The photo desc comes up alright, but not the pic itself:
http://www.juventuz.com/forum2/membe...tinfo&userid=3

I followed the instructions and there seems to be a problem right about here:

Code:

  if ($userinfo[picture_name] !="") {
    eval("\$picture_name = \"".gettemplate("photo_show")."\";");
  } else {
    $userinfo[picture_name]=$userinfo[picture_name];
    eval("\$picture_name = \"".gettemplate("photo_unknown")."\";");
  }

What happens is that $picture_name in the getinfo template seems to remain empty. Instead of displaying photo_show or photo_unknown it doesn't display anything. There is nothing at all in the html code where that is supposed to come up.

The reason for all that could possibly be in the upload.php file itself, leaving the variable empty. I may be completely off course, trying to reason despite my ignorance of php and mysql.

Upload is at:
http://www.juventuz.com/forum2/upload.php

webhost 09-14-2001 10:37 AM

Do You have this in the getinfo template?
F1F1F1 is firstaltcolor and DFDFDF is secondaltcolor
PHP Code:

<tr>
    <
td bgcolor="#F1F1F1"><normalfont></normalfont><b>$userinfo[username]'s
      Photo</b></td>
    <td bgcolor="#F1F1F1"><normalfont>$picture_name<br><br>$userinfo[photodesc]</normalfont></td>
</tr> 

Should be right above this.
PHP Code:

<tr>
    <
td bgcolor="#DFDFDF"><normalfont><b>Date Registered:</b></normalfont></td>
    <
td bgcolor="#DFDFDF"><normalfont>$userinfo[datejoined]</normalfont></td>
</
tr


numerodix 09-14-2001 02:10 PM

I most certainly do:

Code:

<tr>
        <td bgcolor="#DFDFDF"><normalfont><b>$userinfo[username]'s
      Photo:</b></normalfont></td>
        <td bgcolor="#F1F1F1"><normalfont>$picture_name<br><br>$userinfo[photodesc]</normalfont></td>
</tr>

That is why I'm amazed it comes up empty. I made it work using <img src="path/$userinfo[picture_name]"> in the getinfo template but then a broken image comes up if a user doesn't have a photo.

webhost 09-14-2001 02:29 PM

Got this in member.php

PHP Code:

//* BradC's vB Photo Upload Script : Start
  // Photo Upload
  
if ($userinfo[picture_name] !="") {
    eval(
"\$picture_name = \"".gettemplate("photo_show")."\";");
  } else {
    
$userinfo[picture_name]=$userinfo[picture_name];
    eval(
"\$picture_name = \"".gettemplate("photo_unknown")."\";");
  }
  
// End Photo Upload
  // Photo Description
  
if ($userinfo[photodesc] !="") {
    eval(
"\$photodesc = \"".gettemplate("postbit_photodesc_unknown")."\";");
  } else {
    
$userinfo[photodesc]=$userinfo[photodesc];
  }
  
// End Photo Description
//* BradC's vB Photo Upload Script : Finish 


BradC 09-14-2001 02:54 PM

I am to busy at work right now to support you or anyone... because I am support in the life insurance business... and umm lets just say it is extra hectic.

But.. I will say.. please make sure you go through all of my files to make sure you add all the code and make all the necessary changes to work, cause without every single one of the steps being followed it will not work for you.

numerodix 09-14-2001 03:07 PM

Yes, of course I do, webhost. What I posted the first time was a part of that code as you can see. I followed all the steps as I said, except from the ones to give mods access to the pics (which are optional according to the hack guide).

ToraTora! 09-14-2001 03:57 PM

My guess, is that you have entered the wrong path, or not created a folder for the picture to reside in.
Brads instructions were to create a folder, that was named appropriately, "uploads" inside your image directory.

So, if your user name is gumdrops, and your vb folder name is poster, and the folder that should be named "uploads" (for the uploaded pics) is indeed named uploads, this is the path, that should be entered into the area that asks for $path=

here we go..a example.

$path = "/home/gumdrops/public_html/poster/images/uploads";


All times are GMT. The time now is 06:16 PM.

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.01318 seconds
  • Memory Usage 1,760KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (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