eiland
Forum Replies Created
-
Forum: Plugins
In reply to: [Open Graph and Twitter Card Tags] totally disable plugin on certain pagesOk nailed it:
<?php
/* Plugin Name: zzz-disable-opengraph */
if( multi_strpos($_SERVER[ 'SCRIPT_FILENAME'], array('myscript.php', 'domain.com/folder/')) !== false ) {
add_filter("fb_og_enabled", function($enabled){ enabled = false; }, 10, 1 );
}
/**
* Multi string position detection. Returns the first position of $check found in
* $str or an associative array of all found positions if $getResults is enabled.
*
* Always returns boolean false if no matches are found.
*
* @param string $str The string to search
* @param string|array $check String literal / array of strings to check
* @param boolean $getResults Return associative array of positions?
* @return boolean|int|array False if no matches, int|array otherwise
*/
function multi_strpos($string, $check, $getResults = false)
{
$result = array();
$check = (array) $check;
foreach ($check as $s)
{
$pos = strpos($string, $s);
if ($pos !== false)
{
if ($getResults)
{
$result[$s] = $pos;
}
else
{
return $pos;
}
}
}
return empty($result) ? false : $result;Forum: Plugins
In reply to: [Shariff Wrapper] Feature Request: Add Support for Bluesky Media Button@harmr seems to be working fine. Curious if this will integrate with subsequent updates…
Forum: Plugins
In reply to: [WebFinger] htaccess rules for blog hosted in subfolderThanks, looking forward!
Yes, here too.
Forum: Plugins
In reply to: [Enable Mastodon Apps] Open basedir restrictionForum: Plugins
In reply to: [Enable Mastodon Apps] Open basedir restrictionit comes and goes with enabling and disabling the plugin?
Forum: Plugins
In reply to: [Enable Mastodon Apps] Open basedir restrictionwhen i turn off error eeporting, it works, but when i turn it on, my error log is drowned….
Forum: Plugins
In reply to: [Enable Mastodon Apps] Open basedir restrictionit actually triggers this error site wide.
Forum: Plugins
In reply to: [ActivityPub] Profile url goes to home page on multisiteAh i second (third)
Forum: Plugins
In reply to: [ActivityPub] How to configure the mastodon account used by this pluginsorry for hijacking the thread, but what happens when I check both “authors” and “blog”? Are posts send for two separate handles?
Ah, update, I see that the blog is boosting the author’s post, nice!
- This reply was modified 1 year, 3 months ago by eiland.
Forum: Plugins
In reply to: [ActivityPub] How to configure the mastodon account used by this pluginAh! My homepage is set up differently. I was looking for a way to have @blog redirect to the user which posts the site wide updates…
Maybe I should just go for pluginauthor and not use the blog functionality…Forum: Plugins
In reply to: [ActivityPub] How to configure the mastodon account used by this pluginNow i look further into it, might it have to do with the blog wide accounts? Those redirect to the frontpage, but when I use a @non_existing_handle i get a json telling me it doesn’t exist.
{"code":"activitypub_user_not_found","message":"Gebruiker niet gevonden","data":{"status":404}}
When I query https://domain.com/.well-known/webfinger?resource=acct:[email protected], it returns:
subject "acct:[email protected]"
aliases
0 "https://domain.com/@blog_wide"
links
0
rel "self"
type "application/activity+json"
href "https://domain.com/@blog_wide"
1
rel "https://webfinger.net/rel/profile-page"
type "text/html"
href "https://domain.com/@blog_wide"- This reply was modified 1 year, 3 months ago by eiland.
Forum: Plugins
In reply to: [ActivityPub] How to configure the mastodon account used by this pluginNot with my two instances, i’m redirected when I request the blog profile-id – but it might have to do with this?
Forum: Plugins
In reply to: [ActivityPub] How to configure the mastodon account used by this pluginQuestion: How did you arrange that https://jeremy.hu/@jeremy redirects to https://jeremy.hu/author/jeremy/ ? Manually, in htaccess, or does it come from ActivityPub?
Thank you for the effort. I understand the business case for pro versions, but unfortunately it is not for me.