BLHTML.org

BLHTML.org / Web Programming / BLHTML / BLHTML Manual / BLHTML funktion list /

 
  BLHTML funktion list 21504 79
funktion:  return:How to use:
#,#'Installation script, a packed '
#+##Showing: brädgård: #
#<#<Showing: html tagg: <
#>#>Showing: html tagg: >
#_#&nbsp;Shows fasta SPACE
 
#BS#\Showing: \
#-|##-|#Installation script, a packed (
#|-##|-#Installation script, a packed )
#,,#"Installation script, a packed "
#//#//Remark: // omit the remaining code on the following line
#/*#/*Remark: omit code starting marker /*
#*/#*/Remark: omit the final code selection */

More information:
  • Special characters
  • BLHTML Introduction
  • Function Information Overview information of BLHTML functions
  • BLHTML syntax How BLHTML are designed and provides
  •   DATE 3700 0
    #DATE# är en PHP funktion

    Rights to use this function #DATE#:
  • BASIC

  • #DATE# skriver current tidsformat.

    values:  defaults:  description:
    valuePHP format character
    returnreturn=variable stores the results in $variable

    Example:
    Aktuell tid:
    #DATE value(y-m-d H:i:s)#

    Returns:
    Aktuell tid: 18-09-20 04:40:45
    YY-MM-DD HH:MM:SS

    More information:
  • PHP helpsection: date
  • #GETDATE#
  • #WHEN#
  •   TIMER 3027 0
    #TIMER# is an independent function
    Rights to use this function #TIMER#:
  • BASIC

  • #TIMER# shows the time pass since #TIMER type=start# been executed.
    $blhtml_start contains the time when datapage was called.

    values:    defaults:    description:
    namenowname on #DATA# / $variable that save current time
    typestart
    elapsed

    Take time and store in $variable
    Shows time since type=start

    Example to estimate the duration to create the datapage:
    #TIMER type=start#
    /*
    code
    */

    Time to execute code: #TIMER# secounds

    Time to create page: #TIMER name=blhtml_start# secounds

    Take the time and shows how long time it take to create code.
    #TIMER name=blhtml_start# Shows the time to create the datapage
      FORUM 3778 0
    #FORUM# is a forum admin command
    Rights to use this function #FORUM#:
  • Data manager

  • #FORUM# show icon groups edit reply Reply Quoting this Message Kill this and all its contents
    #FORUM# can be used on the datapage to edit, reply and quote posts in the forum. The rights sets with #ATTRIB#

    #$reply=off#
    hide Reply Reply Quoting this Message icons on posts.
    To post a reply it Need to Be Active and awnser with the function #REPLY#

    values:    defaults:  description:
    idcurrent accountPage that calls the #EDii#
    pageDPage to edit and write new forum posts
    reply$replyreply=on/off, to show Reply or not
    quote$quotequote=on/off, to show Reply Quoting this Message or not
    setfocus$setfocusSets onfocus=setfocus

    Example, to focus on the Forum's input textbox:

    Call datapage #A# for forum:
    #$setfocus=msg# // $setfocus=msg refers to #EDii id# on datapage #D#
    #ECHO
            id=14 page=C show=forum top=G bottom=H limit=15
            where(up=$index order by grp DESC, id DESC)
            rights=2 always=true br=1
    #

    // Print out the posts from the forum datapage #C#

    The datapage that render the forum post #C#:
    #FORUM# // Location where the administrative icons shall be drawn

    Datapage for editing the forum post #D#:
    #EDii
            id=msg name=msg paper=F2CAAB page=I rights=2
            brclass=L-br
            butclass=A-inp butonclass=A-inp_on
    #

    More information:
  • Working with Forum
  •   HALT 3479 0
    #HALT# is an independent function
    Rights to use this function #HALT#:
  • BASIC

  • #HALT# End page execution after #HALT#. All after #HALT# dosen't show on the datapage.
    #HALT# sets $blhtml_HALT=1

    Example:
    /*
    code
    */

    #HALT#
    Excluded text

    Example on HALT in #IF#:
    #IF(#SYSTEM[whoami]#) then(#HALT#)# // Not shown for members
    #IF(#SYSTEM[whoami]#) else(#HALT#)# // Not shown for guests

    #IF(1)
    then(
            #$a=9# // You can Comment in IF then / else
            #IF($a == 8) then(a is 8) else(ERROR)#
            #HALT#
    This does not executes...
    )#
    This also excludes...

    More information:
  • Remark
  • #IF#
  • #DO#
  •   SCORE 4765 1
    #SCORE# is an independent function

    Rights to use this function #SCORE#:
  • All

  • #SCORE# shows number of visitor-sessions to website. #SCORE# uses the sum field from current account / table to count web sessions. Counter table is set in the control panel.

    values:    defaults:  description:
    valueNumber of times the website been shownText
    blhtmlblhtml=on BLHTML executes value
    padding2Thickness on border
    ink$inkColour on the text, if not $ink, then ink=000000 / 000000
    paper$paperBackgroundcolor, if not $paper, then paper=FFFFFF / FFE5C4
    size2text size
    border4Thickness on border

    Example:
    <hr>
    <center>#SCORE size=6 paper=000000 ink=78FF78 border=10#</center>

    Returns:

    417526

    More information:
  • table counter
  • SCORE Example
  •   WRITEMAIL 3037 0
    #WRITEMAIL# is a database function
    Rights to use this function #WRITEMAIL#:
  • Data manager

  • #WRITEMAIL# shows mail link to $user

    values:  defaults:  description:
    id#SYSTEM[mailer]#Post data account
    pageEPage that print out messages
    to$userUsername for sending message to
    classaaCSS class
    valueMessage%20from%20#SYSTEM[name]#-forumStandard rubric
    returnreturn=variable stores the results in $variable

    Example:
    #WRITEMAIL class=ablack value(Message%20from%20the%20forum)# // Set your own rubric text here!

    Returns:
    BLHTML
      WHEN 3396 0
    #WHEN# is an independent function
    Rights to use this function #WHEN#:
  • All

  • #WHEN# Print out time format

    values:     defaults:  description:
    valueVariable or string to be convert to date format
    typeminText in forum: Edited: 2005-09-09 05:47
    spaceSPACECharacters that distinguish the date values
    blhtmlblhtml=on BLHTML executes WHEN
    returnreturn=variable stores the results in $variable

    type:
    10 character style: YYMMDDHHMM
    Formatutresultat
    min2005-09-09 05:47

    6 character style: YYMMDD
    typeutresultat
    dayDD MONTH YYYY
    datumYYYY MONTH DD
    dayDD MM YYYY
    dateYYYY MM DD
    oldYY MM DD

    Example:
    #WHEN value(#GETDATE#) type=dag blhtml=on return=nu#
    Today is: #$nu#<br>
    // Output: Today is: 11 November 2005

    old: #WHEN value=051008 type=old space=-#<br>
    // Output: old: 05-10-08

    #$date=051008#
    date: #WHEN value=$date type=datum space=/#
    // Output: date: 2005/Oktober/08

    Returns:
    Today is:
    old: 05-10-08
    date: 2005/Oktober/08

    DATE -> GETDATE -> WHEN:
    U =
    #DATE value=U#<br>
    GETDATE =
    #GETDATE type=U value(#DATE value=U#) blhtml=on#<br>
    WHEN =
    #WHEN
            type=date space(-)
            value(#GETDATE type=U value(#DATE value=U#) blhtml=on#) blhtml=on
    #
    <br>
    TIME =
    #WHEN
            type=min space(/)
            value(#GETDATE type=U format=min value(#DATE value=U#) blhtml=on#) blhtml=on
    #

    Returns:
    U = 1537418445
    GETDATE = 180920
    WHEN = 2018-09-20
    TIME = 2018/09/20 04:40

    More information:
  • #GETDATE#
  • #DATE#
  • PHP helpsection: date
  •   DATA 5059 11
    #DATA# is a database function
    Rights to use this function #DATA:
  • Data manager
  • BASIC

  • #DATA# Är en variable and string handler. #DATA# Manage även posts from table.

    values:  defaults:    description:
    postpreviewStep in the table
    nextStep in the table
    hiddenMake data to html hidden
    newVisitors can input new value
    websafeShowing variable without space to be used in a webaddress
    showDisplaying Data
    setSet value to $variable
    tabindexpost=new Sets tabindex on htmlobject
    typepost=new Type of html object
    readonlytruepost=new Objects only for reading
    maxlengthpost=new Maximum number of characters that may be fed into the textfield
    inkTextcolor for new
    paperBackground color for new
    cols44TEXTAREA width for new
    rows8TEXTAREA rows for new
    sizecolsCharacter width on textfield for new
    classCSS class on object
    idcurrent accountData account / table to be read from (preview/next)
    post=new sets id.name on html object id
    titlepost=new title="shows mouseover title description"
    queryAsk the table where key field is query
    whereSQL SELECT where-case
    fieldlist#DATA[var[+]] post=set type=fieldlist where(order=$order)#
    operatoraddAdds value to $variable
    subSubtracts value to $variable
    mulMultiplies value to $variable
    divDivides value to $variable
    blhtmloffDo not BLHTML execute value
    on#DATA[name] value(data)# value will be BLHTML executed
    all#DATA[name] value(data)# name and value will be BLHTML executed
    valueValue on data $variable
    bitbit handling on number values
    arrayManage list elements

    More information:
  • basket
  • Assignment hierarchy with DATA
  • Variable handling
  • BLHTML syntax
  •   SYSTEM 3073 0
    #SYSTEM# is an independent function
    Rights to use this function #SYSTEM#:
  • BASIC

  • #SYSTEM# returnerar websites constants (systemvariables).

    values:  defaults:  description:
    bitTake out a bit from SYSTEM[variable]
    returnreturn=variable stores the results in $variable

    Example on #SYSTEM#
    #SYSTEM[rubric]# // Writes the pages rubric

    #SYSTEM[whoami]# #SYSTEM[ip]# // Print out logonid and user IP-Address

    Manage bits:
    #SYSTEM[menu] bit=7 return=smily# // Bit that show smilys in edit html

    menu = #SYSTEM[menu]#<br>
    Smilys is <b>#IF($smily) then(ON) else(OFF)#</b>
    bit(7) = <b>#$smily#</b>

    menu = 8155
    Smilys is ON bit(7) = 128

    More information:
  • Variable handling
  • BLHTML SYSTEM variables
  • #SYSTEM[menu]#
  •   SENDMAIL 3953 3
    #SENDMAIL# is an Admin command
    Rights to use this function #SENDMAIL#:
  • Admin

  • Who can sends what:
  • Admin Sends internal and external email
  • Members send internal email
  • Guest nothing

  • #SENDMAIL# can send a datapage as a email to one email address. With the help of datapage and the database can be personal mass mailing be sent. Email address lists can be in a other table.

    NOTE This feature can be abused!

    Strings that are used with #SENDMAIL#:
    values:  description:
    #$from#Senderaddress
    #$mailto#  Send to address
    #$rubric#Email subject
    #$msg#The letter
    #$blhtml_mail#Return code from #SENDMAIL# when executed

    values:    defaults:    description:
    idcurrent accountData account / table
    pageDatapage to be sent by as a email
    dateymdHiPHP: date string data
    mailto$mailtoEmail address that receiver can responding to
    from$fromEmail address datapage be sent to
    rubric$rubricSubject
    value$msgMessage

    More information:
  • #SENDMAIL#
  • Handling return codes
  • #DATE#
  •   ECHO 5906 5
    #ECHO# is a forum admin command
    Rights to use this function #ECHO#:
  • Data manager
  • BASIC

  • #ECHO# Print out contents from one or more datapages and can contain data from one or more data account / table.
    In order to show a datapage, the page must be active

    NOTE as Admin you also see inactive datapages. A checkbox in the editing mode can be set so that all or only members can see the datapage.

    values:    defaults:    description:
    idcurrent accountPage from account / table
    pageBPage to be print out
    showpageDatapage that print out the list
    infoPrint out page information
    forumDatapage print out as a forum list
    dataPrint out datapage as a list with information from a table
    mailCreate a list where who = user only can see the result from datapage
    sourceReturn datapage as a string
    limitNumber of times the datapage to be print out
    whereCreate datalist from SQL where-case and print out as page=data
    rndfalsetrue or false if randomize datalist
    secure
    topData representing the page title and information on forums / datalist columns. Write between forum tree and forum posts. Use with:
    show=forum or show=data
    bottomPage that end forum / datalist
    Use with:
    show=forum or show=data
    preview«PreviousName on goto previous page in the data / forum list
    nextNext»Name on goto next page in the data / forum list
    inkSets the font color on forums path
    dirtrueDisplays the path above the forum
    falseShowing no path above the forum
    size1Sets the font size on-forum path
    locate2Possition for Indexing 0 left, 1 center, 2 for right
    br0How many line breaks to indexing
    rights0Only Admin has right to page
    1Members page. You must be logged in to see page
    2Full page view. Page is Public
    alwaystruePage show, even if not activated
    falseNot activated page is not displayed
    link_class$link_classCSS-class on forum tree and pagelinks for preview and next
    link_data$link_dataadditional variables to be added together with the link addresses
    returnreturn=variable stores the results in $variable

    Example on #ECHO#
    #ECHO# // Print out datapage B from current account / table

    #ECHO id=8 page=D# // Print out datapage D from data account / table 8

    #ECHO id=4 page=E view=info always=true# // Print out information from datapage E even if the datapage is not active

    #ECHO id=2 page=C limit=1 where(group=2) rnd=true#
    // Print out datapage C from data account / table 2. Randomize 1 post where group = 2

    #ECHO page=F where(grupp=1) rnd=true#
    // All posts where field group = 1" randomize and print out the result on datapage F

    #ECHO where(color=yellow order by date)#
    // All posts where field color = "yellow" sorted in order of the field date


    Example #ECHO show=source return=string#
    Soursecode for the top-page on #SYSTEM[name]#:<br>
    // The sorcecode for the datapage C on data account 1 saves in the variable: $P
    #ECHO id=1 page=C show=source always=true limit=1 return=P#

    #TEXTAREA paper=FFF rows=12 wrap=off##$P##/TEXTAREA#
    // Print out code from datapage in a <textarea>

    Returns:
    Soursecode for the top-page on BLHTML.org:


    More information:
  • Working with Forum
  • #DO#
  • #READ#
  •   SLINK 3335 0
    #SLINK# is a forum admin command
    Rights to use this function #SLINK#:
  • Data manager

  • #SLINK# links forum posts. The advantage with #SLINK# the links are "copies" takes less space. Easier to maintain and update only when the original #SLINK# need not be updated as they only showing the original. #SLINK# is an abbreviation of SoftLink.
    Admin can see a link at the bottom to the right of the post to edit The original.

    values:    defaults:    description:
    idcurrent accountData account that shall print out the post
    forumcurrent accountWhich forum table
    pageFPage to be printed
    fieldKey FieldThe keyfield on the table
    value$valueValue on keyfield for post
    edpageDAdmin Page for editing the post

    Example on #SLINK#
    #SLINK value=10# // Showing posts number 10

    #$value=10#
    #SLINK id=8#
    // Showing posts number 10 from datapage 8

    More information:
  • Working with Forum
  •   INDEX 3070 0
    #INDEX# is a forum admin command
    Rights to use this function #INDEX#:
  • Users who are forum owners with Data Manager (only current account)
  • Vanguards with administer: "Admin forum" all accounts

  • Only Admin, vanguards and Forum Administrator can see function #INDEX#.
  • Displaying post $id value from forum table.

  • values:    defaults:  description:
    before [<font color=FFFF00>  Show before #INDEX#
    after </font>]Show after #INDEX#

    Example on #INDEX# with blue color:
    #INDEX
    before=" [<font color=0000FF>"
    after="</font>] "
    #

    More information:
  • Working with Forum
  •   RESET 2947 0
    #RESET# is an admin, database function,
    that will restore and control the default administration and forum table
    • #RESET type=attrib#
    • Only Admin Accounts can type=attrib
    Update table attrib with all account
    values:  defaults:  description:
    value65793value=65793 Get Admin full rights over the table attrib

    • #RESET type=child# Counts the posts in forum table and save the results in field child in forum table
    • Admin and Lesser admin has rights to update field child
    • Users with Data Manager can update their own forum tables, child field
    values:  defaults:  description:
    forum$forumForum table where the under posts shall be counted and updates in field child

    Example #RESET type=child#:
    #IF(#SYSTEM[whoami]# > 99) then(#HALT#)#
    #SET_CATCH_PAGE forum(forumtable)#

    #IF($reset) then(#GOSUB reset#)#

    #PRINT size=5 value(RESET the child)#<br><br>

    #PLOPP name=reset value(Recount all under posts)#

    #HALT#

    #: reset#
    #RESET type=child#
    #RETURN#
    • #RESET type=post# Displays the fair number of sub posts in forums (Calculating sub posts where $index = post)
    • Admin and Lesser admin see the outcome from #INDEX type=post#
    • Users with Data Manager can see outcome from #INDEX type=post#
    Example in datapage #C# Show Post
    <td class=F-post width=50><font size=1>#SUM null=1 value=$child# - #RESET type=post#</font></td>

    More information:
  • #SET_CATCH_PAGE#
  • #SUM# counting numbers and variables
  •   WHOED 3269 0
    #WHOED# is a forum admin command
    Rights to use this function #WHOED#:
  • Users who are forum owners with Data Manager (only current account)
  • Vanguards with administer: "Admin forum" all accounts

  • Only Admin, vanguards and Forum Administrator can see post #WHOED#.
    Sets value on field edit in the forum table.

    Member cant edit/erase post 0 Member cant edit / erase post
    Memer can edit post 1 Memer can edit post
    Member cant edit post 2 Members can edit and delete his posts
    All can Edit post 3 All can editera denna post
    All can edit/Delete post 4 All can edit / delete this post

    More information:
  • Working with Forum
  • speed
  • BLHTML forum  


    apache MySQL PHP No to software patents! BLHTML
    © 2003, 2010 BLHTML
    This page is created with BLHTML in 0.2924 seconds