File/includes/functions_display.php

Description
  • version: $Id: functions_display.php 8775 2008-08-21 15:41:12Z Kellanved $
  • copyright: (c) 2005 phpBB Group
  • license: GNU Public License
Functions
display_custom_bbcodes (line 811)

Assign/Build custom bbcodes for display in screens supporting using of bbcodes

The custom bbcodes buttons will be placed within the template block 'custom_codes'

void display_custom_bbcodes ()
display_forums (line 22)

Display Forums

void display_forums ([ $root_data = ''], [ $display_moderators = true], [ $return_moderators = false])
  • $root_data
  • $display_moderators
  • $return_moderators
display_reasons (line 843)

Display reasons

void display_reasons ([ $reason_id = 0])
  • $reason_id
display_user_activity (line 874)

Display user activity (action forum/topic)

void display_user_activity ( &$userdata)
  • &$userdata
generate_forum_nav (line 489)

Create forum navigation links for given forum, create parent

list if currently null, assign basic forum info to template

void generate_forum_nav ( &$forum_data)
  • &$forum_data
generate_forum_rules (line 464)

Create forum rules for given forum

void generate_forum_rules ( &$forum_data)
  • &$forum_data
gen_forum_auth_level (line 707)

User authorisation levels output

void gen_forum_auth_level (string $mode, int $forum_id, int $forum_status)
  • string $mode: Can be forum or topic. Not in use at the moment.
  • int $forum_id: The current forum the user is in.
  • int $forum_status: The forums status bit.
get_forum_parents (line 547)

Returns forum parents as an array. Get them from forum_data if available, or update the database otherwise

void get_forum_parents ( &$forum_data)
  • &$forum_data
get_moderators (line 631)

Obtain list of moderators of each forum

void get_moderators ( &$forum_moderators, [ $forum_id = false])
  • &$forum_moderators
  • $forum_id
get_user_avatar (line 1163)

Get user avatar

  • return: Avatar image
string get_user_avatar (string $avatar, int $avatar_type, string $avatar_width, string $avatar_height, [string $alt = 'USER_AVATAR'])
  • string $avatar: Users assigned avatar name
  • int $avatar_type: Type of avatar
  • string $avatar_width: Width of users avatar
  • string $avatar_height: Height of users avatar
  • string $alt: Optional language string for alt tag within image, can be a language key or text
get_user_rank (line 1118)

Get user rank title and image

void get_user_rank (int $user_rank, int $user_posts, string &$rank_title, string &$rank_img, string &$rank_img_src)
  • int $user_rank: the current stored users rank id
  • int $user_posts: the users number of posts
  • string &$rank_title: the rank title will be stored here after execution
  • string &$rank_img: the rank image as full img tag is stored here after execution
  • string &$rank_img_src: the rank image source is stored here after execution
topic_generate_pagination (line 589)

Generate topic pagination

void topic_generate_pagination ( $replies,  $url)
  • $replies
  • $url
topic_status (line 736)

Generate topic status

void topic_status ( &$topic_row,  $replies,  $unread_topic,  &$folder_img,  &$folder_alt,  &$topic_type)
  • &$topic_row
  • $replies
  • $unread_topic
  • &$folder_img
  • &$folder_alt
  • &$topic_type
watch_topic_forum (line 984)

Topic and forum watching common code

void watch_topic_forum ( $mode,  &$s_watching,  $user_id,  $forum_id,  $topic_id, [ $notify_status = 'unset'], [ $start = 0])
  • $mode
  • &$s_watching
  • $user_id
  • $forum_id
  • $topic_id
  • $notify_status
  • $start

Documentation generated on Tue, 26 Aug 2008 08:34:04 +0200 by phpDocumentor 1.4.2