
06-23-2011, 02:10 PM
|
|
|
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Welshy2008
BA,
I would appreciate your help...
When I upgraded to 4.1.3 - my pluggins disappeared (the ones that I did to change the standard reply text to text of my choice).
The other pluggin was to redirect the user to my form which would then be submitted a post in a specified thread.
I have redone the "renaming of the reply tab text" pluggin and that works. BUT, the one that redirects the user to my form (before it submits as a post) is not working.
I am now using vBSEO 3.6.0 too, and I have also tried this with the vBSEO off, but still no joy.
Can you have a look at the code that I am using and possibly tell me where I have gone wrong please?
I have the following:
Code:
Product: Easy Forms
Hook Location: newreply_form_start
Title: Easy Forms Reply Button
Execution Order: 5
Plugin PHP Code:
if (in_array($threadinfo[threadid], array(ThreadID1)))
{
header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=1') ;
}
if (in_array($threadinfo[threadid], array(ThreadID2)))
{
header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=2') ;
}
Plugin is Active: Yes
Many Thanks,
Welshy.
PS: All the permissions appear to be set correctly.
|
Line:
PHP Code:
if (in_array($threadinfo[threadid], array(ThreadID1)))
should be
PHP Code:
if (in_array($threadinfo[threadid], array(1)))
|