![]() |
2 actions per click ? possible ?
Hi,
When a user recommends a thread from my forum I want to perform some additional actions. The script that does this in VB is "sendmessage.php": sendmessage.php?do=sendtofriend&t=46 I see several options: 1) modify sendmessage.php to do the additional functionality; 2) use AJAX to call a PHP script before the script "sendmessage.php" is called. Is this possible ? More specifically, I am thinking to do something on the "onclick" event. 3) use a PHP redirect ? I am not sure how this would work. I just read about it somewhere. Basically, a new script will be called (that will implement the additional functionality) then this script will redirect to the standard script "sendmessage.php" What do you think about this ? Regards, Razvan M. |
Well if it was me I'd just modify the code, and if it was a vb purist they'd probably tell you to do it as a plugin. I notice sendmessage.php has 14 hooks, I am sure you can find one you like.
|
Quote:
|
All times are GMT. The time now is 04:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|