ptrv
Forum Replies Created
-
Forum: Plugins
In reply to: [Trackserver] Osmand splits tracksMan! I read “Generated track name” so I thought that setting was just for the name of the track… I don’t have to try to know that this is the solution.
Sorry for not reading closely and thanks a lot!The greetings, Peter
Forum: Reviews
In reply to: [ACF PHP VARS] Pro version ACFWhat an honnor! Sorry I can not edit my feedback anymore and change it to 5 stars. But thank you very much.
Forum: Reviews
In reply to: [ACF PHP VARS] Pro version ACFNo sense in giving 5 stars to a plugin I can not test or use. I like the idea and I am looking forward to use it with ACF Pro if you should ever come around to that. Thanks.
Forum: Plugins
In reply to: [WP Twitter Feeds] Can't use widget twiceAnyway, the solution is this (posted by dariogene):
In twitter_widget.class.php change:
if(false === ($tweets = get_transient($transName) ) ) {
to this
if(false === ($tweets = unserialize(base64_decode(get_transient($transName))) ) ) {
and then change:
set_transient($transName, $tweets, 60 * $timeto_store);
to this
set_transient($transName, base64_encode(serialize($tweets)), 60 * $timeto_store);I solved it by using the require-post-category plugin. In the require-post-category.php file changed:
if($post_type=='post'){
to
if( ($post_type=='event' || $post_type=='event-recurring') ){
and
if($('#taxonomy-category input:checked').length==0){
to
if($('#taxonomy-event-categories input:checked').length==0) {
or to
if( ($('#taxonomy-event-categories input:checked').length==0) || ($('#taxonomy-event-categories input:checked').length>2) ){
if you want only one category to be selected (like me).Maybe this is some help to someone.
Thanks for your answers, Peter
Yes, but the purpose of the code/error message is to make sure a certain field (category in this case) is filled. The error message is “category is required.” So you would expect that when you correct this error – select a category – the event will be published normally. Now the error message should be “you forgot to select a category and after that make sure that you change the status of the event from Draft to Published”.
So maybe the code is not really suitable for using in the backend?
Thanks, Peter
Only on the backend.
Sorry, it’s the WP translation. I mean Draft. All events published after adding the code to my functions.php get the Draft status. Whether I select a category right away, or after the error message when I didn’t.
I have included the wp_unique_post_slug() function in my auto-update-slug code, and now I can keep using that code AND have unique slugs.
Thanks again, Peter
Ops..
I do have some code in my functions.php that auto-updates the slug when someone changes a pagetitle. After removing that the problem is gone.
Sorry to have bothered you and thank you so much for pointing it out to me!!Hi,
The slugs are the same.
Much more categories are planned, all will have events with the same name, and all events are recurrent (weekdays) so al lot of them will be on the same date. The difference is the event category and the content.
I can not ask the person who has to maintain the website to change the name or slug of an event to make it different for each category. With lots of categories and lots of events, it will be a real hassle and flaws will be inevitable I think.
There must be a way to solve this?I have found code to get the category name in the permalink slug
https://blog.avirtualhome.com/events-manager-better-permalinks/
so now the links are:
https://www.site.com/events/category1/same_eventname-2014-09-01
https://www.site.com/events/category2/same_eventname-2014-09-01
but it makes no difference. The link for the event in category2 still points to the event on category1. Big problem.The site is not public yet so I can not post a link.
Thanks, Peter
Forum: Plugins
In reply to: [WordPress prettyPhoto] Problem with embedded videoIt’s more a jquery question I believe. What would the syntax be to prevent the embedded video
<iframe src="https://www.youtube.com/embed/xxxxxxx?feature=oembed"></iframe>
which apperently contains an image (‘img’) from getting the rel=prettyPhoto[]?When I use Firebug to add it to your style.css (line 16) the problem is gone.
html { overflow-y: scroll; height: 101%; }
Forum: Plugins
In reply to: [WordPress prettyPhoto] Lightbox not in center screenSolved
Try adding this to your style.css:
html { height: 101%; }