Tony Hayes
Forum Replies Created
-
@fv4s4e Thanks for reporting. This is from the new visitor showtimes conversion feature…
Looking at your site, you must have disabled it in the Plugin Settings already. Seems I have failed to take into account the case where it is turned off and hide the surrounding brackets for the user showtimes where they are to be displayed. ie.
[-]
which would normally display[xx:xx - xx:xx]
To fix, since you aren’t using this feature, you can just add this rule to your CSS stylesheet to hide the brackets:
.show-user-time, {display:none;}
I will add some extra code to fix for this case in the next version… I’ll close this ticket here and open an issue on Github to track this:
https://github.com/netmix/radio-station/issues/360Just rechecking this one to add some more detail, the filter you can use for the widget section order is in
includes/shortcodes.php
and isradio_station_current_show_section_order
.To hide the Show title would be:
.current-show-title {display: none;}
(and if you want this to work for a shortcode where there is a Current Show widget elsewhere on the page you would need.current-show-embedded .current-show-title {display: none;}
to target just the shortcode not the widget.)The
title
attribute is actually for the overall Widget/Shortcode title, rather than toggling the display if the show title, sorry for the confusion – I will add a separate attribute for the show title asshow_title
to the development version so that can be used in future.We will look into the possible row display option for the widget/shortcode in the Github issue in the near future.
This seems to be just self-promotion, which this really isn’t the place for.
I don’t understand what or if you have an actual relevent question..? Closing.@jrtemper1 Are there are any resources you can point to (tutorials, forum posts etc.) that would have directions on doing this with streamripper?
This might help us not to “re-invent the wheel” so to speak when it does come time to getting to this kind of feature.@fv4s4e I don’t see the issue there either so closing, but I seem to recall we did fix something regarding this display issue, so you might want to try the development version:
https://netmix.com/radio-station/docs/FAQ/#how-do-i-install-the-latest-development-version-for-testing@harrytsmith126 Had another look around and it seems that Markdown might live in Jetpack not in core so I will check for an updated version there.
@harrytsmith126 Thanks for reporting, this issue has been fixed in the development version for the next release.
Ironically this file is the Markdown parser class from WordPress, which looks like it hasn’t been updated in a long time (at least I can’t find the updated version that they are using currently anywhere.)
@mj187 Seems there was an activation bug in the develop version. Has been fixed you can try it again now.
@mj187 Make sure you are downloading the latest development version.
https://netmix.com/radio-station/docs/FAQ/#how-do-i-install-the-latest-development-version-for-testingI have opened a Github issue for this as it closed as Resolved here.
https://github.com/netmix/radio-station/issues/342@thekrell Hi Marty,
most of the Radio Station data for a Show is stored in the (prefixed)postmeta
table for thatpost_id
. So for example,show_avatar
meta key stores the WordPress Media attachment ID of the Show Avatar, which you can get viaget_post_meta( $show_id, 'show_avatar', true );
, and then use that attachment ID to retrieve the Show Avatar image URL viawp_get_attachment_image_src
. Or more expediently you can just use$url = radio_station_get_show_avatar_url( $show_id, $size );
which has already been written to achieve exactly this (you can see this function inincludes/support-functions.php
)Similarly, using the
show_sched
meta key you can retrieve an array of Show shifts for the passed$show_id
, which you can then loop to pull show times etc. For calculating remaining times, I suggest either using the Current Show widget/shortcode, or looking at the code for that (inincludes/shortcodes.php
if you want to calculate it yourself – as there are a number of tricky bits and plugin functions that solve those, mostly around converting the Show Shift to the Station’s timezone into a universal timestamp and comparing that to the now timestamp in the same timezone.Hope that helps, Tony.
- This reply was modified 3 years, 11 months ago by Tony Hayes.
@chodenjiho We have recently had a similar question and so you might want to read this thread, feel free to add further questions to the discussion there:
https://www.ads-software.com/support/topic/change-standard-words/
But I’ll close this thread as a duplicate of that one.@michelemusumeci FYI we have added some more details on the status of translations here and how they can be changed/implemented:
https://www.ads-software.com/support/topic/change-standard-words/@radiosd I think we’d definitely be fine to update the .po file in the plugin with a more complete translation that is not 100%, as someone else might pick it up and fill in the rest. Especially There are always some commonly used strings throughout a plugin that tend to get used more, so are more important, whereas some messages are very rarely seen.
Unfortunately there is no inbuilt way to indicate the priority of common words to be translated, but I might consider using the
_x
translation function instead of__
because it allows for an extra context argument, which could be used for this purpose.Forum: Fixing WordPress
In reply to: Empty spaces after WordPress 5.7 updateSurely there is a way to add specificity to this to target content in blocks as the fix is intended for, adding a global style that affects such a common tag is just plain irresponsible.
But maybe such classes were never added to blocks? Can someone confirm whether this was ever done or not? Seems like the most obvious thing to do:
https://www.ads-software.com/support/topic/wp-block-class/– You should be able to add particular words to be translated here:
https://translate.www.ads-software.com/projects/wp-plugins/radio-station/
There are also plugins such as Loco Translate that can do this locally…– The 24 Hour Setting is for output display… but it sounds like you meaning for the inputs though? We did inherit the plugin with the time inputs this way already.
– Yes thatone is a bug, the image field is validated on save, but it doesn’t remove. Easy fix,,, I will add it to the development version for next release.