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)

SirSteve 09-20-2001 01:53 AM

Quote:

Originally posted by BradC


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.

'

Guess I will wait until you are in a better mood because I looked at the new zip and don't see any changes in the files from the one I got early today to fix the stripslashesarry. Perhaps I am blind.

BradC 09-20-2001 02:55 AM

perhaps reading the threads before this...

someone or a few people have had this problem.

and yes in the html instructions file it was changed.

Ok.. might as well explain it.

when you add the code in the admin/user.php file, at the very top you are doubling the error_reporting line..

when I had.. find <?php ... and then after that I put paste this code under that, ... I had you in a sense doubling the error_report .. which gives you that, cause it is trying to do it twice.. and it can only do it once.

so go into your admin/user.php file, look at the very top.... right above <?php trace that down to where it says.. error_reporting(7);

and delete that line all the way up to the <?php line... leaving that line..

the instructions now say... find :

<?php
error_reporting(7);

and right underneath that paste this code:

PHP Code:

require("./global.php");
/*
Auto center window script- snyx (<a href="http://snyxmedia.com" target="_blank">[url]http://snyxmedia.com[/url]</a>) DO NOT REMOVE!
*/
echo "<SCRIPT language=\"javascript\" type=\"text/javascript\">\n";
echo 
"<!--\n";
echo 
"var win = null;\n";
echo 
"function NewWindow(mypage,myname,w,h,scroll){\n";
echo 
"LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;\n";
echo 
"TopPosition = (screen.height) ? (screen.height-h)/2 : 0;\n";
echo 
"settings =  'height='+h+',width='+w+',top='+TopPosition+',left ='+LeftPosition+',scrollbars='+scroll+',resizable'\n";
echo 
"win = window.open(mypage,myname,settings)\n";
echo 
"if(win.window.focus){win.window.focus();}\n";
echo 
"}\n";
echo 
"\n";   
echo 
"//--></SCRIPT>\n";
echo 
"\n"

end result it should like this.. starting from line 1:

PHP Code:

<?php
//* Modified by Brad Clampitt *//
error_reporting(7);
require(
"./global.php");
/*
Auto center window script- snyx (<a href="http://snyxmedia.com" target="_blank">[url]http://snyxmedia.com[/url]</a>) DO NOT REMOVE!
*/
echo "<SCRIPT language=\"javascript\" type=\"text/javascript\">\n";
echo 
"<!--\n";
echo 
"var win = null;\n";
echo 
"function NewWindow(mypage,myname,w,h,scroll){\n";
echo 
"LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;\n";
echo 
"TopPosition = (screen.height) ? (screen.height-h)/2 : 0;\n";
echo 
"settings =  'height='+h+',width='+w+',top='+TopPosition+',left ='+LeftPosition+',scrollbars='+scroll+',resizable'\n";
echo 
"win = window.open(mypage,myname,settings)\n";
echo 
"if(win.window.focus){win.window.focus();}\n";
echo 
"}\n";
echo 
"\n";   
echo 
"//--></SCRIPT>\n";
echo 
"\n";

does this help...

ToraTora! 09-20-2001 03:01 AM

i think from now on, im not going to include instructions for anything i ever release again. Just because of the simple fact, everything winds up here one way or the other.

ToraTora! 09-20-2001 03:03 AM

I wonder if brad could of made us scroll just a bit more to the right.....lol..

SirSteve 09-20-2001 03:06 AM

Now I see it and I got it. I didn't see there were two sets of error_reporting(7); and require("./global.php");

Thank you for your time. Exceptional hack!

BradC 09-20-2001 03:28 AM

hey I am just glad it works... :)

and don't make me make you guys scroll more to the right :D

and.. sorry if I seem pissed off for the next couple of weeks.. and well for the last couple of weeks lol..

at my college, which I am going to be graduating in November, they have all my grades and GPA all messed up. I have a 3.9GPA and they say I have a 3.23... which makes no sense... so I have been frustrated and irriated at all of the crap I am having to go through to get this fixed, before I graduate.. cause this is something that I will be showing to employers... and a 3.9 looks better than a 3.23 lol

maverick1236 09-21-2001 02:11 PM

i cannot-no matter what i try-get this hack to work :(

is there any way u can make it so this "upload.php" connects to the database without a user typing his mysql info in-like some other hacks?

i know this will fix it :)

BradC 09-21-2001 02:53 PM

why can't you find your config.php file in your admin folder for your vb files..

in there is the information you need if you say *it will fix it* just copy over the information.

maverick1236 09-25-2001 01:14 AM

nothing works

ive even had an experienced webmaster try-no-go

will their be any updates with the coding?-or should i delete the code?

tx

BradC 09-25-2001 01:25 AM

I know for a fact that it cannot be this tuff to figure out.. and I know a lot of people have tried to help you with this...

There will probably not be any updates for awhile for this.. ohh sure I have updated it a lot for my site, and everything but I don't know if I will release my updates.

See the thing is that it works for me perfectly on my servers, it is hard to get something to work smoothly and problemless on all server types and configerations.. ya know..


All times are GMT. The time now is 09:34 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.01376 seconds
  • Memory Usage 1,751KB
  • 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_php_printable
  • (1)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