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)

Caster 02-21-2007 09:10 PM

Farcaster, a small question, I'm working on the script to add users from outside vBulletin, and I was just wondering in the
PHP Code:

if (cache_event_info($eventinfo$todaydate['mon'], $todaydate['mday'], $todaydate['year'], 1false)) 

What would $eventinfo be exactly? I checked in the functions_calendar.php and it just says,
PHP Code:

function cache_event_info(&$event$month$day$year$adjust 1$cache true

is it just the eventid?

Farcaster 02-21-2007 09:19 PM

Quote:

Originally Posted by Caster (Post 1187836)
Farcaster, a small question, I'm working on the script to add users from outside vBulletin, and I was just wondering in the
PHP Code:

if (cache_event_info($eventinfo$todaydate['mon'], $todaydate['mday'], $todaydate['year'], 1false)) 

What would $eventinfo be exactly? I checked in the functions_calendar.php and it just says,
PHP Code:

function cache_event_info(&$event$month$day$year$adjust 1$cache true

is it just the eventid?

$eventinfo is an array of event variables. The array is populated from the fields in the event table and some additional computed fields are added during the processing of the event in calendar.php. If you look in the calendar.php file, you should find a place where $eventinfo is being populated with a database call. You can use that as a reference for creating your own call to create the $eventinfo array.

Caster 02-21-2007 09:48 PM

Thanks I'll check it out right now

TitanPK 02-23-2007 08:01 PM

Thanks for the upgrade, I was wondering if it could be tweaked so that the moderator groups or event creator could change the status of the RSVP as well as remove it.

for example, i sign up as maybe. can it be made so that the event creator changes my status to YES or NO?

also, can it be made so that when an RSVP is made or changed that the thread shows as new?

Ted S 02-25-2007 04:04 AM

I have encountered a bug with viewing events and character trimming. Basically on the vent display page the end character is often chopped off although this does not happen with all characters. Sentences ending an "n", "b" or "s" (and other letters) get chopped while sentences ending with "." or "k" do not. Editing the event shows the original text so it is clearly not getting lost in the database, just in the display.

dknelson 02-26-2007 10:58 AM

Do any of these event attendance hacks allow for the fact that maybe more than one person is coming from the same family? For example, my site is dedicated to motorcycle touring. We have a lot of members who sign up but their wife or somebody else is riding with them. Is there any way to add an option that people can sign up and indicate 2 people or whatever?

stwilson 02-26-2007 11:07 AM

Quote:

Originally Posted by dknelson (Post 1191009)
Do any of these event attendance hacks allow for the fact that maybe more than one person is coming from the same family? For example, my site is dedicated to motorcycle touring. We have a lot of members who sign up but their wife or somebody else is riding with them. Is there any way to add an option that people can sign up and indicate 2 people or whatever?

Yes, this MOD does just that. The poster of an event can limit the amount of guests a member can bring but it does allow for guests on event signup.

dknelson 02-26-2007 11:42 AM

Thank you very much. Downloading and clicking installed. :)

Toewalker 03-01-2007 01:49 PM

Hi,

I think I've encountered a bug: after signing up for an event, changing my RSVP status results in a double-signup (the old status-entry is still there and additionally the new status-entry). Is this intended?
I'm using vbulletin 3.6.1 and your version 1.2.0... No problems during install and I followed the install instructions for 3.6.x...

Thanks,
Toewalker

Toewalker 03-02-2007 07:44 PM

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

2) localization issue; for example German vbulletin, if you choose "yes" which's translation would be "Ja", then it will not reselect your choice after you rsvp'd (because it compares $myrsvp which has the translated value to the hardcoded "yes" value).
Fixed template "calendar_rsvp_form":
Code:

<form action="calendar.php?do=getinfo&e=$eventinfo[eventid]&day=$rsvp_day" method="post">
<input type="hidden" name="do" value="getinfo" />
<input type="hidden" name="cdo" value="rsvp" />
<input type="hidden" name="day" value="$rsvp_day" />
<input type="hidden" name="e" value="$eventinfo[eventid]" />
<input type="hidden" name="s" value="" />


<if condition="$bbuserinfo['userid'] AND $expires[0]>=0">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr><td class="alt2">
               
                <if condition="$expires[unixdate]">       

                        <if condition="$myrsvp">
                                <b><phrase 1="$rsvp_day_formatted" 2="$myrsvp">$vbphrase[calendar_rsvp_yoursvp]</phrase></b><br />
                                <font class="smallfont"><i><phrase 1="$expires[date]">$vbphrase[calendar_rsvp_maychangeby]</phrase></i></font>

                        <else />
                                <b><phrase 1="$rsvp_day_formatted">$vbphrase[calendar_rsvp_attendquestion]</phrase></b><br />
                                <font class="smallfont"><i><phrase 1="$expires[date]">$vbphrase[calendar_rsvp_changeby]</phrase></i></font>

                        </if>
                        <br/>
                       
                <else />
               
                        <if condition="$myrsvp">
                                <b><phrase 1="$rsvp_day_formatted" 2="$myrsvp">$vbphrase[calendar_rsvp_yoursvp]</phrase></b><br />
                                <font class="smallfont"><i>$vbphrase[calendar_rsvp_maychange]</i></font>

                        <else />
                                <b><phrase 1="$rsvp_day_formatted">$vbphrase[calendar_rsvp_attendquestion]</phrase></b><br />
                                <font class="smallfont"><i>$vbphrase[calendar_rsvp_changelater]</i></font>

                        </if>
                        <br/>
               
                </if>

        <INPUT TYPE=RADIO NAME="response" VALUE="Yes" <if condition="$myrsvp==$vbphrase[yes]">checked="checked"</if>>$vbphrase[yes]
        <INPUT TYPE=RADIO NAME="response" VALUE="Maybe" <if condition="$myrsvp==$vbphrase[maybe]">checked="checked"</if>>$vbphrase[maybe]
        <INPUT TYPE=RADIO NAME="response" VALUE="No" <if condition="$myrsvp==$vbphrase[no]">checked="checked"</if>>$vbphrase[no]<br \>
        <if condition="$eventinfo['rsvp_max_guests']">
                <i>$vbphrase[calendar_rsvp_guests_prompt] <input type="text" name="guests" id="guests" size="3" value="$myguests">
                $vbphrase[calendar_rsvp_guests]. (<phrase 1="$eventinfo[rsvp_max_guests]">$vbphrase[calendar_rsvp_guest_limit]</phrase>)</i>
        </if>
       
        <if condition="$maxlength">
                <table>
                        <tr>
                                <td><b>$vbphrase[comment]:</b><br \>
                                <td align="right"><font class="smallfont"><i>($vbphrase[calendar_rsvp_maxlength] = $maxlength)</i></font></td>
                        </tr>
                        <tr>
                                <td colspan="2">
                                <textarea name="comment" rows="2" cols="80">$mycomment</textarea>
                                </td>
                       
                        </tr>
                </table>

        </if>
        <input type="submit" class="button" value="$vbphrase[submit]" />

        </td></tr>
        </table>
        </form>
</if>
<if condition="$expires[0]<0">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr><td class="alt2" align="center" valign="center" height="75"><font size="2"><b>$vbphrase[calendar_rsvp_closed]</b></font></td></tr>
        </table>
</if>

voila, preselection of former posted rsvp's works on German vbulletins...

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

ravencr 03-16-2007 04:25 PM

Thanks for the help! That will work perfectly once I figure out how to make it appear up top instead of on the bottom. Thanks so much.

Chris

IR15H 03-16-2007 11:27 PM

"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)?"

I though this phrase is kinda confusing, it gives the impression that members can not sign up before the event, nor on the actual day (therefore only after, which would defeat the point of an RSVP system). I think something along the lines of;

"Prevent members from signing up to an event a certain time prior to the event (specified at the time the event is created), or after it has passed?"

would be less confusing, at least for me :p.

Also, I have two small requests which I imagine are easy to do, but I'm fairly new to all this stuff so don't know how.

1. I would like to remove the phrase calendar_rsvpd completely. (I currently use just one space to hide it)
2. Rather than use the standard yes & no phrases I'd like to use custom ones, I want to change the color of yes/no/maybe - but only for the replies on events, not everywhere that uses the standard yes/no phrase. Or, possibly change it so they read attending/not attending, but can't if they use standard yes/no phrases.

Not a big deal, but be nice if it can be done easily. Other than that, great mod.

EDIT:

Make that 3 requests, is there anyway to allow smilies/images/urls in the replies?

JohnK 03-20-2007 01:54 PM

I've bumped this once, but haven't had any luck. I'd really like to have this working for me though, so I thought I'd try again before I give up.

Ta!

Quote:

Originally Posted by JohnK (Post 1139326)
Hi

I've just installed it and it looks great, but I have a couple of issues/requests.

It looks like you are using the global phrase "x_members_and_y_guests" on the calendar page, which gives a screwy result if you've edited that phrase (see attachment!)

I'd like to be able to have unlimited guests, and remove the various references to a limit. Is that something that could be done without too much trouble?

Finally, one for the wish list: it would be great if I could include some of the user's profile fields (memberinfo_customfields) in the list of attendees. Any chance of adding that sometime?

Thanks! :)


ricker 03-24-2007 10:26 PM

Quote:

Originally Posted by JohnK
it would be great if I could include some of the user's profile fields (memberinfo_customfields) in the list of attendees.

I'm interested in this as well. If anyone has any pointers as to how to get this done, I'd appreciate it!! (Been trying for a while now without much luck)

Quantnet 03-27-2007 11:57 AM

