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)

Rhoads 01-07-2005 10:10 AM

Quote:

Originally Posted by sv1cec
Drl2005, edit file admincp/user.php and search for :

PHP Code:

"../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$userid

Replace that with the statement that worked for you.

As for the last replace instructions, yes, enter my code above the one you mention. If I remember correctly, the User ID was something I added for my convenience in my forum.

Sorry!

Oke very very very thank :classic:

I have only added the 2 points at the beginning of that rule, and it works perfectly now, the page opened now in my admincp themselves.

Thanks once again

PS : And now I see that there is another update of vBulletin :confused:

nubian 01-07-2005 11:36 AM

Quote:

Originally Posted by sv1cec
Nubian,

That part of the code exists since the first release (or to be more accurate since version 1.3). If you do not have it, then you haven't installed the hack properly.

Shall we take it from scratch? What version do you have installed? Which version do you try to install now? Are you installing for the first time?

Nubian, sorry but I can't remember everything, especially today, I went to bed a 03:30 am yesterday night and it's 08:00 right now, so please do not expect too much from me.

Rgds

sv1cec, i'm sorry but i was able to figure out what went wrong on my end.
also the sql sntax error i was getting....
my sql doesn't like:

Code:

ALTER TABLE vb3_post ADD COLUMN `warn_flag` int( 5 ) default 0 AFTER attach
but in stead it likes:
Code:

ALTER TABLE 'vb3_post' ADD COLUMN `warn_flag` int( 5 ) default '0' AFTER attach
i do appreciate your support greatly and once again this is an awesome mod.
thank you

sv1cec 01-07-2005 01:22 PM

Quote:

Originally Posted by nubian
sv1cec, i'm sorry but i was able to figure out what went wrong on my end.
also the sql sntax error i was getting....
my sql doesn't like:

Code:

ALTER TABLE vb3_post ADD COLUMN `warn_flag` int( 5 ) default 0 AFTER attach
but in stead it likes:
Code:

ALTER TABLE 'vb3_post' ADD COLUMN `warn_flag` int( 5 ) default '0' AFTER attach
i do appreciate your support greatly and once again this is an awesome mod.
thank you

Glad you figure it out. What SQL are you using by the way?

nubian 01-07-2005 01:32 PM

Quote:

Originally Posted by sv1cec
Glad you figure it out. What SQL are you using by the way?

MySQL 4.0.22

Revan 01-07-2005 02:43 PM

Okay Im gonna start remaking this version now, to work with $vboptions
sv1, I seem to remember some guy saying that he wasn't gonna release new versions every 3 days *sees 2 update emails in his inbox just today*
*cough*
XD

Viol8or 01-07-2005 06:45 PM

Hack seem to work perfectly with VBB 3.0.5

Dennis B 01-07-2005 08:07 PM

sv1cec,

This is an awesome hack, thanks for sharing.
A question, though. I'm doing the file mods and at this step in your instructions:

9. Open file includes/functions_newpost.php and find:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $_REQUEST;

Replace that with:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST;


I can't find that line. I doubled-checked in versions 3.0.3 and 3.0.5 - which I'm running.

The line I can find is

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $_REQUEST;

which is pretty close.

Shouldn't the variables $wehavecensoredwords, $weneedacounter be just in the second line...?

Thanks,

nubian 01-07-2005 09:55 PM

Quote:

Originally Posted by Dennis B
sv1cec,

This is an awesome hack, thanks for sharing.
A question, though. I'm doing the file mods and at this step in your instructions:

9. Open file includes/functions_newpost.php and find:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $_REQUEST;

Replace that with:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST;


I can't find that line. I doubled-checked in versions 3.0.3 and 3.0.5 - which I'm running.

The line I can find is

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $_REQUEST;

which is pretty close.

Shouldn't the variables $wehavecensoredwords, $weneedacounter be just in the second line...?

Thanks,

i ran into the same exact situation so don't feel like you screwed up.
i just replaced what seemed to be the closest one there since you aren't removing any line of code but simply just adding.

Dennis B 01-07-2005 11:45 PM

Thanks nubian. :up:

sv1cec 01-08-2005 05:20 AM

Quote:

Originally Posted by Dennis B
sv1cec,

This is an awesome hack, thanks for sharing.
A question, though. I'm doing the file mods and at this step in your instructions:

9. Open file includes/functions_newpost.php and find:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $_REQUEST;

Replace that with:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST;


I can't find that line. I doubled-checked in versions 3.0.3 and 3.0.5 - which I'm running.

The line I can find is

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $_REQUEST;

which is pretty close.

Shouldn't the variables $wehavecensoredwords, $weneedacounter be just in the second line...?

Thanks,

It depends.

If you are installing from scratch, yes you are right, these two variables should be only in the second line. I had a mistake in the installation instructions (corrected).

But if you are just ugrading, then these variables were there, from the previous version, actually they are there since version 2.0 if memory serves me right.

Rgds


All times are GMT. The time now is 04:33 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
  • Page Generation 0.02017 seconds
  • Memory Usage 1,757KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)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