PDA

View Full Version : vB Quick Attachment Host [PRODUCT]


08-21-2005, 10:00 PM
Hack Title: vB Quick Attachments Host
Compatibility: 3.5.0
Tested On: 3.5.0 RC 2

What does the hack do?

This simple hack uses Image Shack (http://imageshack.us) ( 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!

Features:

-Works on both New Post and New Thread

Install Process:

Products (1)
Templates to Edit(2)

Install Time: Quick, 1-2 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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=94254)

----------------------------------------------------------
Disclaimer:

I, Danny Cassidy, am not responsible for the methods in which this hack is used.
-----------------------------------------------------------

Please Click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=94805)

Screen Shots Can Be Seen Below

BigIke
08-22-2005, 02:51 AM
AWESOME dude... thanks for porting this :)

* BigIke clicks install

EDIT: hmm, doesn't seem to be working for me. I don't think I did anything wrong, I imported the product, modified the modifysignature template. Did you copy the quicksig template edit instructions by accident? Because somehow I now have a quicksig box in my "edit signature" user cp.

Xplorer4x4
08-22-2005, 04:24 AM
Hey Danny you uploaded the wrong one I think. This says it is the same file as the other mod...Quick Sig Host...not Quick Attachment. :) Thanks for the port though!

Gizmo5h1t3
08-22-2005, 07:13 AM
il grab this as soon as the correct file is uploaded...lololol

Guest190829
08-22-2005, 07:00 PM
Yeah I uploaded the wrong file >_<. I hate zipping files, I always mess something up! I'll upload the real one now.

Okay, Uploaded the real one. Sorry about that!

BigIke
08-22-2005, 07:39 PM
works very nicely, thanks danny :) for some reason thought the text doesnt show up in the white font that it should... do i need to edit a template to insert the correct font color?

monstergamer
08-22-2005, 07:57 PM
all i get is a black box for both this and the other mod you made.
could you tell me what to edit for the color...as it is a CSS problem i think

EDIT- found it and editing the temp :)

Guest190829
08-22-2005, 10:43 PM
Hm...both plug-in use vbulletin's css, so there shouldn't be a problem. Is anyone else having the same issue?

Bad Bunny
08-23-2005, 12:23 AM
Hm...both plug-in use vbulletin's css, so there shouldn't be a problem. Is anyone else having the same issue?

The other one worked fine once I edited the templates. You use vb css, but you are using very strange combinations. lol

As an example, this is part of the xml template code.
<tr>
<td class="tcat">Need an attachment hosted? </td>
</tr>
<tr>
<td class="fieldset"> $vbphrase[quickattachhost_intro] </td>
</tr>
<tr>
<td>$quickattachmenthost_bits</td>
</tr>

You have a td with no class at all. That is why it looks so odd. Also, I believe I change fieldset for the one above it, and made them at1 and alt2.

Xplorer4x4
08-23-2005, 09:59 AM
I think you have the orignal templates labeled wrong.

Why would:
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />

Be in the newreply template?
Why would:
<input type="submit" class="button" name="sbutton" value="$vbphrase[submit_reply]" accesskey="s" tabindex="1" />
Be in the newthread template.

Might want to double check. :p

EDIT:Instaled but could you possibly work on kgetting it algined so the entire area with in the fieldset is visible without scrolling. All the same, it is working fine on RC2. This is going to get ALOT of use. :)

Guest190829
08-23-2005, 08:21 PM
I'll look into the templates later today. :)

lamilein
08-24-2005, 06:12 PM
thanks for this great plugin, it'll spare us the usual "i dont know where to upload images" replies :D

Xplorer4x4
08-25-2005, 03:14 AM
And I think you need to check into the way your codding these tables like Bunny said.. Notice how yours is one solid table where as the aditonal options has a white table with a very light blue border to it...You not codding the table entiley corect.

Guest190829
08-25-2005, 03:28 AM
I didn't want to make it go into the additional options table, nor did I want it too look like it.e As the author of the hack I have that choice. That has nothing to do with the way I code HTML....

Bad Bunny
08-25-2005, 12:17 PM
I didn't want to make it go into the additional options table, nor did I want it too look like it.e As the author of the hack I have that choice. That has nothing to do with the way I code HTML....

These products work great. We are just making a suggestion that the templates match the rest of the vb templates. I don't think anyone was criticizing you, especially after donating your time and effort to help others.

Just trying to help out, man.

Guest190829
08-27-2005, 04:11 AM
My post was directed at Xplorer4x4, not you. Your critsizm is fine. :)

Xplorer4x4
08-28-2005, 05:47 AM
I didn't want to make it go into the additional options table, nor did I want it too look like it.e As the author of the hack I have that choice. That has nothing to do with the way I code HTML....

Nice to see how you react to people giving feedback on your product. I was making meere suggestion as to how improve this hack which is partially the point of being able to reply to these threads.

Not to metnion the fact that you labeled the templates wrong and that you uploaded the wrong zip file. Your welcome.

Guest190829
08-28-2005, 06:16 AM
Nice to see how you react to people giving feedback on your product. I was making meere suggestion as to how improve this hack which is partially the point of being able to reply to these threads.

Not to metnion the fact that you labeled the templates wrong and that you uploaded the wrong zip file. Your welcome.

I apologize for flipping out on you. And me making mistakes has nothing to do with anything. I'm human, and it happens.

Right now vBspace is my top priority, I'll see if I can make the template changes sometime.

Xplorer4x4
08-28-2005, 06:40 AM
I apologize for flipping out on you. And me making mistakes has nothing to do with anything. I'm human, and it happens.

Right now vBspace is my top priority, I'll see if I can make the template changes sometime.

