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)

Dean C 11-10-2002 09:06 AM

Please keep this hack erdem.. cuz if u take my suggestions into consideration this would be awesome :)

Regards

- miSt

Sc0rp 11-10-2002 09:17 AM

Quote:

Originally posted by erdem


if you have empty cats u will get that msg again .. because of the error method i used ..

greetz

so when I add some files it should be fixed?

erdem 11-10-2002 09:28 AM

Quote:

Originally posted by Sc0rp


so when I add some files it should be fixed?

or when u add subcats to a cat ..
also files should be open to be viewed .. or submitted via admin panel

TECK 11-10-2002 10:57 AM

what i would do me is merge the hack to the original author.
if it was inspired from arunan's code. in this way is fair for everyone. erdem doesnt lose his work and arunan get's the credit. any mods? let me know what you think.

thanks.

erdem 11-10-2002 11:34 AM

Quote:

Originally posted by TECK
what i would do me is merge the hack to the original author.
if it was inspired from arunan's code. in this way is fair for everyone. erdem doesnt lose his work and arunan get's the credit. any mods? let me know what you think.

thanks.

as mentioned b4 :
coding style , comments and variables are similiar ..
cause as you see in the first post i take drk's hack as a coding guide..

other codes from members.php forum.php and so ..
you can see it via looking into codes ..

also credits on the first post ..

erdem 11-10-2002 11:39 AM

Quote:

Originally posted by TECK
what i would do me is merge the hack to the original author.
if it was inspired from arunan's code. in this way is fair for everyone. erdem doesnt lose his work and arunan get's the credit. any mods? let me know what you think.

thanks.

alright do whatever needed to be done ..

i will add the requested features (mist, lalo landa) if i can figure out those and then release last ver. ..

DrkFusion 11-10-2002 01:11 PM

Possibly a link :D

-Arunan

erdem 11-10-2002 01:13 PM

Quote:

Originally posted by DrkFusion
Possibly a link :D

-Arunan

u mean ?
:p

freesurfer 11-10-2002 09:29 PM

Nice work erdem :) File upload by admin vould be a nice thing :)
Will install it.

-freesurfer

Erwin 11-10-2002 10:06 PM

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.

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

KeneticKangaroo 12-30-2002 03:11 AM

is it confirm that this will worjk on 2.2.9?

freesurfer 01-09-2003 10:40 PM

Hi erdem

1. Is it possible to make some categories accesible for administrator/moderator's only ?

2. I would like to have the posibility to upload files, instead of using the file url.. I dont want to store them in database, but as files..

great hack by the way :)

regards freesurfer

bgtking 01-31-2003 08:17 PM

is it possible to edit the code and add an upload feature?

jarvis 02-08-2003 11:37 PM

Okay, love the hack.

Simple question... I cannot find the $catlist2bit template that is referenced. What I want to do is change the {categoryfontcolor} to a static color as this color does not show up very well on my first and secondalt row colors.

Am I clueless, or where is this template? Thanks!! :D

jarvis 02-09-2003 01:28 PM

Okay, I figured out my above question.

Next question. I see you have updated the zip file in the original post. What are the changes, and is there an upgrade routine that we should run to aply these changes?

Thanks! :nervous:

erdem 02-09-2003 03:04 PM

Quote:

Originally posted by jarvis
Okay, I figured out my above question.
Next question. I see you have updated the zip file in the original post. What are the changes, and is there an upgrade routine that we should run to aply these changes?
Thanks! :nervous:

sorry but there arent any update routine ...
first of all change the files with the new files ...
and if you have an opportunity reinstall file archive system ...
Quote:

1. Is it possible to make some categories accesible for administrator/moderator's only ?
sorry but the system isnt permission based ...
Quote:

is it possible to edit the code and add an upload feature?
yes it is ... but i couldnt ... sorry ;)

i think that there will be some more better ones after release of vb3 ... or b4 some others gonna work on this ... i think this is also someothers to-do list ...
i will update if i can find anyother additions/fix's to this

greetz

jarvis 02-09-2003 03:17 PM

Okay, thanks for the reply.

I will probably uninstall and then reinstall. Seeing as how I just installed and haven't poulated the databases yet, shouldn't be too bad.

