vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Attachments in calendar events (https://vborg.vbsupport.ru/showthread.php?t=62264)

Kentaurus 03-07-2004 10:00 PM

Attachments in calendar events
 
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. ;)

snyx 03-08-2004 12:55 AM

Quote:

Originally Posted by Kentaurus
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

Quote:

Originally Posted by D|ver
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

Quote:

-------------------------------------------------------------------
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

Quote:

Originally Posted by Mattius
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

PHP Code:


// 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

Quote:

Originally Posted by Mattius
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

Quote:

Originally Posted by spence2
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.

Quote:

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.

Quote:

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)


All times are GMT. The time now is 09:19 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
  • Page Generation 0.01484 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete