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)
-   -   Administrative and Maintenance Tools - vBCMS Article Reporting (https://vborg.vbsupport.ru/showthread.php?t=231388)

King Kovifor 12-27-2009 10:00 PM

vBCMS Article Reporting
 
1 Attachment(s)
Purpose

The purpose of this is to allow users to report vBCMS articles for review by staff. Created when I found out that it did not have this out of the box.

Limitations

Currently, the only way this product works is if you have reported posts being placed into a new thread in a forum. This modification does not work with emails at this time. A later update will include new settings to include this functionality.

Installation

Installation consists of upload 1 file, install 1 product (to add phrases and 1 template to mimic the default vBulletin post reporting form, with some changes), make 2 template changes to 1 template.
  1. Upload cms_report.php to your forum directory.
  2. Install product_kk_report_article.xml through ACP (ACP -> Plugins & Products -> Manage Products -> [Add/Import Product]
  3. Make Template Changes Listed Below
  4. Enjoy

Template Changes

Template: vbcms_content_article_page

Find:
HTML Code:

{vb:raw css}
Add Below (CSS below found in postbit.css - Didn't find a way to include that easily, next update will include it):
HTML Code:

<style>
a.report
{
        background: url({vb:stylevar imgdir_button}/report-40b.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}

a.report:hover
{
        background: url({vb:stylevar imgdir_button}/report-40b-hover.png) no-repeat transparent {vb:stylevar left};
        padding-{vb:stylevar left}: 20px;
}
</style>

Find:
HTML Code:

<div class="article_rating_container">
Add Below:
HTML Code:

<a class="report" href="cms_report.php?id={vb:raw node}&amp;title={vb:raw title}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!--<img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" />--></a>&nbsp;
Release History
v1.0.0 - December 12/27/2009

King Kovifor 12-28-2009 02:11 AM

Reserved for Future Use

Silencer Groans 12-28-2009 04:59 AM

thank you

gyaronn 12-28-2009 09:26 AM

nice idea thanks

smooth-c 12-28-2009 09:54 AM

Screenshot/demo?

King Kovifor 12-28-2009 06:10 PM

Quote:

Originally Posted by smooth-c (Post 1940222)
Screenshot/demo?

Works and looks just as reporting a post.

ccjc 12-29-2009 04:41 AM

I'm assuming that two appearances of
PHP Code:

<div class="article_rating_container"

is normal? So we do we replacements. Is that right?

Atm the moment I only see one report icon.

Bouncer222 12-29-2009 05:17 AM

So how exactly does the reporting work?

King Kovifor 12-29-2009 03:50 PM

Quote:

Originally Posted by ccjc (Post 1941211)
I'm assuming that two appearances of
PHP Code:

<div class="article_rating_container"

is normal? So we do we replacements. Is that right?

Atm the moment I only see one report icon.

Two appearances? And there is only an icon and a change in color for hover. Same as default vB4 post reporting.

Quote:

Originally Posted by Bouncer222 (Post 1941232)
So how exactly does the reporting work?

A user clicks on the report icon, fills in a message, clicks on submit report and the script creates a post in the specified forum (same as post reports). It does not work with emails at this time.


All times are GMT. The time now is 11:43 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.01135 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete