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)

Holidazed 07-08-2003 02:11 PM

Does ANYBODY check this thread at all?

cnczone 07-08-2003 05:10 PM

I guess they all fell off the earth. :(

discussfitness 10-13-2003 11:28 AM

Quote:

Originally Posted by cnczone
I guess they all fell off the earth. :(

It would be great if you could give a reason. I prefer this hack compared to filburt1's one, but at least with his you can add a reason, even if you can't discuss it. I want to be able to discuss and see the reason... lol :(

discussfitness 11-26-2003 11:24 PM

Hehe... I can't believe this - I found a way to include a reason It's so simple, no wonder the author didn't reply, he must have thought we were all fools. Anyway...

Just add something like:

HTML Code:

<input type="text" name="reason" size="25" maxlength="50">
To your modalert template in the Admin CP

Then in your modalert.php file, put the variable

PHP Code:

$reason 

Where you want their reason to appear, i.e. somewhere within

PHP Code:

$message "Alerting user: $bbuserinfo[username]\nPost ID: $postid - $bburl/showthread.php?postid=$postid#post$postid \n\nPost Message: [quote]$postinfo[pagetext][/quote]\n\nTheir reason was:\n $reason"

Lol... didn't realise it was that simple, but I thought I should do the right thing and report my findings for the good of the community :) Let me know if you like it and congrats to original author.

heynurse 11-27-2003 02:00 AM

Wow, thanks a ton, works great! Thanks for sharing.

Rezin 12-18-2003 02:58 PM

I have a heavily modded forum, and this worked flawlessly!

Thanks Overgrow! (Great board BTW, I'm one of your members ;))

Prince 12-18-2003 08:31 PM

Nice hack!

the added "reason" for reporting the post option worked great too!

Randomlove 01-18-2004 03:01 PM

Great hack, I also added reason, very handy indeed. As for the modifiying admin/functions.php to insert the URL and image for modalert.php

This is the code:

PHP Code:

$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;"

The hack then tells us to put the variable $modalert in postbit, why not just insert that variable vaule into postbit directly? is a there a way to modify template postbit only and omit source code modifications?

Thanks.

DarkSavior 01-22-2004 09:14 PM

Great hack! But for me it doesn't use the specific account which would post the reported post to the mod forum. I made a super moderator account for that, but it always uses my own.

And I don't know if it could be more clearer than my userid for modbot is 10, and that's what I set it to in modalert.php also. But still it uses only my admin account. :(

EDIT: Got it working by doing some edits to the modalert.php file.

Added $postingusername field there, which I filled with the mod reporter bot name.
Then I changed all $bbuserinfo[userid] fields to $postinguser and all $bbuserinfo[username] to $postingusername.

Now it's working perfectly. :)

ricker 01-26-2004 08:11 PM

great hack! easy install.
*clicks install*


All times are GMT. The time now is 10:51 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.01231 seconds
  • Memory Usage 1,740KB
  • 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_html_printable
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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