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

Reply
 
Thread Tools
vB Quick Attachments Host Details »»
vB Quick Attachments Host
Version: 1.01, by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 07-06-2005 Last Update: 07-06-2005 Installs: 15
DB Changes Template Edits
Code Changes  
No support by the author.

Hack Title: vB Quick Attachments Host a.k.a QAH
Compatibility: 3.0.x
Tested On: 3.0.7

[high]What does the hack do?[/high]

This simple hack uses Image Shack ( A free image hosting website ) built in uploading tool as a quick way to host your members attachments on Image Shack, which is a huge bandwith saver!

[high]Features:[/high]
-Permission to be able to use it
-Works on both New Post and New Thread

[high]Install Process:[/high]

There are two versions of this hack. One is with Permissions, which takes longer to install since it has more file edits and a query that needs to be executed. And the other doesn't have permissions, and has less file edits. The complete process of both versions are below:

With Permissions

Files to edit(4)
Templates to edit(2)
New Template (2)
New Phrase (1)
Queries (1)


Without Permissions
Files to edit(2)
Templates to edit(2)
New Template (2)
New Phrase (1)

[high]Install Time[/high]: Quick, ~5-10 minutes

Please note, Image Shack only provides hosting for images.
Supported Image Types: jpeg jpg png gif bmp tif tiff swf

Sister-Hack:vB Quick Sig Host

Please click

Screen Shots Can Be Seen Below


UPDATES:
Error in both versions of the hack, please click here for a fix. Zips have been fixed and uploaded.

Show Your Support

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

Comments
  #12  
Old 07-07-2005, 10:22 AM
Selene Selene is offline
 
Join Date: Feb 2005
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok let me install again and paste error msg.
Reply With Quote
  #13  
Old 07-07-2005, 10:25 AM
Selene Selene is offline
 
Join Date: Feb 2005
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Parse error: parse error, unexpected T_EVAL in /home2/forums/newthread.php on line 226
line 225 and 226 in newthread.php are:

eval('$quickattachmenthost_bits = "' . fetch_template('quickattachmenthost_bits') . '";')
eval('$quick_attachment_host = "' . fetch_template('quick_attachment_host') . '";');
// get attachment options
Reply With Quote
  #14  
Old 07-07-2005, 10:26 AM
Selene Selene is offline
 
Join Date: Feb 2005
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and i did also make the templates for hots and bits
Reply With Quote
  #15  
Old 07-07-2005, 10:33 AM
Guest190829
Guest
 
Posts: n/a
Default

Change

PHP Code:
eval('$quickattachmenthost_bits = "' fetch_template('quickattachmenthost_bits') . '";')
eval(
'$quick_attachment_host = "' fetch_template('quick_attachment_host') . '";'); 
to

PHP Code:
eval('$quickattachmenthost_bits = "' fetch_template('quickattachmenthost_bits') . '";');
eval(
'$quick_attachment_host = "' fetch_template('quick_attachment_host') . '";'); 
On both newreply.php and newthread.php. I left out an ; by accident. Thank you for finding this.

I will edit the install and upload it right now.
Reply With Quote
  #16  
Old 07-07-2005, 10:36 AM
Selene Selene is offline
 
Join Date: Feb 2005
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

gr8 Danny , i will try it out now.

thx for a good hack
Reply With Quote
  #17  
Old 07-07-2005, 10:40 AM
Selene Selene is offline
 
Join Date: Feb 2005
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now i got this error:

Parse error: parse error, unexpected ';', expecting ')' in /home2/forums/newreply.php on line 44

and line 44 is $actiontemplates = array();

lemi re-installagainto be sure
Reply With Quote
  #18  
Old 07-07-2005, 10:43 AM
Selene Selene is offline
 
Join Date: Feb 2005
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i re-tested same error but only in newreply.php

newthread is working fine!
Reply With Quote
  #19  
Old 07-07-2005, 10:47 AM
Guest190829
Guest
 
Posts: n/a
Default

Make sure your global templates look like this

PHP Code:
$globaltemplates = array(
    
'newreply',
    
'newpost_attachment',
    
'newreply_reviewbit',
    
'newreply_reviewbit_ignore',
    
'newreply_reviewbit_ignore_global',
    
'newpost_attachmentbit',
    
'quick_attachment_host',
    
'quickattachmenthost_bits',
); 
If it does look like that, post lines 30-40 of your newreply.php file.
Reply With Quote
  #20  
Old 07-07-2005, 10:52 AM
Selene Selene is offline
 
Join Date: Feb 2005
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeps forgot to add );
(it was in ur guide, just a mistake from myside)

all working fine now.

thx
Reply With Quote
  #21  
Old 07-07-2005, 10:53 AM
Guest190829
Guest
 
Posts: n/a
Default

No Problem, I'm glad you found my error in the install script. Thank you for you time in testing the hack!
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 08:43 PM.


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.05076 seconds
  • Memory Usage 2,300KB
  • 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
  • (3)bbcode_php
  • (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
  • (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
  • (7)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete