View Full Version : Attachment In Quickreply
tnguy3n
26 Mar 2004, 04:52
What this hack does is to add an attachment option to quickreply in showthread as of New Reply or New Thread. This is good for boards that have slacked members who don't want to click on New Reply, but wanting to attach file on Quickreply.
/*-----------------------------------------------------------------------*\
File modification: 1
Template modication: 1
New Templates: 2
(estimate hack time: 2-5 mins)
/*-----------------------------------------------------------------------*\
Live Demo: http://all4actions.net
-- T. Nguyen --
Red Blaze
26 Mar 2004, 06:19
worked flawlessly. :)
Vivi Ornitier
26 Mar 2004, 06:50
nice and very useful addition ;)
Oblivion Knight
26 Mar 2004, 09:42
Does this take in to consideration the usergroup's attachment permissions?
If I had my board set up to only allow staff to upload attachments, would registered users still be able to see the attachment option on QuickReply, and would they be able to use it?
tnguy3n
26 Mar 2004, 10:08
Does this take in to consideration the usergroup's attachment permissions?
If I had my board set up to only allow staff to upload attachments, would registered users still be able to see the attachment option on QuickReply, and would they be able to use it?
If you disable upload to certain usergroups, the upload manager wont show in quickreply, those users just see normal quickreply. ^_^
PlenoJure
26 Mar 2004, 11:34
One small change I made to the showthread.php change, replace
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This will list the valid extentions instead of just displaying a blank space.
Oblivion Knight
26 Mar 2004, 11:50
If you disable upload to certain usergroups, the upload manager wont show in quickreply, those users just see normal quickreply. ^_^
Awesome.. I'll be installing this later then :)
Thanks for sharing.
Red Blaze
26 Mar 2004, 13:32
Thanks PlenoJure, I noticed that myself, but didn't know what code to add. ^^;;
Oblivion Knight
26 Mar 2004, 14:04
In showthread_quickreply, I think this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Should be this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
tnguy3n
26 Mar 2004, 14:50
*attachment updated* thanks, PlenoJure & Oblivion Knight . :)
NuclioN
26 Mar 2004, 14:58
Usefull :) Tnx.
Oblivion Knight
26 Mar 2004, 15:02
*attachment updated* thanks, PlenoJure & Oblivion Knight . :)You've still got part of the template wrong, there should be an opening <tr> tag and a closing </tr> tag. Currently you have 2 closing </tr> tags.. :)
tnguy3n
26 Mar 2004, 15:18
thanks for the notice. *updated*. ^_^
thanks for the notice. *updated*. ^_^
Very nice! good work
Gio Takahashi
26 Mar 2004, 18:40
Oh B'ah I was working on doing this hack myself, you beat me to it. good job however and will install.
nice one... adding smilies woould be another great functuoin... in one line like other boards has...
tnguy3n
26 Mar 2004, 19:24
nice one... adding smilies woould be another great functuoin... in one line like other boards has...
Megatekno already released "Smiles quichreply" (and I got it worked great on my board). i don't know if it's necessary to addy this function again in the quickreply.
Sorry! But i have problem:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Can you help me? :(
tnguy3n
27 Mar 2004, 20:08
Sorry! But i have problem:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Can you help me? :(
above:
$inimaxattach = fetch_max_attachment_size();
make sure you have this line
require_once('./includes/functions_file.php');
yes! i'm sure i have code:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Can you check for me now?
tnguy3n
28 Mar 2004, 08:23
check your showthread.php file again . i don't think it prints out warning fetch_max_attachment_size() as an underfined function if you have includes/functions_file.php included. (fetch_max_attachment_size() is declared in includes/functions_file.php file ;))
(can you post link to your board so that i can check that error?)
i did step by step of you in instruction and i have seen a bug. Now i removed hack of you.
thAnkx!
alfaowner
29 Mar 2004, 23:41
downloaded and installed into eack skins within 10 mins, very easy to do. Many thanks
alfaowner
30 Mar 2004, 17:53
Hmmm, it appears my members cannot use it? looks as if its only working for admins!?
tnguy3n
30 Mar 2004, 18:03
Hmmm, it appears my members cannot use it? looks as if its only working for admins!?
Do you have Upload Attachment enabled to Registered Group? Usergroup that has no Upload permission won't see this option in quickreply. :)
Enable Upload: Usergroup -> Usergroup Manager -> Can Upload Attachments.
alfaowner
30 Mar 2004, 18:40
Hi mate, thanks for replying to offer help, well, i knew the answer already, but i checked this and "Upload Attachments" is Yes. Plus they are uploading on the board already.
So i created a fresh account to try it. (BTW - I can still see the button at all times)
HERE IS THE MESSAGE I RECIEVE WHEN I TRY TO UPLOAD AS A MEMBER
------------------------------------------------------------------------------------------
meatandtwoveg, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Very weird! http://www.alfaowner.com/Forum/showthread.php?p=337700#post337700
tnguy3n
30 Mar 2004, 20:34
that's odd cuz I tested on localhost & my board as normal users, and they both work fine.
( you can test it out on my board as well... http://all4actions.net )
**** edited ****
I figured out why.... cuz you set regular members not to upload nor download attachment in Announcement forum. It works fine for any other forums on your board. ^_^
alfaowner
30 Mar 2004, 22:43
ok, cheers, whats the edited bit, you u swear at me ;)
enginethatcan't
13 Apr 2004, 02:49
installed, thanks
One small change I made to the showthread.php change, replace
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This will list the valid extentions instead of just displaying a blank space.
How would you add commas to separate the extentions?
Installed on 3.0.1. Went without a hitch ;).
SnowBot
06 Jul 2004, 05:42
Any chance of update for 3.0.3 as most the instructions nolonger fit :(
Oblivion Knight
07 Jul 2004, 19:13
Any chance of update for 3.0.3 as most the instructions nolonger fit :(Worked fine for me.. I have it running flawlessly on 3.0.3.
Installed! My forum's first mod... easier than i thought :P thanks a lot!
MrFaldyn
20 Jul 2004, 23:03
Is anyone else having trouble getting it to show the attachments if there's more than one?
nevermind I fixed it :D
/me clicks install
SnowBot
21 Jul 2004, 00:49
Worked fine for me.. I have it running flawlessly on 3.0.3.
Sorry my bad, wrong hack i was meaning to say that for the attachments in PM quickreply.
43v3rl0v3.yen
02 Feb 2005, 12:59
i cant hack this mod, cuz i hacked mod only member can view theard, so when i hack this mod done, i cant attach file from quick reply, it's warning me cuz i havent permission, but i'm admin ?????????????
anybody help me
Dennis Olson
16 Feb 2005, 19:50
I installed this hack, and get the "manage attachments" button (and associated popup window when I click the button). Everything appears to work normally, but when the post is made, the attachment is gone. (vB 3.0.3)
Anyone have any insight on this?
Thanks!
Reece D
01 Mar 2005, 11:36
*installed*
kfiasche81
03 Mar 2005, 17:06
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
??????
kfiasche81
04 Mar 2005, 08:17
this error on 3.0.7
Zachery
04 Mar 2005, 16:06
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
??????
Sounds like you did not hack your file properly.
Please know reporting the post will not get it fixed any faster.
tnguy3n
05 Mar 2005, 13:03
@ 43v3rl0v3.yen: check Attachment option for your usergroup in that forum.
@ kfiasche81: you perhaps didn't hack your file properly like Zachery.
check,
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
bigbaldben
23 Mar 2005, 02:16
Fantastic and simple to install! Many thanks. :)
MajidOnline
26 Mar 2005, 05:30
I installed it on3.0.7 without any problem!
Winchester
26 Mar 2005, 23:24
Did everything as in instructions, but dont have the button for attachments on quick reply :( can anyone help?
Winchester
27 Mar 2005, 00:54
done it!
xtreme-mobile
27 Mar 2005, 20:00
works great on 3.0.6 :)
turkforum
06 Apr 2005, 08:43
me too 3.07 noproblem
ekopapers
09 Apr 2005, 07:34
me too 3.07 noproblem
installed 3.0.7 worked perfectly thanks
trevelyn1015
16 Apr 2005, 16:59
awesome. installed.
trevelyn1015
23 Apr 2005, 16:44
for some reason my guys can't attach to it..
says that they have no permission, but their usergroup does allow attaching. it works fine for them in regular reply, but not quick reply...
xtreme-mobile
19 Sep 2005, 20:27
installed on new forum @ http://www.talk-365.com :D
this not released for 3.5.0 yet? whats goin on?
mfizzel
29 Oct 2005, 05:03
pretty please can someone port this to 3.5?? I really want to keep this when I upgrade to 3.5 tommorrow - it's vital
I'd love to have this ported and working on 3.6.4 ! :)
brvheart
25 Dec 2006, 03:58
I'd love to have this ported and working on 3.6.4 ! :)
me to :)
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.