Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Scott MacVicar Scott MacVicar is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-17-2002 Last Update: Never Installs: 121
 
No support by the author.

Well after alot of time leaving it in the beta hacks forums without any problems, I'm now moving it to the Full Releases, I'm satisfied that there isn't any bugs that need to be addressed. Thanks to Jawelin he pointed out most of the mistakes through alot of his testing.
I've attached it as an installer file here, as it needs to make changes to the database. Two new rows to settings and a new column in the attachment table.

Scott

Updated some more

Note the > is missing off the bottom of the file after the ?, add it before trying to install

Show Your Support

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

Comments
  #172  
Old 07-22-2002, 12:00 AM
Renegade Renegade is offline
 
Join Date: Nov 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After placing the installer in my /admin dir and run it from the browser, nothing happens and I get a blank screen in IE. If I place the installer in /forums then I get this error:

Fatal error: Call to undefined function: cpheader() in /home/pc-gurus/public_html/vbportal/forums/attachment_install.php on line 112\

Any ideas?
Reply With Quote
  #173  
Old 07-22-2002, 04:23 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think another part of the reason for the filenames the way they are is that all the attachments are going into one directory, and if there were two attachments with the same filename, that'd be a problem.
Reply With Quote
  #174  
Old 07-23-2002, 11:24 AM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Renegade place the file in the admin directory.

Yeah Justin thats why that is implemented, attachments as files is already in v3 so I will need to create a script to change the naming conventions to match that of vB3.
Reply With Quote
  #175  
Old 07-26-2002, 07:41 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know a great deal about this hack, but I was wondering if it might be possible to use something like this as a basis for getting thumbnails into the forum.

If the threadid was included as a prefix in the attachment filename, and I created a cron job that would periodically create thumbnails, The forum could display some recently uploaded images, and a separate script could display them and link to the respective thread where they appear.

It would give you a visual preview of some recent uploads.

Also in lieu of the actual large attachment, the preview image could be displayed inline with the message.

Regards,

Matt
Reply With Quote
  #176  
Old 07-26-2002, 10:29 AM
dreamhost's Avatar
dreamhost dreamhost is offline
 
Join Date: Jun 2002
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this hack work with firefly's attachment viewer? I just installed that one, love it, but want to avoid conflicts.
thanks in advance
Reply With Quote
  #177  
Old 07-26-2002, 05:54 PM
Oxygen's Avatar
Oxygen Oxygen is offline
 
Join Date: Mar 2002
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The hack works wonderfully, i just have an addtional question..


I am modifying my board to be AvantGo Friendly (PDA version)
I have it working properly, and just used the line:

http://www.yourboard.com/Forums/atta...p?s=&postid=##

to dermine if there is a attachment and display it.

While this works for the web, avantgo needs a actual JPG image.

I also see that the files are .FILE (encoded maybe, I am not sure)

is there a way to modify or actually display the image(.file) using its native name and a path?
(what it was uploaded with)


Regards,
Oxygen
Reply With Quote
  #178  
Old 07-27-2002, 09:15 PM
Renegade Renegade is offline
 
Join Date: Nov 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool hack, This aleviates space and performance from the DB.
Reply With Quote
  #179  
Old 07-27-2002, 09:34 PM
BillaBongUSA BillaBongUSA is offline
 
Join Date: Mar 2002
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, so this works with vBulletin 2.2.6?
Reply With Quote
  #180  
Old 08-05-2002, 10:33 AM
Deska's Avatar
Deska Deska is offline
 
Join Date: Aug 2002
Location: Asia
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BillaBongUSA
Cool, so this works with vBulletin 2.2.6?
I hope so...!
Reply With Quote
  #181  
Old 08-05-2002, 09:10 PM
life is boost life is boost is offline
 
Join Date: Jan 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey guys im trying to install this hack on my test forums and when i edit the functions.php file i get this error on the site i try and try to reinstall but the same error.

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/300zxclu/public_html/test/forum/admin/functions.php on line 812

Fatal error: Call to undefined function: cachetemplates() in /home/300zxclu/public_html/test/forum/global.php on line 284


im on 2.2.6
Reply With Quote
Reply


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:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05322 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
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
  • (1)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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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_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