• Closed
  • bbwalker
    Spectator
    May 6, 2015 at 6:23 pm #17314

    how to pass a value to a counter_box, like this example:

    counter_box on alora:
    [counter_box value=”3600″]Like[/counter_box]

    likesconunter:
    [likescounter page=’myfacebookpage’] (this’ll return a number)

    i try:
    [counter_box value=”[likescounter page=’myfacebookpage’]”]Like[/counter_box]
    [counter_box value='[likescounter page=’myfacebookpage’]’]Like[/counter_box]
    [counter_box value=[likescounter page=’myfacebookpage’]]Like[/counter_box]

    no way… how i can i set the counter_box value?

    hope someone can help me, thanks 🙂

    Roman
    Spectator
    Posts: 3147
    May 6, 2015 at 6:49 pm #17317

    value can be inserted only directly, as you wrote in the first example, it cannot be implemented through another code

    bbwalker
    Spectator
    Posts: 54
    May 6, 2015 at 8:15 pm #17320

    argh…ok!

    Can i use a variable?
    i mean, in Asp i can write <font size=”<%=AppSizeVar%>”>
    can i do something like this?

    Or, if possible, how can i use a “dynamic” value in counter_box ?

    thanks like always Roman!

    bbwalker
    Spectator
    Posts: 54
    May 6, 2015 at 11:04 pm #17325

    i try also this:

    [counter_box value=””][likescounter page=’myfacebookpage’] – Like[/counter_box]
    it return:
    a big “0”
    with under the correct number and like text, is possible to hide the “0”?

    would be cool to have the widget dynamic and not static!

    any suggestion Roman? or someone else?
    thanks 🙂

    Roman
    Spectator
    Posts: 3147
    May 7, 2015 at 9:46 am #17339

    sorry but dynamic values cannot be used in the shortcodes for now..maybe in future

    bbwalker
    Spectator
    Posts: 54
    May 7, 2015 at 2:34 pm #17357

    thanks anyway Roman, have a good day!