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)
-   -   Advanced File Archive 2.0 (https://vborg.vbsupport.ru/showthread.php?t=45454)

Sebastian 11-11-2002 12:24 AM

This is a cool hack, I installed it :)

I would like to be able to upload files too! And make comments too! Do it! gogoggo!!!!! Good job!

erdem 11-11-2002 03:24 AM

Quote:

Originally posted by Erwin
Just give credit to Drkfusion, and keep the hack threads separate. :) Giving credit can't be that hard - a quick "code partially based on .... etc." would suffice.
look at first post ...
every credit in it ... anything missing ?

Sebastian 11-11-2002 04:39 AM

Quote:

Originally posted by erdem
... anything missing ?
yes, upload attachment ability and post comments :D ;)

erdem 11-14-2002 02:07 PM

i am working on attachments ..
but i cant store files on database ..

i try to use similiar function as vb used but i cant upload any file to db ...

anyone can help me on this ?
tnx

BeatDown 11-14-2002 04:14 PM

Quote:

Originally posted by erdem
i am working on attachments ..
but i cant store files on database ..


I'd actually perfer if the files themselves were not in the database. :)

Dean C 11-15-2002 03:26 PM

Well i'd prefer them to be stored in the database with the option maybe to turn that feature off

- miSt

erdem 11-15-2002 04:01 PM

Quote:

Originally posted by Mist
Well i'd prefer them to be stored in the database with the option maybe to turn that feature off

- miSt

and help ?
:ermm:

Dean C 11-15-2002 05:38 PM

Unfortunately i dont have any great experience with coding :)

- miSt

erdem 11-16-2002 04:20 AM

allright here is what i did :
*code modified from newthread.php and acceptupload function *

this is the code in files.php .. with this code if admin set submissions on user can submit files .. but not working .. :(
PHP Code:

    if (is_array($HTTP_POST_FILES)) {
    
$attachment $HTTP_POST_FILES['attachment']['tmp_name'];
    
$attachment_name $HTTP_POST_FILES['attachment']['name'];
    
$attachment_size $HTTP_POST_FILES['attachment']['size'];
    if (
is_uploaded_file($attachment)) {
    if (
$safeupload) {
      
$path "$tmppath/vba".substr(uniqid(microtime()),-8);
      
move_uploaded_file($attachment"$path");
      
$attachment $path;
    }

    
$attachment_name strtolower($attachment_name);

    
$filenum fopen($attachment,"rb");
    
$filestuff fread($filenum,$filesize);
    
fclose($filenum);
    @
unlink($attachment);

    
$DB_site->query("INSERT INTO file_attach (aid,userid,filename,filedata,fileid) VALUES (NULL,$bbuserinfo[userid],'".addslashes($attachment_name)."','".addslashes($filestuff)."',$id)");
    
$aid=$DB_site->insert_id();
    }
    } 

info : i created my own attachment table for files archive .. and editted * a little * the vb functions ..

if i can figure out how i will add this also to admin panel ..

greetz

Si9naL-9 11-17-2002 01:34 AM

has anyone thought about adding a batch build capability so that you could use the admin to generate the cats and sub cats, and then you just upload the files.. the script will then parse all the dirs for files and filenames.. calculate the size, and then build the links.

This is what I have been searching for.

MyeGallery has it. but the download plugin which makes the files downloadable is bugged, but the batch build functions work fine..

maybe someone can combine that with this?

the site for MyeGallery is http://www.marsishere.net


All times are GMT. The time now is 11:43 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.01104 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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