BLHTML.org

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

 
  COUNTCLICK 3690 3
#COUNTCLICK# is a database function
Rights to use this function #COUNTCLICK#:
  • Data manager

  • #COUNTCLICK# summerar amount klick en link blivit klickad.
    modules/BLHmin.php
    #COUNTCLICK id=votetableid user=myname value=download object#
    #COUNTCLICK id=votetableid click=klickobject#

    Statestik for year / mounth / day är for närvarande inte fungerande!

    values:  defaults:  description:
    idcurrent accountKlick registrerings account
    valueAccounts download object action=reset values
    userOwner to Download object
    clickManage klickobject: "oid" from id=vote-table
    #DOWNLOAD id=90 value=$value show=click# tar fram klickvalue
    yearyear=all räknar all klick for download object
    negativt tal year=-2 räknar all klick for 2 år plus current års klick
    mounthmounth=all räknar all klick for download object som hänt detta år
    negativt tal mounth=-1 räknar all klick for 1 månader plus current månads klick
    dayday=all räknar all klick for download object som hänt denna månad
    negativt tal day=-7 räknar all klick de last 7 days
    todaytruetoday=true räknar dagens all klick for download objectet
    decimal2show=avg/all Hur många decimaler som skall returneras for medeltal
    showcount
    sum
    avg
    all
    array
    Number of klick
    Summa of all klick
    Medelvalue
    returnerar array[+]: "Number of klick" "Summa of all klick" Medelvärde
    returnerar en BLHTML array[+] with all klick from ej IP registrerade IP frågor
    actionshow
    reset
    list
    date
    Shows klickdata
    Objects som skall nollställas
    returnerar en BLHTML array[+] with all registrerade click object
    Datum när value=object laddades upp
    returnreturn=variable stores the results in $variable

    Example:
    // id=91 is the dataccount for the click table
    // id=92 is the dataccount for the vote table

    #DOWNLOAD id=201 value=1 show=click return=click#
    #COUNTCLICK id=91 click=$click year=all return=downloads#
    #DOWNLOAD id=201 value=1# is downloaded #$downloads# times.

    Download today: #COUNTCLICK id=91 user=Adam value=8#
    // Show how many time Adams download item 8 been downloaded today

    #COUNTCLICK id=92 click(ask a question) action=reset#
    // action=reset values is the click for the function show=array to show all post

    #COUNTCLICK id=92 click(ask a question) show=all decimal=2 return=all#<br>
    all[+]: #$all[+]#<br><br>

    ant: #$all[0]#<br>
    sum: #$all[1]#<br>
    avg: #$all[2]#<br>

    array[+]: #COUNTCLICK id=92 click(ask a question) show=array#

    Returns:
    link to object is downloaded summa amount nedladdningar

    Download today: shows amount nedladdningar som gjorts with Adams download object 8 idag

    action=reset shows följande warning messages:
    Objects: Objects är nollstäld
    // Nollställningen of klick for function show=array for att kunna show all posts

    all: 28 188 6.71
    ant: 28
    sum: 6.71
    avg: 7

    array[+]: 5 0 3 0 2 0 0 8 0 10 // Post 1 2 3 4 5 6 7 8 9 10

    date:
    #SYSTEM[myname] return=myname#

    // id=91 COUNTCLICK/vote table
    // user=current user and download object 2

    #WHEN type=date space=-
            value(#COUNTCLICK id=91 user=$myname action=date value=2#)
    blhtml=on
    #

    Returns:
    2010-05-08

    More information:
  • vote
  • #DOWNLOAD#
  • #UPLOAD#
  • #DIAGRAM#
  • BLHTML array
  •   vote 2612 0
    vote is a database function

    Table information for a voting account:
    name  typ  description:
    idH8
    oidstr32Name on click object
    grpH1vote option
    IPstr15If vote shall not count every IP, then IP = 8
    forIPstr15php forIP does not work anymore
    datestr6
    sumH2the number of grp which has been clicked
    whoH8

    Example if not IP recorded radio buttons:
    #SET_CATCH_PAGE#
    #DATA[blhtml_cmd] post=hidden value=vote#

    #IF($reset)
            then(#COUNTCLICK id=90 click=Unlimited action=reset value(1 2 3 4 5 6 7 8 9 10)#)
    #

    <br>
    #COUNTCLICK id=90 click=Unlimited show=all decimal=2 return=all#
    all: #$all[*]#<br><br>

    ant: #$all[0]#<br>
    sum: #$all[1]#<br>
    avg: #$all[2]#<br><br>

    What do you think?<br>
    #DATA[vote_0900Unlimited] value(1) post=new type=radio class=std# 1 urk
    #DATA[vote_0900Unlimited] value(2) post=new type=radio class=std# 2
    #DATA[vote_0900Unlimited] value(3) post=new type=radio class=std# 3
    #DATA[vote_0900Unlimited] value(4) post=new type=radio class=std# 4
    #DATA[vote_0900Unlimited] value(5) paper=EEEEEE post=new type=radio# 5
    #DATA[vote_0900Unlimited] value(6) post=new type=radio class=std# 6
    #DATA[vote_0900Unlimited] value(7) post=new type=radio class=std# 7
    #DATA[vote_0900Unlimited] value(8) post=new type=radio class=std# 8
    #DATA[vote_0900Unlimited] value(9) post=new type=radio class=std# 9
    #DATA[vote_0900Unlimited] value(10) post=new type=radio class=std# 10 top

    #PLOPP value(vote this)# #PLOPP name=reset value=reset#
    <br><br>

    #COUNTCLICK id=90 click=Unlimited show=array return=dia#
    array[-]: #$dia[-]#<br>
    array[+]: #$dia[+]#<br><br>

    <font size=3><b>Chart:</b></font><br>
    #$info[+](<b>urk</b>(ill done)(NOT goed)bad(<b>just is</b>)(can beh better)goed(pretty OK)(woow)(<b>High score</b>))#
    #DIAGRAM info=$info value=$dia text_width=90 show=%#<br><br>

    <center>

    #DIAGRAM
            info=$info value=$dia
            color(00CCCC 888888 004D98 CC6600 00984A FF0000 00FF00 0000FF 00FFFF FF00FF FFFF00)
            paper=FFF5D4 size=3 border=2 format=3 width="50%" text_width=120 fat=2
    #

    </center>

    Returns:

    0 all: 0 6 1 13 2 2.17 count 6 sum 13 avg 2.17

    ant: 6
    sum: 13
    avg: 2.17

    What do you think?
    1 urk 2 3 4 5 6 7 8 9 10 top

    0 array[-]: 1 8
    array[+]: 5 1

    Chart:
    urk83%
     
    ill done0% 
    NOT goed0% 
    bad0% 
    just is0% 
    can beh better0% 
    goed0% 
    pretty OK17%
     
    woow0% 
    High score0% 


    urk5
     
    ill done0 
    NOT goed0 
    bad0 
    just is0 
    can beh better0 
    goed0 
    pretty OK1
     
    woow0 
    High score0 



    #DATA[blhtml_cmd] post=hidden value=vote#
    Make the form to call function vote when form sent with #PLOPP#-button

    #DATA[vote_09021]# tell $blhtml_cmd to value=vote executes the following:
    Name vote_ indicates that this is a click variable containing the following 3 data:

    090 tell the vote function, that the data account 90 shall store the election statistics

    the 4 character: 2 manages information about:
  • bit 0 (bit value: 1) Only registered member
  • bit 1 (bit value: 2) Recorded only one object and click IP Address
  • bit 2 (bit value: 4) Reset the IP registration and the same IP can vote / click again the next day
  • bit 3 (bit value: 8) Registering only votes / clicks and total

  • #DATA[vote_09001]# Unlimited registration of Objects
    #DATA[vote_09021]# One IP can only click one time

    The fourth character plus 32 character is the name of the clicks objects stored in the field oid
    #DATA[vote_09021]# The name of the click object set to oid = "1"
      Registrera länk klick 1285 0
    Data uppgifter in Registrera länk klick example:

    Data for att gå to #COUNTCLICK#:
    This forum show from account 1, page A: "index.php?ID=1&page=A"
    Inlägget är index=204

    Data som krävs att registrera klickobject: linkclick
    Calling funktion vote: blhtml_cmd=vote
    Registrera all klick from länk: vote_0900linkclick=1
  • 090 account 90 skall registrera exemplets klick
  • 0 Unlimited registrering of detta click object
  • linkclick oid=linkclick (click object) sätter field grp=1

  • Example räkna amount klick en länk utsatts for:
    BLHTML:
    #A id=1
            data(index=$index#AND#blhtml_cmd=vote#AND#vote_0900linkclick=1)
            value(#+#COUNTCLICK#+# been clicked #COUNTCLICK id=90 click=linkclick# times)
    blhtml=on
    #
    <br>

    html:
    <a href="index.php?ID=1#AND#page=A#AND#index=#$index##AND#blhtml_cmd=vote#AND#vote_0900linkclick=1">
    #+#COUNTCLICK#+# been clicked #COUNTCLICK id=90 click=linkclick# times
    </a>

    Returns:
    BLHTML:
    html:
    #COUNTCLICK# been clicked 1663 times
    #COUNTCLICK# been clicked 1663 times

    More information:
  • COUNTCLICK
  • vote
  •   COUNTCLICK Admin 1212 0
    COUNTCLICK Admin script list all current klick/val posts from table vote and delete all with markerade checkboxar.
    #SET_CATCH_PAGE key=oid table=vote erase=remove#
    #PRINT size=5 value(COUNTCLICK Admin, #SYSTEM[name]#) blhtml=on#

    <hr color=#SYSTEM[page_paper]#>

    #COUNTCLICK id=90 action=list return=list#


    #IF(!$list[0]) then(#GOTO nopost#)#


    #DATA[remove_checkbox] post=hidden value=1#

    <table class=code>
    <tr>
            <td></td>
            <td style="padding-right: 15px">
    Klick:</td>
            <td style="padding-right: 15px">Number of:</td>
            <td style="padding-right: 15px">Summa:</td>
            <td>Medelvalue:</td>
    </tr>


    #$n=0#
    #: loop#
    #COUNTCLICK id=90 show=all click($list[$n]) return=all#


    <tr>
            <td>
    #DATA[remove] prefix($list[$n]) post=new type=checkbox class=std#</td>
            <td>
    #$list[$n]#</td>
            <td>
    #$all[0]#</td>
            <td>
    #$all[1]#</td>
            <td>
    #$all[2]#</td>
    </tr>


    #SUM value($n 1) return=n#
    #IF($list[$n])
            then(#GOTO loop#)
    #


    <tr>
            <td colspan=5 align=right>
    #PLOPP value(Radera Objects) name=remove#</td>
    </tr>
    </table>

    #HALT#


    #: nopost#
    Inga Registrerade klick data<br><br>
    #PLOPP value(Update clicklist)#
    BLHTML forum  


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