Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Advanced Attachmentbox v1.0 Details »»
Advanced Attachmentbox v1.0
Version: 1.00, by Kars10 Kars10 is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-30-2003 Last Update: Never Installs: 36
 
No support by the author.

Hello Hackers!
This a very small but usefull Hack!

What this hack does:
This hack puts your "Attachment-Info" in a Box and displays the filesize of the
attachments next to it (vB3 Style)!

Credits: Pogo from the vbulletin-Germany Team.

Files to edit: 1 (showthread.php)
Templates to edit: 1 (postbit_attachment)
Templates to add: 0

Time to install: 1-2 min

[high]Always backup your Files, and please click, lick or kick install!![/high]

Note: If you have Attachments as Files Hack installed, see this Addon by Mutt!

Have Fun
Kars

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-01-2003, 09:52 AM
mossyuk mossyuk is offline
 
Join Date: Jul 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

couldnt get the file size function to work (using the files as attachments hack), so I took that bit out.

nice hack anyway, gets the users attention.
Reply With Quote
  #23  
Old 04-01-2003, 02:05 PM
Tubbie Tubbie is offline
 
Join Date: Feb 2002
Location: GER | Hannover
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice! i test it!
Reply With Quote
  #24  
Old 04-03-2003, 03:31 PM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]
Quote:
04-01-03 at 06:27 AM Mutt said this in Post #15
I like this hack and I like the obsolete attachments as files. Here's a slight mod to the directions so it will work.

I also put in optional code so if it was smaller than a meg it listed the size in KB and in MB if larger.

These aren't full directions. just an addon to the existing hack. you'll still need to download the original hack.
thnx a lot mate

tho I get error on line 437 in showthread.php which is
PHP Code:
$filepath="$attachpath/$post[hash].file"
Reply With Quote
  #25  
Old 04-03-2003, 10:39 PM
Mutt's Avatar
Mutt Mutt is offline
 
Join Date: Nov 2001
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try

PHP Code:
$filepath=$attachpath."/".$post[hash].".file"
not sure why you guys would have a problem.
Reply With Quote
  #26  
Old 04-04-2003, 05:33 AM
Mr. X's Avatar
Mr. X Mr. X is offline
 
Join Date: Oct 2001
Location: Iowa
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great here, just tried it on my localhost test forum, about to apply it to my real forums after I upgrade.

/clicks install
Reply With Quote
  #27  
Old 04-04-2003, 01:18 PM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]
PHP Code:
Parse errorparse errorunexpected T_VARIABLE in /home/www/web1/html/forum/showthread.php on line 437 
which is still same problem with $filepath
Reply With Quote
  #28  
Old 04-04-2003, 01:42 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wooolF[RM], for me it looks like a error in the attachment-template!

Kars
Reply With Quote
  #29  
Old 04-04-2003, 02:34 PM
Snapperhaed Snapperhaed is offline
 
Join Date: Mar 2003
Location: Argentina
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed but it shows: ( kb, 0 views) Meaning that its not showing the file size. Installed your original hack from 1st post. Am running 2.3.0.
Reply With Quote
  #30  
Old 04-04-2003, 03:02 PM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]
Quote:
Today at 04:42 PM Kars10 said this in Post #27
wooolF[RM], for me it looks like a error in the attachment-template!

Kars
I'll check it out and report back thnx for the tip

mmkay, here what I got in my postbit_attachment (part of it)
PHP Code:
<img src="https://vborg.vbsupport.ru/images/attach/$post[attachmentextension].gif" width="16" height="16" border="0" alt="">
<
smallfont>
<
a href="attachment.php?s=$session[sessionhash]&postid=$post[postid]$newpagelinktarget="blank">$post[filename]</a>
(<
b>$post[attachsize]</bkb, <b>$post[counter]</bdownloads)
</
smallfont>
<
smallfont><hr>
<
a href="javascript:whodownloaded($post[attachmentid])" class="small">Who Downloaded This?</a
I can't see what might be wrong with that... Who downloaded hack works perfectly... I can see how many times file have been downloaded... the only problem is displaying the size of the attached file
Reply With Quote
  #31  
Old 06-03-2003, 06:26 AM
all-the-vb's Avatar
all-the-vb all-the-vb is offline
 
Join Date: Apr 2003
Location: Norwich,Uk
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice

----
this hack working if u edit 410 line
but tell me what is the benefit of editing 55 line ?
Reply With Quote
Reply

Thread Tools

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 11:30 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.15250 seconds
  • Memory Usage 2,314KB
  • Queries Executed 27 (?)
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
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete