aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/docs/coding-guidelines.html
diff options
context:
space:
mode:
authorGaëtan Muller <m.gaetan89@gmail.com>2013-04-21 14:22:45 +0200
committerGaëtan Muller <m.gaetan89@gmail.com>2013-05-06 21:31:16 +0200
commit828d3b6b68acad606fe150cff7993c216ebc4474 (patch)
treeb1c48ae7bab80c2094b5753096fd1f586a641585 /phpBB/docs/coding-guidelines.html
parent453f98f6d3528ee0598581973f8c8a9bbcdcb25a (diff)
downloadforums-828d3b6b68acad606fe150cff7993c216ebc4474.tar
forums-828d3b6b68acad606fe150cff7993c216ebc4474.tar.gz
forums-828d3b6b68acad606fe150cff7993c216ebc4474.tar.bz2
forums-828d3b6b68acad606fe150cff7993c216ebc4474.tar.xz
forums-828d3b6b68acad606fe150cff7993c216ebc4474.zip
[ticket/11144] Add missing {FORUM_NAME} variable
The template variable {FORUM_NAME} was missing from the login page of a password protected forum PHPBB3-11144
Diffstat (limited to 'phpBB/docs/coding-guidelines.html')
-rw-r--r--phpBB/docs/coding-guidelines.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html
index cd113a7226..38f11534d2 100644
--- a/phpBB/docs/coding-guidelines.html
+++ b/phpBB/docs/coding-guidelines.html
@@ -956,6 +956,8 @@ $action_ary = request_var('action', array('' =&gt; 0));
<h4>Login checks/redirection: </h4>
<p>To show a forum login box use <code>login_forum_box($forum_data)</code>, else use the <code>login_box()</code> function.</p>
+ <p><code>$forum_data</code> should contain at least the <code>forum_id</code> and <code>forum_password</code> fields. If the field <code>forum_name</code> is available, then it is displayed on the forum login page.</p>
+
<p>The <code>login_box()</code> function can have a redirect as the first parameter. As a thumb of rule, specify an empty string if you want to redirect to the users current location, else do not add the <code>$SID</code> to the redirect string (for example within the ucp/login we redirect to the board index because else the user would be redirected to the login screen).</p>
<h4>Sensitive Operations: </h4>