mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:15:13 +00:00
control the generation or acceptance of directory keywords
This commit is contained in:
parent
9b08051703
commit
202817740a
3 changed files with 12 additions and 3 deletions
|
@ -59,7 +59,11 @@ This document assumes you're an administrator.
|
||||||
[b]system.taganyone[/b]
|
[b]system.taganyone[/b]
|
||||||
Allow the @mention tagging of anyone whether you are connected or not.
|
Allow the @mention tagging of anyone whether you are connected or not.
|
||||||
[b]system.directorytags[/b]
|
[b]system.directorytags[/b]
|
||||||
Set the number of keyword tags displayed on the directory page.
|
Set the number of keyword tags displayed on the directory page. Default is 50 unless set to a
|
||||||
|
positive integer.
|
||||||
|
[b]system.disable_directory_keywords[/b]
|
||||||
|
If '1', do not show directory keywords. If the hub is a directory server, prevent returning
|
||||||
|
tags to any directory clients. Please do not set this for directory servers in the RED_GLOBAL realm.
|
||||||
[b]system.disable_dreport[/b]
|
[b]system.disable_dreport[/b]
|
||||||
If '1', don't store or link to delivery reports
|
If '1', don't store or link to delivery reports
|
||||||
[b]system.startpage[/b]
|
[b]system.startpage[/b]
|
||||||
|
|
|
@ -144,11 +144,14 @@ function directory_content(&$a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if($url) {
|
if($url) {
|
||||||
// We might want to make the tagadelic count (&kw=) configurable or turn it off completely.
|
|
||||||
|
|
||||||
$numtags = get_config('system','directorytags');
|
$numtags = get_config('system','directorytags');
|
||||||
|
|
||||||
$kw = ((intval($numtags)) ? $numtags : 50);
|
$kw = ((intval($numtags) > 0) ? intval($numtags) : 50);
|
||||||
|
|
||||||
|
if(get_config('system','disable_directory_keywords'))
|
||||||
|
$kw = 0;
|
||||||
|
|
||||||
$query = $url . '?f=&kw=' . $kw . (($safe_mode != 1) ? '&safe=' . $safe_mode : '');
|
$query = $url . '?f=&kw=' . $kw . (($safe_mode != 1) ? '&safe=' . $safe_mode : '');
|
||||||
|
|
||||||
if($token)
|
if($token)
|
||||||
|
|
|
@ -75,6 +75,8 @@ function dirsearch_content(&$a) {
|
||||||
$kw = ((x($_REQUEST,'kw')) ? intval($_REQUEST['kw']) : 0 );
|
$kw = ((x($_REQUEST,'kw')) ? intval($_REQUEST['kw']) : 0 );
|
||||||
$forums = ((array_key_exists('pubforums',$_REQUEST)) ? intval($_REQUEST['pubforums']) : 0);
|
$forums = ((array_key_exists('pubforums',$_REQUEST)) ? intval($_REQUEST['pubforums']) : 0);
|
||||||
|
|
||||||
|
if(get_config('system','disable_directory_keywords'))
|
||||||
|
$kw = 0;
|
||||||
|
|
||||||
|
|
||||||
// by default use a safe search
|
// by default use a safe search
|
||||||
|
|
Loading…
Reference in a new issue