PDA

View Full Version : redirect to the forum after reply instead of thread...



spongebob
05-13-2006, 07:23 PM
right now after a post is made it redirects you to the thread, how can i have it redirect to the forum?

thanks.

Brandon Sheley
05-13-2006, 07:31 PM
like SMF ? personally, I don't like the way it does that.

you don't want ppl to see there own post ?

or, can you explain the advantage of this method ?

spongebob
05-14-2006, 01:27 AM
no advantage but more of personal preference i guess. for me there is no reason to be redirected back to the thread, you already know what you posted. for convenience, why not be redirected back to the forum you were posting in, that way you will eliminate the need of scrolling up and clicking on forums after a post.

does anyone know if this is possible?

thanks.

Peggy
05-14-2006, 03:07 AM
I have no idea hun. I've never been on a forum that does it.

also.... you may already know what you've typed, but being able to read it after you've submitted it is when I catch my mistakes and can go right back in and edit it.

Coder1
05-16-2006, 05:09 PM
Since you're dealing with a "new thread" or a "new post", start by looking at the relevant PHP files. For example, look at lines 212 and 213 in "newthread.php". You can edit those directly, however, you can see that there is a hook location just prior to the redirect statement. So, you could author a plugin at the "newthread_post_complete" hook, and alter the $vbulletin->url in your plugin.

You can do similar detective work for Quick Replies, etc.

However, let me strongly recommend against this. It's my experience that your best users will take pride in their posts, and will preview them, edit them for spelling or technical errors, and so on. They will want to immediately review their posts. You want to cater to such users, not those who breathlessly dash off replies without a backwards glance.

Peggy
05-16-2006, 05:34 PM
agreed

Brandon Sheley
05-16-2006, 09:54 PM
However, let me strongly recommend against this. It's my experience that your best users will take pride in their posts, and will preview them, edit them for spelling or technical errors, and so on. They will want to immediately review their posts. You want to cater to such users, not those who breathlessly dash off replies without a backwards glance.

i agree too :) but I'm a horrible speller, so I'm always double checking..lol

Peggy
05-16-2006, 10:56 PM
i agree too :) but I'm a horrible speller, so I'm always double checking..lol

my reason for this is that, I tend to spout off and say all that is on my mind right off the bat... then go back and try to soften it up a little, lol. Or make sure that the way I said something couldn't be construed as saying something else.

spongebob
05-17-2006, 10:35 PM
so the answer is no one knows how to do this. no offense but i wasnt looking for personal opinions on it, i know what i want and why i want it. with a board with heavy traffic, im not looking to please those who 'take pride' in a correctly spelled post, im looking for quantity in members, not a select group.

and a few of the larger boards i visit have redirect to the forum after a reply, its just plain easier.

Coder1
05-17-2006, 10:56 PM
I gave you directions in my posting. Please re-read and follow-up with any specific questions you have.

spongebob
05-17-2006, 11:49 PM
I gave you directions in my posting. Please re-read and follow-up with any specific questions you have.

well the problem is, is im ignorant to all this, i know nothing. so its like greek reading your post. i know very little terminology and even less about reading or writing html.

Coder1
05-18-2006, 01:57 AM
Ok... I can write a plugin for you, but I cannot promise to be timely about it. I have trips to California, Washington, Toronto, and Scandanavia all within the next month or so. If anyone else wants to jump in instead, be my guest.

spongebob
05-18-2006, 10:46 PM
Ok... I can write a plugin for you, but I cannot promise to be timely about it. I have trips to California, Washington, Toronto, and Scandanavia all within the next month or so. If anyone else wants to jump in instead, be my guest.

well i appreciate it, and what i need to do is just start from scratch. read, read and read some more. i dont know the terminology, the pathways to install stuff or anything.

i did do one simple tweak, but all i had to do was edit some lines and paste the new ones.

vB needs a 'how to'.

Coder1
05-19-2006, 08:58 PM
They have one. But there is a difference between learning all the configuration options and so on, which I haven't done yet, and learning the necessary underlying PHP, SQL, and HTML in order to do advanced plugin development. I'm good at the second, but I'm simply stressed for time.

spongebob
05-20-2006, 03:28 PM
Since you're dealing with a "new thread" or a "new post", start by looking at the relevant PHP files. For example, look at lines 212 and 213 in "newthread.php". You can edit those directly, however, you can see that there is a hook location just prior to the redirect statement. So, you could author a plugin at the "newthread_post_complete" hook, and alter the $vbulletin->url in your plugin.
.

ok i finally found where you are talking about. so what your saying is i have two options: edit those lines directly or author a plug in for the hook location.

it seems like editing those lines directly would be the easiest right?

spongebob
05-21-2006, 08:43 PM
Since you're dealing with a "new thread" or a "new post", start by looking at the relevant PHP files. For example, look at lines 212 and 213 in "newthread.php". You can edit those directly, however, you can see that there is a hook location just prior to the redirect statement. So, you could author a plugin at the "newthread_post_complete" hook, and alter the $vbulletin->url in your plugin.



ok i found the lines i believe pertain to what im talking about. i think these are it.

($hook = vBulletinHook::fetch_hook('newreply_post_complete' )) ? eval($hook) : false;
eval(print_standard_redirect('redirect_postthanks' , true, $forceredirect));


not sure what i should edit, any help here?