Forum Replies Created
-
AuthorPosts
-
December 9, 2014 at 11:19 am in reply to: Events page month view: How to schow city after event title? #913293
Rafael
ParticipantThanks Brian. I understand the premise of the Themer’s Guide and how to move and edit template files. I’ve looked at the files you pointed me to, but I’m not a programmer and don’t quite understand the instructions in the template:
/the-events-calendar/views/month/single-event.php
However, I do see where in that template I would need to add the code to display the city after the event title. All I need is the actual function call to retrieve and display the city. Maybe it’s something like:
<?php echo tribe_get_event_location() ?> ?
Can you help with that specific code to display the event city?Rafael
ParticipantThanks Brian, I’ll try to figure it out using the themer’s guide.
Rafael
ParticipantHi Brian, thanks for your response. Oh it’s an addon plugin, I’ll check out.
Rafael
ParticipantThanks Brian. My theme allows a general setting for all pages to show/hide the sidebar, and in addition that setting can be overridden on each individual page. On the plugin’s settings page you mentioned it doesn’t matter which template I choose, regardless of the theme’s general setting for pages (show/hide sidebar) the events page never shows the sidebar. See: http://vegan.ch/2020/events/
Can you help me out? How can I display the sidebar?December 2, 2014 at 4:29 pm in reply to: Event submission form: remove dropdown list of US states #905698Rafael
ParticipantHey George,
Thank you very much for your prompt and elaborate response. Since I’m using the plugin only for events in Switzerland, I have no need for the dropdown list of US-States. Using your instructions I’ve successfully removed that dropdown list, while keeping the State input field so people can enter that information by hand. My issue is now resolved. Thanks for your help.December 2, 2014 at 4:01 pm in reply to: Event submission form: string "Use saved" not translated #905680Rafael
ParticipantHi Geoff, yes, I’m back. 🙂
Thanks for your prompt response. Unfortunately the code didn’t work. Do you have another idea, or should I start a thread in the Translation forum as you suggested?February 6, 2014 at 6:15 am in reply to: Gray bar: title of date filter differs depending on view #101317Rafael
ParticipantHey Barry, adding that code did the trick! Thank you very much for your help. My issue is now resolved. 🙂
February 5, 2014 at 6:01 am in reply to: Gray bar: title of date filter differs depending on view #100945Rafael
ParticipantHello Barry
Yes, looking at the example above I would like “Day of” to display as “Datum” on all views.
I can achieve this by editing the .po/.mo files. Surprisingly, there are three different strings for “Day of” depending on the view: one for list, one for month, and one for map/photo view (the same for both).
Changing them is simple enough, BUT changing that string for map/photo view ALSO changes the string underneath it in the input field. So using the example above when map/photo view is active, the text underneath “Day of” is also “Day of” (when no date is selected). It seems to be one and the same string, because changing the “Day of” title to “Date”, for example, also changes the “Day of” text below the title to “Date”. This problem exists only in map/photo view. So it seems to be a little programming bug.
What I effectively would like to do is:
A) have “Day of” display as “Datum” on all views and
B) have the text beneath it display as “…” (when no date is selected)Can you help me with that?
Rafael
ParticipantHey Brook
Thank you for your elaborate answer. I now understand the situation much better. The RSS feed contains the right data, but it’s not displayed in FF and IE due to their stylesheet. I don’t see the point of messing with those stylesheets either, so I’m not going to do that.
Since the feeds are working again and the event dates are included I’m going to leave it at that and consider the issue resolved.
Thank you very much for all your help. 🙂
Rafael
ParticipantYes, thank you Brook! The code snippet you provided fixed the feeds and they’re now working again not only in Chrome but also in FF and IE.
What remains is the issue of displaying the event start/end dates. Chrome shows them but not IE and FF. Do you know why?
Rafael
ParticipantHi Kelly, thanks for your prompt response. I see the issue is known and being worked on. I guess I’ll just wait for a future plugin release to solve this problem.
Rafael
ParticipantYes, the test site has events added. The events feed does show the tags with the event start/end date when viewed in Chrome. In FF and IE, however, the events feed does not show those tags (only a short excerpt of the event’s description is displayed).
On the live site the events feed does show the tags with the event start/end date when viewed in Chrome. In FF and IE, however, both the events feed as well as the main feed are broken and don’t display anything at all (XML error).
Maybe you can help me identify the problem?
Live site main feed:
http://www.vegan.ch/feed/Live site events feed:
http://www.vegan.ch/events/feed/Rafael
ParticipantHello Brook
Thank you for your prompt and elaborate response. I can now understand why it wouldn’t make sense to subvert the WP feeds that way.
With regard to the tutorial you mentioned, yes, I’ve tried it back in 2012 and it didn’t work for me. Can’t remember why not.
So I tried it again just now. Since I want to keep the main feed and the event feed separate, I only copied and pasted the second snippet of code from the tutorial and added it to the theme’s functions.php. Curiously, different browsers reacted very differenty.
Firefox 26: The event feed didn’t change at all. The main feed broke and spits out some XML error.
Chrome 27: Both the event feed and the main feed work, but neither of them is styled, so only the “document tree” is shown. Surprisingly there actually is an <ev:startdate> and <ev:enddate> tag with the right information in it.
IE 11: Both feeds can’t be displayed. It says that there’s an error in the feed, but it doesn’t specify.
So, I’m completely confused. Apparently the code from the tutorial does customize the feed (as viewing it in Chrome revealed), but the customization either doesn’t show up (Firefox) and/or the main feed and/or the events feed break.
Do you have any ideas or tips as to what is going on and how to solve this issue?
PS: I’ve tried the exact same thing on a clean WP 3.8 installation using the Twenty Fourteen theme. All feeds worked across all browsers, BUT the event start/end dates are not shown. (Even though Chrome lists the <ev:startdate> tags in its view of the unstyled “document tree”)
Rafael
ParticipantThanks Casey for your prompt response. Ok, so here’s the solution that worked for me.
In the file:
the-events-calendar-community-events/lib/tribe-community-events.class.php
on line 1279. I changed that line from the code at:
http://pastebin.com/gNqQdNG6
to the code at:
http://pastebin.com/fGmtAYUgMaybe this solutions helps someone.
Rafael
ParticipantMy last two comments above are attempts to embed code from pastebin.com (the first one using javascript, the second using iframe), but it does not seem to work.
Am I doing something wrong or is it simply not possible to show/embed code into this thread? -
AuthorPosts
