The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
This hack gives the user the option to select whether he wants to be sent to the forum after posting, or to the thread he posted in.
You can select this option in your profile, and also at the bottom of the new post screen. In newreply.php replace PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
<br><input type="checkbox" name="sendtoforum" value="yes" $sendtoforumchecked> <b>Go back to forum:</b> after posting would you like to return to the forum. Code:
<br><input type="checkbox" name="signature" value="yes" $signaturechecked> <b>Show Signature:</b> include your profile signature. Only registered users may have signatures. Code:
<tr> <td bgcolor="{secondaltcolor}"><normalfont><b>Use 'Send to forum' by default?</b></normalfont><br> <smallfont>Using this option will send you back to the forum after posting a new message.</smallfont></td> <td bgcolor="{secondaltcolor}"><normalfont> <input type="radio" name="sendtoforumdef" value="yes" $sendtoforumdefchecked> yes <input type="radio" name="sendtoforumdef" value="no" $sendtoforumdefnotchecked> no </normalfont></td> </tr> Code:
<tr> <td bgcolor="{secondaltcolor}"><normalfont><b>Use 'Email Notification' by default?</b></normalfont><br> <smallfont>Using this option emails you whenever someone replies to a thread that you have participated in.</smallfont></td> <td bgcolor="{secondaltcolor}"><normalfont> <input type="radio" name="emailnotification" value="yes" $emailnotificationchecked> yes <input type="radio" name="emailnotification" value="no" $emailnotificationnotchecked> no </normalfont></td> </tr> PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
ALTER TABLE user ADD sendtoforumdef SMALLINT(6) DEFAULT '0' not null AFTER emailnotification Show Your Support
|
Comments |
#52
|
||||
|
||||
In my poll.php file I don't have the exact code that were in the intructions.
Code:
And in poll.php replace // redirect if ($threadinfo[visible]) { with: // redirect if ($threadinfo[visible] && !$sendtoforum) { Code:
// redirect if ($visible) { |
#53
|
||||
|
||||
If you figure it out or get an answer to the question about why that code won't work, I'd be interested in hearing about it.
Quote:
|
#54
|
||||
|
||||
Quote:
Code:
if (!$threadinfo[visible]) { |
#55
|
|||
|
|||
I have both quickreply and quicknewthread installed. The problems I am havng are:
It shows messages as being unread when you go back to forums. Send to forum by default only works in reply, not quick reply any suggestions? |
#56
|
||||
|
||||
I have that in 2 places in poll.php, but no redirect above either one.
Quote:
|
#57
|
||||
|
||||
hi,
works this hack with 2.2.6?? Please! :classic: |
#58
|
||||
|
||||
Yes.
|
#59
|
||||
|
||||
Just a second 'yep' to that -- I loaded this as written into 2.2.6 this weekend and it is working like a champ.
Thanks, Firefly! |
#60
|
|||
|
|||
Firefly,
Do you have a way that quickreply and this hack can co-exist in perfect harmony? (i.e. if a user's default it to return to the thread list, it should work even if they use the quickreply. Currently it doesn't do that). |
#61
|
||||
|
||||
in the showthread_replybox template try adding this:
PHP Code:
PHP Code:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|