vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Moderators Functions - vFcoders - Advanced Report System (https://vborg.vbsupport.ru/showthread.php?t=285206)

MentaL 09-08-2012 09:27 PM

Quote:

Originally Posted by trackpads (Post 2345190)
Awesome idea adn thanks.

I am having a style issue, something I have screwed up I am sure. But can you tell me what might be wrong? When I click the report icon the box is a small 2 pixel high box.

Thanks again,

-Jason

I found out why... the plugin didn't import properly so I had to manually edit the templates

edit vfc_ars_reportbitajax and replace with

Code:


<h2 class="blockhead">{vb:rawphrase vfc_ars_report_this_post} </h2>
<div class="blockbody formcontrols">
    <div class="reportpopup">
      <div class="reportform">
            <div class="fullform"><a href="report.php?p={vb:raw postid}">{vb:rawphrase vfc_ars_full_form} ?</a></div>
              <ul id="report_reasons">
                <vb:each from="reasons" value="reason" key="reason_name">
                  <li><label for="{vb:raw reason_name}"><input type="checkbox" name="report_reasons[]" value="{vb:raw reason_name}" id="{vb:raw reason_name}" tabindex="1" /> {vb:raw reason.title} <vb:if condition="$reason['required'] == 1">(*)</vb:if></label></li>
                </vb:each>
              </ul>
            <div class="reasonbox">
              <textarea class="primary textbox" style="width:100%;" name="reason" autocomplete="off" placeholder="{vb:rawphrase vfc_ars_specify_report_reason}" id="report_reason_{vb:raw postid}"></textarea>
          </div>
               
      <div class="report-buttons blockfoot actionbuttons">
          <div class="group" style="text-align: center;">
                <input type="hidden" name="postid" value="{vb:raw postid}">               
                <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                <input type="hidden" name="do" value="sendemail2" />
               
                <input type="submit" class="button" value="{vb:rawphrase send_report}" tabindex="1" accesskey="s" />
                <input type="reset" class="button" value="{vb:rawphrase reset_fields}" tabindex="1" />
          </div>
      </div>

    </div>
       
    <img src="images/misc/progress3.gif" class="progress3">

  </div>
</div>


deadlySniper 09-09-2012 12:31 AM

I am getting this error for some reason

Code:

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/63/9570563/html/forums/modcp/ars_report.php on line 193

MentaL 09-09-2012 10:17 AM

Quote:

Originally Posted by deadlySniper (Post 2363874)
I am getting this error for some reason

Code:

Deprecated: Assigning the return value of new by reference is deprecated in /home/content/63/9570563/html/forums/modcp/ars_report.php on line 193

What version of php are you using?


#update

fix is easy

replace in modcp/ars_report.php

Code:


                        $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

with

Code:


                        $bbcode_parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());


pachel 09-09-2012 11:49 AM

Installed but getting these errors:

Quote:

Warning: Invalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(996) : eval()'d code on line 6

Warning: Invalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(996) : eval()'d code on line 6

Warning: Invalid argument supplied for foreach() in [path]/includes/class_bootstrap.php(996) : eval()'d code on line 6
removed files and uninstalled plugin but errors persist. VBulletin 4.2

MentaL 09-09-2012 01:37 PM

I've edited the code so that it the "my reports" only displays for the registered members and not staff, to fix update the following plugin;

Edit Plugin vFcoders - Advanced Report System (PTC) (vB < 4.2)

Code:

if ("!is_member_of($bbuserinfo, x,x,x)" AND $vbulletin->versionnumber < '4.2.0')
{
  $template_hook['navbar_end'] .= "<li><a href=\"misc.php?do=myreports\">" . $vbphrase['vfc_ars_myreports'] . "</a></li>";
}

Replace the x with the usergroups you want it displayed to or alternatively you can select which usergroups you dont want it displayed to.

Code:

if ("is_member_of($bbuserinfo, x,x,x)" AND $vbulletin->versionnumber < '4.2.0')
{
  $template_hook['navbar_end'] .= "<li><a href=\"misc.php?do=myreports\">" . $vbphrase['vfc_ars_myreports'] . "</a></li>";
}


TheSupportForum 09-09-2012 03:36 PM

Quote:

Originally Posted by pachel (Post 2363981)
Installed but getting these errors:



removed files and uninstalled plugin but errors persist. VBulletin 4.2

this works with 4.2.0 pl2 with no issues

pachel 09-09-2012 05:39 PM

Quote:

Originally Posted by simonhind (Post 2364034)
this works with 4.2.0 pl2 with no issues

Why does my forum chrash with installing it on the same vb version?

Edit: sorry it just appeared with your plugin but now I see the true cause...

WorldCraft 09-10-2012 12:06 AM

Is this an issue? In admincp and modcp, I can only view the first page of reports (2 most recent ones). If I try to go to the next page to view more, the page is blank.

My vB version is 4.2.0 pl2

deadlySniper 09-10-2012 06:08 AM

I am using PHP Version 5.3.14

It shows that there are two reported posts but I cannot seem them after the fix you posted

MentaL 09-10-2012 10:42 AM

advice for the auther, use a frame for the reported post content since large reports take up a stupid amount of space.


All times are GMT. The time now is 11:03 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.01274 seconds
  • Memory Usage 1,754KB
  • 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
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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