ulicgn
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Events imported with WP All Import not showing@physalis one last thing – trying to use the ORM as per the documentation link they supplied would have been a possibility ( i.e. looping over the events and force a save() for each one ), however for me not even the simplest example works as expected. The ORM functions/methods do not work as described. I will create a new issue to clarify this …
Forum: Plugins
In reply to: [The Events Calendar] Events imported with WP All Import not showing@physalis thanks, I am not surprised about this response, since JSON support is indeed a bit out of scope here – at least there are some pointers to work with. Currently we stay with manual imports, and will keep an eye on the return of working WPAI imports …
Forum: Plugins
In reply to: [The Events Calendar] Events imported with WP All Import not showing@physalis I am stuck with exactly the same problem while trying to establish an automated/scheduled event import: the TEC aggregator only accepting CSV (all fields, but no scheduling, clumsy manual upload necessary, and SLOOOOOOW) or ical ( speedy, scheduled from URL, but only few fieds being supported)
So I also was hoping that WPAI would do the trick for the much more robust JSON input but as you know that doesn’t work.
My current workaround is to re-format my XML or JSON data into csv (argh …) and to automatically fetch those into the media DB from remote URLs so at least the upload-csv-to-server step in the workflow can be automated. Did you meanwhile find some other hack to make the events show up after the import ?@d0153 Any progress on TEC becoming WP-All-Import compatible again like it once used to be? Is that something that is being worked on? That would solve many problems at once – regarding scheduling, speed and supported source formats. Not to mention error tracking.
Regards,
Uli
Forum: Plugins
In reply to: [The Events Calendar] Customizing ALL slugs – how?@d0153 nevermind – I looked into the Extensions source code and found the filters to use.
For those finding this thread later: there are filters for venue, organizer and event labels, and if you dont need a gui for setting the slugs, pick one of the filters, and write your desired string into the return “whatever” string. Otherwise the extension may help.
add_filter( 'tribe_event_label_singular', function ($label) { return ""; } ); add_filter( 'tribe_event_label_singular_lowercase', function ($label) { return ""; } ); add_filter( 'tribe_event_label_plural', function ($label) { return ""; } ); add_filter( 'tribe_event_label_plural_lowercase', function ($label) { return ""; } ); // Venues. add_filter( 'tribe_venue_label_singular', function ($label) { return ""; } ); add_filter( 'tribe_venue_label_singular_lowercase', function ($label) { return ""; } ); add_filter( 'tribe_venue_label_plural', function ($label) { return ""; } ); add_filter( 'tribe_venue_label_plural_lowercase', function ($label) { return ""; } ); // Organizers. add_filter( 'tribe_organizer_label_singular', function ($label) { return ""; } ); add_filter( 'tribe_organizer_label_singular_lowercase', function ($label) { return ""; } ); add_filter( 'tribe_organizer_label_plural', function ($label) { return ""; } ); add_filter( 'tribe_organizer_label_plural_lowercase', function ($label) { return ""; } );
Forum: Plugins
In reply to: [The Events Calendar] Customizing ALL slugs – how?@d0153 I am awfully sorry I missed your response due to notifications being filtered out. The site is , currently, not public. Also, we do not have a specific translation plugin in place.
The *.mo files I mentioned are in the events calendar directory so I figured that an automatic translation was happening.
Meanwhile, I discovered this:
https://theeventscalendar.com/extensions/change-labels-events-venues-organizers/
Would you think that this is still usable, given that it is from 2017? Otherwise, are there filters for setting the venue singular/plural slugs like there are for setting the series slug (for which I found a filter hook ) ?
REgards Uli
Forum: Plugins
In reply to: [The Events Calendar] OpenStreetMap instead of Google Maps?@willemb2 @gugaalves I did so (voting) quite some time ago, but assume there are lots of other features in the queue, so we don’t know if this will ever get considered.
In the meantime it would be really nice to know which templates we could modify to replace google maps . Seems as if this functionality is scattered around in many template files and after all the changes the recent updates brought to the template hierachy , it would be helpful to have some up-to-date information where to work on ….
thx,
Uli
So if the Developers or Maintainers are not reacting to a ( potential ) security issue that will be published sooner or later – can we consider this plugin to be abandoned? Just wondering …
Same here , so +1 for updating docs and (possibly) GTM recipes …
Sumit, thank you for dealing with this issue. While the key length issue is depending on the respective DB environment, so probably is not a “hard” error but more a portability problem, I still wonder whether my hack ( shortening the column/keylength of mlv_results.unique_id to 150 chars ) will cause truouble. So far, this table is empty because we do not use result saving fetaures, so I can’t tell whether this is a problem or not.
Bless you @tobiasbg for replying to my disappeared posting! In my opinion it was related to the original poster’s problem since I had the same problem/symptoms, but a moderator decided to delete it and recommended creating a new thread. However I did not have the time to re-write the whole text. So thank you for pointing out a better way to achieve cache flushing. My workaround for now is to limit all operations that change the content to logged-in users (before, I had allowed anonymous requests with a secret key parameter to trigger changes).
Regarding the OP’s ( @circusstrategic ) problem I can at least confirm that indeed the cache does expire correctly after 24 hours, so that is the longest time the old content is kept. From my experience, it might help to save the table once more after changing it, just to make sure the cached content of the rendered table is invalidated/refreshed.
Regards
Uli
What a pity, I had the impression that we were more than half way there. Obviously $description gets processed and tag-stripped once more later on, so the effects of this filter are overridden.
Even though I don’t think that someone will show up and solve this, I will leave this topic open for another couple of days before closing it.
@luciamarinescu I made a Demo feeed that is structurally identical to the original one and whose URL can be published. See here:
https://cdn01.koeln.de/uploads/files/demofeed.xml ( like the original feed, this feed validates when checked with the w3c online validator)
There is one item with img src in CDATA. With the code mentioned by @andreearadacina21 , the img src tags are wiped out, with FEEDZY_ALLOW_UNSAFE_HTML they are kept.
- This reply was modified 1 year, 8 months ago by ulicgn.
Thanks for following up!! While the feed is technically “public” ( i.e. not protected ), the URL is not to be published in a forum. How could I send you the feed URL ( or a sample file – whatever you prefer) safely? Regards, Ulrich
@andreearadacina21 I disabled the FEEDZY_ALLOW_UNSAFE_HTML define and tried your code as suggested, with minor modifications. To identify the filter, I added “(unfiltered)” or “(filtered)” to the output:
function kdefd_summary_input( $description, $content, $feedURL ) { //If you want to use the item content as the description. If not, then remove this line //If feed don't have content meta, $content is already equal to $description $description = $content; if (strpos($feedURL, "my-trusted-feed-domain.de") !== false) { $description = $description . " (unfiltered)"; } else { //Remove the item HTML tags (as in the default hook) if not in the above list $description = trim( strip_tags( $description ) ) . " (filtered) "; } //Remove hellip (as in the default hook) //Keep in mind that it will be added later in the plugin render $description = trim( chop( $description, '[…]' ) ); return $description; }
In the source feed, there is a CDATA description section containing some HTML tags:
<item> <guid>https://www.example.com/5540093</guid> <link>https://www.example.com/5540093</link> <pubDate>Wed, 21 Jun 2023 14:16:46 +0200</pubDate> <title><![CDATA[ My Title as CDATA ]]></title> <description><![CDATA[K?ln (ots) - SOME LONG TEXT .... <div class="pp-image" data-src="https://example.com/story_big/20bdf4d9-c4f2-4bf3-be90-3a766f048dd8/Foto1.jpg" data-caption="Foto 1"> <span class="pp-caption">Foto 1</span><br><img src="https://example.com/story_big/20bdf4d9-c4f2-4bf3-be90-3a766f048dd8/Foto1.jpg" alt="Foto 1"/></div> <div class="pp-image" data-src="https://example.com/story_big/f3e2b762-4387-4d87-877e-7ecb8246db2a/Foto2.jpg" data-caption="Foto 2"> <span class="pp-caption">Foto 2</span><br><img src="https://example.com/story_big/f3e2b762-4387-4d87-877e-7ecb8246db2a/Foto2.jpg" alt="Foto 2"/></div> <div class="pp-source">Quelle:<a >https://www.example.com/5540093</a></div> ]]></description></item>
In the Map-Content section, I configured the [#item_description] placeholder for the import into posts.
The resulting post contains the “(unfiltered)” text, so the filter is indeed executed. However, the <img src… tags are missing, only the <a href…> tags are there. :Output in the Post: <div class="pp-image"><span class="pp-caption">Foto 1</span></div> <div class="pp-image"><span class="pp-caption">Foto 2</span></div> <div class="pp-source">Quelle:<a href="valid-URL" rel="noopener">....</a></div> (unfiltered)
So far, the only way to keep the <img src seems to be the FEEDZY_ALLOW_UNSAFE_HTML define …
Regards
Ulrich@andreearadacina21 thank you for this pointer – I was not aware of this documentation. What I had tried was taken from https://docs.themeisle.com/article/942-in-feedzy-how-do-i#remove-html-tags, and it did not work for me ( since it was probably meant for the shortcode usage) Looks quite similar though, with minor differences.
So I will certainly try it and report back how it worked, however I can do that not before next Tuesday. Until then, I would leave this topic in unresolved state. Thanks and best regards,
Uli