b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (Version 1.9) [ class tree: obsolete ] [ index: obsolete ] [ all elements ]

Procedural File: _obsolete092.php

Source Location: /blogs/inc/_misc/_obsolete092.php

Page Details

This file implements functions that got obsolete with version 0.9.2.

For performance reasons you should delete (or rename) this file, but if you use some of these functions in your skin or hack you'll have to leave it for obvious compatibility reasons. Of course, this file will not be (automatically) included at some point, so please upgrade your skins and hacks.

b2evolution - http://b2evolution.net/ Released under GNU GPL License - http://b2evolution.net/about/license.html

Author:  blueyed: Daniel HAHLER.
Author:  fplanque: Francois PLANQUE.
Version:  $Id: _obsolete092.php,v 1.11.2.3 2006/11/04 19:55:05 fplanque Exp $
Copyright:  (c)2003-2006 by Francois PLANQUE - http://fplanque.net/ Parts of this file are copyright (c)2004-2005 by Daniel HAHLER - http://thequod.de/contact. Parts of this file are copyright (c)2004 by Vegar BERG GULDAL - http://funky-m.com/ Parts of this file are copyright (c)2005 by The University of North Carolina at Charlotte as contributed by Jason Edgecombe http://tst.uncc.edu/team/members/jason_bio.php.
Filesource:  Source Code for this file
License:  GNU General Public License (GPL)
Globals
string   $fileupload_allowedusers [line 1681]

You may want to authorize only some users to upload. Enter their logins here, separated by space.

if you leave that variable blank, all users who have the minimum level are authorized to upload. note: add a space before and after each login name. example: $fileupload_allowedusers = ' barbara anne ';

Default value:  ''
API Tags:
Deprecated:  


[ Top ]

int   $fileupload_minlevel [line 1668]

you may not want all users to upload pictures/files, so you can set a minimum level for this

Default value:  1
API Tags:
Deprecated:  


[ Top ]

int   $start_of_week [line 1631]

day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc

This is used when displaying the calendar only. Weekly archives are grouped the way MySQL groups days by weeks; see MySQL documentation.

Default value:  1
API Tags:
Deprecated:  Moved to locale properties, see $locales


[ Top ]


Functions
alert_confirm  [line 1185]

void alert_confirm( $msg  )
Parameters:
   $msg: 


[ Top ]
alert_error  [line 1162]

void alert_error( $msg  )
Parameters:
   $msg: 


[ Top ]
antispambot  [line 1242]

void antispambot( $emailaddy, [ $mailto = 0]  )
Parameters:
   $emailaddy: 
   $mailto: 


[ Top ]
arcdir_title  [line 1334]

void arcdir_title( [string $prefix = ' '], [mixed $display = 'htmlbody']  )

Display "Archive Directory" title if it has been requested

Parameters:
string   $prefix:  Prefix to be displayed if something is going to be displayed
mixed   $display:  Output format, see format_to_output() or false to return value instead of displaying it

API Tags:
Deprecated:  Deprecated by request_title()


[ Top ]
comments_popup_link  [line 928]

void comments_popup_link( [ $zero = '#'], [ $one = '#'], [ $more = '#'], [ $CSSclass = '']  )

comments_popup_link(-)

Parameters:
   $zero: 
   $one: 
   $more: 
   $CSSclass: 

API Tags:
Deprecated:  deprecated by Item::feedback_link()


[ Top ]
comment_author  [line 967]

void comment_author( )

comment_author(-)


API Tags:
Deprecated:  deprecated by Comment::author()


[ Top ]
comment_author_email  [line 979]

void comment_author_email( )

comment_author_email(-)


API Tags:
Deprecated:  deprecated by Comment::author_email()


[ Top ]
comment_author_email_link  [line 991]

void comment_author_email_link( [ $linktext = ''], [ $before = ''], [ $after = '']  )

comment_author_email_link(-)

Parameters:
   $linktext: 
   $before: 
   $after: 

API Tags:
Deprecated:  deprecated by Comment::author_email()


[ Top ]
comment_author_IP  [line 1030]

void comment_author_IP( )

comment_author_IP(-)


API Tags:
Deprecated:  deprecated by Comment::author_ip()


[ Top ]
comment_author_url_link  [line 1009]

