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)
-   -   Create files from attachments (https://vborg.vbsupport.ru/showthread.php?t=35744)

Scott MacVicar 03-04-2002 10:00 PM

Create files from attachments
 
This is not like the attachments as files hack, it is simply a way to import files from the attachment table to real files for whatever reason, maybe you just wanted an actualy backup of the files instead of the database.

Simply upload the file into your admin directory.

Open up /admin/index.php

look for

PHP Code:

makenavoption("Back-up Database","backup.php?action=choose","<br>"); 

below it add

PHP Code:

makenavoption("Export Attachments","attachment_export.php?action=import","<br>"); 

done :)

M.Smith 03-05-2002 06:44 PM

another useful hack from scott, the new mod

Jadelit 03-05-2002 09:03 PM

I dunno if its just me, but when I press the link to it:

Code:

http://forums.jadelit.com/admin/attachment_export.php&s=6d2a081fa5f4a3ab0e24df9b210dbb83
it gives a 404, but when i go to

Code:

http://forums.jadelit.com/admin/attachment_export.php
it works fine...

?

Jawelin 03-05-2002 09:30 PM

WoW!!! ;)
The long-awaited stand alone exporter !!! Great!
(Scott, do you remember our thread about in beta ? ;) )

This point, seems it's missing only the 2-way converter, if anyone would come back to the db-version of attachments...
:D :D :D :D :D :D :D
I'm jokin'... of course.
Great job as usual.
Bye

Scott MacVicar 03-05-2002 09:30 PM

em i missed the action bit, re-apply the change to your /admin/index.php from the first post

Scott MacVicar 03-05-2002 09:38 PM

On a side note, this hack RELIES on two files not having the same name, if they do it will just rewrite the first one with later ones.

Jadelit 03-05-2002 09:47 PM

ok great, thanks

Lucky 03-05-2002 11:12 PM

Are you sure that this:
if ($action == "import") {
doformheader("attachment_import","doimport");
maketableheader("Add New Forum");

Shouldn't be this:
if ($action == "import") {
doformheader("attachment_export","doimport");
maketableheader("Add New Forum");

Aaow AnD wHiTe 03-06-2002 08:53 AM

Thx Scott :) This is our first request that has actually turned into a hack, LOL!!

Thanx buddy, gonna use it right away ;)

Aaow AnD wHiTe 03-06-2002 09:22 AM

Well, it has worked really well... Now we have a HUGE folder with a LOT of attachments! :D

Would it be possible to make a zipped output of the backup instead of all the files in one folder?

Thanx again for the hack ;)


All times are GMT. The time now is 06:22 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.01125 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_php_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
  • (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