How to call a Boltwire function in PHP script.

22 views
Skip to first unread message

DIG Germering

unread,
Jun 26, 2015, 3:02:09 PM6/26/15
to bolt...@googlegroups.com
I would like to write my own function and in it  call a Boltwire function, but I don't how how to call a Boltwire function in PHP code.
To find out the syntax a tried this.

BOLTFmyfunc($args) {
        $name=$args['field'];
        $wert=$args['value'];
        BOLTFinfo(field=$name, value=$wert);
        return;
        }

then I put on a pageof my site: [(myfunc field=tom value=100)].
What I got was an empty screen.
Can you help me?

The Editor

unread,
Jun 26, 2015, 3:21:38 PM6/26/15
to BoltWire

You need to write the word "function" just before the function name to indicate you are defining a function.

Let me know if that doesn't fix it.

Cheers
Dan

--
You received this message because you are subscribed to the Google Groups "BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boltwire+u...@googlegroups.com.
To post to this group, send email to bolt...@googlegroups.com.
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.

DIG Germering

unread,
Jun 26, 2015, 7:03:50 PM6/26/15
to bolt...@googlegroups.com
What I realy wrote was:

function BOLTFmyfunc($args) {

        $name=$args['field'];
        $wert=$args['value'];
        BOLTFinfo(field=$name, value=$wert);
        return;
        }

If I write my own function without call to Boltwire function, this works fine.
Cheers.
Bruno

The Editor

unread,
Jun 26, 2015, 9:26:14 PM6/26/15
to BoltWire

The 4th line should probably be

BOLTinfo($name, $wert);

Dan

DIG Germering

unread,
Jun 27, 2015, 4:35:29 AM6/27/15
to bolt...@googlegroups.com
It seems, that nothing happens, the screen is not empty. It seems to be the call of the info funktion with key parameters to cause the trouble.
Cheers.
Bruno

The Editor

unread,
Jun 27, 2015, 9:01:47 AM6/27/15
to BoltWire

Change the function name to something else. I think it is causing your problem as it is a reserved webhook in BoltWire.

DIG Germering

unread,
Jun 27, 2015, 12:31:58 PM6/27/15
to bolt...@googlegroups.com
Dear Dan,
first of all, thank you very much for your fast answers. Now I have tried this:

function BOLTFmilano($args) {
        $name=$args['field'];
        $wert=$args['value'];
        //BOLTFinfo(field=$name, value=$wert);
        return $name." ".$wert;
        }
This works fine. If I put on the page: [(milano field=tom value=200)]
what I see is: tom 200

If I try this:

function BOLTFmilano($args) {

        $name=$args['field'];
        $wert=$args['value'];
        BOLTFinfo(field=$name, value=$wert);
        return;

The screen is empty and it stays empty, even if I try to see a different page.
Cheers
Bruno



--
You received this message because you are subscribed to a topic in the Google Groups "BoltWire" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/boltwire/YjKZ9yGbli0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to boltwire+u...@googlegroups.com.

Tiffany Grenier

unread,
Jun 27, 2015, 7:54:22 PM6/27/15
to bolt...@googlegroups.com

Hello,
What if, as Dan said, you tried this?


function BOLTFmilano($args) {
        $name=$args['field'];
        $wert=$args['value'];

        BOLTFinfo($name, $wert);
        return;
}
Regards.

The Editor

unread,
Jun 27, 2015, 11:40:25 PM6/27/15
to BoltWire

This function doesn't return any value. Combine the last two lines to say

       return BOLTFinfo...

Reply all
Reply to author
Forward
0 new messages