My Account Links for EventPress
On a single event page, there are some links that allow users to manage that event: ‘Home’, ‘Activity’, ‘Edit’, ‘Forum’, ‘Who is Attending’ and ‘Send Invites’.
I have BuddyPress and EventPress installed, and when I go to a user’s profile and click on the ‘Events’ tab, the links shown on the single event page appear. These links don’t make sense here because no individual event is selected. In addition, the URL is pulling the latest blog post for some reason. Not only do these links appear here, but when on someone’s event section of the profile page (and only on these pages), the links in the admin bar change to match those of the single event page. Normally, the admin bar shows ‘My Events’ and ‘Invites’, which is correct.
I corrected the links on the events tab for the user profiles by coding the correct links into the type.php file that I copied into my theme. The admin bar options are still incorrect. I noticed that the $bp global variable contained the menu arrays, but wasn’t sure where or how to to best alter this. It seems to me that you rewrote the event section of the bp_nav_options array to work for the single events pages, and those changes are being improperly carried out on the user profile events pages.
Another issue, the list of events on the events tab for any given user profile was only showing the static front page as an ‘event’. I checked the query variables and the query was just requesting the id of this page.
I fixed this issue by running query_posts() in the type-loop.php file (that I copied to my theme) to fetch the published events for the displayed user.
I wanted to be sure and bring these things to your attention since these seemed to be some rather obvious bugs.
- The topic ‘My Account Links for EventPress’ is closed to new replies.