TimCarey
Forum Replies Created
-
You can edit the group header file. It has the check in it for when the group frontpage is active on what shows above the group frontpage. You could add elements and the other check when aplugin isn’t active. Edit this at your own risk please back up your site and the file before trying. Once a figure out how to do an admin page on the dashboard. I can add a check box for this probably. But I am busy to try to figure out these menus myself.
I responded by e-mail to this person. he figured it out himself by using some kind of css
I’m not sure about this. Tell me what your adapted function you have above in your statement. Also what would you like this function to do on category. You probably could adapt my code into a function. Just instead of putting it in a select box it would actually go to the correct page indicating the category. Let me know if you need some help.
There is one error in the code above for the drop down menu in the grid view containing all the categories. Plus creating my own widget having all the event categories I install the widget called WP PHP Widget an and put some code into that widget. The code has to be different in the widget though for the addresses to work. Here’s the code for both below. And also for it to work properly the select box of the grid view has to have a different ID than the idea of the select box in the widget. (ID or name)
Code for drop down in grid view document
<?php $terms = get_terms("tribe_events_cat"); $count = count($terms); if ( $count > 0 ){ echo "<script type='text/javascript'>function taclinkch(x){var y=document.getElementById(x).value;document.location.href=y}</script>"; echo "<form action=''> <select name='eventcats' id='eventcats' onchange='taclinkch(this.id)'>"; echo "<option value=''>Select a Category</option>"; echo "<option value='http://www.disabilityvoice.com/dvb/events/'>ALL</option>"; foreach ( $terms as $term ) { echo "<option value='" . get_site_url() . "/events/category/". $term->name." '>" . $term->name . "</option>"; } echo "</select></form>"; } ?>Code for drop down of categories in the WP PHP Widget
<?php $terms = get_terms("tribe_events_cat"); $count = count($terms); if ( $count > 0 ){ echo "<script type='text/javascript'>function taclinkch(x){ var y=document.getElementById('eventcatswidget' ).value; var currentURL=window.location.replace(y); }</script>"; echo "<form action=''> <select name='eventcatswidget' id='eventcatswidget' and onchange='taclinkch(this.id)'>"; echo "<option value=' '>Select a Category</option>"; echo "<option value='http://www.disabilityvoice.com/dvb/events/'>ALL</option>"; foreach ( $terms as $term ) { echo "<option value='" . get_site_url() . "/events/category/". $term->name." '>" . $term->name . "</option>"; } echo "</select></form>"; } ?>If you need any help with this issue, contact me at tcarey@DisabilityVoice.us
Here is code for a drop down of categories. I put it into the grid view.
<?php $terms = get_terms("tribe_events_cat"); $count = count($terms); if ( $count > 0 ){ echo "<strong> Categories </strong>"; echo "<script type='text/javascript'>function taclinkch(x){var y=document.getElementById(x).value;document.location.href=y}</script>"; echo "<form action=''> <select name='cats' id='cats' onchange='taclinkch(this.id)'>"; echo "<option value='/*http://www.disabilityvoice.com/dvb/events/*/'>Select a Category</option>"; echo "<option value='http://www.disabilityvoice.com/dvb/events/'>ALL</option>"; foreach ( $terms as $term ) { echo "<option value='" . get_site_url() . "/events/category/". $term->name." '>" . $term->name . "</option>"; } echo "</select></form>"; } ?>Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Customize widget outputWhat if I want to keep the current widget the way it is and create my own widget for the events calendar?
Now that we have the linking problem gone, but how do we put this into the drop down. I think I know the HTML part, and but I assume there must be some kind of JavaScript needed to accomplish the link once someone chooses one of the categories.
There is a problem with the link on this code. When you’re in the certain category the links don’t work. The following code works great.
<?php $terms = get_terms("tribe_events_cat"); $count = count($terms); if ( $count > 0 ){ echo "<ul>"; foreach ( $terms as $term ) { echo "<li><a href='" . get_site_url() . "/events/category/". $term->name." '>" . $term->name . "</a></li>"; } echo "</ul>"; } ?>Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Calendar Mini GirdIt probably is only for pages and not widgets.
I found out the function above only shows the categories for the events on the single event page. And on the calendar if you are in the default calendar you will only show the categories for the current Day. I also tried adding it to the widget and the only show the category for you to upcoming events. No idea how to show all categories that are in a system for the events no matter what.
I’d tried the above code from Shane also. And I also only get one category not all of my categories. Does this function return an array of categories?
A widget would be awesome
Forum: Plugins
In reply to: [The Events Calendar] Does plugin allow display of specific categories ?Yes you can use categories, but I haven’t seen where you can list all your categories. Wouldn’t it be great if they had a widget that displayed the event categories or even a thing to put the list of categories on the page. I’d like the widget. I’m going to you have categories by state and so a widget would be great.
I’m looking for a similar solution. What category page? Not sure how to do this
Forum: Plugins
In reply to: [BP Group Frontpage] [Plugin: BP Group Frontpage] too many redirectsThat would be why then my plug in only works with BuddyPress and also the network user install. And specifically with only subfolders. I thought buddy press only works with the networked mu install. Thank you for a reply.