Next question. Your update in the first post says to upload and access filesinstall.php? I do not see this in your updated zip file? :ermm:

Also, do you have a changelog as to updated/fixed features in v2.0?

Thanks again!

erdem 02-09-2003 03:28 PM

the zip file's dir skeleton is :

/filearchive
|- admin (dir)
|--> filesadmin.php *
|--> filesinstall.php *
|-> files.php (+)

-> upload these 2 (*) files ur forum admin dir ;
filesinstall.php for install and filesadmin.php for administration ...
delete filesinstall.php after install ...
-> upload files.php to forum main dir ...

i have no changelog ... but some @ my mind ;) ;
-> special characters and bbcodes now accepted ...
-> error at error msg display fixed ...
-> admin panel fixed for new entries and edits ...
-> report file added ...
-> add file template and code fixed ...

greetz

bgtking 02-26-2003 07:57 PM

For the advanced search, would it be possible to order the parks different ways? like by creator or category?

chitown 03-16-2003 02:28 AM

I cannot get it to parse the urls properly, it saves the file, creates the new thread the the url and vbcode is not correct shows the [url] instead of the clickable url

erdem 03-16-2003 10:35 AM

Quote:

Today at 04:28 AM chitown said this in Post #70
I cannot get it to parse the urls properly, it saves the file, creates the new thread the the url and vbcode is not correct shows the [url] instead of the clickable url
open filesadmin.php ;
search for word "thanks" in file , u should find it at $message= ... around line 585 .... replace the current $message with
PHP Code:

    $message="This thread is opened to discuss file which is stated at : [url]"."$bburl/files.php?action=viewfile&f=$fileid1"."[/url]
A little [b]info[/b] on program : 
$data2
Please post your comments on this program to this thread.
Thanks 
$filepr for your submission.
Greetings 
$u"

after this research the word "thanks" it should be around line 715 replace it with
PHP Code:

    $message="This thread is opened to discuss file which is stated at : [url]"."$bburl/files.php?action=viewfile&f=$fid"."[/url]
A little [b]info[/b] on program : 
$data2
Please post your comments on this program to this thread.
Thanks 
$filepr for your submission.
Greetings 
$u"

it should be ok with this ...

chitown 03-16-2003 02:02 PM

nope still not parsed

KelteN 03-24-2003 12:28 AM

I get this error when adding a file:

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1, lastpost='1048472494',lastpost er='ReveX' WHERE forumid IN ()
mysql error: You have an error in your SQL syntax near ')' at line 1

mysql error number: 1064

colicab-d 03-24-2003 10:56 AM

hmm i really wish this took attachments from threads already :P but it doesnt seem to , that and the inability to upload directly is a bit upsetting

anyone made changes to allow this kind of thing or got a dload script that does this? IM DESPERATE

xpguy 04-04-2003 05:35 PM

i cant get it to work after i upgraded to vb 2.3.0 final can anyone help i only get a blank screen and i have tryed reinstalling it.

chitown 04-14-2003 07:54 PM

Is anyone having problems with the $data2 showing anything in the post?
i have this working with everything except that :-(

FrankyRizzo1984 04-15-2003 09:21 PM

Quote:

03-23-03 at 10:28 PM ReveX said this in Post #73
I get this error when adding a file:

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1, lastpost='1048472494',lastposter='ReveX' WHERE forumid IN ()
mysql error: You have an error in your SQL syntax near ')' at line 1

mysql error number: 1064


I am having this error as well. For the first file it worked but after I approved a file somebody else added I get this error every time I try to make file open = yes

FrankyRizzo1984 04-15-2003 09:32 PM

If you have mysql access you can simply add files and approve files through that. It is a bit more work for you but I am in mysql nonstop so it is easy for me

The Wedge 05-05-2003 05:05 AM

this is exactly what i've been looking for my web-page and all i need is a upload feature for the screen shots and files from the user to the web-page and i would be probably the happiest person alive!!!

The Wedge 05-05-2003 05:05 AM

is it possible?


All times are GMT. The time now is 02:52 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.02578 seconds
  • Memory Usage 1,838KB
  • 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
  • (3)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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