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

Reply
 
Thread Tools
Calendar / Thread Integration Hack Details »»
Calendar / Thread Integration Hack
Version: 1.00, by Session Session is offline
Developer Last Online: Apr 2006 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-14-2003 Last Update: Never Installs: 11
Is in Beta Stage  
No support by the author.

Ok, this is my first VBulletin hack so please be calm on me As this is a beta BACKUP the files to be edited (as always)

I always wanted to link the calendar events to a thread aswell. So that if you make a public event, it also generates a thread from the same info. Now i always thought this was going to be hard, but actually it is really simple.

There are 5 steps to do in total in just 2 files. It concerns the calendar.php and the newthread.php

I tested this on vb 2.30 & works smoothly now at my site www.livesets.com

what does it do exactly:
  • When people push the New Thread button in a particular forum (can be specified as you like) you will be redirected to the Add Public Event screen
  • After filling in the required info it generates a public event just like it would do normally
  • next to that it will generate a thread in the forum where you pushed the New Thread button with topic title [date] title ( f.e. "[2003-05-14] Awakenings, Amsterdam NL" ) adn the same content as the Public Event
  • after that it updates all counters (forum,thread,user)
  • redirects to the new thread

NOTICE: on several places you will have to manually insert the forumid you want to use for this, in the example attached here the forumid used was 2

Please give some feedback I'm really happy i got this to work Some members already requested something like this, this is to make them happy :classic:

Greets,
Session.

Show Your Support

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

Comments
  #22  
Old 09-02-2003, 03:07 AM
SRozhon's Avatar
SRozhon SRozhon is offline
 
Join Date: Apr 2002
Location: IL
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

excellant! Great Job!!!
Reply With Quote
  #23  
Old 09-08-2003, 03:36 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
08-21-03 at 11:01 PM bloodkat said this in Post #20
So, I am super new to this, and I am probably missing something obvious... but I installed this hack, and the only people that can use it so far are the admins (for whom it works flawlessly ). I am confused, because I do not see any permissions settings in the hack, and I have not set any custom permissions on the calendar or the forum in question, but everyone besides the admins that attempt to add a new event, enters in their new thread info, and when they hit submit, they get a vBulletin message that says:

You do not have access to do this.

I have been poking around, but I can not seem to find the problem here. Anyone have any thoughts?? Would REALLY appreciate the help.
Isn't this because as default, only admins can add public events? I'm assuming you need to use one of the hacks to enable any members to use this hack.

Session, you stated earlier you had worked out how to get a Reply button, is it possible you could share this with us?

Thank you!
Reply With Quote
  #24  
Old 09-09-2003, 07:13 AM
Session Session is offline
 
Join Date: Mar 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will post an update soon, i'm close to having it 100% perfect with country / city / eventname selection.. see www.livesets.com

only thing i need to do is make it editable in the same way ( i need to extract the different fields again when i want to edit )

Give it a week or 2
Reply With Quote
  #25  
Old 09-14-2003, 02:26 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bloodkat, get ahold of me on MSN IM and we will poke around

I'm betting its in your calendar access or in the forums permission settings

Session, awesome man, look forward to the update, this is most definately one of the most useful hacks on my site. And being I use 80 some hacks lol, that's saying alot
Reply With Quote
  #26  
Old 10-02-2003, 01:30 PM
DaveLogic DaveLogic is offline
 
Join Date: Jun 2003
Location: London
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't installed this hack yet but I have managed to create several extra fields, i.e Event, Venue, Date, Price etc and they all work perfectly....Is it at all possible to have the calendar entries linking to threads, i.e when you click on a calendar link it takes you to the thread not the calendar entry?? This way it will allow for images to be posted within calendar events..
Reply With Quote
  #27  
Old 10-03-2003, 02:26 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I've figured out how to add a new field and everything, and got it integrated enough with this hack that it doesn't break anything hehehe. However I need to find or figure out a way to get it to add to the thread.

It's a "meeting place" field
So at the beginning of your hack code I have this -
Quote:
$DB_site->query("INSERT INTO calendar_events (userid, event, eventdate, public, subject, allowsmilies, location)
VALUES ('$bbuserinfo[userid]', '$message', '$date', $public, '$subject', $allowsmilies, '$location')");
$eventid = $DB_site->insert_id();
$DB_site->query("INSERT INTO thread
Now what I'm wondering is how I can get the $location to add into the $subject field of the new thread maybe like a

Meeting Place: $location
< br >
$message

or something like that. Is there a $message="meetingplace $location, < br > $message

kinda code I can do? or any other ideas? =/

I want to add several fields but I just need an example of how to do it once and I can easily duplicate the code

Any ideas?

EDIT - Nm, after a lot of digging finally figured it out, and learned a bit more about php too

here is what I did for those wondering the same..

took this part of sessions code
Quote:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible)
VALUES (NULL,'$threadid','$subject','$bbuserinfo[username]','$bbuserinfo[userid]','".time()."','0','$message','1','0','0','0','1') ");
$postid=$DB_site->insert_id();
and altered the $message to Meeting Place: $location < br > < br > $message

like so

Quote:
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible)
VALUES (NULL,'$threadid','$subject','$bbuserinfo[username]','$bbuserinfo[userid]','".time()."','0','Meeting Place : $location < br >< br > $message','1','0','0','0','1')");
Removing the spaces before and after the "br" of course

Hope this helps anyone wondering the same.
Reply With Quote
  #28  
Old 10-24-2003, 08:21 PM
dkny dkny is offline
 
Join Date: Aug 2002
Location: NYC
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyway I can add an attachment to the event?
Reply With Quote
  #29  
Old 11-12-2003, 04:52 PM
fmoise99 fmoise99 is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! May use this in the future!
Reply With Quote
  #30  
Old 11-12-2003, 04:54 PM
fmoise99 fmoise99 is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dkny
Anyway I can add an attachment to the event?
That would be nice. Even multiple attachments!
Reply With Quote
  #31  
Old 11-12-2003, 07:44 PM
DaveLogic DaveLogic is offline
 
Join Date: Jun 2003
Location: London
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fmoise99
That would be nice. Even multiple attachments!

If this hack could have even one attachment it will immediately become THE mother of all hacks IMO...
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 02:36 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.04568 seconds
  • Memory Usage 2,310KB
  • 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
  • (6)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
  • (4)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
  • (11)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