Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2006, 09:33 PM
xStylezx xStylezx is offline
 
Join Date: Mar 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default ezUpload form

Hey,hows it goin everyone.Ive been wrestling with code since yesterday evening trying to get the upload form for ezUpload to work within one of my templates in Logicians Web Template product.Ive tried a number of different ways to insert a php include as thats what is needed to insert the form on the page.I know the variables ive defined work as i did a couple test variables and then dropped the variable into my desired web template and the output was as desired.I however,cant seem to get a php include to work within a variable so that i can call it in my web template.Here are a couple of methods ive tried

This was placed in the view.php that accompanies the Web Template product.

Code:
//$EZpath = "/home/xstylezx/signyourmelonz.com/ezupload/";
//$EZinclude = include("/ezupload/form.php"); 
//$FanSignUpload = "$EZpath . $EZinclude";
ive got the variables commented out right now as i was trying another method to do an include that i found on vbulletin.com.Will discuss that in a moment.

As you can notice,ive tried creating a variable with the path to ezupload directory(which is basicly what was done with the default code supplied by the ezupload install to include it in your page.).I then tried to create a variable with the include(as a note,ive tried many combos of this,even removing the /ezupload/ from the include variable,leaving form.php as path and no cigar either).Finally i created one more variable with my $EZpath and $EZinclude concantenated.The output of all this was an error,not fatal as i didnt use require.The error was basicly the same no matter what way i worked my 3 variables mentioned above


Code:
Warning: main(/ezupload/form.php): failed to open stream: No such file or directory in /view.php on line 105

Warning: main(/ezupload/form.php): failed to open stream: No such file or directory in /view.php on line 105

Warning: main(): Failed opening '/ezupload/form.php' for inclusion (include_path='.:/usr/local/lib/php') in /view.php on line 105
So,then i found this piece of code on vbulletin.com

Code:
ob_start();
   include('path/to/this/file/myfile.php');
   $includedphp = ob_get_contents();
ob_end_clean();
It was mentioned you could add this to global_start.Before i tried that,i went ahead and modified the path and added this code to view.php(included with Web Template product)

Code:
ob_start();
           include('/home/xstylezx/signyourmelonz.com/ezupload/form.php');
           $includedphp = ob_get_contents();
        ob_end_clean();
This got me excited as it seems i was getting closer as i believe my page read form.php but seemed to choke on finding the /files/ directory,where the uploaded files are stored.The exact error reads as

Error, the script couldn't find the upload directory (files/). Please make sure it exists.

I received the same error when i added the code into global_start under the Web Templates product.I tried doing some more hacking around and havent yet gotten past this error.Im in need of some help by someone more advanced in php than me.Im just a beginner,but have already surprised myself by working out alot of issues before these.Here is the original code provided by the ezupload install to use on your site

Code:
<?php $path = "/home/xstylezx/signyourmelonz.com/ezupload/"; include( $path . "form.php" ); ?>
Help working this out would be greatly appreciated.If you could also explain why my attempts arent working out and why yours does would be great also.Im trying to learn to code,so the more i understand the better.Thanks again
Reply With Quote
  #2  
Old 06-15-2006, 10:56 PM
xStylezx xStylezx is offline
 
Join Date: Mar 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Curious if anyone has any ideas??Im a bit stumped as to where to go from here
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 12:18 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.03409 seconds
  • Memory Usage 2,168KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete