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

Re: Report Post Alert

Postby yais » 04 May 2008, 09:34

My styles are subsilver2 based so i used the subsilver2 code:

Code: Select all
    <!-- IF S_TOPIC_REPORTED -->
        <br></br>   
    <p align="center">
    <img src="{T_IMAGESET_PATH}/icon_topic_reported.gif" alt="*" /><a href="{U_MCP_REPORT}">{L_POST_REPORTED}</a></p>
    <!-- ENDIF -->


Is that correct?

The correct way for subsilver2 is
Code: Select all
<p align="center"> <!-- IF S_TOPIC_REPORTED --><img src="{T_IMAGESET_PATH}/icon_topic_reported.gif" alt="*" /><a href="{U_MCP_REPORT}">{L_POST_REPORTED}</a></p><!-- ENDIF -->
yais
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 20 Jan 2008, 09:05
Gender: Male
phpBB Knowledge: 3




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Report Post Alert

Postby yais » 04 May 2008, 13:41

Both pieces of code are exactly the same and the same problem occurs either way.
yais
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 20 Jan 2008, 09:05
Gender: Male
phpBB Knowledge: 3

Re: Report Post Alert

Postby stitch626 » 05 May 2008, 22:00

I will be honest. I don't quite know what is going on ATM. There isn't anything fancy about this mod. The only thing I can think of now is maybe it is conflicting with another mod.
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 stitch626 » 06 May 2008, 19:21

Well this is really strange. It looks like I am having the same problem all the sudden. It was working before but today I had a reported post on my board and after I closed it out and deleted it, the post alert link was still showing up :scratch:

I am really confused now because it was working.
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 stitch626 » 07 May 2008, 16:45

Ok I did a little messing around and from what I can tell, for some reason a report will not get removed from the Database. Even though the MCP says that there is no reported posts, there is still one in the phpbb_topics table. If you go to your phpmyadmin panel and run this query, it will display the topics that didn't get cleared out.
Code: Select all
SELECT *  FROM `phpbb_topics` WHERE `topic_reported` = 1

Just edit the table and change 1 to a 0 where it says topic_reported This will at least clear out your reported posts and will get rid of the banner.

I don't know if this is a bug in phpbb3. I need to to more investigating.
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 » 07 May 2008, 17:51

In testing this on 3 different test forums (and one live forum), I could not get that to occur. :scratch:
I will still play with it. Mike what SQL version and php version do you have. I am running Wamp with SQL version 5.0.45 and php 5.2.5
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 » 07 May 2008, 20:27

Ladysarajane wrote:In testing this on 3 different test forums (and one live forum), I could not get that to occur. :scratch:
I will still play with it. Mike what SQL version and php version do you have. I am running Wamp with SQL version 5.0.45 and php 5.2.5


It only happens once in a while. I can't get it to happen all the time.

PHP Version 4.3.11 SQL 5.0.18

This is on my live board
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 » 07 May 2008, 22:41

I wonder what version Yais has.
I am running it live on one of my forums and 3 testing forums with various mods on them. I keep reporting posts and closing them out. When I close them I delete them. :scratch:
I will try a different tactic and see if I can get it to occur on mine.
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 yais » 08 May 2008, 13:58

I am running PHP 5.2.5 and MySQL 4.1.22-standard-log.

I ran this sql query as stated by stitch626 and it showed up a topic as being reported depite not showing up in the mcp.

Code: Select all
SELECT *  FROM `phpbb_topics` WHERE `topic_reported` = 1


The mod works perfectly fine now.

Thanks for all the support, really appreciate it!
yais
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 20 Jan 2008, 09:05
Gender: Male
phpBB Knowledge: 3

Re: Report Post Alert

Postby chicken dippa » 09 May 2008, 08:07

Great mod, I also had to run that sql & remove several topics that claimed to have been reported.

Why not add a number of open reports to be shown to this ?
chicken dippa    
Crewman
Crewman
 
Posts: 2
Joined: 28 Dec 2007, 15:25
Gender: Male

PreviousNext

Return to Miscellaneous MODs, Hacks and Downloads

Who is online

Users browsing this forum: No registered users and 9 guests