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-31-2004 02:46 AM

Quote:

Originally Posted by nubian
when i clicked on the "View Warned Users " link, that page comes up just fine.

OK, open your admin_warn.php file and find the two lines which start with :

$x="<a href='

and

$cy="<a href='

Copy these lines from your file, here so that I can see what's going on. The two should be pointing to the same directory, only the first one has the forums URL in the front, which is redundant.

Waiting

nubian 12-31-2004 02:51 AM

PHP Code:

$x="<a href='{$vboptions[bburl]}/$admincpdir/user.php?$session[sessionurl]do=edit&userid={$warn[warned_userid_v]}'>{$warn[warned_userid_v]}
{$warn['warned_username_v']}"

PHP Code:

$cy="<a href='$admincpdir/admin_warn.php?act=completeremove&id={$warn[wid]}&userid={$warn[warned_userid_v]}&uname={$warn[warned_username_v]}&wname={$warn[warn_name]}&postid={$warn[warned_post]}&orderstring={$order}'>Complete Removal"


sv1cec 12-31-2004 03:10 AM

Quote:

Originally Posted by nubian
PHP Code:

$x="<a href='{$vboptions[bburl]}/$admincpdir/user.php?$session[sessionurl]do=edit&userid={$warn[warned_userid_v]}'>{$warn[warned_userid_v]}
{$warn['warned_username_v']}"

PHP Code:

$cy="<a href='$admincpdir/admin_warn.php?act=completeremove&id={$warn[wid]}&userid={$warn[warned_userid_v]}&uname={$warn[warned_username_v]}&wname={$warn[warn_name]}&postid={$warn[warned_post]}&orderstring={$order}'>Complete Removal"


Darn if I understand why this happens, but here is your solution:

Change those two lines with the lines below:

PHP Code:

$x="<a href='/$admincpdir/user.php?$session[sessionurl]do=edit&amp;userid={$warn[warned_userid_v]}'>{$warn[warned_userid_v]}<br><b>{$warn['warned_username_v']}</b>"

and

PHP Code:

$cy="<a href='/$admincpdir/admin_warn.php?act=completeremove&id={$warn[wid]}&userid={$warn[warned_userid_v]}&uname={$warn[warned_username_v]}&wname={$warn[warn_name]}&postid={$warn[warned_post]}&orderstring={$order}'>Complete Removal</a>"

If there is no / in front of $admincpdir or no bburl, it uses the admincp directory twice!!! Go figure!

Sorry for that, I'll change it in the install file.

nubian 12-31-2004 04:30 AM

i'm getting this now:

Not Found

The requested URL /admincontrolpanelnamehere/admin_warn.php was not found on this server.

funny thing is that admin_warn.php does exist in that that directory :ermm:

sv1cec 12-31-2004 04:51 AM

That is crazy!!!

OK, convert both lines to:

PHP Code:

$x="<a href='{$vboptions[bburl]}/$admincpdir/user.php?$session[sessionurl]do=edit&amp;userid={$warn[warned_userid_v]}'>{$warn[warned_userid_v]}<br><b>{$warn['warned_username_v']}</a></b>"

and

PHP Code:

 $cy="<a href='{$vboptions[bburl]}/$admincpdir/admin_warn.php?act=completeremove&id={$warn[wid]}&userid={$warn[warned_userid_v]}&uname={$warn[warned_username_v]}&wname={$warn[warn_name]}&postid={$warn[warned_post]}&orderstring={$order}'>Complete Removal</a>"

Let's see if that works.

nubian 12-31-2004 05:14 AM

Quote:

Originally Posted by sv1cec
That is crazy!!!

OK, convert both lines to:

PHP Code:

 $x="<a href='{$vboptions[bburl]}/$admincpdir/user.php?$session[sessionurl]do=edit&amp;userid={$warn[warned_userid_v]}'>{$warn[warned_userid_v]}<br><b>{$warn['warned_username_v']}</a></b>"

and

PHP Code:

 $cy="<a href='{$vboptions[bburl]}/$admincpdir/admin_warn.php?act=completeremove&id={$warn[wid]}&userid={$warn[warned_userid_v]}&uname={$warn[warned_username_v]}&wname={$warn[warn_name]}&postid={$warn[warned_post]}&orderstring={$order}'>Complete Removal</a>"

Let's see if that works.

i'm smiling so you know what that means! ;)

sv1cec 12-31-2004 05:27 AM

Quote:

Originally Posted by nubian
i'm smiling so you know what that means! ;)

Glad you made it. I would be happier if I knew why it was not working in the other two ways, but anyway.

Happy New Year and Happy Warnings

nubian 01-01-2005 12:02 AM

when i tried going running the 3.0.2 on my REAL LIVE forum i got this error when running the install_warn.php

Database error in vBulletin 3.0.3:

Invalid SQL: ALTER TABLE `vb3_userban`
add `reason` mediumtext;
mysql error: Duplicate column name 'reason'

mysql error number: 1060

bahawolf 01-01-2005 07:23 AM

How would I go about that if the user doesn't have any warning points, it'd appear as "0" for the value because a div in my postbit is being unused when their not warned and it looks bad.

nubian 01-01-2005 07:54 AM

something is wrong with your 3.0.2 install_warn.php file.
it won't do what it's suppose to do.
instead i've reloaded my db and used the install_warn.php from 2.3.5 and it altered what it was suppose to alter in the db.


All times are GMT. The time now is 10:05 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.02062 seconds
  • Memory Usage 1,782KB
  • 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
  • (10)bbcode_php_printable
  • (4)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