Report Post Alert

Misc MOD Downloads for phpBB3 -- Any MOD that does not fit into any other category
Forum rules
Image Please feel free to download any MOD's here, support for each MOD is located it's own thread.

To post your own MOD, please first read the MOD Guidelines

Report Post Alert

Postby stitch626 » 20 Mar 2008, 19:56

Classification: Add-on
phpBB Part: Forum

MOD Name: Report Post Alert
MOD Version: 1.0.0
Author: Stitch626
MOD Description: This will add a button and link to the open reports module in the MCP when a report has been made. Typically place in the overall_header file for view on all pages.


Works with:
  • phpBB 3.0.0 Gold (prosilver and subsilver2)

Language: English

Installation Level: Easy
Installation Time: 5 Minutes
Format: MOD

Screenshots:
..

I would like to thank CoC for developing this code and allowing me to relase this mod. I am now re-releasing this mod with my own modifications to it to incorporate a pop-up box notification. Soon to come
Attachments
Reported_Post_Alert.zip
(28.53 KiB) Downloaded 341 times
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Report Post Alert

Postby Ladysarajane » 20 Mar 2008, 20:00

Fast work Mike....I will try this out tonight.
Warning: Stay away from Deck 15 if you don't have security clearance level 6 or above! Unauthorized access is prohibited.
Image
User avatar
Ladysarajane
STG Moderator
STG Moderator
 
Posts: 1962
Joined: 21 Mar 2007, 23:35
Favorite Team: Bengals
Gender: Female
phpBB Knowledge: 5

Re: Report Post Alert

Postby carsonk » 20 Mar 2008, 20:14

I'm going to start installing this right now. :D
User avatar
carsonk    
Supporter
Supporter
 
Posts: 40
Joined: 02 Feb 2008, 12:40
Gender: Male
phpBB Knowledge: 2

Re: Report Post Alert

Postby Sniper_E » 20 Mar 2008, 21:06

I'm impressed Mike, I'll have to check this out. :good:
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 7006
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: Report Post Alert

Postby Ladysarajane » 20 Mar 2008, 21:25

I have an error Mike

Code: Select all
Parse error: syntax error, unexpected T_DOUBLE_ARROW in C:\wamp\www\forum\includes\functions.php on line 3398


My code is from 3397 to 3400
Code: Select all
      //<--Reported Post Alert Mod------------------------------->
      'S_TOPIC_REPORTED'      => (($row['topic_reported']) && $auth->acl_get('m_report')) ? true : false,
      'U_MCP_REPORT'         => append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=reports&amp;mode=reports', true, $user->session_id),
     //<--Reported Post Alert Mod-------------------------------->


Never mind...if I would read the directions more closely I would have done it right...I missed the
Code: Select all
$template->assign_vars(array(

I put the code before that and of course that didn't work. :blush:

It works great! Nice addition to the forum.
Warning: Stay away from Deck 15 if you don't have security clearance level 6 or above! Unauthorized access is prohibited.
Image
User avatar
Ladysarajane
STG Moderator
STG Moderator
 
Posts: 1962
Joined: 21 Mar 2007, 23:35
Favorite Team: Bengals
Gender: Female
phpBB Knowledge: 5

Re: Report Post Alert

Postby stitch626 » 20 Mar 2008, 22:27

A quick Note: Use this code for the prosilver code. This code contains a "bull" (space) to keep everything looking uniform. Somehow it got away from me in the mod install instructions. So use this untill I can get a chance to modify the MODX file.

Code: Select all
<!-- IF S_TOPIC_REPORTED -->]&bull;<img src="{T_IMAGESET_PATH}/icon_topic_reported.gif" alt="*" /><a href="{U_MCP_REPORT}">{L_POST_REPORTED}</a><!-- ENDIF -->
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: Report Post Alert

Postby Ladysarajane » 20 Mar 2008, 22:44

That does give it a better look in prosilver. :grin:
Warning: Stay away from Deck 15 if you don't have security clearance level 6 or above! Unauthorized access is prohibited.
Image
User avatar
Ladysarajane
STG Moderator
STG Moderator
 
Posts: 1962
Joined: 21 Mar 2007, 23:35
Favorite Team: Bengals
Gender: Female
phpBB Knowledge: 5

Re: Report Post Alert

Postby stitch626 » 21 Mar 2008, 06:16

MODX File updated with that minor cosmetic change in Prosilver.

Should I place the Reported post image inline with the links in the subsilver theme instead of it being centered?
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: Report Post Alert

Postby Ladysarajane » 21 Mar 2008, 11:47

stitch626 wrote:MODX File updated with that minor cosmetic change in Prosilver.

Should I place the Reported post image inline with the links in the subsilver theme instead of it being centered?


That was what I was thinking....I even tried it below the breadcrumbs to get it closer to the forum. As of yet I hadn't found a sweet spot for it on subsilver2 styles

;) my admins and moderator on my forum wants the prosilver jazzed up alert on subsilver2. They absolutely love this mod!
Warning: Stay away from Deck 15 if you don't have security clearance level 6 or above! Unauthorized access is prohibited.
Image
User avatar
Ladysarajane
STG Moderator
STG Moderator
 
Posts: 1962
Joined: 21 Mar 2007, 23:35
Favorite Team: Bengals
Gender: Female
phpBB Knowledge: 5

Re: Report Post Alert

Postby Stoker » 21 Mar 2008, 12:42

This is very nice Stitch :good:

I have a suggestion for Prosilver edit.

Find:
Code: Select all
<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) -->
      <div id="message" class="rules">
         <div class="inner"><span class="corners-top"><span></span></span>
            <strong>{L_INFORMATION}:</strong> {L_BOARD_DISABLED}
         <span class="corners-bottom"><span></span></span></div>
      </div>
      <!-- ENDIF -->

After add:
Code: Select all
<!-- IF S_TOPIC_REPORTED --><div id="message" class="rules">
         <div align="center" class="inner"><span class="corners-top"><span></span></span>
            <img src="{T_IMAGESET_PATH}/icon_topic_reported.gif" alt="*" /><a href="{U_MCP_REPORT}"><strong>{L_POST_REPORTED}</strong></a>
         <span class="corners-bottom"><span></span></span></div>
      </div>
                <!-- ENDIF -->


Your moderators have to be blind to miss that one :grin:
Stoker
Stoker    
Borg Drone
Borg Drone
 
Posts: 401
Joined: 24 Nov 2007, 11:05
Location: Denmark
Favorite Team: Highslide JS
Gender: Male
phpBB Knowledge: 4

Next

Return to Miscellaneous MODs, Hacks and Downloads

Who is online

Users browsing this forum: EasouSpider and 4 guests