![]() |
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> Code:
<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 |
hmm, want this but its a long hack. Is it possible you can make a zip of this please. Itll be appreciated.
Thank you |
Umm... there's nothing to zip here.
Do you want me to attach the instructions as a text file? |
I cant find that anywhere. In newreply.php replace ?? Where is it and how do I get to it? Also is this been tested? thanks!!
http://www.buffalobillsinsider.com/g...ard/index.php3 |
This was tested succesfully on v2.0.3.
I see your question was answered in another thread, so I won't bother. :) |
Hi Firefly - excellent job!
I loaded this up and am not having any trouble with new topics or polls or the UserCP but the newreply isn't working. I have the box on the screen so I know it isn't in the template but when I check it, the system ignores it. No error message, it just returns to thread. What am I missing here? |
Thanks Christine. :)
Sounds to me as if you didn't make the necessary changes to newreply.php. Double check that, and get back to me. |
Wow - that was quick. :D
That was my concern - newreply.php was the only one I was thinking would affect it from the changes I saw. Blah. I tried a few times last night and didn't see any mistakes. I shall try again now and let you know! |
Hmmmm - still not working.
Here is what I added to newreply.php - I am including the code above and below as well. PHP Code:
PHP Code:
|
Weird, everything's in place.
Umm, check in your newreply template that the name of the checkbox is sendtoforum. That's really the only thing I can think of... :confused: |
Hmmm - from New reply template...
PHP Code:
|
Bug.
Fix: In newreply.php replace this PHP Code:
PHP Code:
Updated main post |
We have a winner!!!!
This is working with no errors. Great job, Firefly! (I am on 2.0.3 BTW) |
Who's da winner???? ;)
Thanks. :) |
Used the auto install and I keep getting this erroer
Warning: Supplied argument is not a valid File-Handle resource in /www/htdocs/forums/admin/avatar_hack_install.php on line 349 |
[QUOTE]Originally posted by LuBi
Used the auto install and I keep getting this erroer Warning: Supplied argument is not a valid File-Handle resource in /www/htdocs/forums/admin/avatar_hack_install.php on line 349 |
yes yes.. :( wrong hack I got that error on another i tried too install last night. I have school so I'll post it lateri nthe right thread. sorry
|
I don't understand, you tried to install a hack and it didn't work and you think it's because of this hack, or you just posted in the wrong thread?
|
posted in the wrong thread.
|
I'm having the same problem Christine was having, but the fix you supplied for her doesn't seem to have done the job for me. It works for New Topics and Polls, but not the reply. I've double and triple checked everything, and it matches your instructions to a "T". Ran the Query with no problem. :( At a bit of a loss as to what to do.
|
You have a good reason to be sad, I have no idea what could possible be wrong. You use v2.0.3, right?
Sorry... :( |
Yes I am. Would it be possible for me to contact you and have you look over the contents of the php file?
|
Yeah sure, I'm at firefly@poolie.net.
|
Ok, e-mailed you. Thanks ahead of time for the help. :)
|
Thanks! nice hack!
|
Is there a way to add this option to "edit post" as well? I looked over editpost.php and couldn't find any similarities to the instructions.
|
Can we get this working on 2.2?
|
up up
|
I'm 99% sure this works on 2.2.0. :)
|
Yea!!!! This is a very powerful feature. Thanks, oh and maybe you should update the title if possible to 2.2.0
I'll get back to you with the results.. :D |
Works for 2.2.0!!! I love this hack, thanks again! :D
|
Thanks LuBi. :)
|
If I'm not mistaken, you forgot to add:
PHP Code:
PHP Code:
BTW: Any idea why the following line does NOT work? PHP Code:
|
Just a query about this hack, is the checkbox automatically checked to take the user back to the forum?
If not how do I make it so it is? basicly I want it so it is on as default. |
oh~thankz FireFly!!
this very useful~~~:D:D:D |
[QUOTE]Originally posted by bobbydavro
Just a query about this hack, is the checkbox automatically checked to take the user back to the forum? If not how do I make it so it is? basicly I want it so it is on as default. |
I so wanna install this hack! *makes note to do it after work*
Um, I'm a bit new still and I'm not sure what hacks work with what versions. I'm using v.2.2.1. Will this work with it? |
Should be. :)
|
but chen i 'm using v2.2.1 and use ur code it can't work!!
but when i use ur code and tommy boy's code it works!! so i think would u miss some thing?? ;) |
WOW!
Very nice hack! But an attached file to download the hack would be nice! :) Greetings StarBuG |
All times are GMT. The time now is 04:44 PM. |
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:
|