My members are having problem changing their rsvp from Maybe to Yes.

I can't even remove their RSVP....where should i look ?

DJFriar 03-28-2007 05:36 PM

Is there a way toremove the "No" option? We have 250 paid members, and over 1000 active members, and lots of them feel compelled to put no in.

Quantnet 03-29-2007 02:46 AM

Any plan for future updates ?

mawby 03-30-2007 02:19 PM

I've just installed this. I had an event which I edited to tick the RSVP allowed option, but when I pressed save I got...

Fatal error: Only variables can be passed by reference in /vbb/includes/class_dm_event.php(569) : eval()'d code on line 41

EDIT - I've just disabled this plugin and it still happens so the problem must be with the vB Events Forum plugin I installed seconds before this one! :)

Farcaster 04-06-2007 04:44 AM

Quote:

Originally Posted by Quantnet.org (Post 1214996)
Any plan for future updates ?

Yes, I do plan to add more features to this. It is just a matter of time. I have a number of private features I am working on for my own forum and one commission project for another board this month. Are there any burning additions you guys are really wanting for the next release? The one I know I am going to work on is having a maximum amount of RSVPs and possibly a queue system for RSVPs beyond that point.

Quantnet 04-06-2007 05:22 AM

Quote:

Originally Posted by Farcaster (Post 1220818)
Yes, I do plan to add more features to this. It is just a matter of time. I have a number of private features I am working on for my own forum and one commission project for another board this month. Are there any burning additions you guys are really wanting for the next release? The one I know I am going to work on is having a maximum amount of RSVPs and possibly a queue system for RSVPs beyond that point.

I like the queue idea. when someone rsvp yes and later change to maybe/no, then the first person in rsvp maybe queue will be bumped to yes.

A problem I have with the current version is that even though i set it to display rsvp based on time of rsvp but when i update my comment, it bumps me to the bottom of rsvp even if I'm the first one to rsvp

RedefiningFate 04-08-2007 06:11 AM

I have a question...I setup RSVP on an event however my members can use it...by my directors (admins) can not. It doesn't show up for them...

Any suggestions?

RedefiningFate 04-09-2007 12:31 PM

Anyone?

RedefiningFate 04-09-2007 04:17 PM

NVM figured it out...I forgot to change a template...

Farcaster 04-12-2007 09:50 PM

Quote:

Originally Posted by Quantnet.org (Post 1220839)
A problem I have with the current version is that even though i set it to display rsvp based on time of rsvp but when i update my comment, it bumps me to the bottom of rsvp even if I'm the first one to rsvp

Hmm.. That probably wouldn't be too hard to fix. I shall look into it.

Masked Crusader 04-16-2007 11:59 PM

Farcaster -

First off, I love this mod. However, I found someone who has modded the script EXACTLY how I want it, and I am wondering what template/plugin they edited in order to get that result?

Here is the link with an example of what I am looking to do:

http://www.wowhq.com/forum/calendar....=2007-4-17&c=1

Masked Crusader 04-17-2007 12:17 AM

Alright, figured out which template...just still trying to figure out how the heck he customized it.

TheMilkCarton 04-21-2007 10:24 AM

After upgrading to 1.2.0, Quick Reply no longer works in the Event thread.

This was reported in the vB Events thread, and I told them I didn't have such a problem, but sure enough, I just updated both this and the integration add-on and Quick Reply no longer works.

I temporarily added "$thread['forumid'] !==XX" to my Quick Reply box until there's (hopefully) a fix. I luckily found the old versions of the XML files in case there is no fix and I need to revert.

gmrstudios 04-25-2007 05:17 PM

Is there anyway to set the default value for "Time Before Event to Close RSVP" to forever?

Completely unrelated to my previous question I get the following message "RSVP sign-ups for this event are now closed." when creating an event despite setting to the RSVP close date to 30 days.

Farcaster 04-25-2007 06:41 PM

To your first question, gmrstudios, no there is not a way to make it default to forever. The only method for you to do this currently is to disable the rsvp time-outs altogether.

As to the problem you are having, keep in mind that when you create an event and mark the close date as 30 days, that means that the user MUST sign-up at least 30 days BEFORE the event. After that, no changes can be made. So, if your event is less than 30 days in the future, that makes total sense. If this doesn't answer your problem, send me a PM with the URL of the event and a temporary login and password.

Sid 05-05-2007 04:50 PM

Farcaster: I currently use the vbulletin calendar and this mod to manage LAN party events however I'd like to move this over to the frontpage (vbadvanced) area of my site.

I'd like the list of signups and the ability to signup to be an independent main site page. Is this a fairly simple adaptation? Would you be willing to give me an idea/code on how to achieve this?


All times are GMT. The time now is 07:46 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.01794 seconds
  • Memory Usage 1,869KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_php_printable
  • (8)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
  • (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