vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Improved Post Report System (https://vborg.vbsupport.ru/showthread.php?t=76582)

Nickeh32 02-26-2005 08:09 PM

Ok, thanks for that it works.
Nice mod it will help with my forum alot ;)

boozehound 02-26-2005 08:12 PM

Quote:

Originally Posted by Nickeh32
I'm a begginer when it comes to vb, care explaining were that is?

Admincp -> language & phrases -> phrase manager.
Edit any phrase, and save it without changing anything.

Nickeh32 02-26-2005 08:56 PM

I have a question, i've put postreport.php in the usercp but when i open it it deosn't have the usercp links at the side, i was wondering if someone could help, thanks!

boozehound 02-26-2005 09:04 PM

Quote:

Originally Posted by Nickeh32
I have a question, i've put postreport.php in the usercp but when i open it it deosn't have the usercp links at the side, i was wondering if someone could help, thanks!

To do that you could change the postreports template to:

Code:

$pagenav

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<thead>
        <tr>
                <td class="tcat" colspan="9">
                        $vbphrase[postreports_yourpostreports]
                </td>
        </tr>
</thead>

<tbody>

        <tr>
                <td class="thead">$vbphrase[postreports_postnumber]</td>
                <td class="thead">$vbphrase[postreports_postedby]</td>
                <td class="thead">$vbphrase[postreports_onthread]</td>
                <td class="thead">$vbphrase[postreports_yourcomment]</td>
                <td class="thead">$vbphrase[postreports_timestamp]</td>
                <td class="thead">$vbphrase[postreports_status]</td>
                <td class="thead">$vbphrase[postreports_moderator]</td>
                <td class="thead">$vbphrase[postreports_comment]</td>
                <td class="thead">$vbphrase[postreports_updated]</td>
        </tr>
        $postreportbits
        <tr>
                <td colspan="9" class="tfoot">&nbsp;
                </td>
        </tr>       
</tbody>
</table>

Then in postreports.php change
Code:

eval('print_output("' . fetch_template('postreports') . '");');
eval('$footer = "' . fetch_template('footer') . '";');
echo $footer;

to
Code:

eval('$HTML = "' . fetch_template('postreports') . '";');
eval('print_output("' . fetch_template('USERCP_SHELL') . '");');


Nickeh32 02-26-2005 09:14 PM

Wow, thankyou.

You made my day, thanks!

Another problem (i know i fuss, but it's needed :p)

The user cp link in reportpost.php have no class for the td their in, their just white!

trackpads 02-27-2005 01:57 AM

For some reason the reports are not making it into the database. I dont have prefix's and I am using your report.php from the post above since I use Erwins hack aswell. His is still functioning but the reportpost table is empty.

Any ideas?

Thanks!

-Jason

trackpads 02-27-2005 02:01 AM

Ok, never mind :) :) figured it out!

trackpads 02-27-2005 02:17 AM

Ok, drats. Got most of it working. The only problem is that when a user goes to their postreports.php it is just the headers, no reports that they submitted.

Any ideas?

Thanks again,

-Jason

trackpads 02-27-2005 02:22 AM

Ah ok, spelled the bits template wrong... dorh.... :)

Moncal 03-04-2005 11:26 PM

Good job pig. I think I will install this some time soon, just for the fun of it considering that no one on my forum ever reports posts.


All times are GMT. The time now is 10:53 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.01132 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)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