Functions and functionality that changed / got dropped in 3

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
freejoe76
Registered User
Posts: 3
Joined: Thu Feb 07, 2008 5:57 pm
Location: Denver, Colorado
Contact:

Functions and functionality that changed / got dropped in 3

Post by freejoe76 »

Hi all,

This is a list of functions, functionality, and variable names that changed or got dropped in the transition from phpbb2 to phpbb3.

If you have any to add, that would be great.


Functions
get_db_stat

Old:

get_db_stat('newestuser');

New:

I haven't been able to find this, so I'm assuming it was dropped.

create_date

function create_date was used extensively in phpbb2. It doesn't exist in phpbb3. Here's what I did to get around that problem:

With help from http://www.phpbb.com/community/viewtopi ... 1&t=559519:

$topic_post_time = $user->format_date($topic_data[$i]['post_time']);


This regex was tested in Homesite's extended replace:

create_date\(([^,]+),([^,]+),([^\)]+)\)
$user->format_date(\2)

message_die

Old:

message_die(GENERAL_ERROR, 'Could not query list of active posts', , __LINE__, __FILE__, $sql);

New:

trigger_error('NO_FORUM');

* Requires error language, which lives in [?]

obtain_word_list

Old:

function obtain_word_list($orig_word, $replacement_word);

New:
??

Variables That Don't Exist Anymore
$lang

Old:

$page_title = $lang['Album'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

New:

page_header($user->lang['Album']);

.tpl

Old:

$template->set_filenames(array('body' => 'album_index_body.tpl'));

New:

$template->set_filenames(array('body' => 'album_index_body.html'));

$template->pparse

Old:

$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

New:

page_footer();

$db->sql_numrows

Old:

$db->sql_numrows()

New:

[?]

$board_config

Old:

$board_config['sitename']

New:

$config['sitename']

$forum_topic_data

Old:

$forum_topic_data['topic_first_post_id']

New:

$topic_data['topic_first_post_id']

$_auth

Old:

$is_auth['auth_reply']

New:

$auth->acl_get('f_reply', $forum_id)

$userdata

Old:

$userdata['session_logged_in']

New:

$user->data['session_logged_in']

$images

Old:

$images['icon_postpointsup']

New:

[?]
Senior Developer, The Denver Post
phpbb3 board: http://neighbors.denverpost.com/forums.php
phpbb3-generated most-commented lists: http://www.denverpost.com/commented
User avatar
naderman
Consultant
Posts: 1727
Joined: Sun Jan 11, 2004 2:11 am
Location: Berlin, Germany
Contact:

Re: Functions and functionality that changed / got dropped in 3

Post by naderman »

You might want to take a look at http://olympuswiki.naderman.de/Olympus_for_phpBB2_users and extend that if you wish.
Post Reply