void comment_author_url_link( [ $linktext = ''], [ $before = ''], [ $after = '']  )

comment_author_url_link(-)

Parameters:
   $linktext: 
   $before: 
   $after: 

API Tags:
Deprecated:  deprecated by $Comment->author_url()


[ Top ]
comment_blog_name  [line 1102]

void comment_blog_name( [ $disp = true]  )

comment_blog_name(-) fplanque added

Parameters:
   $disp: 

API Tags:
Deprecated:  


[ Top ]
comment_date  [line 1058]

void comment_date( [ $d = '']  )

comment_date(-)

Parameters:
   $d: 

API Tags:
Deprecated:  deprecated by $Comment::date()


[ Top ]
comment_ID  [line 956]

void comment_ID( )

comment_ID(-)


API Tags:
Deprecated:  deprecated by DataObject::ID()


[ Top ]
comment_post_link  [line 1118]

void comment_post_link( )

comment_post_link(-) fplanque added


API Tags:
Deprecated:  deprecated by $Comment::post_link()


[ Top ]
comment_post_title  [line 1088]

void comment_post_title( )

comment_post_title(-) fplanque added


API Tags:
Deprecated:  deprecated by $Comment::post_title()


[ Top ]
comment_text  [line 1041]

void comment_text( )

comment_text(-)


API Tags:
Deprecated:  deprecated by $Comment::content()


[ Top ]
comment_time  [line 1072]

void comment_time( [ $d = '']  )

comment_time(-)

Parameters:
   $d: 

API Tags:
Deprecated:  deprecated by $Comment::time()


[ Top ]
get_blogparams_by_ID  [line 1904]

void get_blogparams_by_ID( integer $blog_ID  )

Get blog params for specified ID

Parameters:
integer   $blog_ID:  Blog ID

Information Tags:
Todo:  on a heavy multiblog system, cache them one by one...

[ Top ]
get_commentdata  [line 890]

void get_commentdata( $comment_ID, [ $no_cache = 0]  )

get_commentdata(-)

Parameters:
   $comment_ID: 
   $no_cache: 

API Tags:
Deprecated:  Not used in the core anymore.


[ Top ]
get_path  [line 1605]

void get_path( [ $which = '']  )

get_path(-)

Parameters:
   $which: 

API Tags:
Deprecated:  since 1.9 blueyed>> shouldn't we create a _obsolete_v-1-9.php file for this? Putting everything in a single file never allows us to dump it..


[ Top ]
get_the_title  [line 341]

void get_the_title( )

get_the_title(-)


API Tags:
Deprecated:  


[ Top ]
get_userdata  [line 141]

void get_userdata( $userid  )

get_userdata(-)

Parameters:
   $userid: 

API Tags:
Deprecated:  by UserCache::get_by_ID()


[ Top ]
get_userdatabylogin  [line 118]

void get_userdatabylogin( $login  )

get_userdatabylogin(-)

Parameters:
   $login: 

API Tags:
Deprecated:  by UserCache::get_by_login()


[ Top ]
get_usernumposts  [line 44]

void get_usernumposts( $userid  )

get_usernumposts(-)

Parameters:
   $userid: 

API Tags:
Deprecated:  by User::numposts()


[ Top ]
get_user_info  [line 58]

void get_user_info( [ $show = ''], $this_userdata  )

get_user_info(-)

Parameters:
   $show: 
   $this_userdata: 

API Tags:
Deprecated:  by UserCache - not used in the core anymore


[ Top ]
imgbase  [line 1270]

void imgbase( )

Template function: output base URL to b2evo's image folder



[ Top ]
isImage  [line 1561]

boolean isImage( string $filename  )

Check a filename if it has an image extension.

Parameters:
string   $filename:  the filename to check

API Tags:
Return:  true if the filename indicates an image, false otherwise
Uses:  $regexp_images


[ Top ]
is_new_day  [line 869]

void is_new_day( )

is_new_day(-)


API Tags:
Deprecated:  Not used in the core.


[ Top ]
last_comments_title  [line 1477]

void last_comments_title( [string $prefix = ' '], [mixed $display = 'htmlbody']  )

Display "Last comments" title if these have been requested

Parameters:
string   $prefix:  Prefix to be displayed if something is going to be displayed
mixed   $display:  Output format, see format_to_output() or false to return value instead of displaying it

