Title: ptrv's Replies | WordPress.org

---

# ptrv

  [  ](https://wordpress.org/support/users/ptrv/)

 *   [Profile](https://wordpress.org/support/users/ptrv/)
 *   [Topics Started](https://wordpress.org/support/users/ptrv/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ptrv/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ptrv/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ptrv/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ptrv/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ptrv/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/ptrv/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ptrv/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Trackserver] Osmand splits tracks](https://wordpress.org/support/topic/osmand-splits-tracks/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/osmand-splits-tracks/#post-11225833)
 * Man! 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](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[ACF PHP VARS] Pro version ACF](https://wordpress.org/support/topic/pro-version-116/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/pro-version-116/#post-8080720)
 * What an honnor! Sorry I can not edit my feedback anymore and change it to 5 stars.
   But thank you very much.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[ACF PHP VARS] Pro version ACF](https://wordpress.org/support/topic/pro-version-116/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/pro-version-116/#post-8080712)
 * No 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Twitter Feeds] Can't use widget twice](https://wordpress.org/support/topic/cant-use-widget-twice/)
 *  [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/cant-use-widget-twice/#post-4904293)
 * Anyway, 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);
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Make category a mandatory field](https://wordpress.org/support/topic/make-category-a-mandatory-field/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/make-category-a-mandatory-field/#post-5194532)
 * I solved it by using the [require-post-category](http://http://wordpress.org/plugins/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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Make category a mandatory field](https://wordpress.org/support/topic/make-category-a-mandatory-field/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/make-category-a-mandatory-field/#post-5194512)
 * 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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Make category a mandatory field](https://wordpress.org/support/topic/make-category-a-mandatory-field/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/make-category-a-mandatory-field/#post-5194496)
 * Only on the backend.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Make category a mandatory field](https://wordpress.org/support/topic/make-category-a-mandatory-field/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/make-category-a-mandatory-field/#post-5194404)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Problem with events, same name and date, different category](https://wordpress.org/support/topic/problem-with-events-same-name-and-date-different-category/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-with-events-same-name-and-date-different-category/#post-5183066)
 * 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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Problem with events, same name and date, different category](https://wordpress.org/support/topic/problem-with-events-same-name-and-date-different-category/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-with-events-same-name-and-date-different-category/#post-5183039)
 * 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!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Problem with events, same name and date, different category](https://wordpress.org/support/topic/problem-with-events-same-name-and-date-different-category/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-with-events-same-name-and-date-different-category/#post-5182978)
 * 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
    [http://blog.avirtualhome.com/events-manager-better-permalinks/](http://blog.avirtualhome.com/events-manager-better-permalinks/)
   so now the links are: [http://www.site.com/events/category1/same_eventname-2014-09-01](http://www.site.com/events/category1/same_eventname-2014-09-01)
   [http://www.site.com/events/category2/same_eventname-2014-09-01](http://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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PrettyPhoto - Simple Lightbox Plugin] Problem with embedded video](https://wordpress.org/support/topic/problem-with-embedded-video/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/problem-with-embedded-video/#post-5162528)
 * It’s more a jquery question I believe. What would the syntax be to prevent the
   embedded video
    `<iframe src="http://www.youtube.com/embed/xxxxxxx?feature=oembed"
   ></iframe>` which apperently contains an image (‘img’) from getting the rel=prettyPhoto[]?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PrettyPhoto - Simple Lightbox Plugin] prettyPhoto lightbox constantly jumping to the bottom of the page?](https://wordpress.org/support/topic/prettyphoto-lightbox-constantly-jumping-to-the-bottom-of-the-page/)
 *  [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/prettyphoto-lightbox-constantly-jumping-to-the-bottom-of-the-page/#post-5126668)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PrettyPhoto - Simple Lightbox Plugin] Lightbox not in center screen](https://wordpress.org/support/topic/lightbox-not-in-center-screen/)
 *  Thread Starter [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/lightbox-not-in-center-screen/#post-4911036)
 * Solved
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PrettyPhoto - Simple Lightbox Plugin] prettyPhoto lightbox constantly jumping to the bottom of the page?](https://wordpress.org/support/topic/prettyphoto-lightbox-constantly-jumping-to-the-bottom-of-the-page/)
 *  [ptrv](https://wordpress.org/support/users/ptrv/)
 * (@ptrv)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/prettyphoto-lightbox-constantly-jumping-to-the-bottom-of-the-page/#post-5126663)
 * Try adding this to your style.css:
    html { height: 101%; }

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/ptrv/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ptrv/replies/page/2/?output_format=md)