Check out the SMF Function DB!
global $context, $settings, $options, $txt, $scripturl, $modSettings;
global $context, $settings, $options, $txt, $scripturl, $modSettings, $user_info;
if ($category['can_collapse'])
if ($user_info['is_guest'] and $category['id'] == ##) { $category['can_collapse'] = false; $category['is_collapsed'] = true; }
bau doch ne Mod
ich würd das so machen, das die gäste den forenindex betrachten können, mit den ganzen topics. aber wenn die was anklicken, kommt die aufforderung, das sie sich registreren sollen, geht das irgendwie??
Hi alle,mit dieser kleine Ergänzung sehen Gäste nur noch die Categorie aber keine Boards darin ..Script: BoardIndex.template.phpÄndere die Zeile:Code: [Select]global $context, $settings, $options, $txt, $scripturl, $modSettings;inCode: [Select]global $context, $settings, $options, $txt, $scripturl, $modSettings, $user_info;Vor der Zeile:Code: [Select]if ($category['can_collapse'])dieses einfügen:Code: [Select]if ($user_info['is_guest'] and $category['id'] == ##) { $category['can_collapse'] = false; $category['is_collapsed'] = true; }## ist dann die ID Nummer der Categorie.Das ist alles Fel
if ($user_info['is_guest'] and $category['id'] == ##) {
if ($user_info['is_guest']) {
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0', 'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $row['firstSubject'] . '</a>'
'href' => !$user_info['is_guest'] ? $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0' : '', 'link' => !$user_info['is_guest'] ? '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $row['firstSubject'] . '</a>' : $row['firstSubject']
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . '#new', 'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . '#new">' . $row['lastSubject'] . '</a>'
'href' => !$user_info['is_guest'] ? $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . '#new' : '', 'link' => !$user_info['is_guest'] ? '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . ($row['numReplies'] == 0 ? '.0' : '.msg' . $row['ID_LAST_MSG']) . '#new">' . $row['lastSubject'] . '</a>' : ''