f3rr0
Forum Replies Created
-
I’ve already made this change myself, but the weird thing is that the plugin changelog reports 3.2.7 even though the version is declared as 6.2.7
That’s why I decided to rename the bootstrap filehttps://www.serveasy.it/wp-content/uploads/2022/05/changelog.png
I confirm. Actually yesterday I’ve renamed the bootstrap.php file to php.old to get rid of it. Waiting for a fix
Sorry, wrong forum. Closing
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Venue Map Links BrokenTake care about the degree symbol char. In my case, the original string was containing the ? char to correctly pass the degrees ° symbol.
Original code:
<a href="https://www.google.com/maps/place/<?php echo esc_url( urlencode("{$lat_deg}?°{$lat_min}'{$lat_sec}\"{$lat_dir}" ) ) . '+' . esc_url( urlencode( "{$lon_deg}?°{$lon_min}'{$lon_sec}\"{$lon_dir}" ) ); ?>/@<?php echo esc_url($latitude); ?>,<?php echo esc_url($longitude); ?>,<?php echo esc_url($zoom); ?>z" target="_blank"><div id="sp_openstreetmaps_container" style="width: 100%; height: 320px"></div></a>
Replacing the string with the fix provided by github the result is a map without the degree char, so the longitude and latitude are just guessed by google maps and the correct address is not showed.
Adding the ? char to the fix returns a correct map link that shows the address too.
<a href="<?php echo esc_url( 'https://www.google.com/maps/place/' . urlencode( "{$lat_deg}?°{$lat_min}'{$lat_sec}\"{$lat_dir}" ) . '+' . urlencode( "{$lon_deg}?°{$lon_min}'{$lon_sec}\"{$lon_dir}" ) . '/@' . $latitude . ',' . $longitude . ',' . $zoom . 'z' ); ?>" target="_blank"><div id="sp_openstreetmaps_container" style="width: 100%; height: 320px"></div></a>
- This reply was modified 2 years, 12 months ago by f3rr0. Reason: corrected the code section
I had the same matter and found that the
<div style="display:none;"
is never triggered even if I add Important!
I guess this happens because it’s overrided by any previous div (i’ve not investigated about wich one).
Anyway for the moment I’ve solved it removing the style from the line and adding an already sportspress coded class containing the property display:none.
So my line now is as follows<?php if ( ! $show_venue || ! $venues ) : ?> <div class="sp-event-venue sp-tab-content" itemprop="location" itemscope itemtype="https://schema.org/Place"><div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"><?php esc_attr_e( 'N/A', 'sportspress' ); ?></div></div> <?php endif; ?>
Maybe not the best solution, but now it works correctly as you can see here https://www.basketbattaglia.com/team/u-s-s-g-b-abbiategrasso/ (feel free to inspect it to see the result)
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] ical does not show any eventsSolved the mistery!
On a test server, with the whole site cloned, I’ve done a couple of tests.
Re-checking the ics output file I put attention on the very first blank line before BEGIN:VCALENDAR.
Guessing that it was added by some header already sent or blank lines added after any php tag I started disabling plugins and found the one who creates this odd line.
After disabling it I’ve finally been able to import the calendar into Google Calendar.So Google Calendar doesn’t like blank lines at the start of the ical file (despite Outlook don’t mind of this)
Now I’ve to check the affected plugin to correct the code.
Thanks for your reply and attention.
- This reply was modified 3 years, 1 month ago by f3rr0.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] ical does not show any eventsJust in addition: seems to work in Outlook, nothing imported in Google Calendar. Tested also with Rookie and Twenty-Twenty
Good news! Thanks
For PRIMERAB (I guess).
Copy the same css as above and replace
.post-5436 .sp-league-table
with
.post-5507 #DataTables_Table_0_wrapper .sp-league-table
Then paste it into the CSS settings
under the previous oneNote that the tables in this page are numbered from 0 to 6
PRIMERAB is number 0 with id DataTables_Table_0_wrapperHowever thinking on the fix I’ve changed it using html_entity_decode instead of urlencode ’cause no urls are used for those parameters so now my code for line 174 is
parse_str( html_entity_decode( $option_name ), $option_array );
I’m really sorry. I’ve clicked it by mistake. No moderation needed here. It’s just a proposal of how to fix an errori. Sorry again
Try setting this in your SportsPress General Settings, into the personalized CSS box
(change the colors as you prefere).post-5436 .sp-league-table tbody tr:nth-child(1) td { background: #ccffeb !important; } .post-5436 .sp-league-table tbody tr:nth-child(2) td { background: #f8e494 !important; } .post-5436 .sp-league-table tbody tr:nth-child(3) td { background: #f8e494 !important; } .post-5436 .sp-league-table tbody tr:nth-child(4) td { background: #f8e494 !important; } .post-5436 .sp-league-table tbody tr:nth-child(5) td { background: #f8e494 !important; } .post-5436 .sp-league-table tbody tr:nth-child(6) td { background: #f8e494 !important; } .post-5436 .sp-league-table tbody tr:nth-child(7) td { background: #f8e494 !important; } .post-5436 .sp-league-table tbody tr:nth-child(8) td { background: #f8e494 !important; } .post-5436 .sp-league-table tbody tr:nth-child(9) td { background: #f8e494 !important; } .post-5436 .sp-league-table tbody tr:nth-last-child(3) td { background: #fab67f !important; } .post-5436 .sp-league-table tbody tr:nth-last-child(2) td { background: #fab67f !important; } .post-5436 .sp-league-table tbody tr:nth-last-child(1) td { background: #ffe6ff !important; }
Glad to read it. Many thanks to you for the support (and the patience ?? )
And here’s an image from the settings panel
https://www.basketbattaglia.com/warning.pngWell, now I’ve deleted some 0 values for the TIE column to let you see the error.
It appears in Homepage in the widget (on the right) and also in the Table League page (that can be navigate by the widget footer link).
The site is https://www.basketbattaglia.com