![]() |
vB Quick Attachments Host
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 https://vborg.vbsupport.ru/;) 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. |
very nice!
/installed |
umm..this is already a mod for vB 3 I believe Danny, exact same one....maybe you made it lol I dont know, I just know that there is.
|
EDIT: I am sorry, I just looked at screenshots and everything, sorry about that danny..good work...really good work.
/me installs |
lol. That's okay, they're very similiar with almost the exact same name.
|
I've attached two versions of the hack. One version has permissions, so you can let certain usergroups have the feature, and not let others. This versions has 2 more file edits, and a required query to be run.
The other version doesn't have permissions and has two less file edits, and no queries. I attached both versions because I don't see a high demand for permissions on such a simple hack. The choice is yours. :) |
can someone test this code, cuz i did install it correctly but got some error when i was making new thread and same with new post.
|
What error are you getting? And do you have the mod with permissions or without?
|
ahhh i uninstalled itnow...shall i install again and post error? and it was the mod without perm.
|
Quote:
|
ok let me install again and paste error msg.
|
Quote:
eval('$quickattachmenthost_bits = "' . fetch_template('quickattachmenthost_bits') . '";') eval('$quick_attachment_host = "' . fetch_template('quick_attachment_host') . '";'); // get attachment options |
and i did also make the templates for hots and bits
|
Change
PHP Code:
PHP Code:
I will edit the install and upload it right now. |
gr8 Danny , :) i will try it out now.
thx for a good hack |
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 |
ok i re-tested same error but only in newreply.php
newthread is working fine! |
Make sure your global templates look like this
PHP Code:
|
yeps forgot to add );
(it was in ur guide, just a mistake from myside) all working fine now. thx |
No Problem, I'm glad you found my error in the install script. Thank you for you time in testing the hack! :)
|
UPDATE:
Both the NO PERMISSIONS and WITH PERMISSIONS versions have an error in the install file to fix please refer to this POST HERE I have uploaded fixed zip files, so everything should be working fine now. |
just a request:
lets say in post new thread or post reply template...where u see "Logged in as X" like this picture below: http://img275.imageshack.us/img275/7320/logged6fv.gif possible to add an imageshack browse/upload thing under that word. |
Yeah, I'm sure it is. I'll look into that today. :)
|
gr8 thax
|
can I see this hack in action on some forum please?
|
There isn't much to see that the screenshot doesn't show. You click submit and a new window opens with the imageshack hosting page (the one in the 2nd screenie). Copy paste that into [img ]..[/img ]
Works great, thanks. |
I thought the link was automatically attached into the post
Nevermind :) I am gonna install the hack later since I have lot of pictures that are allready attached trough Image hack |
Nice hack, dude. I installed.
... Let us hope that imageshack will not close off access from remote sites in the nearest future ... Amen ... ;) |
do you guys get a ton of pop-ups form that site?
|
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"> Code:
<iframe src="http://imageshack.us/iframe.php?txtcolor=111111" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="80"> |
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> Code:
<fieldset class="fieldset"><legend>Upload your images to ImageShack</legend> 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! |
Quote:
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 ? |
All times are GMT. The time now is 04:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|