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)
-   -   Moderator Activity Logging (https://vborg.vbsupport.ru/showthread.php?t=17206)

ThomasP 08-01-2001 03:43 PM

does the rest work for you?
Can you see the moderators by username?
thx,
-Tom

dxb 08-01-2001 08:43 PM

No it dose not work the moderator or the supermoderator name dose not show up only what ever the adminstrator name shows up

and

the new function split+move the moved thread title shows up but the source forum dose not show up

only the destination forum name which mean I wont know from where it's splited and moved

I thought this hack will be included in VB2.0.2 or VB2.0.3 but it seems like the pm status is more important than this .... I wonder are new features are added on demand base ??? :(

and now who can help us with this hack...:confused: ...:confused: ...:confused:

because I think it's one of the most important hacks ...:confused:

Me2Be 08-01-2001 10:46 PM

Quote:

Originally posted by dxb
I thought this hack will be included in VB2.0.2 or VB2.0.3 but it seems like the pm status is more important than this .... I wonder are new features are added on demand base ??? :(

because I think it's one of the most important hacks ...:confused:

Well, to some people it obviously is more important than this hack. And there is a difference. The PM stats hack just utilizes the data already there. This modlog feature is obviously much more complex and requires more work than a simple statistics hack. We should really appreciate what we've been given :)

JoshFink 08-02-2001 01:54 AM

Me2Be is absolutely right.

But... I will try and work on it tonight or tomorrow and see if I can get it fixed up for ya..

Josh

ThomasP 08-02-2001 07:07 AM

Thanks Josh,
really appreciate your help on this,
-Tom

dxb 08-02-2001 09:50 AM

I'm sorry Me2be but I was really disappointed when the hack didn't work because I had some big problems on my board because of one of the moderators and I don't wont to have that again

anyway thanks josh and I will be waiting for your fix :)

Itay 08-02-2001 10:44 AM

It seems to have stopped logging for me after my upgrade to 2.0.3

Also - I was wondering if there is any way to add posts deletion to it as well, because that would make this hack perfect...

JoshFink 08-02-2001 08:26 PM

To Make Split + Move Show Properly (sort of)

Here is what I did.

The row under "Split Threads" will have :

ORIGINAL thread title, Mod, Forum From, Forum To and Date.

MODLOG.PHP

Find
PHP Code:

            case("6"):
                
$split[$log[timestamp]] = array("type"=>"6""userid"=>"$log[userid]""threadid"=>"$log[threadid]""title"=>"$log[title]""username"=>"$log[username]",
                                                    
"fromforumid"=>"$log[fromforumid]""threadtitle"=>"$log[threadtitle]""userid"=>"$log[userid]""toforumid"=>"$log[toforumid]");
            break; 

Change To :
PHP Code:

            case("6"):
                
$split[$log[timestamp]] = array("type"=>"6""userid"=>"$log[userid]""threadid"=>"$log[threadid]""title"=>"$log[title]""username"=>"$log[username]",
                                                    
"toforumid"=>"$log[fromforumid]""threadtitle"=>"$log[threadtitle]""userid"=>"$log[userid]""toforumid"=>"$log[fromforumid]");
            break; 

Find
PHP Code:

    if ($title=="Moved Threads")
        echo 
"To"

Change to :
PHP Code:

    if (($title=="Moved Threads") OR ($title=="Split Threads")){
        echo 
"</td><td class=\"label\">To";} 

FIND
[PHP]

Find
PHP Code:

                case("3"):
                    echo 
"<span class=\"toplinks\">MOV: </span>";
                break; 

After That Add
PHP Code:

                case("6"):
                    echo 
"<span class=\"toplinks\">SPL: </span>";
                break; 

Now in POSTINGS.PHP

Find in ### start do split thread ###
PHP Code:

  // Move post info to new thread...
  
$posts=$DB_site->query("SELECT postid,attachmentid,userid FROM post WHERE threadid='$threadid'");
  while (
$post=$DB_site->fetch_array($posts)) {
    if (
$splitpost[$post[postid]]=="yes") {
      
$DB_site->query("UPDATE post SET threadid=$newthreadid WHERE postid=$post[postid]");
    }
  } 

After That Add :
PHP Code:

$splitto=$DB_site->query("SELECT forumid FROM thread where threadid='$threadid'");
list(
$split_to) = mysql_fetch_row($splitto); 

Find
PHP Code:

$DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp) 
VALUES ('6','
$bbuserid','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','','".time()."')"); 

Change to:
PHP Code:

  $DB_site->query("INSERT INTO modlog (type,userid,threadid,threadtitle,fromforumid,toforumid,timestamp) 
                  VALUES ('6','
$bbuserid','$threadid','".addslashes($threadinfo[title])."','$threadinfo[forumid]','$split_to','".time()."')"); 

I believe that is all I did.. I was in a rush, so I might have missed documenting something on here. I'm sure if I did, someone will point it out. :D

Unfortunately the thing I don't like is that I can't see what the thread name was that I moved it to. This is because there is not enough rows in the table. i.e. a Thread From and a Thread To.

It could be done, but you would have to create two rows for a Split + Move , one for the split and one for the move. I might try that.. We'll have to see.

JoshFink 08-02-2001 08:35 PM

Itay, I thought about showing deleted posts, but most of the time a user can delete their own post. Then it would wind up clogging up the logs and the logs would be unreadable IMHO.

Josh

dxb 08-02-2001 10:17 PM

thanks josh for this

and about the hack

now the moderator name is showing up

the supermoderator with custom title still not showing up

the main this

the moved threads

the source forum is not showing up only you can see the destination forum

the same thing with split+move only the destination forum is showing up


All times are GMT. The time now is 04:15 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.01507 seconds
  • Memory Usage 1,779KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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