The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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.
|
#3
|
|||
|
|||
This is a new solution that I overlooked... not a bad idea.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|