vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Pig's post report system (https://vborg.vbsupport.ru/showthread.php?t=105165)

boozehound 01-12-2006 09:34 PM

Code:

<br/><if condition="$vbulletin->openreports"><a href="$modcpdir/postreports.php">$vbphrase[postreports_postreports]</a>:&nbsp;$vbulletin->openreports</if>
.. is what you want for the link in the navbar template. Zip updated.

Ghanem 01-12-2006 09:51 PM

Quote:

Originally Posted by boozehound
Well it's beta :) The link is an error, I need to subsitute the modcp dir into the link. Are you sure it's showing up for non-mods? The variable in the conditional should only be true if the user is a moderator. But the emails, I'm not sure. I wanted to do this hack without making any modifications to existing files, and I can't really see an easy way at the moment to stop the emails being sent without editing reports.php

My mistake, its not shown for members, its only to mods and admins, in addition, its only shown to forum moderator who have a pinding post report which is excellent..

The solution is working fine now but missing ?do=list :o

There is somthing else also I edited in my post after your reply..

Quote:

2) When clicking any thread link under forum/postreports.php it does not go to the correct link, it erases for example forum and links directly to showpost.php
reg

boozehound 01-12-2006 10:02 PM

Quote:

Originally Posted by unicorn
My mistake, its not shown for members, its only to mods and admins, in addition, its only shown to forum moderator who have a pinding post report which is excellent..

Yeah some of the mods on my site complained about that that's why it was included :)

Incidentally notice that this is more or less just a direct port of the old code but I am planning a more advanced version (probably not for a few weeks since I've got a major amount of rewriting to do atm) which will resolve some race conditions we've been having i.e. multiple mods attempting to deal with one report concurrently. This will probably take the form of a 'take over' button appearing on outstanding reports which (by process only, not by code because that would be nigh on impossible) will force mods into 'ownership' of reports before they deal with them, so you don't get two mods tripping over each other. Also mods not being able to touch reports from outside their forums which is quite an easy addition.
Quote:

The solution is working fine now but missing ?do=list :o
Code:

<br/><if condition="$vbulletin->openreports"><a href="$modcpdir/postreports.php?do=list">$vbphrase[postreports_postreports]</a>:&nbsp;$vbulletin->openreports</if>
;)

boozehound 01-12-2006 10:06 PM

Quote:

Originally Posted by unicorn
There is somthing else also I edited in my post after your reply..


reg

Ok, some leading slashes where they shouldn't have been. Try the updated product.

TTG 01-12-2006 10:16 PM

The code for admin / mods to see latest reported posts doesn't appear for me, just creates a gap :-

Ghanem 01-12-2006 10:18 PM

Quote:

Originally Posted by boozehound
Ok, some leading slashes where they shouldn't have been. Try the updated product.

Working fine now
Thank you so very much

boozehound 01-12-2006 10:41 PM

Quote:

Originally Posted by TTG
The code for admin / mods to see latest reported posts doesn't appear for me, just creates a gap :-

Move the <br/> into the conditional, e.g.:

Code:

<if condition="$vbulletin->openreports"><br/><a href="postreports.php">$vbphrase[postreports_postreports]</a>:&nbsp;$vbulletin->openreports</if>
The link only shows up if there are outstanding reports.

Daniel 01-13-2006 02:35 AM

Be sure to send an update when it's out of BETA, will install then :)

TTG 01-13-2006 06:39 PM

Had an error on linking back from reported post .. postreportbits template assumes forum is in root directory .. added "$vboptions[bburl]/" after any <a href and problem solved.

Might be useful for anyone experiencing the same problem.

Daniel 01-13-2006 07:46 PM

Okay, I installed it. Working nicely so far aswell. If a user has no post reports, how could I get it so it says "You have not submitted any post reports"


All times are GMT. The time now is 02:09 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.01169 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
  • (3)bbcode_code_printable
  • (7)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