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)
-   -   Improved Moderator Alert System (https://vborg.vbsupport.ru/showthread.php?t=48603)

Mystic Gohan 02-06-2003 08:24 PM

this will be very usefull I will install later when I have access to my forum.

alkatraz 02-06-2003 09:57 PM

Great idea!!!!!!

Neo 02-07-2003 07:48 AM

Quote:

Originally posted by Overgrow
IMPROVED MODERATOR ALERT v.1.0


Michael Knight: http://www.overgrow.com/edge/images/...idsmiliekr.gif


O_____________________O;;

fonzerelli_79 02-07-2003 09:48 AM

this is a fantastic idea

well done:)

ethics 02-07-2003 12:52 PM

Everyone got this to work? For some reason my $modalert is not showing up in postbit (not the code, but forum).

Overgrow 02-07-2003 01:17 PM

PHP Code:

4open /admin/functions.phpFind:

$post['message'] = preg_replace("/\b_([a....

and AFTER IT add:

    // HACK MODALERT
    
    if (
$bbuserinfo['userid']>0) { 

That's in functions, building the postbit. Make sure that is in the right place and you've uploaded the new functions.php.

Anyone else have this problem?

This is a hack of a hack that I wrote.. it's extracted functionality from a bigger hack on my site so I'm not 100% about the install.

Mark Hewitt 02-07-2003 01:51 PM

Can this be modified to start a new thread per reported post?

I would like to create a private forum just for reported posts.

Mark Hewitt 02-07-2003 02:06 PM

I have the same problem with the moderator link not appearing. In fact the text you specified in your install file does not exist in functions.php

I found something similar and put this[
Code:

$post['message']=preg_replace("#(^| |\n|\r|\t|\]|>|\")(".$val.")(([\.,]+[ $\n\r\t])|$|\"|<|\[| |\n|\r|\t)#si", "\\1<highlight>\\2</highlight>\\3", $post['message']);

// HACK MODALERT
       
        if ($bbuserinfo['userid']>0) {
                $modalert="<a href=\"modalert.php?s=$session[sessionhash]&postid=$post[postid]&username=$post[username]\"><img src=\"{imagesfolder}/modalert.gif\" border=\"0\" alt=\"Alert Moderators\"></a>&nbsp;&nbsp;";
        }

        // END HACK

But that does not work.

Overgrow 02-07-2003 03:02 PM

Ahgeez.. ok I was high when I released this, I admit it.

The line you look for in functions.php is:
Code:

$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
Then paste the // HACK MODALERT below that... fixing the zip file above.

wooolF[RM] 02-07-2003 03:18 PM

]
Quote:

Originally posted by Overgrow
Ahgeez.. ok I was high when I released this, I admit it.
looking at your hair :paranoid: :rolleyes:


All times are GMT. The time now is 09:38 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.01215 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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