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
  #32  
Old 08-23-2005, 04:27 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found these instructions on the image shack site for integration with vbulletin:

These instructions will help you to install 'ImageShack on your Site' into the reply and post-new-thread sections of your vBulletin message board, thus giving your visitors the ability to upload images directly. After upload, they may paste the images directly into their post box.

1) Log into your admin cp, and click on Styles and Templates, then Style Manager.

2) For the theme (or themes) that you would like to add the iframe to, select in the drop down box "Edit Templates". You should see a whole list of template groups now.

3) Click the "[? ?]" on the "New Posting Templates".

4) To add the box to the reply page, click edit on the bullet point that says
"newreply".

5) Search for this code:
Code:
<fieldset class="fieldset"><legend>$vbphrase[miscellaneous_options]</legend>
 <div style="padding:$stylevar[formspacer]px"><if condition="$bbuserinfo['signature'] != ''"><div>
 <label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" 
 tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if><div>
 <label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" 
 tabindex="1" $checked[parseurl] />
 $vbphrase[automatically_parse_links_in_text]</label></div>
 disablesmiliesoption</div></fieldset>
6) Paste the iframe code DIRECTLY AFTER the instance mentioned above.
Code:
<fieldset class="fieldset"><legend>Upload your images to ImageShack</legend>
<div style="padding:$stylevar[formspacer]px">
<iframe src="http://imageshack.us/iframe.php?txtcolor=111111" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70"> You must 
have an iframe-compatable browser to view the ImageShack.us upload form.</iframe></div></fieldset>
7) Click Save.

8) To add the iframe in the new thread page, click edit on "newthread".

9) Repeat steps 5, 6, and 7.

10) Login to your message board as a regular user. Either click "Post New Thread" or reply to an existing thread in order to test out your new Image Hosting Service!
Reply With Quote
  #33  
Old 10-17-2005, 09:48 PM
stan111 stan111 is offline
 
Join Date: Aug 2005
Location: CA
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
nice hack, but I had to change
Code:
<iframe src="http://www.imageshack.us/iframe.php?txtcolor=111111" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70">
to
Code:
<iframe src="http://imageshack.us/iframe.php?txtcolor=111111" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="80">
so the submit info would display properly. Thanks again!

damn, you rock
u have saved me a bunch of time on this one
i got the error with the display
now it work perfect

btw: is there anyway we could have this under the Quick Reply ?
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:14 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.06806 seconds
  • Memory Usage 2,225KB
  • Queries Executed 17 (?)
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_code
  • (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
  • (2)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (3)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