No problem dude we all have them days. As far as the template thing goes just switch OPEN New Posting Templates / newreply and OPEN New Posting Templates / newthread and your done. But since your busy I took the liberty of changing that. I have taken the liberty of changing that and uploaded the correct intructions.

Just add this text file to your zip packet. ;)

Xplorer4x4
08-28-2005, 06:15 PM
For some reason when I choose the pic to upload and click host it, it just takes me to the imagehsack home page. Any ideas Dan?

Thanks
X

Guest190829
08-28-2005, 09:44 PM
It doesn't take you to the page in the screen shot?

Also, I'll test your install file, and then upload the new zip. :)

Xplorer4x4
09-01-2005, 06:48 AM
It doesn't take you to the page in the screen shot?

Also, I'll test your install file, and then upload the new zip. :)

No it doesn;t take me to the page with the various links on it.

:o Ok I figuered I would test again ya know..well it worked so forget about it. And about the tables, I'm not fluent with them but shouldn't you just pad the table cell.

Check the intructions agisnt your orignal. You just labeled the templates wrong. Anyways this will be coming in handy now.

Thanks for the hack.

Guest190829
09-02-2005, 09:33 AM
I uploaded a new install file to fix the template issue, it's completlely revised. Also, I tested it, and was brought to the correct page.

y2krazy
09-02-2005, 12:20 PM
Well, it doesn't seem to look right with a dark theme, so if you could find a way to allow us to edit the individual CSS settings, that would be awesome! I tried to figure it out, but without using an iFrame, when you click Upload(or "host it!"), I get taken to the new post as it is getting submitted when you click on that button. Here's what I tried to use:

<fieldset class="fieldset">
<legend>Host an Image with ImageShack!</legend>
<form method="post" action="http://imageshack.us/" enctype="multipart/form-data" onsubmit="disableme('butan')">
<table cellpadding="0" cellspacing="$stylevar[formspacer]" width="100%" border="0">
<tr valign="bottom">
<td>
<input type="hidden" name="MAX_FILE_SIZE" value="1048576">
<input type="hidden" name="aff" value="www.transitracing.com">
<input type="hidden" name="type" value="blank">
<input type="file" name="fileupload" size="30">
</td>
<td><input id="butan" type="submit" class="button" value="$vbphrase[upload]" style="width:70px" /></td>
</tr>
<tr valign="bottom">
<td>
Image Hosting by <a
href="http://imageshack.us/" target="_blank">ImageShack</a></span> - <a
href="http://imageshack.us/rules.php" target="_blank">ToS</a>
</td>
</tr>
</table>
</form>
</fieldset>

<input type="hidden" name="aff" value="www.transitracing.com"> would change depending on your URL.

I'm thinking that ImageShack is using some PHP in their script or something, so I cannot view it via the "View Source" option in IE. Let me know if you can figure this out... ><

Guest190829
09-03-2005, 05:07 AM
You can simply change the text color of the iframe by changing whats in the highlited region, with any hex color code.

<iframe src="http://www.imageshack.us/iframe.php?txtcolor=111111" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70">

:)

y2krazy
09-03-2005, 01:30 PM
My goal was to integrate it so that it would use the same CSS features for the buttons, etc. And also when I used the basic code from ImageShack, the iframe was scrollable and I had to use my mouse to see all of the iframe. If there's a way to integrate their form into a template and still have it pop up in a new window, let me know if you figure it out. :)

Xplorer4x4
09-04-2005, 04:06 PM
Maybe you should use the <fieldset> tags rather then an I-Frame. Just my 2 cents.

y2krazy
09-04-2005, 08:01 PM
Maybe you should use the <fieldset> tags rather then an I-Frame. Just my 2 cents.
See my post on Sept 2nd. Try that code out in the template and you'll see that it doesn't work properly. :(

Guest190829
09-13-2005, 12:33 AM
Sorry for not responding, I've been really busy and I don't have the time to work on this ATM. But when I do have the time, I will look into it. :)

Corriewf
10-28-2005, 12:48 AM
Ok danny now I will click install.....

Guest190829
10-28-2005, 12:50 AM
lol, Corrie. I knew you would. Best of luck ;)

Xplorer4x4
11-01-2005, 07:08 AM
This can be done with just a template edit rather then a product thanks to Imageshack.



http://reg.imageshack.us/vb.php

Oh and if you coded the tables like this:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tr>

<td class="thead" align="left">Quick Attachment</td>

</tr>

<tr>

<td class="alt1" align="center">

Your code here

</td>

</tr>

</table>


That would eliminate the need to change colors as this will use alt 1 and alt 2 of the template.

BrandiDup
11-02-2005, 03:31 PM
Installed. Very easy install and it works great! Thank you!

whitetigergrowl
12-06-2005, 08:14 PM
This seems to have disappeared for me on 3.5.2.

I double checked then revereted then re-added the edits, and uninstalled and reinstalled the xml file and it's still not showing. Any help would be appreciated. Thanks!

NeutralizeR
12-11-2005, 12:26 AM
<a href="http://reg.imageshack.us/content.php?page=syndicate" target="_blank">http://reg.imageshack.us/content.php?page=syndicate</a>

Check this page.

And don't use "www.imageshack.us" for the iframe url. Use "imageshack.us" instead...

lanc3lot
12-24-2005, 09:58 AM
Mates, how can we change colors on this one?
I mean, ok installed and working, but how i can change the colors on my style for the text?


Update:

After Danny pm, he point out on this thread: https://vborg.vbsupport.ru/showpost.php?p=616431&postcount=27

Just added here, in order to change it if u want :)

netcommander
01-20-2006, 12:30 AM
-Works on both New Post and New Thread
and I have add editpost templates but when I editing post not run this hack?
how can I do?
great thanks