vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

sv1cec 12-18-2004 02:47 PM

Nubian and Samir,

If you have some where warn_options, instead of warn_opts, that means that somewhere along your upgrades you haven't followed the instructions properly. The change to warn_opts was done back in version 2.2, when I moved the query for the options in the global.php file. It now resides in functions_warning.php, but the warn_opts parameter has not been changed, since then. If you check the upgrade instructions there, you will see that it says to replace all warn_options with warn_opts.

Check your member.php file There should be the following line somewhere:

require_once('./includes/functions_warning.php');

From there on, make sure that warn_options is replaced in the file, with warn_opts. That's the proper parameter and that is what should be checked wherever it is checked.

sv1cec 12-18-2004 02:49 PM

Quote:

Originally Posted by bigdaddybryce
I am not using the stock template but another one that I found of VB Templates

For whoever is using a different template set than the standard, it is obvious that the installation or the upgrade instructions would not match. You need to compare the standard template with the one you are using and find out the most appropriate place to insert the different code pieces from my hack.

Rgds

sv1cec 12-18-2004 02:51 PM

One more thing, gentlemen, for some reasons I am not receiving e-mail notifications from this forums, whenever you post something. This is the reason I am late at responding some times. The funny thing is that I do receive notes about hacks I've participated in their threads months ago, but not from this one, at least not regularly.

Apologies, and I would appreciate if an admin can look at this problem, I am reporting this post right now, to see what can be done.

sv1cec 12-18-2004 03:06 PM

Quote:

Originally Posted by SamirDarji
The template is present, and works when issueing post-related warnings. How does the template get called after the non-post related warning? That's the area I think I need to look into for a problem.

The redirect template is called from the Warn.php file. Go in the file and find the following code:

PHP Code:

$url="member.php?u={$_POST['id']}";
eval(
'$warn_page .= "' fetch_template('warn_redirect') . '";');

// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// Warn [User] ~ do
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
}
//***************************************************************************************


if($_GET['do']=="ViewMyWarnings"){
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// Warn [View Your Own]
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// Navigation
    
$navbits= array("Warn.php?$session[sessionurl]&do=ViewMyWarnings" => "Your Warnings");
    
$navbits[""]= "Viewing Your Warnings"

Right there, at the top, it is where the redirect is called. Make sure this exist in your file.

SamirDarji 12-18-2004 04:20 PM

I originally started with 2.3.1. The only changes I've made since then is the member template cut and paste. For the live board, I'll be starting fresh with the latest version.

The piece of code is there. I'm thinking that during a db query something isn't returning right. I've seen this happen with other hacks as well installed on the test server. I just wanted to make sure that was the case, but it doesn't seem like I'll be able to pinpoint it. I'll be installing the warning system on the live board next week.

sv1cec 12-18-2004 06:24 PM

Quote:

Originally Posted by SamirDarji
I originally started with 2.3.1. The only changes I've made since then is the member template cut and paste. For the live board, I'll be starting fresh with the latest version.

The piece of code is there. I'm thinking that during a db query something isn't returning right. I've seen this happen with other hacks as well installed on the test server. I just wanted to make sure that was the case, but it doesn't seem like I'll be able to pinpoint it. I'll be installing the warning system on the live board next week.

If you haven't done every upgrade, exactly as described, it is normal to run into troubles, and this is what's happening to your test environment, because of the queries that some of them are working with warn_opts, others with warn_options etc. Start from scratch in your live site.

Just download the latest zip, the day you start the installation, and work with it.

Don't cut any corners, do everything as it is in the instructions. To the best of my knowledge, they are correct 100%.

Rds

wez 12-18-2004 07:23 PM

1 word........... fantastic!!

closed the forum... applied the installation step by step, took a while - double checked EVERYTHING - opened forum...... and booya! works a treat! fantastic stuff...

Thanks :D !

sv1cec 12-18-2004 08:21 PM

Quote:

Originally Posted by wez
1 word........... fantastic!!

closed the forum... applied the installation step by step, took a while - double checked EVERYTHING - opened forum...... and booya! works a treat! fantastic stuff...

Thanks :D !

Most welcome Sir!

SamirDarji 12-18-2004 10:35 PM

Quote:

Originally Posted by sv1cec
If you haven't done every upgrade, exactly as described, it is normal to run into troubles, and this is what's happening to your test environment, because of the queries that some of them are working with warn_opts, others with warn_options etc.

That makes sense. In your opinion, do you think everything otherwise is working fine and this is the only issue left?

Quote:

Originally Posted by sv1cec
Start from scratch in your live site. Just download the latest zip, the day you start the installation, and work with it.

Don't cut any corners, do everything as it is in the instructions. To the best of my knowledge, they are correct 100%.

Will do. My methodolgy for the live site is rigorous compared to the test server. Every template change is documented, every php file revision is documented, and even changes in any options are documented. It's really time consuming, but it works. If I have a problem, I'm able to easily back up and see at what step it started at.

nubian 12-19-2004 01:59 AM

Quote:

Originally Posted by sv1cec
Nubian and Samir,

If you have some where warn_options, instead of warn_opts, that means that somewhere along your upgrades you haven't followed the instructions properly. The change to warn_opts was done back in version 2.2, when I moved the query for the options in the global.php file. It now resides in functions_warning.php, but the warn_opts parameter has not been changed, since then. If you check the upgrade instructions there, you will see that it says to replace all warn_options with warn_opts.

Check your member.php file There should be the following line somewhere:

require_once('./includes/functions_warning.php');

From there on, make sure that warn_options is replaced in the file, with warn_opts. That's the proper parameter and that is what should be checked wherever it is checked.

i finally got it to work.

there is nothing stating that i had to change all of my warn_options to warn_opts.

now the thing is that i initially started with 2.3.2 and upgraded to the latest insequential order
3.2 to 3.3 to 3.4 to 3.5
the only place from the 2.3.5 "UpgradeToLatestVersion.txt"t is where it starts from versions 2.1 to 2.2
but more enough...it's working now.
thank you for the great support


All times are GMT. The time now is 11:08 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.01874 seconds
  • Memory Usage 1,762KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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