![]() |
Doesn't seem to. Any other thoughts?
|
Try changing this:
PHP Code:
PHP Code:
|
Nope.
And viewing source for the page, I can see that the $sendtofurumchecked is being evaluated as nothing. The account I'm using to test _does_ have the redirect to the thread list turned on in the CP. Any idea why the variable isn't defined? |
Ok, try this and let me know if it works. I just put it together and haven't tested it thoroughly yet. :)
In showthread.php: Find: PHP Code:
After it add: PHP Code:
Then put this in your showthread_replybox: PHP Code:
|
Chen, here is the code I seem to be having problems with? Can you please tell me how to get this hack to work with the Hidden reply hack in this bit of code?
Code:
// redirect Code:
// redirect |
Is everyone ready for this? I think I am finally starting to get the hang of this. I fixed my problem stated in the post above.
I replaced this: Code:
// redirect Code:
// redirect Thanks to everyone who has helped me along the way to get to this point. I know it's not a big deal to a lot of you, but it sure is to me to know that I am finally starting to understand some of this now. :) |
Er.. is this working with 2.2.7??
|
Not sure, gonna give it a whirl
|
Oy. I am screwed up. I can't get this to work on 2.2.7. It is probably me, though, rather than the program. I get the following error when I click "reply" in an existing thread:
Quote:
|
A really cool hack, and it allllmost works, got it working in both my replys and quickreply box, just one snag... replys work fine, but now trying to start a new topic gives me this:
Parse error: parse error, unexpected T_ELSE in C:\Inetpub\wwwroot\procreatica\forum\newthread.php on line 258 heres line 256 to 274 // redirect } elseif ($visible && !$sendtoforum) { $goto="showthread.php?s=$session[sessionhash]&threadid=$threadid"; } else { $goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid"; } eval("standardredirect(\"".gettemplate("redirect_p ostthanks")."\",\"$goto\");"); } else { //create new thread if ($postpoll) { $visible = 0; } $DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,p ostusername,postuserid,lastposter,dateline,iconid, visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."' ,'".time()."','$forumid','1','0','".addslashes($po stusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$i conid','$visible','$attachcount')"); $threadid=$DB_site->insert_id(); where did i goof? Thanks in advance for any help :) :D |
All times are GMT. The time now is 12:16 AM. |
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:
|