![]() |
Quote:
Great suggestion! This would be an awesome feature to have. |
Sure, I'm asking for it from a long time but it seems that I'm the only one interested. Now we're two. Hope that someone come out with a solution...
|
Quote:
|
Quote:
|
it may be closer to a solution than you think. I have both working on my test forum now.
|
how'd you do that??? do tell :D
|
Quote:
|
right now not on the same calendar but I see improvement and I am trying to help find the solution.
|
Ok this post might bring on a slew of PMs and the hack is a little ugly so I don't want to post it in the open but I found a dirty solution for combining both hacks:
Event Attendance: https://vborg.vbsupport.ru/showthread.php?t=93782 vB Event Forums: https://vborg.vbsupport.ru/showthread.php?t=102213 Notes Works: The Attendees are shown in the Showthread view in the connected forum. Works: The Attendees are shown in the Calendar preview. Works: You can Attend or UnAttend in either view, showthread or Calendar. BROKEN: When Attending the Event or UnAttending you are redirected to the Calendar Preview NOT the Showthread Preview but since there are the links "View Replies to this Event" & "Post a Reply to this Event" I felt my users could live with it. |
TomasDR,
I think you should post your solution in this thread and the other thread, because the limitation you are talking of is very little. I think everyone can live with it. Moreover other coders might be able to solve the redirection problem when attending/unattending. |
Ok here goes. This is what I did, it works for me in 3.5.4
I had to disable the Plugin: (hence the broken part) "redirect links to individual events to their threads instead" Hook Location : calendar_getday_start Installed by: vB Event Forums I decided to disable the Plugin: (and make a new one) "Display Event Details on Thread Page" Hook Location : showthread_complete Installed by: vB Event Forums I made a new Plugin: "Event Attendance - Forum Combined" Hook Location : showthread_complete I tied it to vB Event Forums for the Product, not sure if that really does anything. In the code I combined these 2 plugins. "Display Event Details on Thread Page" (Hook Location : showthread_complete - vB Event Forums) "Event Attendance - show/enroll" (Hook Location : calendar_getday_event - Event Attendance) (note: I had to leave this Plugin active!) The Code: show/enroll remarked in caps and bolded Code:
// we need to initialise this variable here, otherwise on non Event Threads, the var will show as text |
Ok I'm begging now-
How do I get data from specific profile fields to show up next to the username? I want to be able to take the username, put my custom profile field, say... city next to it, i.e: Code: $username, $field10 Appearance: Christopher, San Diego Violet, San Diego Bo-Jackson, Missisipi |
Quote:
|
Quote:
Any issues besides the ones I reported? Anyone figure out how to fix the two display issues? (I doubt the showthread redirect will ever work without a major rewrite.) |
i havent tried it as im not even sure what to do LOL im a lil newb here
|
I tried your edit mate, I couldn't see how they were compatible
|
Quote:
I only hope we can soon bring the features back together so that both products fully function :) Im missing a bit that you dont get the threadview when clicking on the event :( I'll see if I can help anywhere, but my PHP isn't good at all EDIT It looked as if it was working perfect, but now I get the following inside my showthread event (so if I check the replies, I see this on the below end of the event-post: Code:
<p><strong></strong></p> |
Quote:
Quote:
|
Quote:
|
Quote:
|
Quote:
$bbuserinfo[username], $bbuserinfo[fieldxx] |
So the 2 are now working together with DR's fix?
I'm desperately hoping someone codes a piece where an admin can remove people that have signed up to an event and you don't want them to have attenedance for whatever reason. Anyone? |
Quote:
|
Getting a similar html problem here - but otherwise things seem to be working so far on my test board..
Right after the text of the event, I get this: *Event text here*<p><strong></strong></p> <ul> <li><a href="member.php?u=331">dodgechargerfan</a></li> </ul> Edit: If I click the "unattend" link in the calendar event, this gets left in the thread: <p><strong></strong></p> <p><i></i></p> Hopefully, this helps steer someone towards a resolution. I'll keep digging to see what I can figure out, but I'm no expert. BTW, Thanks for everyone's work on these plug-ins and the plug-in for the plug-ins. :) |
Also, this:
"Works: You can Attend or UnAttend in either view, showthread or Calendar. " Does not work for me. I don't see a link for the attend/unattend in the showthread. While viewing the thread, I don't see any link to the calendar entry at all.. |
Well, the code that's doing that is in the "calendar_roll" template.
Not sure why it's not working though.. |
Quote:
|
This is a great hack. I am looking forard to implementing it on my site. Thanks!:)
|
Quote:
But I've made some progress! If I replace username with say field14 in this part of the plugin: Code:
if ($_REQUEST['ea'] == "attend") How do I get both variables to show up!?!?! |
What about something like this?
Code:
|
Quote:
I am unable to find the ""Display Event Details on Thread Page" Plugin. Does anybody have the same problem? Edit: Somehow I downloaded version 1.2 of this hack. Now I have the correct version and modification is very easy. |
Quote:
Also, when you enroll, it adds the profile fields, but when you say you will no longer be attending the event, it removes only the username, the profile fields are left behind... Thanks for your efforts! |
Quote:
Alrighty, now we are gettin somewhere! This works, excepting I'd like to have the profile fields next to the username, the way this is setup, it put's the fields in the same column as the username... FYI, I've also added the variables to the unset area so that when the user removes him/herself from the event, the custom fields also remove, here is the code so far: Code:
//Check time till event |
Oh I love talking to myself!
Thanks for all your help btw! appreciated! Here I finally got what I was after---This allows you to add chosen profile fields next to the username----simply replace field14 with whatever field you are after: Code:
//Check time till event |
Quote:
Your modification is a big step forward, but there are these problems: 1. You have to enable html in the event forum to be able to see the enrolled member list correctly. Otherwise you get this error: https://vborg.vbsupport.ru/showpost....&postcount=185 2. There are no links to attend or unattend the event in showthread. 3. Showthread does not explain "There are 5 people enrolled for this event:", so some users might wonder why those members are listed. 4. There is a javascript error: left corner of the status bar says "error on page". Anyone able to improve this? |
Quote:
2/3. Very odd, if you refer to my screenshots (which aren't doctored) I definitely have links and text showing the ability to attend/unattend and the phrase "There are # people enrolled for this event:" in Showthread. 4. I don't get a javascript error, I do have other hacks installed. Not sure if something else is conflicting. |
Which screen shots do you mean? Those of post 172?(https://vborg.vbsupport.ru/showpost....&postcount=172)
Don' t they show the calendar view only? That is working without problem for me, too, but the showthread view in the forum does not show those links and the explanation. I think that is the reason for the javascript error on my installation, because when I disable both hacks (attendance and event forums) the error is not present any more. |
Cool! Allowing html fixed the one problem.
I do see the same 2, 3 and 4 issues, though. javascript error text is: Line: 66 Char: 3 Error: 'vB_Editor[...]' is null or not an object. Code: 0 URL: http://www.sitename.com/forums/showthread.php?t=8814 |
Quote:
1. had to enable HTML & Moderate Threads options in event forum. so that i can view if any member included any bad html code :p for 2 & 3. Just did this tweak..:p in templates 'calendar_roll' find: Code:
$vbphrase[roll_cancel] Code:
I will no longer be attending this event Code:
$vbphrase[roll_enroll] Code:
I will be attending this event Code:
$vbphrase[roll_nobody] Code:
Nobody yet Code:
<phrase 1="$rollcount">$vbphrase[roll_text]</phrase> Code:
There are $rollcount people enrolled for this event: |
The replacement of the phrases is a workaround for single language forums, but I have two languages installed... It is not a big problem, since most users are using the default language anyway. But somehow I am not satisfied with this solution.
And it does not help solving to show the number of enrolled people. If anybody does not need the amount of enrolled users, you should just replace the phrase with "these people are enrolled for this event". |
All times are GMT. The time now is 05:48 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|