Forum Replies Created
-
AuthorPosts
-
Erik
ParticipantThis reply is private.
February 27, 2017 at 2:50 am in reply to: Mini Calendar – Language problems (links&translate) #1246147February 23, 2017 at 11:39 pm in reply to: Mini Calendar – Language problems (links&translate) #1245071Erik
ParticipantThis reply is private.
February 22, 2017 at 11:31 pm in reply to: Mini Calendar – Language problems (links&translate) #1244335Erik
ParticipantHello again – Thanks for the tips! And pardon my slow reply.
Unfortunately updating WordPress and The Event Calendar didn’t change my problem with the german events. Clicking my way there from the Mini-Calendar, or from any of the other languages (English, Swedish, Danish) and switching while on the event page gives me a 404-page.
I had the previous mentioned problems with getting my German and Danish files to work, but was solved by downloading the language files for them. Could there be an issue with the German files I downloaded – or perhaps the problem you mention above is more general with the files.
The events are simple translations and the german version doesn’t differ in any way from the English/Danish versions of the Swedish ones, the URL seems reasonable to me.
Although even editing the event and clicking “View event” gives a 404-result.It is somewhat comforting that you have experienced issues with german events previously, otherwise I would feel baffled.
Would any additional information be of assistance, or even administrator-rights/login?
February 7, 2017 at 10:50 pm in reply to: Mini Calendar – Language problems (links&translate) #1231097Erik
ParticipantHey again, I’ve finally come around to testing these suggestions out – and it’s great – I’m (almost) reaching my desired result!
Danish and German language files were missing in my WordPress (which surprised me), so by downloading them from your files and adding them to the folder your links directed to worked. Check!
Switching from parameter(?lang=) to directory based (yoursite.com/de, yoursite.com/dk, etc..) worked with the links from the mini calendar. Is it always desired to change to directory based when setting up languages for new sites, maybe? This is the first time combining event calendar and languages.
I did have some problem after saving my permalinks, no pages on my site would show, however deactivating and reactivating WPML solved that. It has happened once before, so I knew that was somehow combined. If anyone else stumbles across that.
But – I have 1 problem still, that I can’t see the logic behind.
My german events is giving me a 404-page. It doesn’t matter if I go through the mini calendar, if I go to the event in another language and then switch to german, or – heck – if I go to the actual event in my admin and click “Show event”, it still gives me a 404-page! That’s crazy. In my head I haven’t done anything different between the german and the Swedish/English/Danish. The Danish and German were the ones without language files, so I added those – and the danish works fine now. Just the german can’t be seen, not even with the direct links from the admin section.
The URL is reasonable:
/de/tag/vorsaison/Compare to English:
/en/day/pre-season/You’ve helped alot, thanks for that. If I could understand what’s different with these events and why I’m getting a 404, I would be all set. Hope there is something I’ve missed that might be helpful.
January 31, 2017 at 5:52 am in reply to: Mini Calendar – Language problems (links&translate) #1226758Erik
ParticipantHey Geoff, thanks for the tips!
I’m a bit hesitant to change from =lang? to /de, /dk etc – This wont screw with my settings in any way? I’m guessing I might need to change some links I might have created in the text – but if its no more than that, I’ll try it. Just hoping nothing will go wrong if I try it. If it fixes the links that’ll be awesome.
I have followed the steps in the guide, changing event name there for the languages I have.
However when I go to string translation to look for the month names – I can’t find a single one, not even the Swedish/English ones that work. In total I dont have any German/Danish strings in this view, and not a single string having anything to do with months/dates.
If I could find them somewhere I’d love to change them manually.
In short:
I’ll test out the function with switching WPML translation-method, just worried it’ll upset something.No months/Date related strings in the String translation, on ALL domains. No German/Danish strings at all anywhere.
I’m a bit at a loss. Hmm.
January 16, 2017 at 10:57 pm in reply to: Mini widget date link direct to event (only have 1 event each day) #1219451Erik
ParticipantHey – it worked!
Thanks for the assistance, the code you added did the trick – and I wouldn’t have figured that one out on my own. Huge thanks, you’ve just completed a major project for me.
For anyone looking for an answer to this – the code above worked for me.
In my browser the =>-part didn’t turn into =>, so when I changed that it worked out.'posts_per_page' => 1PS: Didn’t slow things down at all!
Erik
ParticipantHeya.
Thanks for trying, greatly appreciated! Hope it can result in something I can test out. At the moment I’m at a loss, and not even sure where to look or what to connect to attempt it on my own. I’m sure it would be a neat addition if it can be made to work.
Erik
ParticipantHello again!
Thanks for your response, and I understand.
I guess what I’m asking for, is to (simply?) add the event category to the item in the mini calendar – from there I can sort out the styling as I want. They’re connected to the right event since it changes on click, but not in the actual html-code. I’d like it if it was the same way that the main calendar uses the event categories in their class or ID. My thought is that it’s possible to add the same variable that adds the category to the large calendar, to the mini widget – but uncertain if that’s doable or what controls it.
Adding two screens for clarity, one with mini widget code, and one with large calendar code.
Erik
ParticipantHi!
Thanks for the reply, appreciate it. Yes, I have the Category Colors-plugin, but it doesn’t seem to do what I need it to do – even though I read about that being suggested in another thread. It works well in the main event calendar, but not the mini widget.
Category colors doesn’t add any colored identifier to the actual dates in the mini-calendar, only to the small event text that appears under it – atleast for me. I dont see any different class or identifier to the actual date HTML that would let me color it based on category either.
See my added photos, using Category colors means I have colored coded my “Försäsong” (Preseason) text. Deactivating it means that text is white/red.
What I’m aiming for is to show in the calendar if certain dates are within different categories, (for example) preseason, main season, autumn break, etc. The way it looks now – it will just show that all dates have events, but you will only see the difference when you click them. It would be very useful to show this based on categories in the actual date boxes (or dots).
I’m adding the photo with the result I’m aiming for, as well. Hope there is some trick we can pull, maybe to add category to the date html-class or even better.
Thanks for the help!
-
AuthorPosts
