freshcreate
Forum Replies Created
-
Forum: Plugins
In reply to: [Page scroll to id] Seems incompatible with window.location.hash?I have a second question for you, in extending this solution further:
I’m trying to make use of the data-ps2id-offset attribute, applied as a custom offset amount for the links that use the delay solution we discussed above.
Experiencing a similar issue: when clicking these links from the same page, the custom offset is applied correctly… but when clicking them from a different page, the default offset amount is the one applied.
Any advice on this one?
Forum: Plugins
In reply to: [Page scroll to id] Seems incompatible with window.location.hash?Perfect! Onload didn’t help, but setting a delay of 1s did.
setTimeout(function(){ var hash = window.location.hash; console.log(hash); }, 1000);Many thanks!!!
Forum: Plugins
In reply to: [Contact Form DB] Image URL in Google Spreadsheet Live DataAh – it’s in options, I see it. Perfect and thanks for a great plugin!
No I’m not moving anything, I’m editing the database directly to import player metrics since there’s no way to import metrics using the plugin.
I’ve actually just solved this myself. I’m including my solution below… it’s a bit long but it was very satisfying to figure out and maybe this will benefit someone else looking to import a ton of player metrics, instead of inputting them all manually. You will have to be comfortable with excel and have a basic knowledge of accessing your database. I do hope the amazing developers on this plugin will find a way to implement player metrics columns in the player import CSV, I bet many of the plugins users would find this really helpful.
————–
My solution:
– first import the player’s basic information using the Sportspress import tool
– now you want to find the post ID for all these players you just imported. open wp_posts in your database and search for “sp_player” in the post_type field, export these results to CSV and open in excel
– now you want each player in your metrics spreadsheet to have a column with their post ID. use vlookup to do this, matching using the player name
– now the fun part. you need to create a formula to get all of the metrics in one string that the database can read. make sure you’ve created all the metrics in the Sportpress plugin settings first. the final result will look something like this:a:2:{s:8:”hometown”;s:8:”New York”;s:6:”height”;s:5:”200cm”;}
let’s break this down:
a:2 — that’s the number of metrics you have. 5 metrics would be a:5
s:8 — that’s the number of characters for that field. in my example, hometown and new york each have 8 characters (including spaces), height has 6 and 200cm has 5the formula for the above example is as follows, assuming hometown data is in column A and height data is in column B:
=”a:2:{s:8:””hometown””;s:”&LEN(A1)&”:”””&A1&”””;s:6:””height””;s:”&LEN(B1)&”:”””&B1&”””;}”
let’s break this down:
– use two quotation marks around the metric to create an actual quotation mark instead of closing the formula
– use LEN() to determine the amount of characters
– it’s confusing to explain why i used 3 quotation marks in a row where I did, if you don’t get it just trust me it works
– just drag this formula down for all of your players and they will all have a final result that looks something like the abovenow open a new spreadsheet. let’s skip the first column for now we’ll get back to it in a minute. in the second column, paste all the player IDs. all entries in the third column will be the same: sp_metrics. the fourth column will be the result from the formula above, just paste the values of that formula.
for the first column, first go to your database and open wp_postmeta. go to the last page of that table and find the last row. the first column is meta_id. add 1 to the number in that last row – that’s going to be your cell A1 in your new 4 column spreadsheet. fill the rest of that column out increasing by 1 each time.
save this file as a CSV, check off the option to quote all text cells, and use ^ as your text delimiter. now go back to your database into the wp_postmeta table, import this CSV, and in the “columns enclosed with” and “columns escaped with” enter ^ instead of ”
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Can i bulk import Player MetricsI’m also very interested in this feature!
Forum: Plugins
In reply to: [Contact Form 7] "Other" option on checkboxesThank you!
Forum: Plugins
In reply to: [Pinpoint Booking System - Version 2] email doesn't workI’m also not getting email notifications. It was working before and now it’s not.
Didn’t get a reply on dotonpaper.net/contact so I’m trying you here. Thanks.
Forum: Plugins
In reply to: [SSL Insecure Content Fixer] Secure individual pages (on a proxy ssl)Thanks for the reply –
So what I’m understanding is there is no direct method to use your 2 plugins for just an individual page of the site. It must be for the entire site? And if there is a way, I would need to contact the author of WordPress HTTPS to figure that out?
I am hesitant to send you a link to my site, since the site is already live and this would require me to have it display the incorrect way until you’ve reviewed it. So I don’t really have that option in this case. Is there some process I can undergo myself to help identify the insecure data?
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Buttons on homepage postsSure, here is the file – http://www.mediafire.com/?1akyb7k0bnv3iny
Let me know if there’s any other info I can provide
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Buttons on homepage postsAppreciate the advice, but it hasn’t seemed to have done the trick…
Here’s what is appearing: text of the post’s url, followed by the buttons, which are incorrectly trying to share the homepage url instead of the post url, as before.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Buttons on homepage postsHi thanks for you response. Still trying to fix it, I’m not a coding pro so please bear with me.
I tried checking the ‘homepage’ option but it didn’t do anything.
I’ll be a little more specific, my homepage contains links to all my posts, here is a snippet of the relevant code in the loop (I think the top php section is relevant).
<?php global $wpdb; $wppost=$wpdb->prefix."posts"; $sql="select * from $wppost where ID='$post->ID'"; $query =mysql_query($sql); if($query) { $post_title = $res['post_title']; ?> <h1><a href="<?php the_permalink(); ?>"><?php echo strip_tags($post_title); ?></a></h1>Well I tried this but it didn’t work:
<div style="margin-top:-5px;"><?php echo do_shortcode('[ssba url=<?php the_permalink(); ?> title="Share"]'); ?></div>Thanks again
Having the same problem.
Thanks! That worked. Appreciate the info.
Any word on if this is in the realm of possibility for this plugin? Thanks
I see. In that case what I’m trying to do is have 2 titles – one above the thickboxed image and one below it. No captions for the thumbnail link would be necessary.
Would this be possible with some code adjustment or clever trick?