Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I just figured it out, thanks to any who looked at this.</p> <p>My problem was in this part of the code, going from this:</p> <pre><code>function bp_tweet_button_activity_filter() { //admin username $username = get_option('opt_val'); //admin password $password = get_option('opt_val_pass'); //url to your custom YOURLS site API $api_url = get_option('opt_val_api'); // //get activity stream post link $url = bp_get_activity_thread_permalink(); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api_url); curl_setopt($ch, CURLOPT_HEADER, 0); // No header in the result curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return, do not echo result curl_setopt($ch, CURLOPT_POST, 1); // This is a POST request curl_setopt($ch, CURLOPT_POSTFIELDS, array( // Data to POST 'url' =&gt; $url, 'keyword' =&gt; $keyword, 'format' =&gt; $format, 'action' =&gt; 'shorturl', 'username' =&gt; $username, 'password' =&gt; $password </code></pre> <p>to this:</p> <pre><code>function bp_tweet_button_activity_filter() { //get activity stream post link $url = bp_get_activity_thread_permalink(); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, get_option('api_url')); curl_setopt($ch, CURLOPT_HEADER, 0); // No header in the result curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return, do not echo result curl_setopt($ch, CURLOPT_POST, 1); // This is a POST request curl_setopt($ch, CURLOPT_POSTFIELDS, array( // Data to POST 'url' =&gt; $url, 'keyword' =&gt; $keyword, 'format' =&gt; $format, 'action' =&gt; 'shorturl', 'username' =&gt; get_option('username'), 'password' =&gt; get_option('password') )); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload