vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Reported post creates new thread. (https://vborg.vbsupport.ru/showthread.php?t=83074)

pipin 04-13-2006 07:27 PM

Quote:

Originally Posted by Paul M
That won't work.

Try changing this ;

PHP Code:

$report_foruminfo fetch_foruminfo($vbulletin->options['reportforum']); 

to this;

PHP Code:

if ($foruminfo['forumid'] == 16)
{
      
$report_foruminfo fetch_foruminfo(142);
}
else
{
      
$report_foruminfo fetch_foruminfo($vbulletin->options['reportforum']);



thx but i get this then:

Fatal error: Only variables can be passed by reference in /home/xxx/apache/htdocs/vbulletin/report.php(176) : eval()'d code on line 3




Found it, seems to be a php glitch.

Workaround:

PHP Code:

$foruminstead 142;

if (
$foruminfo['forumid'] == 16)
{
      
$report_foruminfo fetch_foruminfo($foruminstead);
}
else
{
      
$report_foruminfo fetch_foruminfo($vbulletin->options['reportforum']);



Dexter_kcd 04-17-2006 11:01 PM

Thanks for this :) I was running Xenon's 3.0 version with some modifications prior to having upgraded to 3.5.4 recently, so was glad to find an easy plugin to do this.

[high]* Dexter_kcd clicks install.
[/high]

With Xenon's old hack I had modified it slightly. On our forum, we preferred the title being shorter ("Alert" instead of "Reported Post In") and seeing the username of the member being alerted, rather than the thread that the alert came from. I did the same to this hack, editing the XML as follows.

Original:

Code:

'title' => 'Reported post in : ' . $threadinfo['title']

Changed to:

Code:

'title' => 'Alert: ' . $postinfo[username]

Dexter...

jilly 04-19-2006 11:10 AM

This hack is VERY useful to me, we use it constantly..

I have two main issues that get reported on my boards. I'd like each issue to go create new thread in a separate forum, that way the people who deal with issue a have all their reports in one place, and people who deal with issue b have theirs somewhere else. Is there a way to either:

1. Have two separate report post buttons, one for issue a and one for issue b? and each go to a unique forumid when submitted.

2. Or have some sort of drop down subject select in the report post function, where they can pick issue a or issue b as what they are reporting, and according to which one they pick, it sends the report to forum a or forum b?

Mark.B 04-19-2006 06:31 PM

Another fantastic hack Paul...many thanks.

You can always rely on Paul's hacks to be coded to perfection. I've never had any trouble with anything Paul has ever released.

stinger2 04-19-2006 07:34 PM

where ever i go ..its paul..paul..paul.........nearly installed all your hacks....i am speechless

COBRAws 04-20-2006 01:50 AM

Quote:

Originally Posted by stinger2
where ever i go ..its paul..paul..paul.........nearly installed all your hacks....i am speechless

lmao, same over here.

csidlernet 04-21-2006 09:59 AM

thats preety cool

VTXCafe.com 04-22-2006 03:39 AM

Awsome. We were not getting emails when post were being reported, this solved the problem and worked perfect!

SHOBizzy 04-30-2006 12:55 AM

Awesome job! :up:

*Clicked Install*

Eagle Creek 05-04-2006 02:45 PM

Hi Paul, great hack!

It is also possible to show the moderators of the subforum, where the report was made?


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