API Tags:
Deprecated:  Deprecated by request_title()


[ Top ]
log_hit  [line 1133]

void log_hit( )

This is just a stub for the $Hit object.



[ Top ]
msgform_title  [line 1538]

void msgform_title( [string $prefix = ' '], [mixed $display = 'htmlbody']  )

Display "Message User" title if it has been requested

Parameters:
string   $prefix:  Prefix to be displayed if something is going to be displayed
mixed   $display:  Output format, see format_to_output() or false to return value instead of displaying it

API Tags:
Deprecated:  Deprecated by request_title()

Information Tags:
Todo:  move to Request class (fplanque)

[ Top ]
mysql_oops  [line 1153]

boolean mysql_oops( string $sql_query  )

Report MySQL errors in detail.

Parameters:
string   $sql_query:  The query which led to the error

API Tags:
Return:  success?
Deprecated:  use class DB instead - not used in core anymore


[ Top ]
permalink_anchor  [line 821]

void permalink_anchor( [ $mode = 'id']  )

permalink_anchor(-)

generate anchor for permalinks to refer to

TODO: archives modes in clean mode

Parameters:
   $mode: 

API Tags:
Deprecated:  deprecated by Item::anchor()


[ Top ]
permalink_link  [line 1405]

void permalink_link( [ $file = ''], [ $mode = 'id'], [ $post_ID = '']  )

Display permalink

Parameters:
   $file: 
   $mode: 
   $post_ID: 

API Tags:
Deprecated:  deprecated by (Item::permalink())


[ Top ]
permalink_single  [line 845]

void permalink_single( [ $file = '']  )

permalink_single(-)

Permalink forced to a single post

Parameters:
   $file: 

API Tags:
Deprecated:  deprecated by Item::permanent_url()


[ Top ]
pingb2evonet  [line 1697]

void pingb2evonet( &$blogparams, $post_ID, $post_title, [ $display = true]  )

pings b2evolution.net

Parameters:
   &$blogparams: 
   $post_ID: 
   $post_title: 
   $display: 


[ Top ]
pingBlogs  [line 1809]

void pingBlogs( &$blogparams, [ $display = true]  )
Parameters:
   &$blogparams: 
   $display: 


[ Top ]
pingTechnorati  [line 1865]

void pingTechnorati( &$blogparams, [ $display = true]  )

Pings technorati.com

Code by Isaac Schlueter Adapted from the b2 ping instructions listed at http://developers.technorati.com/wiki/pingConfigurations.

Parameters:
   &$blogparams: 
   $display: 


[ Top ]
pingWeblogs  [line 1747]

void pingWeblogs( &$blogparams, [ $display = true]  )
Parameters:
   &$blogparams: 
   $display: 


[ Top ]
preview_title  [line 451]

void preview_title( [ $string = '#'], [ $before = ' '], [ $after = '']  )
Parameters:
   $string: 
   $before: 
   $after: 

API Tags:
Deprecated:  Not used in the core


[ Top ]
profile_title  [line 1513]

void profile_title( [string $prefix = ' '], [mixed $display = 'htmlbody']  )

Display "User profile" title if it has been requested

Parameters:
string   $prefix:  Prefix to be displayed if something is going to be displayed
mixed   $display:  Output format, see format_to_output() or false to return value instead of displaying it

API Tags:
Deprecated:  Deprecated by request_title()


[ Top ]
redirect_js  [line 1199]

void redirect_js( $url, [ $title = "..."]  )
Parameters:
   $url: 
   $title: 


[ Top ]
single_cat_title  [line 1433]

void single_cat_title( [string $prefix = '#'], [mixed $display = 'htmlbody']  )

Display currently filtered categories names

This tag is out of the b2 loop. It outputs the title of the category when you load the page with

  1. ?cat=
When the weblog page is loaded without ?cat=, this tag doesn't display anything. Generally, you could use this as a page title.

