File/includes/functions_posting.php

Description
  • version: $Id: functions_posting.php 8780 2008-08-22 12:52:48Z acydburn $
  • copyright: (c) 2005 phpBB Group
  • license: GNU Public License
Functions
create_thumbnail (line 588)

Create Thumbnail

void create_thumbnail ( $source,  $destination,  $mimetype)
  • $source
  • $destination
  • $mimetype
delete_post (line 1334)

Delete Post

void delete_post ( $forum_id,  $topic_id,  $post_id,  &$data)
  • $forum_id
  • $topic_id
  • $post_id
  • &$data
generate_smilies (line 22)

Fill smiley templates (or just the variables) with smilies, either in a window or inline

void generate_smilies ( $mode,  $forum_id)
  • $mode
  • $forum_id
get_img_size_format (line 497)

Calculate the needed size for Thumbnail

void get_img_size_format ( $width,  $height)
  • $width
  • $height
get_supported_image_types (line 523)

Return supported image types

void get_supported_image_types ([ $type = false])
  • $type
load_drafts (line 822)

Load Drafts

void load_drafts ([ $topic_id = 0], [ $forum_id = 0], [ $id = 0])
  • $topic_id
  • $forum_id
  • $id
posting_gen_attachment_entry (line 764)

Generate inline attachment entry

void posting_gen_attachment_entry ( $attachment_data,  &$filename_data)
  • $attachment_data
  • &$filename_data
posting_gen_inline_attachments (line 740)

Assign Inline attachments (build option fields)

void posting_gen_inline_attachments ( &$attachment_data)
  • &$attachment_data
posting_gen_topic_icons (line 247)

Generate Topic Icons for display

void posting_gen_topic_icons ( $mode,  $icon_id)
  • $mode
  • $icon_id
posting_gen_topic_types (line 286)

Build topic types able to be selected

void posting_gen_topic_types ( $forum_id, [ $cur_topic_type = POST_NORMAL])
  • $forum_id
  • $cur_topic_type
submit_post (line 1556)

Submit Post

void submit_post ( $mode,  $subject,  $username,  $topic_type,  &$poll,  &$data, [ $update_message = true])
  • $mode
  • $subject
  • $username
  • $topic_type
  • &$poll
  • &$data
  • $update_message
topic_review (line 937)

Topic Review

void topic_review ( $topic_id,  $forum_id, [ $mode = 'topic_review'], [ $cur_post_id = 0], [ $show_quote_button = true])
  • $topic_id
  • $forum_id
  • $mode
  • $cur_post_id
  • $show_quote_button
update_post_information (line 122)

Update last post information Should be used instead of sync() if only the last post information are out of sync... faster

void update_post_information (string $type, mixed $ids, [bool $return_update_sql = false])
  • string $type: Can be forum|topic
  • mixed $ids: topic/forum ids
  • bool $return_update_sql: true: SQL query shall be returned, false: execute SQL
upload_attachment (line 349)

Upload Attachment - filedata is generated here

Uses upload class

void upload_attachment ( $form_name,  $forum_id, [ $local = false], [ $local_storage = ''], [ $is_message = false], [ $local_filedata = false])
  • $form_name
  • $forum_id
  • $local
  • $local_storage
  • $is_message
  • $local_filedata
user_notification (line 1108)

User Notification

void user_notification ( $mode,  $subject,  $topic_title,  $forum_name,  $forum_id,  $topic_id,  $post_id)
  • $mode
  • $subject
  • $topic_title
  • $forum_name
  • $forum_id
  • $topic_id
  • $post_id

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