BLHTML.org

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

 
  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
  • BLHTML forum  


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