1
st3wart
Could not triggerEvent
  • 2004/4/30 6:39

  • st3wart

  • Just popping in

  • Posts: 20

  • Since: 2004/4/25


hello,

I'm tring to add a notification in a module. I've put the
triggerEvent as in the documentation in a few places in the same file (index.php).

Some triggerEvent could work. Some wouldn't.
I've checked to the kernel/privmessage.php and it seems that i couldn't insert the private message into the database.
It is using the DB: query() function instead of queryf().
How can the query() function do an insert ?

I'm really confused. Some of my triggerEvent did get through.

Bewildered.
Stewart

2
Mithrandir
Re: Could not triggerEvent

Quote:
How can the query() function do an insert ?

When the variables used are NOT coming through the GET method

3
st3wart
Re: Could not triggerEvent
  • 2004/5/3 10:43

  • st3wart

  • Just popping in

  • Posts: 20

  • Since: 2004/4/25


hmm .. so does that mean ...
if my page is accessed using get variables ..
the xoops_gethandler will only allow Select only ?

I tried to insert hard coded values into the triggerEvent but the results are still the same.. 'Action not allowed'.

Thanks.

4
Dave_L
Re: Could not triggerEvent
  • 2004/5/3 12:20

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Could you explain what kind of notifications you're triggering, and why you're doing it in your index.php?

Maybe there's a better approach.

5
st3wart
Re: Could not triggerEvent
  • 2004/5/3 15:06

  • st3wart

  • Just popping in

  • Posts: 20

  • Since: 2004/4/25


hello,

I'm trying to add notification to the agendax module.
When an event is approved, notifications are sent to the repective ppl. Those who subscribed.

I did this for events that are waiting to be approved. It worked. Notifications were sent. But when an event is approved, notifications can't be sent. (Action not allowed).

Any suggestions ?

Thanks


6
Mithrandir
Re: Could not triggerEvent

"Action not allowed" occurs when $HTTP_SERVER_VARS['REQUEST_METHOD'] != 'POST' or if the HTTP Referrer check does not validate.

Are agenda-x events approved via GET?

Login

Who's Online

208 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 208


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits