Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • I’m having this issue as well since two days! Maybe it is related that the most recent posts are 2 big image posts?

    Thread Starter Driekes

    (@driekes)

    @keraweb Sorry to bother you, but have you had a chance to check out my latest findings?

    Thread Starter Driekes

    (@driekes)

    @keraweb do you have a chance to check my question?

    Thread Starter Driekes

    (@driekes)

    I test the array with Group A, it works, tested it seperately with group B, it works as well.
    Then I tried to combine, as written above, it doesn’t work. So I thought, let’s put it in the code twice and write the results to my own custom array. However that does give mixed results!

    It does correctly list people that have ridden in Group B, so the ‘where’ clause seems to be working, but then the ride count and distance count is still wrong.

    If I comment out the Group A part the Group B part runs properly, so I would assume something like caching? I have no idea or knowledge about the inner workings of this. Thanks for helping me out!

    • This reply was modified 6 years, 5 months ago by Driekes.
    Thread Starter Driekes

    (@driekes)

    Plus, I also see this when going into the template area and setting up the template. When I select the ‘members’ POD Reference on the right, I only see all the references for one of the ‘rides_group*’.

    E.g. I see rides_groupA, but rides_groupB + rides_groupB.ID etc.

    • This reply was modified 6 years, 5 months ago by Driekes.
    Thread Starter Driekes

    (@driekes)

    Thanks for the quick reply. I exactly dit both the proposed approaches. Where I ended with both:

    1. Groups:
    The problem I had is that the data entry is three times the work, plus, on each day there is also a driver joining, which I would like to register as well. Alternatively I would like to create an overview on each rider with their riding history, sorted by date, then shown by group / route / distance. This I couldn’t achieve with the [if] statements in pods templates.

    So that I why I proceeded to point two.
    2. Single event
    Problem is that I want to show a total on a page, for all members by the quantity of routes they have ridden, but preferably also show the ride total.
    I have done that by a custom SQL query, but I didn’t manage to combine this for all three routes in the end. So then I decided to ask a question here.

    $params = array( 
    	'groupby' => 't.ID',     
    	'select' => 't.ID,
    	t.post_title, 
    	rides_groupA.ride_date.meta_value, 
    	COUNT(rides_groupA.route_groupA.distance.meta_value) as count, 
    	ROUND(SUM(rides_groupA.route_groupA.distance.meta_value), 0) as distance',
    	'where' => 'YEAR(rides_groupA.ride_date.meta_value) = "' . $selectedyear . ' " ',
    	'orderby' => 'distance DESC',
    	'limit' => $limit
    );

    So in this statement I’m coming from the ‘Members’ pod, I reference the ride program through the group link, then I get the distance of the related route. That works well.

    However If I simultaneously use:

    	COUNT(rides_groupB.route_groupB.distance.meta_value) as count, 
    	ROUND(SUM(rides_groupB.route_groupB.distance.meta_value), 0) as distance',

    It doesn’t work, it says ‘Unknown Column’.
    If I use it separately, it works. Alternatively, can I use three pods in one PHP page and combine that data later on?

    PS: My programming language is limited, so I’m just doing A LOT of trail and error πŸ™‚

    Thread Starter Driekes

    (@driekes)

    Hi,

    Thanks for your answers, after a lot of digging I found that my theme was causing this behaviour. My theme removed the wpautop filter and added a custom version for some reason. That is why I could not just disable the filter.

    Thanks for the quick help!

    Thread Starter Driekes

    (@driekes)

    Hi Marcus, I will give it a try. I was already looking into the templates, but I was looking at ticket-single.php. I found the code there, but I could not find the p tags. I’ve read that wpautop adds these. Can I just disable the filter in the template or doesn’t that work?

    Thread Starter Driekes

    (@driekes)

    Yes I saw that topic, but in which file should I apply this? The template or the themes functions file? I don’t want to disable it for everything!

    I’ve been an active user of proplayer the last couple of months.

    – Create some kind of templates for proplayer which writers can choose from, so they are not allowed to change settings, for example:
    1. Add video link
    2. Add music link (hide video screen)
    3. Add video links (display playlist)
    4. Add music links (display playlist, hide video screen)

    – Using mp3 file names, or read ID3 tags for the playlist.
    – Automatic HD toggle for Youtube movies. I don’t know if their API allows HD movies at this point, but there are/were some hacks that worked. (I used a different yt.swf for a while which played HD movies)
    – Fix the low res video source received from Dailymotion
    – (Automatic) use of built-in gallery to display video/music
    – Add slideshow/images (I don’t know if JW player allows this, but it could be faked with a fake video of 1 to 3 seconds and using the still image. In combination with repeat it should act as a slideshow?

    The last ones are mere suggestions to improve the use of pro-player. The first two are things I really miss.
    I checked your website at least once a week the last months, but not that many updates unfortunately. I really appreciate the work you are doing!

Viewing 10 replies - 1 through 10 (of 10 total)