vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Calendar Enhancements - Farcaster's Event Attendance (https://vborg.vbsupport.ru/showthread.php?t=129088)

Farcaster 03-03-2007 01:31 AM

Quote:

Originally Posted by Toewalker (Post 1194367)
1) solution for the problem descriped earlier in my post #209:

add unique key over eventid AND userid in table eventattendance, for EXAMPLE (use at your own risk! maybe the prefix "vb3_" has to be adjusted):
Code:

ALTER TABLE `vb3_eventattendance` ADD PRIMARY KEY ( `eventid` , `userid` );
this way, the "REPLACE" SQL statement should work as expected (hardly tested!!).

That would not be a correct primary key. The installation script already created a unique index. Perhaps it should have been a composite key, but unique key should work. In anycase, the unique key or composite primary key needs to be on eventid, ocdate, and userid. Otherwise, when you have a ranged or recurring event, the REPLACE INTO will overwrite any other RSVPs for that user on other days of the event.

The installation script makes this statement:

PHP Code:

        CREATE UNIQUE INDEX uq_eventattendance__eventuser ON ".TABLE_PREFIX."eventattendance (eventid,ocdate,userid); 

That should do it. Did your installation not have a unique key called uq_eventattendance__eventuser, as the one above?

Toewalker 03-03-2007 08:21 AM

No it didn't have that unique key. I checked your installation scripts with the product manager and I found the create-statement there. So that's really strange.
However, it works now, so everything's fine :-)
I'm using Mysql 4.0 and vBulletin 3.6.1, maybe that was the problem?!?

Thanks,
Toewalker

ravencr 03-08-2007 05:41 AM

Does anyone know if I could incorporate this hack with the form hack here:

https://vborg.vbsupport.ru/showthread.php?t=126676

Instead of people being able to post whatever they wanted in the new event, I'd like to use a form instead so every event is uniform and allows people to search for certain characteristics within an event.

Chris

Farcaster 03-09-2007 12:45 AM

Ravencr,

No, the form hack will not create a new event, so it will not work with this hack. Have you considered using calendar fields? That would allow you to setup certain standard fields for the event poster to fill in.

ravencr 03-09-2007 01:00 AM

Where do I find out more about Calendar Fields? Thanks so much for the help,

Chris

adwade 03-09-2007 01:46 PM

In AdminCP panel for this MOD the RSVP Expiration options reads:

"Do you want to prevent members from signing up for an event on or before the event date (specified at the time the event is created)?"

If this is toggled to NO, is there anyway to implement it after the event is posted, w/o having to re-create new events after toggling it to YES?

TheBlackPoet 03-11-2007 04:16 AM

why cant i uninstall this hack?? i can disable it, but i want to uninstall it... it gives me an error every time

TheBlackPoet 03-11-2007 04:23 AM

no worries... got it...

ravencr 03-11-2007 03:23 PM

Where do I find out more about Calendar Fields? Thanks so much for the help,

Chris

ricker 03-16-2007 03:53 PM

When showing multiple events on the same day at the same time I'm getting count errors.
Compare 9AM Run vs. the 9AM run here. It's not a huge deal but I thought I'd point it out. We love this mod, and thank you for all of your hard work.

ravencr: AdminCP > Calendars > Edit a Calendar


All times are GMT. The time now is 05:03 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.01657 seconds
  • Memory Usage 1,747KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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