Jeff M.
Forum Replies Created
-
Forum: Plugins
In reply to: [Shortcode Exec PHP] Shortcode Exec PHP is supported again after all!Thanks for picking up the baton on this, Will, and I’m glad that Marcel’s great plug-in will continue to breath life.
If you require a beta tester, feel free to ping me.
Jeff
Forum: Plugins
In reply to: [Shortcode Exec PHP] This plugin is not supported anymoreI am also sorry to hear that support for this plug-in will end. To emphasize the point of the other posters, I always found it to be very useful.
Another update…
I tried posting the link at other sharing sites (Twitter, etc.) and, surprisingly, it worked without issue.
So I did a Google search: facebook does not recognize link attributes
It led me to the Facebook Debugger. I entered both the permalink and the shortlink and… it worked! It recognized all object properties as would be expected.
So… at this point, I’m not sure what finally brought about a resolution to the problem but I’m going to mark this topic resolved.
I updated the plug-in software to version 2.9.2 and, per another thread, disconnected and then reconnected Jetpack to see if that would reset the shortlink.
Unfortuantely, I continue to see the same “Page not found” error when I attempt to share the link. It goes to the correct page.
All I really need to do is get the shortlink content updated. Is that possible?
Thanks to Brady for his help in the matter. Great plug-in!
Done!
Yes, I would be able to test that here. Not a problem!
Yes, I created a sidebar simply called “Front Page Sidebar” and then added two default widgets (Categories and Recent Posts). However, when I load the page, it still shows the main sidebar.
Bingo! Thanks again, Marcel.
No, it’s a separate database.
So now when I remove the mysql_close() function, some of the other WP-specific widgets do not function. For example, on this page:
The script runs, but then the sidebar widgets for the Categories and Tags show no output.
My guess is that the opening of the SQL database separate from the QP SQL database is the culprit.
Resolved it… apparently, it did not like the use of the mysql_close() fuction.
Here is the code:
extract(shortcode_atts(array('arg' => 'default'), $atts)); $playerID = $arg; $dbbosfan = mysql_connect ("localhost", USERNAME, PASSWORD); if (!$dbbosfan){ die ('I cannot connect to the database because: ' . mysql_error()); } mysql_select_db ("bosfan_redsox",$dbbosfan); $query = "SELECT * FROM playerdata pd WHERE pd.playerID = '$playerID'"; $result = mysql_query($query,$dbbosfan) or die(mysql_error()); $row = mysql_fetch_array($result); $p_name = $row['fullname']; $p_byy = $row['byy']; $p_bmm = $row['bmm2']; $p_bdd = $row['bdd']; $p_posID = $row['posID']; $p_pos = $row['pos']; $p_legend = FALSE; if ($row['legend'] == TRUE){ $p_legend = TRUE; } $p_soxhof = FALSE; if ($row['soxhof'] == TRUE){ $p_soxhof = TRUE; $p_soxhofyear = $row['soxhofyear']; } $p_bbhof = FALSE; if ($row['bbhof'] == TRUE){ $p_bbhof = TRUE; $p_bbhofyear = $row['bbhofyear']; } mysql_close($dbbosfan); print " <p><strong>Date of Birth</strong>: ".$p_bdd." ".$p_bmm." ".$p_byy."<br/>\n"; if ($p_soxhof = TRUE){ print " <strong>Elected to Red Sox Hall of Fame</strong>: ".$p_soxhofyear."<br/>\n"; } if ($p_bbhof = TRUE){ print " <strong>Elected to Baseball Hall of Fame</strong>: ".$p_bbhofyear."<br/>\n"; } print " </p>\n\n";
Forum: Plugins
In reply to: [Shortcode Exec PHP] [Plugin: Shortcode Exec PHP] Shortcode posts as textHaha, yeah, it was coming to that! ??
Thanks again!
Forum: Plugins
In reply to: [Shortcode Exec PHP] [Plugin: Shortcode Exec PHP] Shortcode posts as textThis is what happens when I attempt to work on my site late at night when I should be in bed. ??
Thanks, Marcel!