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)
-   -   Admin Functions (https://vborg.vbsupport.ru/showthread.php?t=23692)

JJR512 08-07-2001 10:11 PM

Is this fully compatible with 2.0.3, or does it need new instructions, or what?

dwh 08-08-2001 03:08 AM

Cool hack, now if you could add an optimizer that optimizes all pics with 100% no lossy compressions that would be the end of the world. Are there any functions for this?

eva2000 08-16-2001 08:53 AM

can this hack be modified to display a gallery like page (similar to the admin view of smilies/avatars) for attachments specific to a forum?

i.e.

gallery.php?s=&forumid=1

?

Nicholas Brown 08-16-2001 10:38 PM

Quote:

Originally posted by Fryzid
In rematt.php
Code:

$DB_site->query("UPDATE post SET attachment=0 WHERE postid='$postid'");
should be
Code:

$DB_site->query("UPDATE post SET attachmentid=0 WHERE postid='$postid'");
Don't know why noone else discovored this.

Actually, correct me if Im wrong but setting the attachementid=0 wouldnt remove the attached file, it would just set its id to 0.

Fryzid 08-17-2001 07:04 AM

Quote:

Originally posted by Nicholas Brown


Actually, correct me if Im wrong but setting the attachementid=0 wouldnt remove the attached file, it would just set its id to 0.

Try to find a field called attachment in the post table. It does not exist.
Threads with no attachment have set the attachmentid to 0.
The actual delete is done in the line above
Code:

$DB_site->query("DELETE FROM attachment WHERE attachmentid='$attachmentid'");
Another thing I found is that the attachment count is not reduced when you delete an attachment.

ethank 08-18-2001 03:06 AM

Tubedog

How difficult would it be to add an option to save attachments to the file system on the server?

Ethan

ethank 08-18-2001 08:18 PM

To answer my own question:

Not too difficult at all!

I hacked in code that allows me to search for threads with attachments in a certain folder, then save all attachments with extension X to the file system, in a directory like this THREADID_threadttitle

Works like a charm. I extracted 2 gigs of MP3s out of the database. The next step is to redo it so it also creates an index file with the contents of the posts.

EThan

tubedogg 08-18-2001 09:18 PM

Quote:

Another thing I found is that the attachment count is not reduced when you delete an attachment.
Fixed.

Quote:

Code:

$DB_site->query("UPDATE post SET attachment=0 WHERE postid='$postid'");
should be
Code:

$DB_site->query("UPDATE post SET attachmentid=0 WHERE postid='$postid'");

Fixed.

Quote:

does it need new instructions [for 2.0.3]
No.

Sarge 08-23-2001 01:25 PM

Fatal error: Call to undefined function: getrowbg() in /home/dlrarmy/public_html/forums/admin/browseatt.php on line 25

This script does not work for me

When I search for attachments by user or by forums it just gives me the above error message.

Whats up with that?
I did it exactly like in the instructions!

tubedogg 08-23-2001 05:42 PM

You'll need to upgrade to 2.0.3 to run it...plus 2.0.3 has an important security fix.


All times are GMT. The time now is 11:03 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.01142 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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