vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Calendar / Thread Integration Hack (https://vborg.vbsupport.ru/showthread.php?t=52968)

SRozhon 09-02-2003 03:07 AM

excellant! Great Job!!!

FleaBag 09-08-2003 03:36 AM

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!

Session 09-09-2003 07:13 AM

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

Cyricx 09-14-2003 02:26 PM

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

DaveLogic 10-02-2003 01:30 PM

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

Cyricx 10-03-2003 02:26 AM

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. :)

dkny 10-24-2003 08:21 PM

Anyway I can add an attachment to the event?

fmoise99 11-12-2003 04:52 PM

Great hack! May use this in the future!

fmoise99 11-12-2003 04:54 PM

Quote:

Originally Posted by dkny
Anyway I can add an attachment to the event?

That would be nice. Even multiple attachments! ;)

DaveLogic 11-12-2003 07:44 PM

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


All times are GMT. The time now is 08:18 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.01142 seconds
  • Memory Usage 1,741KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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