The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
||||
|
||||
.
|
#3
|
|||
|
|||
Just what I was looking for!
Thanks, Firefly. You're a wonder. |
#4
|
||||
|
||||
Thank you!
If you want, I can add this as an option, under the "Show Signature" and its friends, something like "Send to forum". Are you interested? |
#5
|
|||
|
|||
If you mean a user-selectable option in their options, that would be terrific. I was just thinking it would be nice to make it user-selectable.
|
#6
|
||||
|
||||
Alrighty.
Undo all changes (from my first post). In newreply.php replace PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
<br><input type="checkbox" name="sendtoforum" value="yes"> <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. That's about it - don't forget the last edit needs to be done on both newreply and newthread templates! I tested this on my forums, so you shouldn't have any problems. EDIT: A little tip - if you want the checkbox to be selected by default, add checked right after value="yes" in the code you added to your templates. EDIT 2: This could be expanded even more - having an option for the user in their profile options, and making that option decide wheter the box is checked by default, or not. If you are interested in this, please let me know and I'll work on it tomorrow. |
#7
|
||||
|
||||
Is there a way to make it so the user has control over what the default is?
Some of my users want it one way, and others want it the other way. I don't want to set it to default because then they will have to uncheck it if they don't want it. (I know that's better than not having the checkbox at all) but if it's possible it would be nice to give the users a place in their profile. Is this possible or does this then start to become a hack? |
#8
|
||||
|
||||
[QUOTE]Originally posted by FireFly
EDIT 2: This could be expanded even more - having an option for the user in their profile options, and making that option decide wheter the box is checked by default, or not. If you are interested in this, please let me know and I'll work on it tomorrow. |
#9
|
|||
|
|||
Very nice work, Firefly! You've got two approachs there that forum admins might decide to use.
It would be great to have this in the user profile, but there is something to be said for having it selected from newreply, as in some cases someone might be replying to different posts in a thread as they go and want to return to the thread, while in other cases they might be making only one reply or making their last reply and want to return to the forum. I can't say I see where someone starting a newthread would want to return to their new post, unless to check it. With Preview, though, it doesn't seem necessary. So, maybe what would work best is to let the user set a default behavior but then be able to also change it from the posting pages. Heh, not too much to ask, right? I've seen UBB hacks that let the poster select where to go from the redirect message, but usually it flies by too fast for people to make the selection or pauses in which case it usually becomes annoying to be forced to click. |
#10
|
||||
|
||||
The user now has full control over this.
1. In the newreply and newthread replace Code:
<br><input type="checkbox" name="sendtoforum" value="yes"> <b>Go back to forum:</b> after posting would you like to return to the forum. 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. 2. In the modifyoptions add this code Code:
<tr> <td bgcolor="#DFDFDF"><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="#DFDFDF"><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="#DFDFDF"><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="#DFDFDF"><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:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
ALTER TABLE user ADD sendtoforumdef SMALLINT(6) DEFAULT '0' not null AFTER emailnotification Hope this is what you want. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|