Quote from
qualmy91 on March 25, 2021, 4:35 am
Hey @fixu,
Sassy Social Share is not compatible with Asgaros Forum. To adjust the URLs for forum and topics you can use the following code:
add_filter('heateor_sss_target_share_url_filter', 'adjust_forum_url');
function adjust_forum_url ($post_url){
global $asgarosforum;
$forum_id = $asgarosforum->current_forum;
$topic_id = $asgarosforum->current_topic;
if ($forum_id && $topic_id){
$post_url = $asgarosforum->rewrite->get_link('topic', $topic_id);
} else if ($forum_id){
$post_url = $asgarosforum->rewrite->get_link('forum', $forum_id);
}
return $post_url;
}
I will check with Thomas if we will add this to Asgaros Forum. You can follow the status at GitHub: https://github.com/Asgaros/asgaros-forum/issues/325
Hey @fixu,
Sassy Social Share is not compatible with Asgaros Forum. To adjust the URLs for forum and topics you can use the following code:
add_filter('heateor_sss_target_share_url_filter', 'adjust_forum_url');
function adjust_forum_url ($post_url){
global $asgarosforum;
$forum_id = $asgarosforum->current_forum;
$topic_id = $asgarosforum->current_topic;
if ($forum_id && $topic_id){
$post_url = $asgarosforum->rewrite->get_link('topic', $topic_id);
} else if ($forum_id){
$post_url = $asgarosforum->rewrite->get_link('forum', $forum_id);
}
return $post_url;
}
I will check with Thomas if we will add this to Asgaros Forum. You can follow the status at GitHub: https://github.com/Asgaros/asgaros-forum/issues/325
Asgaros has reacted to this post.