Forum Replies Created
-
AuthorPosts
-
January 13, 2014 at 5:56 am in reply to: Organizer and Venue custom post types : mapping Title from frontend form #90982
Brook
ParticipantMuch appreciated Marcus! This will be an enormous help to other who want to do the same thing. Thanks!
– Brook
Brook
ParticipantGlad to hear it! You are welcome.
Brook
ParticipantYou should not need to include any extra code, just a regular WordPress template.
You are very welcome Sean! Did that fix it for you?
– Brook
Brook
ParticipantThis reply is private.
January 10, 2014 at 11:46 pm in reply to: ECP 3.3 – CSV Importer – Multi-Day All-Day events not importing #90431Brook
ParticipantHowdy Hassan Abbasi,
I am sorry it has taken us a bit to get back to you on this. Would it be possible for you to send us a copy of the csv file so I can test it and see what is happening? If you don’t mind uploading the file somewhere and linking to it here. If you prefer for the file to not be made public, use the Private Reply checkbox below to hide it from others.
Thank you!
– Brook
Brook
ParticipantHowdy inhouse,
These are some good questions.
First of all, Barry’s advice would allow you to make modifications to without learning our themers guide. Here is a more complete example of what he is talking about: http://pastebin.com/zTfw5MRz
You could paste that code in your theme’s function.php. Basically what this does is remove any calls to the default tribe_single_related_events(), and replace them with the newly created custom_tribe_single_related_events() which you can customize freely. For instance, you will notice right in line 12 the following
get_the_post_thumbnail( $post->ID, 'large' ). That is the code you should modify if you wish to change the thumbnail size.Does that help get you rolling on the right track? Does it all make sense?
– Brook
Brook
ParticipantHowdy all,
Snorton’s advice is spot on. In addition Ken, to display your custom fields like timezone you can use one of the following functions:
tribe_display_meta_group('tribe_event_group_custom_meta');
tribe_display_meta('tribe_event_custom_meta');
Is this starting to make sense? By replacing tribe_events_single_event_meta() with all of these individual functions you do get full control over what data displays and the order of it. We have a million tribe_get_ functions for the individual fields, and Snortons link will show you all of them if you scroll down a bit in the left hand column.
Let me know if I can help further. Thanks!
– Brook
Brook
ParticipantHowdy,
You are spot on that the best way to make changes to the meta info is by swapping out tribe_events_single_event_meta() with individual functions — at least in my opinion that is the best way. This allows you full control of the order and way in which they are presented.
We have a bunch of template tags available for this. If you open up /the-events-calendar/public/template-tags/ you should find all the ones relevant to your needs. For instance, in organizer.php you will find numerous organized functions like tribe_get_organizer_email(). You should not need any arguments, call those within the loop and they will return the current events data.
Will that work for you? Thanks for posting!
– Brook
Brook
ParticipantHowdy phatwp,
When an admin is logged in with EEB it adds a Succesfully Encoded notice to links. This could mess with your formatting a bit, but only for you or other admins. Your users would not see that notice and thus the formatting would likely not be messed up.
If you wish to style the notice or other aspects of EEB, you would need to consult the EEB plugin authors for assistance.
Does that answer your question? Thanks for posting!
– Brook
PS. Thank you too Snorton, great advice.
Brook
ParticipantHowdy Phil,
I am sorry this topic was accidentally closed. I do not know what happened there.
I was able to reproduce this problem locally. This is a known bug that should be patched in an upcoming release. I created this snippet, and it appears to fix the issue for me. Would you mind copying and pasting the this code into your functions.php file and seeing if it fixes your iCal problem as well?
Please let me know how well it works. Thanks!
– Brook
Brook
ParticipantYou are welcome Jonny!
Thank you for copying the console. Generally this sort of issue stems from a plugin conflict. Are you seeing the same problem when you add a post or a page? Our events plugin uses the same editor, so I would think this issue would affect all editors on in wp-admin.
To figure this out further I would need to be able to login to your WP-admin and poke around a bit more with my browser tools. Would it be possible for you to generate a login for us? If you could copy paste a user/pass here using the “Set as private reply” checkmark only the Tribe team will see it. Would that be ok?
– Brook
Brook
ParticipantAhh I follow you now. Thank you for clarifying.
This would be possible using a custom theme. If you are comfortable with creating you own WP themes, or making large changes to existing ones, you would likely feel comfortable doing this. First of all you would want to familiarize yourself with our themer’s guide if you have not already: https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/
Basically you are creating a custom single event theme. If you would like to stick with CF7 then you would have to manually create a contact form for every event organizer. Using a PHP switch that evaluates tribe_get_organizer_email(), you could serve the relevant contact form with CF7’s shortcode. Obviously manually creating a contact form for each organizer could be a pain. You might be interested in switching to a contact form that lets you specify the recipient from a PHP API, then pass it tribe_get_organizer_email() as the recipient and the_title() as your subject.
Does that all make sense? Will it work for your site? Thanks!
– Brook
Brook
ParticipantAlright! Glad we could narrow it down. I have searched a bit and not found anyone with the same problem. Thus, it is most probable that the theme author is doing something very strange and not within WP best practices.
So that leaves two options: 1) You can contact the theme author and ask him if he has any ideas as to what is causing this. 2) Provide us with a copy of your theme in a zip file so I can examine the source code. You could either email it as an attachment to [email protected] (and please reference this thread), or you could upload it somewhere and post a link privately here. Since I am not the author I am somehwat limited in what I can do, but I would be glad to take a look at it and see if I can further isolate the problem if you choose this route.
Please let me know what you decide. Thanks!
– Brook
Brook
ParticipantBy removing the pages you do not need to override the above script should generally work. For instance if your default view is list, try removing everything else like so: http://pastebin.com/pQnazXmW
Would that work?
– Brook
Brook
ParticipantI am glad to hear it. Thanks for the update!
-
AuthorPosts
