![]() |
Once you've chosen the correct database, I believe it is the SQL tab.
|
would it be possible to have a section on the users profile page saying what events they will be attending ??
|
Quote:
To display this information with a user's profile, you'd have to scan through every event and look at that additional bit of information to see if it matches the chosen user profile. I think the code to do this will be even more than the original hack, lol. Essentially, you'd be scanning the entire events table (or just the newer events) every time a user looks at another's profile. I suspecting it would be kinda heavy on the server if this was implemented on a forum with a lot of users and events. |
thanks for the reply but doesnt the attendance table hold the users ID (when they click to say there attending) in which case calling the record from the database would be easier on the server (WHERE userID = "?")
|
I looked at the structure of the events table and the "roll" field and it seems quite easy on the server. All it has to do is go through the events table just like you said. Now, who wants to code this cool idea? :D
|
Suggestion:
In the Public Calendar when you click on the link at the bottom of the page to add or remove yourself as an attendee, it would be very helpful (for planning purposes) to have a drop down menu or text box available to fill in a number for how many will be in that "party". For instance, we are planning a BBQ on Oct. 30. This is going to be open to both members and non-members (i.e. families). If a person is going to bring a spouse, 2 kids and a friend who may be interested in diving in the future, it would be very helpful to be able to look at the list and see that this will be a "Party of 5", it would also be an added bonus if the total number of attendees could be shown. Adding this feature would make the Calendar more "useful" and relevant. If you still have to comb through a thread to find the number of attendees for each name, the Calendar function becomes less valuable. |
This doesn't seem too hard to do, but for my site I would have no need for it. But I see how your suggestion can take the calendar to the beginning stages of becoming a planner--which I fully believe it will be in the future once people realize what you can do with it.
|
Right now a lot of our users are planning group events which means a lot more than just 1 person attending per username... this makes the "attending" feature almost useless as it misrepresents actual attendance. I would love to see (and am willing to pay for) a feature to simply include the # of attendees... it doesn't seem hard to add but time is not something I have lots of.
|
If someone writes out the pseudocode, I'd be willing to hack at it in my spare time.
|
that would be so sweet if you could !! dunno about the code tho
|
That's the hard part--the pseudocode. It's the logic behind the code. That's where ideas on how to do something get tested, shot down, optimized and the like. The coding is the easy part once you have the logic. Then it's just a matter of making the chosen language do what the pseudocode dictates.
|
dont have a clue how to do pseudocode sorry :(
|
so................................
|
Quote:
PHP Code:
Note that the SQL matches the entire user information, as performing wildcard LIKE's are never good because if we just did the userid we might match events that had the same number of attendees as the user id... or worse, if we compared on username, there may be a user named Rob and one named RobSmith and we'd match that. So that's the SQL... and it works... so it shouldn't be too hard to write the rest :) Please, when writing the rest, bear in mind whether the event is publicly viewable, i.e. that the calendar that it appears on is viewable. ;) |
legend
|
Question - does anyone know of any easy way to update the mod so that when a user signs up for an event, as opposed to just listing their post name, it actually uses their name as a link to their public profile?
For me that would be a handy feature as even organizers could easily pull the user info from the custom fields in the user profile that I have enabled on the site. I'm going to play with it and see what I can come up with. Thanks in advance! - Mark |
Quote:
|
Thanks a ton SamirDarji - I had missed that note in the post by buro9 that he had added the link to the profile in the Roll Call hack!
Installed and working great! Now to go back and fix the duplicate member fix! |
Yeah, I missed the fix to the unregistered user problem and spent a few good hours making the same fix. I would've hated to see you do the same.
|
Quote:
|
What's CVS?
|
Quote:
It's used widely by software developers around the world to track and marge changes in code bases. It allows multiple developers to work on the same code, each one can see what the other has done, merge changes, view differences, etc. SourceForge, Apache, Mozille... they all use CVS systems of some sort or other. Microsoft use CVS systems, as does Sun, as does IBM... as does everyone. They come in many shapes and sizes, the worst is probably Visual SourceSafe from MS, the good ones are Subversion, Perforce, Merant, WinCVS, etc. Even Jelsoft use CVS, which is how you get those headers in the files saying the CVS file version ;) I am just increasingly of the opinion that as a lot of the hacks evolve thanks to the contributions of many hackers, that if the author consented, that they could be made open to all to improve, and placed within a CVS system whereby all changes can get rolled into one package for end users. Having a CVS system for hacks would prevent the need for you to search through this thread for improvements, bug-fixes, differences, etc... as you would just fetch the latest version from CVS and that would simply be the version that featured all contributions. |
Quote:
sorry im lost is any1 looking at coding this |
I haven't had a chanced to do more than glance at it. We have the psuedocode for the sql, now we just need the supporting code that will end up in the php files as well as the html templates.
|
Quote:
Original post: Quote:
|
is it possible to show the number of attendees of an event next to the event titel on forumhome where the next events are shown?
can somebody help me with this? that would be really great :) |
I don't have time to code it, but the logic would be to count the attendees as it lists them, put that count into a variable that gets passed to the template and then modify the template to use the variable. Should be fairly easy. Someone code this. :D
|
buro9
Is there any chance we can get you to post a zipped file or start a new thread with all that updates and instuctions that have taken place since the owner of this mod has posted it? Since he does not seem to participate in this thread anymore. |
Quote:
Can a mod advise whether this would be alright? In the case where a hack is abandoned and unsupported by it's creator, is it ok for the wider community to take ownership of it and fix outstanding bugs and issues with it and re-package it in a new thread for new users to benefit from? I wouldn't want to help you all in this way if all it results in is my getting a kick from the moderators... afterall, it works fine on my board ;) I can't report my own post of course, but I'll report yours so that someone reads this and can advise on whether we would be allowed to do this. |
I think this would be a good idea if the project is abandoned. I'd definitely like to be one of the coders for the revised version since my site so heavily relies on this hack. Any improvements and additions benefit me greatly and I'm willing to do my part to give back to the community.
|
Excellent hack. I have just installed it.
Thanks a lot. :) |
Quote:
|
I would work on it, but I've got work on my site I have to do first. I like the feature too, but it's not a priority at the moment. The SQL query is a good chunk of the work. Now the appropriate php files and templates that generate the profile need to be changed and tested.
|
what site do you use these on if you dont mind me asking
|
My new site url is www.huntsvillecarscene.com, but I haven't start putting it out there as a replacement to hsv.streetracing.org since the old site still has more content.
|
Quote:
find Code:
if ($eventinfo['useroll']) { Code:
$rollcount=0; Code:
There are currently $rollcount Participants enrolled in this event. |
wow thanks so much it is working without any problems :)
but how can i now insert the $rollcount number in the forumhome, where the upcoming events are listed. i want to have this number right after each event, if possible i tried it by adding the variable into the forumhome_event template, but without success... can somebody help? |
To be able to use that variable outside the calendar templates, you'll have to find a way to execute the php code that generates the information behind $rollcount. If not, the variable will be empty. I'd look into the forum.php file and see how the upcoming events are generated. You'll probably have to add a lot since it doesn't even do the roll count there at all.
|
I've run across something I'd find useful. After an event has passed, wouldn't it be nice if the "I will be attending/not be attending" option goes away. So people can't change the list after an event and you can see who planned on coming.
|
Quote:
As that will then keep a list of who was where, etc... and I think should still be editable as if someone cancelled last minute they could remove themselves... just as those who might attend last minute could add themselves :) |
All times are GMT. The time now is 04:17 AM. |
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:
|