Unread topics plug in
Quote from Gespanne on May 12, 2019, 11:52 pmThomas,
Some time ago you had a plug in that moved Unread Topics to the menu bar. I can’t find it now. I thought it was rolled into a previous release but I seem to be missing the setting. Can you point me in the right direction?
Thanks!
Thomas,
Some time ago you had a plug in that moved Unread Topics to the menu bar. I can’t find it now. I thought it was rolled into a previous release but I seem to be missing the setting. Can you point me in the right direction?
Thanks!
Quote from Asgaros on May 13, 2019, 11:40 amHello @gespanne
You can add the following code to your themes functions.php file to show the unread-link in the main-menu:
add_action('asgarosforum_custom_header_menu', 'custom_header_menu'); function custom_header_menu() { global $asgarosforum; echo '<a href="'.$asgarosforum->get_link('unread').'">Unread Topics</a>'; }
Hello @gespanne
You can add the following code to your themes functions.php file to show the unread-link in the main-menu:
add_action('asgarosforum_custom_header_menu', 'custom_header_menu');
function custom_header_menu() {
global $asgarosforum;
echo '<a href="'.$asgarosforum->get_link('unread').'">Unread Topics</a>';
}
Quote from Gespanne on May 13, 2019, 6:34 pmMy apologies for not asking the question the right way. I have a plug in from you that moves the “Unread Topics” button up to the forum’s menu bar [not the theme’s menu bar]. It is described as follows…
Asgaros Unread Topics Add unread topics to Asgaros forum menu
Version 1.0.0 | By Asgaros/ThomasIs that still available and where can I find it?
Thanks!
My apologies for not asking the question the right way. I have a plug in from you that moves the “Unread Topics” button up to the forum’s menu bar [not the theme’s menu bar]. It is described as follows…
| Asgaros Unread Topics |
Add unread topics to Asgaros forum menu Version 1.0.0 | By Asgaros/Thomas
|
Is that still available and where can I find it?
Thanks!
Quote from Asgaros on May 13, 2019, 8:29 pmHello @gespanne
Yes, thats exactly the code I have posted – and I meant the main-menu of the forum of course.
I checked it on your site and the content of the file looks like the following:
<?php /** * Plugin Name: Asgaros Unread Topics * Description: Add unread topics to Asgaros forum menu * Version: 1.0.0 * Author: Asgaros/Thomas * Author URI: https://asgaros.com */ add_action('asgarosforum_custom_header_menu', 'custom_header_menu'); function custom_header_menu() { global $asgarosforum; echo '<a href="'.$asgarosforum->get_link('unread').'">Unread Topics</a>'; }It is inside a file in the following location:
wp-content/plugins/asgaros-unread-topics/asgaros-unread-topics.php
Hello @gespanne
Yes, thats exactly the code I have posted – and I meant the main-menu of the forum of course.
I checked it on your site and the content of the file looks like the following:
<?php
/**
* Plugin Name: Asgaros Unread Topics
* Description: Add unread topics to Asgaros forum menu
* Version: 1.0.0
* Author: Asgaros/Thomas
* Author URI: https://asgaros.com
*/
add_action('asgarosforum_custom_header_menu', 'custom_header_menu');
function custom_header_menu() {
global $asgarosforum;
echo '<a href="'.$asgarosforum->get_link('unread').'">Unread Topics</a>';
}
It is inside a file in the following location:
wp-content/plugins/asgaros-unread-topics/asgaros-unread-topics.php
