vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [code release] Redirect to forum instead of thread after post (https://vborg.vbsupport.ru/showthread.php?t=26501)

Gutspiller 08-28-2001 05:06 PM

Quote:

Originally posted by FireFly
Alright, then do everything I said in my posts. (I edited out what's not needed)
When I run that query thingy at the end of the "mini hack" (I already installed your SQL queru) it gives me this error:

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.


Database error in vBulletin Control Panel: Invalid SQL: ALTER TABLE `vbulletin`.`user` ADD `sendtoforumdef` SMALLINT(6) DEFAULT '0' not null AFTER `emailnotification`
mysql error: Access denied for user: 'theforum_Gutspil@localhost' to database 'vbulletin'
mysql error number: 1044
Date: Tuesday 28th of August 2001 02:04:13 PM
Script: /forumz/admin/query.php
Referer: http://www.theforumz.com/forumz/admin/query.php



Question: Did you test this hack or am I your lab rat? :(

Admin 08-28-2001 05:13 PM

[QUOTE]Originally posted by Gutspiller
Question: Did you test this hack or am I your lab rat? :(

Gutspiller 08-28-2001 05:31 PM

Tested and works!

I did change when you said
Code:

#DFDFDF
to

Code:

{secondaltcolor}
and it makes it so there are two greys in around instead of alternating, but it's ok.

And also when you said to look for this code:

Code:

if ($bbuserinfo[emailnotification]) {
    $emailnotificationchecked="checked";
    $emailnotificationnotchecked="";
  } else {
    $emailnotificationchecked="";
    $emailnotificationnotchecked="checked";
  }

and replace it with this code:

Code:

if ($bbuserinfo[sendtoforumdef]) {
    $sendtoforumdefchecked="checked";
    $sendtoforumdefnotchecked="";
  } else {
    $sendtoforumdefchecked="";
    $sendtoforumdefnotchecked="checked";
  }

It was above the previous searched code, so you have to scroll to the top. So that step should be before the other steps in the member.php.

I think that's it.

Thanks for the mini (yet kick ass) hack. :D

Gutspiller 08-28-2001 05:45 PM

OOPS!

For some reason when posting a reply it isn't sending me back to the forum, even though I double checked that is what I set it too. :(

Ideas?

Admin 08-28-2001 05:50 PM

Sounds like you didn't do changes for newreply.php, newthread.php and poll.php from my first post (Alrighty. Undo all changes (from my first post)).

cyrus 08-28-2001 05:52 PM

waiting for clean hack

thanks fire

Admin 08-28-2001 06:07 PM

There you go! :)
http://www.vbulletin.com/forum/showt...threadid=26734

Gutspiller 08-28-2001 06:09 PM

Quote:

Originally posted by FireFly
Sounds like you didn't do changes for newreply.php, newthread.php and poll.php from my first post (Alrighty. Undo all changes (from my first post)).
You know you make this harder than it has to be. ;)

I think I did that thread.

When creating a new THREAD it works, but when creating a new REPLY it doesn't work. I checked the newreply template and this is whats in there

Code:


<br><input type="checkbox" name="signature" value="yes" $signaturechecked> <b>Show Signature:</b> include your profile signature.  Only registered users may have signatures.<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.
        </smallfont></td>

Isn't that where the only change is, in that template? :(

Admin 08-28-2001 06:13 PM

I do not know what you did / did not do, so please just undo everything and follow the new instructions.

And this is not hard at all - just do everything I say in this thread and you'll get it done.

Gutspiller 08-28-2001 06:17 PM

undo it :confused:

That will take quite some time. I just double checked the newreply template and the newreply.php and everything you stated is in there.

Yes, I would like see another board using this hack please. :D

That way I can test the reply function of this hack. :)


All times are GMT. The time now is 06:26 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
  • Page Generation 0.01062 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete