Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Attachments in calendar events Details »»
Attachments in calendar events
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-07-2004 Last Update: Never Installs: 13
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-25-2004, 08:00 AM
Lee Wilde's Avatar
Lee Wilde Lee Wilde is offline
 
Join Date: Apr 2004
Location: Perth, Australia
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you! Installed in minutes without a single hitch. Very impressed.
Reply With Quote
  #13  
Old 05-25-2004, 08:11 AM
Lee Wilde's Avatar
Lee Wilde Lee Wilde is offline
 
Join Date: Apr 2004
Location: Perth, Australia
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"?
Reply With Quote
  #14  
Old 05-25-2004, 06:26 PM
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Location: London
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked first time, I can see this being very useful

*clicks install*
Reply With Quote
  #15  
Old 08-12-2004, 12:25 PM
nexialys
Guest
 
Posts: n/a
Default

!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
Reply With Quote
  #16  
Old 08-13-2004, 03:59 PM
spence2 spence2 is offline
 
Join Date: Jun 2002
Location: usa
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, this will not work in 3.03 "as is"?
Reply With Quote
  #17  
Old 09-10-2004, 03:26 PM
D|ver's Avatar
D|ver D|ver is offline
 
Join Date: Feb 2003
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now i installed this. a really great hack

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?
Reply With Quote
  #18  
Old 09-22-2004, 02:21 AM
Mattius Mattius is offline
 
Join Date: Sep 2004
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 09-22-2004, 06:56 AM
Mattius Mattius is offline
 
Join Date: Sep 2004
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK strange i got the attachment in calendars to work now, but not pm's
Reply With Quote
  #20  
Old 09-23-2004, 11:21 PM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #21  
Old 10-02-2004, 09:29 AM
robert_2004 robert_2004 is offline
 
Join Date: Sep 2004
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05131 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete