T27M
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Simple Share Buttons Easy Digital DownloadsSlight modification to the fix.
if(get_post_type( get_the_ID()) == "download") { preg_match_all("/>(.*?)>/", $strPageTitle, $matches); $title = $matches[0][0]; $title = ltrim($title, '>'); $title = rtrim ($title, '</span>'); $strPageTitle = $title; }Forum: Plugins
In reply to: [Simple Share Buttons Adder] Simple Share Buttons Easy Digital DownloadsOk, so I took a closer look and think I’ve fixed the issue. Maybe the author can find a better solution, but this works for me. Backup your data encase you break something, since you don’t know PHP.
In your simple-share-buttons-added.php at around line 700 you should see this code
// the buttons! $htmlShareButtons.= get_share_buttons($arrSettings, $urlCurrentPage, $strPageTitle);Directly above this line add the following code
if(get_post_type( get_the_ID()) == "download") { preg_match_all("/>(.*?)>/",$strPageTitle,$matches); $title = $matches[0][0]; $title = ltrim($title, '>'); $strPageTitle = $title; }So it should look like this now
if(get_post_type( get_the_ID()) == "download") { preg_match_all("/>(.*?)>/",$strPageTitle,$matches); $title = $matches[0][0]; $title = ltrim($title, '>'); $strPageTitle = $title; } // the buttons! $htmlShareButtons.= get_share_buttons($arrSettings, $urlCurrentPage, $strPageTitle);Save/upload to your site and it should display the buttons correctly.
Here’s a link to one of my pages with it working
https://www.t27m.co.uk/downloads/dayz-epoch-admin-tools-snap-build-mirror/* I Need to fix those darn HTTPS warnings again after the update.
Note to op: Instead of using WP_PLUGINS_URL use plugins_url() that way it won’t show HTTPS warnings.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Simple Share Buttons Easy Digital DownloadsIf you replace the return statment in the show_share_buttons() function it should work, the buttons in my posts are working fine.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Simple Share Buttons Easy Digital DownloadsHey, sorry I should have made it clear. The fix does not correct the issue, but as you have found it removes the buttons from the downloads. I’ve been short on time and not been able to look for a proper fix; for me this was a suitable short term fix.
Don’t mean to hijack, but here’s what the debug gave me.
[blocked] The page at https://www.t27m.co.uk/blog/wp-login.php ran insecure content from http://www.t27m.co.uk/blog/wp-admin/css/wp-admin.css?ver=3.4.2.
[blocked] The page at https://www.t27m.co.uk/blog/wp-login.php ran insecure content from http://www.t27m.co.uk/blog/wp-admin/css/colors-fresh.css?ver=3.4.2.
My Settings wrong?
I have the same problem too. No error message, nothing happens at all. I tried removing and re-installing but its still not working.