View Full Version : Attachments in calendar events
Kentaurus
03-07-2004, 10:00 PM
Why isn't there a category for calendar hacks? Oh well..
This was originally developed for Davelogic, with this hack you can add attachments to your calendar events. The attachment will show up at the end of the event.
In any event you add (single event, recurrent or ranged) you can
add attachments the same way you can add them to a post (ie, a pop-up
will appear asking you for the attachments). Then the attachments
will show in the event once submitted.
The installation instructions are for a non-hacked RC4 board, instructions would vary if you have other hacks intalled, and would be really different if you have any other attachment hacks installed.
Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org (../) at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.
Giveit2u43
03-07-2004, 11:01 PM
thanks a lot Kentaurus, should be handy for attaching screenshots of maps to our meetings rather than linking to another site.. Just want to say thanks for all your hacks you`ve come out with some awesome ones that have truly improved the quality of our forums.
Boofo
03-07-2004, 11:08 PM
I'll install this as soon as the vB3 Final comes out but I'll click install now. ;)
Why isn't there a category for calendar hacks? Oh well..
This was originally developed for Davelogic, with this hack you can add attachments to your calendar events. The attachment will show up at the end of the event.
In any event you add (single event, recurrent or ranged) you can
add attachments the same way you can add them to a post (ie, a pop-up
will appear asking you for the attachments). Then the attachments
will show in the event once submitted.
The installation instructions are for a non-hacked RC4 board, instructions would vary if you have other hacks intalled, and would be really different if you have any other attachment hacks installed.
wikkid hack mate, a long needed additon to vB (surprising it wasnt placed into vb3) anyway, thanks!!
D|ver
03-08-2004, 10:57 AM
wow great heack, i've been waiting for this a long time :D
but i have a small question about the permissions
is it possible to restrict users from posting attachments in the forums but allow them to do so in the calendar?
gmarik
03-08-2004, 01:17 PM
interesting one
Kentaurus
03-08-2004, 02:22 PM
wow great heack, i've been waiting for this a long time :D
but i have a small question about the permissions
is it possible to restrict users from posting attachments in the forums but allow them to do so in the calendar?
Right now that isn't a feature. Right now If a user can post attachments then he can post attachments anywhere.
Geographic2
03-11-2004, 04:35 AM
Nice one, now I don't have to write my own. :)
I agree there should be a calendar hack section. If they have one for profiles and one for private messages they should have one for the much more powerful calendar... There are so many ways the calendar can be expanded people don't even realize.... User dairies/autobio's, record keeping/statistics making etc... etc... use the imagination. This hack gives a good start on added functionality. thumbs up.
D|ver
03-27-2004, 03:46 PM
will there be also a HTL version of this?
i would love to install this hack but without HTL it will be too much work each update ;)
Geographic2
04-06-2004, 05:00 AM
slacker.
Hey Kentaurus, care to look at the issues which cause viewing attachments to calendars via the user control panel show up as still "In progress"?
Lee Wilde
05-25-2004, 08:00 AM
Thank you! Installed in minutes without a single hitch. Very impressed.
Lee Wilde
05-25-2004, 08:11 AM
Kentaurus, I'm surprised more people haven't installed this hack. I myself came across it a couple of weeks ago but didn't realise exactly what it was, so I didn't bother installing it at the time.
Perhaps if the name of the hack was "Images in Calendar Event".....or...."Add Images to Calendar Events"?
moonclamp
05-25-2004, 06:26 PM
Worked first time, I can see this being very useful
*clicks install*
nexialys
08-12-2004, 12:25 PM
!ping ...
is there an update to come for 3.0.3+ ???
there is not much to change, maybe just the attachement.php file to verify
spence2
08-13-2004, 03:59 PM
So, this will not work in 3.03 "as is"?
D|ver
09-10-2004, 03:26 PM
now i installed this. a really great hack :D
i also don't understand why just a few people installed it. this is really a great addon
but i have a little problem:
holidays are shown with all attachments of the whole forum...
anybody got the same problem?
Mattius
09-22-2004, 02:21 AM
Towards the end of the instruction file it says to modify this part in attachments.php
-------------------------------------------------------------------
search for this code:
-------------------------------------------------------------------
$postid = verify_id('post', $attachmentinfo['postid']);
-------------------------------------------------------------------
replace it with:
-------------------------------------------------------------------
if (!$attachmentinfo['calendar']) {
$postid = verify_id('post', $attachmentinfo['postid']);
-------------------------------------------------------------------
search for this code:
-------------------------------------------------------------------
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
------------------------------------------------------------------
replace it with:
-------------------------------------------------------------------
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
}
Im using 3.0.3 btw. Now the modification of the query just above it is there and can be modified ok, but i cant find this code for the life of me.
Looked in both a fresh attachments.php
and my hacked version and.....nudda.
Please help
Mattius
09-22-2004, 06:56 AM
OK strange i got the attachment in calendars to work now, but not pm's
theArchitect
09-23-2004, 11:21 PM
OK strange i got the attachment in calendars to work now, but not pm's
We really should stop meeting like this.
I only just found this hack and given my issues with the missing code in 3.0.3 for the PM hack am wondering if I will have similar problems with this one. Did you have to make any modifications to get this working?
robert_2004
10-02-2004, 09:29 AM
here's the first part fixed for forum/attachment.php
// attachments for event calendar mod - START
/*
if (!$attachmentinfo = $DB_site->query_first("
SELECT filename, attachment.postid, attachment.userid, attachmentid,
" . iif($thumb, 'thumbnail AS filedata, thumbnail_dateline AS dateline, thumbnail_filesize AS filesize,', 'attachment.dateline, filedata, filesize,') . "
attachment.visible, mimetype, NOT ISNULL(deletionlog.primaryid) AS isdeleted,
thread.forumid, forum.password, thread.threadid
FROM " . TABLE_PREFIX . "attachment AS attachment
LEFT JOIN " . TABLE_PREFIX . "attachmenttype AS attachmenttype ON(attachmenttype.extension = SUBSTRING_INDEX(attachment.filename, '.', -1))
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(attachment.postid = deletionlog.primaryid AND type = 'post')
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = attachment.postid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid = thread.threadid)
LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON (forum.forumid = thread.forumid)
" . iif($postid, "WHERE attachment.postid = $postid", "WHERE attachmentid = $attachmentid") . "
"))
*/
if (!$attachmentinfo = $DB_site->query_first("
SELECT filename, attachment.postid, attachment.userid, attachmentid, filesize,
" . iif(!$vboptions['attachfile'] AND !$thumb, 'filedata,') . "
" . iif($thumb, 'thumbnail AS filedata, thumbnail_dateline AS dateline, thumbnail_filesize AS filesize,', 'attachment.dateline, filedata, filesize,') . "
attachment.visible, mimetype, NOT ISNULL(deletionlog.primaryid) AS isdeleted, visible, calendar
thread.forumid, forum.password, thread.threadid
FROM " . TABLE_PREFIX . "attachment AS attachment
LEFT JOIN " . TABLE_PREFIX . "attachmenttype AS attachmenttype ON(attachmenttype.extension = SUBSTRING_INDEX(attachment.filename, '.', -1))
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(attachment.postid = deletionlog.primaryid AND type = 'post')
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = attachment.postid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid = thread.threadid)
LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON (forum.forumid = thread.forumid)
" . iif($postid, "WHERE attachment.postid = $postid", "WHERE attachmentid = $attachmentid") . "
"))
// attachments for event calendar mod - END
i haven't tried it yet, though. i can't get the next steps done myself.
Mattius
10-04-2004, 12:17 AM
Actually bit of an update which i havent added. Yes i did get the attachments to work, the picture was displayed. However i had the same problem many others have had....it disappears after a while. Im not sure how long it takes, but probably the few hours mentioned by another poster here.
So basically where back to square one.
theArchitect
10-04-2004, 12:34 AM
Actually bit of an update which i havent added. Yes i did get the attachments to work, the picture was displayed. However i had the same problem many others have had....it disappears after a while. Im not sure how long it takes, but probably the few hours mentioned by another poster here.
So basically where back to square one.
I think now we need to call for the help of more advanced coders than ourselves.
Anyone out there?
spence2
10-04-2004, 11:12 AM
nexialys posted earlier in this thread. He seems to be "everywhere" and usually will help, so you might send him an SOS-PM.
theArchitect
10-04-2004, 01:36 PM
nexialys posted earlier in this thread. He seems to be "everywhere" and usually will help, so you might send him an SOS-PM.
Are you sure he wouldn't mind?
spence2
10-04-2004, 04:27 PM
I just pm'd him ... so, if he does mind, he can be mad at me.
nexialys
10-04-2004, 04:45 PM
hum.. looks like someone calls me for help.. ;)
yes i'm everywhere, but for commenting usually...
this hack was released by someone (look at the first post of it) and he is the only guy who can have the potential to help on this, as he is the one who created it.
look at my sig to understand why.. ;)
spence2
10-04-2004, 04:53 PM
Thanks for responding, nexialys!
Too bad. Another "orphaned" hack that will just have to die a slow 3.03 death, I suppose. What a pity.
nexialys
10-04-2004, 05:14 PM
i can tell you that Kentaurus is always on the board... just PM him, i suppose he will at least answer a PM!
spence2
10-04-2004, 05:18 PM
Thanks, again, nexialys. We will look forward to hearing from him.
sfowler39
10-14-2004, 01:57 PM
So - Does this work with 3.0.3, i would like to attach documents to the calendar.??
robert_2004
10-15-2004, 03:28 AM
no it doesn't.... i have PMed the creator to see if he can update it for vb 3.0.3
WarHorse
10-16-2004, 10:56 PM
I will click install as soon as it is updated for 3.0.3
It's only a few lines, i hope it happens soon.
It looks like a really great hack. I have JPG invitations to my site's events. This will be perfect.
sfowler39
10-28-2004, 06:23 PM
The whole package works besides this statement in the attachment.php file.
if (!$attachmentinfo = $DB_site->query_first("
SELECT filename, attachment.postid, attachment.userid, attachmentid,
" . iif($thumb, 'thumbnail AS filedata, thumbnail_dateline AS dateline, thumbnail_filesize AS filesize,', 'attachment.dateline, filedata, filesize,') . "
attachment.visible, mimetype, NOT ISNULL(deletionlog.primaryid) AS isdeleted,
thread.forumid, forum.password, thread.threadid
FROM " . TABLE_PREFIX . "attachment AS attachment
LEFT JOIN " . TABLE_PREFIX . "attachmenttype AS attachmenttype ON(attachmenttype.extension = SUBSTRING_INDEX(attachment.filename, '.', -1))
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(attachment.postid = deletionlog.primaryid AND type = 'post')
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = attachment.postid)
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid = thread.threadid)
LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON (forum.forumid = thread.forumid)
" . iif($postid, "WHERE attachment.postid = $postid", "WHERE attachmentid = $attachmentid") . "
"))
{
Has anyone made this work in 3.0.3?
sfowler39
10-28-2004, 07:59 PM
I have it working on 3.0.3 - the only problem I have is that the user who uploads the file is the only one who can d/l it . Its something to do with permissions that needs to be changed on mine. Is anyone else working on this?
nexialys
11-01-2004, 02:37 PM
@ Kentaurus: https://vborg.vbsupport.ru/showthread.php?t=71247
sfowler39
11-01-2004, 06:58 PM
Sorry, I PM you nexialys:
So I will post it here.
You posted the link above - I was under the impression that this would solve this issue of permission rights so I installed it and am still having these issues. Do you have any idea how to resolve this?
But still I get this error after all is said and done.
admin, 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.
Let me ellaborate or clarify what I am talking about.
Your wrote in this post:
https://vborg.vbsupport.ru/show...hlight=calendar
This
@ Kentaurus: https://vborg.vbsupport.ru/showthread.php?t=71247
Which has taken me to :
083-Attachements With Style in Events
--------------------------------------------------------------------------------
This hack is a Merge of Two excellent tries... so i have no real credit... just for the merging itself!
you first need to install two hacks:
Attachments in calendar events and
Attachmentstyle, choose where to place your Attachments.
Then I installed yours.
But through all of this installing and hoping things would work out in the calendar so a person can attach a document to a date for an event - it does attach and the style is good, but apparently no one can download the attachments they only see the attachments (files)in the calendar but after clicking on the attachments they get the error that they dont have permissions to access the files. Even the ADMIN which is me cant d/l it.
Its something to do with permissions or the cookies. I think.
Do you have any idea as to what I can change to allow everyone access to these files that are placed in the calendar, I am not to fussy about the permission level on these items since the website is behind a hardware firewall and on a intranet which is inaccessible to the outside world anyway.
nexialys
11-02-2004, 11:23 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=71247" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=71247</a>
.. the hack now contain this tool, updated for vB 3.0.3 ...
Sweet Evil
11-14-2004, 02:54 PM
I have 3.0.3 , installed this hack and seem to work fine.. but my attachments just up and disappear.. anyone got ideas? :(
Bacteria Man
02-12-2005, 10:35 PM
I just bought vB 3.x a short while ago and this mod was on my to-do list of required features--thanks.
I'm slightly confused though (nothing new there.) I see there's a new version/upgrade for this mod (hack). I don't necessarily care the style support in the other. Is this version fully functional or buggy?
nexialys
02-12-2005, 11:08 PM
this hack will not have any update, as i took care of the real upgrades and debugs... you can take the new version and not apply the styles... but if you don'T you will continue to have bugs, like Sweet Evil... these are known bugs. (that's why i released a different version)
akanevsky
04-22-2005, 11:27 PM
Kentaurus,
why don't you update the hack to 3.0.7? :P
Lionel
04-24-2005, 04:04 AM
hahaha I know someone who has a 3.07 version ....
kur1j
05-15-2005, 08:12 PM
hahaha I know someone who has a 3.07 version ....
Please explain where to get it then as I am wanting this for 3.0.X :D.
akanevsky
05-16-2005, 12:42 AM
kur1j,
click (https://vborg.vbsupport.ru/private.php?do=newpm&userid=80739) ;)
WreckRman2
06-02-2005, 04:53 PM
Ok so I've been using this hack a long time with 3.0.0... I upgrade to 3.0.7 and it doesn't work. :) To bad, it was a nice feature to have...
Mighty Mojo
06-29-2005, 08:15 AM
Yes, would be nice if this worked in 3.0.7 and also allowed for POLL attachments!
Thanks and keep up the hard work---see my other suggestions for the calendar here:
https://vborg.vbsupport.ru/showthread.php?p=727848#post727848
Perhaps this can all be tied into vb3.5 hack
D|ver
08-08-2005, 06:47 PM
will there be a version for vb 3.5? maybe even as a plugin? :)
ConKien
01-11-2006, 12:06 AM
I think lot of people would love to use it on 3.5 version, include me! :)
mkdevo
01-25-2006, 03:45 PM
will this ever be ported to 3.5x? definitely one of the features i'm missing the most...
MissKalunji
03-19-2006, 02:49 PM
will this ever be ported to 3.5x? definitely one of the features i'm missing the most...
wonder the same thing
laCourt
08-16-2006, 08:03 PM
How about porting to v3.6? I would have thought this would have been included in this latest version. Help!
COBRAws
02-12-2007, 09:41 PM
I would like this for 3.6 too
Kentaurus
02-22-2007, 12:54 AM
I have no plans for porting this, but anyone that wants to please feel free to use the code/idea and port it.
Lionel
02-23-2007, 01:33 PM
I have no plans for porting this, but anyone that wants to please feel free to use the code/idea and port it.
I managed to port it to vb 3.60
The only issue I have, after you upload the attachment(s), while it is there, it does not display the link in the edit form (above "Manage Attachment" button like when posting. It's like you are working in the blind.
Once I sort that issue out, if I do, I'll do a Beyond Compare and post my changes in the 3.60 forum, with of course all credits to Kentaurus.
Lionel
02-23-2007, 07:09 PM
I solved most issues. The only one left is the calendar edit. You can remove the picture but so far you cannot add a second one. Where as you can add as many as you want in Adding New Event
This will require extensive files edit and is not for the novice. In addition it has been tailored to accomodate the attachment description hack which I also ported to 3.60.
Definitely not for the novice and I wonder if it's worth the trouble to document those tedious files edit! One thing is for sure, I will not release it for the general public as this can mess up a board if you don't know what you are doing. Functions to edit, javascripts to edit, files to edit, database to alter ... Anyone wants to test it, head to my site (http://www.haitiwebs.com) and register, then play with your private calendar (for your eyes only).
I am planning to merge it with the buy thread and events forums hacks for the specific public forums.
AudioFX
09-20-2007, 07:08 PM
This mod is old I know, but is the only one I could find that allows attachments for use in the calender. I was wondering if anyone has installed this mod for 3.6.x (specifically 3.6.8) and if it'll work?
FamChap
03-05-2008, 11:27 AM
it'd be fantastic if a working mod for 3.6.8 could be posted......
anyone? any updates, Lionel?
Lionel
03-05-2008, 01:19 PM
Sure, I've just successfully installed on a 3.70 beta 5 version, with some modifications. It's 90% files edits (2 files). But I only install it myself for my customers
Definitely not for the novice and I wonder if it's worth the trouble to document those tedious files edit! One thing is for sure, I will not release it for the general public as this can mess up a board if you don't know what you are doing.
FamChap
03-06-2008, 12:22 AM
isn't there a way to pack the edits in some file to install itself into the board?
i'd like to take the risk of destroying my board for the sake of adding attachments to calendar events. my members of my board could really use it.
couldyou PM it to me?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.