fplanque: multiple category support (so it's not really 'single' anymore!)

Parameters:
string   $prefix:  Prefix to be displayed if something is going to be displayed
mixed   $display:  Output format, see format_to_output() or false to return value instead of displaying it

API Tags:
Deprecated:  Deprecated by request_title()


[ Top ]
single_month_title  [line 1289]

void single_month_title( [string $prefix = '#'], [string $display = 'htmlbody'], [boolean $linktoyeararchive = true], [ $blogurl = ''], [ $params = '']  )

single_month_title(-)

fplanque: 0.8.3: changed defaults

Parameters:
string   $prefix:  prefix to display, default is 'Archives for: '
string   $display:  format to output, default 'htmlbody'
boolean   $linktoyeararchive:  show the year as link to year's archive (in monthly mode)
   $blogurl: 
   $params: 

API Tags:
Deprecated:  Deprecated by request_title()

Information Tags:
Todo:  Respect locales datefmt

[ Top ]
single_post_title  [line 1358]

void single_post_title( [ $prefix = '#'], [ $display = 'htmlhead']  )
Parameters:
   $prefix: 
   $display: 

API Tags:
Deprecated:  Deprecated by request_title()

Information Tags:
Todo:  posts do no get proper checking (wether they are in the requested blog or wether their permissions match user rights, thus the title sometimes gets displayed even when it should not. We need to pre-query the ItemList instead!!

[ Top ]
skinbase  [line 1573]

void skinbase( )

Template function: output base URL to current skin


API Tags:
Deprecated:  by skin_base_tag()


[ Top ]
stats_title  [line 1499]

void stats_title( [string $prefix = ' '], [mixed $display = 'htmlbody']  )

Display "Statistics" title if these have been requested

Parameters:
string   $prefix:  Prefix to be displayed if something is going to be displayed
mixed   $display:  Output format, see format_to_output() or false to return value instead of displaying it

API Tags:
Deprecated:  Deprecated by request_title()


[ Top ]
the_author  [line 631]

void the_author( [ $format = 'htmlbody']  )

the_author(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::preferred_name()


[ Top ]
the_author_aim  [line 781]

void the_author_aim( [ $format = 'raw']  )

the_author_aim(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::aim()


[ Top ]
the_author_email  [line 745]

void the_author_email( [ $format = 'raw']  )

the_author_email(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::email()


[ Top ]
the_author_firstname  [line 697]

void the_author_firstname( [ $format = 'htmlbody']  )

the_author_firstname(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::firstname()


[ Top ]
the_author_icq  [line 769]

void the_author_icq( [ $format = 'raw']  )

the_author_icq(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::icq()


[ Top ]
the_author_ID  [line 733]

void the_author_ID( )

the_author_ID(-)


API Tags:
Deprecated:  deprecated by DataObject::ID()


[ Top ]
the_author_lastname  [line 709]

void the_author_lastname( [ $format = 'htmlbody']  )

the_author_lastname(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::lastname()


[ Top ]
the_author_level  [line 673]

void the_author_level( )

the_author_level(-)


API Tags:
Deprecated:  deprecated by User::level()


[ Top ]
the_author_login  [line 685]

void the_author_login( [ $format = 'htmlbody']  )

the_author_login(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::login()


[ Top ]
the_author_msn  [line 805]

void the_author_msn( [ $format = 'raw']  )

the_author_msn(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::msn()


[ Top ]
the_author_nickname  [line 721]

void the_author_nickname( [ $format = 'htmlbody']  )

the_author_nickname(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::nickname()


[ Top ]
the_author_posts  [line 281]

void the_author_posts( )

the_author_posts(-)


API Tags:
Deprecated:  by User::get_num_posts() - not used in the core anymore


[ Top ]
the_author_url  [line 757]

void the_author_url( [ $format = 'raw']  )

the_author_url(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::url()


[ Top ]
the_author_yim  [line 793]

void the_author_yim( [ $format = 'raw']  )

the_author_yim(-)

Parameters:
   $format: 

API Tags:
Deprecated:  deprecated by User::yim()


[ Top ]
the_content  [line 469]

void the_content( [ $more_link_text = '#'], [ $stripteaser = 0], [ $more_file = ''], [ $more_anchor = '#'], [ $before_more_link = '#'], [ $after_more_link = '#'], [ $format = 'htmlbody'], [ $cut = 0], [ $dispmore = '#'], [ $disppage = '#']  )

the_content(-)

Parameters:
   $more_link_text: 
   $stripteaser: 
   $more_file: 
   $more_anchor: 
   $before_more_link: 
   $after_more_link: 
   $format: 
   $cut: 
   $dispmore: 
   $disppage: 

API Tags:
Deprecated:  deprecated by Item::content()


[ Top ]
the_date  [line 577]

void the_date( [ $d = ''], [ $before = ''], [ $after = ''], [ $echo = 1]  )

the_date(-)

Parameters:
   $d: 
   $before: 
   $after: 
   $echo: 

API Tags:
Deprecated:  deprecated by ItemList::date_if_changed()


[ Top ]
the_ID  [line 356]

void the_ID( )

the_ID(-)


API Tags:
Deprecated:  deprecated by DataObject::ID()


[ Top ]
the_lang  [line 388]

void the_lang( )

the_lang(-)

Display post language code


API Tags:
Deprecated:  deprecated by Item::lang()


[ Top ]
the_language  [line 402]

void the_language( )

the_language(-)

Display post language name


API Tags:
Deprecated:  deprecated by Item::language()


[ Top ]
the_link  [line 431]

void the_link( [ $before = ''], [ $after = ''], [ $format = 'htmlbody']  )

the_link(-)

Display post link

Parameters:
   $before: 
   $after: 
   $format: 

API Tags:
Deprecated:  deprecated by Item::url_link()


[ Top ]
the_permalink  [line 856]

void the_permalink( )

API Tags:
Deprecated:  deprecated by $Item::permalink()


[ Top ]
the_status  [line 370]

void the_status( [ $raw = true]  )

the_status(-)

Display post status

Parameters:
   $raw: 

API Tags:
Deprecated:  deprecated by Item::status()


[ Top ]
the_time  [line 607]

void the_time( [ $d = ''], [ $echo = 1], [ $useGM = 0]  )

the_time(-)

Parameters:
   $d: 
   $echo: 
   $useGM: 

API Tags:
Deprecated:  deprecated by Item::time() / Item::date()


[ Top ]
the_title  [line 298]

void the_title( [ $before = ''], [ $after = ''], [ $add_link = true], [ $format = 'htmlbody'], [ $disp = true]  )

the_title(-)

Display post title 03.10.10 - Updated function to allow for silent operations

Parameters:
   $before: 
   $after: 
   $add_link: 
   $format: 
   $disp: 

API Tags:
Deprecated:  deprecated by Item::title()


[ Top ]
the_wordcount  [line 417]

void the_wordcount( )

the_wordcount(-) Display the number of words in the post


API Tags:
Deprecated:  deprecated by Item::wordcount()


[ Top ]
timer_start  [line 1220]

void timer_start( )


[ Top ]
timer_stop  [line 1229]

void timer_stop( [ $display = 0], [ $precision = 3]  )
Parameters:
   $display: 
   $precision: 


[ Top ]
trackback_link  [line 229]

void trackback_link( [ $file = ''], [ $c = 0], [ $pb = 0]  )

Displays link to the trackback page

Parameters:
   $file: 
   $c: 
   $pb: 

API Tags:
Deprecated:  deprecated by Item::feedback_link()


[ Top ]
trackback_popup_link  [line 252]

void trackback_popup_link( [ $zero = '#'], [ $one = '#'], [ $more = '#'], [ $CSSclass = '']  )
Parameters:
   $zero: 
   $one: 
   $more: 
   $CSSclass: 

API Tags:
Deprecated:  deprecated by Item::feedback_link()


[ Top ]
trackback_rdf  [line 175]

void trackback_rdf( [ $timezone = 0]  )

This adds trackback autodiscovery information

Parameters:
   $timezone: 

API Tags:
Deprecated:  deprecated by Item::trackback_rdf()


[ Top ]
trackback_url  [line 204]

void trackback_url( [ $display = 1]  )
Parameters:
   $display: 

API Tags:
Deprecated:  deprecated by Item::trackback_url()


[ Top ]
user_info  [line 101]

void user_info( [ $show = ''], [ $format = 'raw'], [ $display = true]  )

user_info(-)

Parameters:
   $show: 
   $format: 
   $display: 

API Tags:
Deprecated:  by User - not used in the core anymore


[ Top ]


Documentation generated on Tue, 18 Dec 2007 22:49:42 +0100 by phpDocumentor 1.4.0