News:

Wondering if this will always be free?  See why free is better.

Main Menu

vReportBoard Mod

Started by Valodim, August 21, 2006, 07:58:17 PM

Previous topic - Next topic

fiver

Hi v  :D

It works like a charm.

One question: How to disable guests from seeing/using the solve/unsolve tab? Is it possible to use permission to allow/disallow certain groups to see/use the solve/unsolve tab?

;) / ;D

Valodim

Erh... the report board is meant to be for staff members only, why should guests have access? Report to moderator is meant to be an anonymous way for users to report posts :P

I could add a permission for solving topics, but that still doesn't make much sense to me. :P

fiver

I have allowed any members to handle the complains through 'report to moderators' and it worked quite well, as it keeps things in the open and let members feel involve.

Now if only I can disallow guests to click the solve/unsolve at the bottom of the page. Doing that through Permission will be perfect ;D as I would also prefer not to let newbie with less than certain post-count to use it.

Will you consider adding permission please?  :P

Many thanks  :D

Valodim


fiver

Thanks Valodim!

I have installed and set the permissions.  ;D

Also, I found some errors in my Forum Error Log after installing 0.96 today

QuoteToday at 07:53:28 PM
... index.php?action=reporttm;topic=270.0

8: Undefined index: report_count
File: ... /Sources/SendTopic.php
Line: 321

QuoteToday at 05:06:25 PM
... index.php?action=packages;sa=install2;package=vReportBoard_0.96.zip

512: parseBoardMod(): The filename 'index.php' is not a full path!
File: ... /Sources/Subs-Package.php
Line: 1671

QuoteToday at 05:06:15 PM
... index.php?action=packages;sa=install;package=vReportBoard_0.96.zip

512: parseBoardMod(): The filename 'index.php' is not a full path!
File: ... /Sources/Subs-Package.php
Line: 1671

QuoteToday at 05:06:06 PM
... index.php?action=packages;sa=install;package=vReportBoard_0.96.zip

512: parseBoardMod(): The filename 'index.php' is not a full path!
File: ... /Sources/Subs-Package.php
Line: 1671

Valodim

yeah these are all such minor errors... not worth updating the whole mod for that. I'll keep it in mind for some next version, though :)

Grunt

#46
I also get this error after installing:
Quote512: parseBoardMod(): The filename 'index.php' is not a full path!
File: /home/www/xxxxxxxxx/Sources/Subs-Package.php
Line: 1671

plus:

Quote8: Undefined index: report_board
File: /home/www/xxxxxxxxx/Sources/Display.php
Line: 806

when i view a thread/post.

[Edit] also found this when I click "Report post" just a white page containing:
QuoteParse error: parse error, unexpected '*' in /home/www/xxxxxxxxx/Sources/SendTopic.php on line 374

I currently have the following mods installed:

1. SMFShop 2.2
2. Enchanced post template 1.0.2
3. Fix Emoticon's Positions 1.0
4. Advanced Visual Verification 1.0
5. vReportBoard Mod 0.96
6. Global Announcements 1.0
7. Create Topic on Report to Moderator 0.2

And i run SMF 1.1 RC3

Valodim

wtf? you can't have vReportBoard and Create Topic on Report to Moderator at the same time, they both have more or less the same functionality - of course they interfere >_<

about the other two, see above.

Grunt

#48
I dont actually have 'Create Topic on Report to Moderator 0.2' installed.
Sorry. I seen that one first and downloaded it, then seen yours and installed that instead.
'Create Topic on Report to Moderator 0.2' has never been installed.

[edit]
as for the:
QuoteParse error: parse error, unexpected '*' in /home/www/xxxxxxxxx/Sources/SendTopic.php on line 374

its when i click to solve/unsolve a reported post post.

I noticed at the top of the file it opens up 2 /*
but closes 3 *\

i dont know if and where to add in a open /* tag

but it leaves the report unsolved.


Valodim

oh... it should only open one /* and close one */, too. basically, those are around the body of the old ReportToModerator2 function. if everything went correctly, it should look something like this


// Send the emails.
function ReportToModerator2()
{
/*
global $txt, $scripturl, $db_prefix, $topic, $board, $user_info, $ID_MEMBER, $modSettings, $sourcedir, $language;
(more old code blah)
*/

global $txt, $scripturl, $db_prefix, $topic, $board, $board_info, $user_info, $ID_MEMBER, $modSettings, $sourcedir, $language;
(new code)
}

Grunt

Think I've fixed it.
first time i installed it, it didn't work. (unknown reason)
then i uninstalled and reinstalled (hoping that would work)

however, uninstalling didn't work (i think)
so when i opened my SendTopic.php I had the old code commented out like this:

// Send the emails.
function ReportToModerator2()
{
/*
/*
global $txt, $scripturl, $db_prefix, $topic, $board, $user_info, $ID_MEMBER, $modSettings, $sourcedir, $language;

...blah blah...
*/


then your code below, Twice:

global $txt, $scripturl, $db_prefix, $topic, $board, $board_info, $user_info, $ID_MEMBER, $modSettings, $sourcedir, $language;

// Check their session... don't want them redirected here without their knowledge.
checkSession();
.
.
.
// Back to the board! (you probably don't want to see the post anymore..)
redirectexit('board=' . $board . '.0');

*/

}
global $txt, $scripturl, $db_prefix, $topic, $board, $board_info, $user_info, $ID_MEMBER, $modSettings, $sourcedir, $language;

// Check their session... don't want them redirected here without their knowledge.
checkSession();
.
.
.
// Back to the board! (you probably don't want to see the post anymore..)
redirectexit('board=' . $board . '.0');

*/

}


e.g:
2x /*
3x */

it hadn't removed your code the first time i uninstalled. but added it in again when i reinstalled.

Its all good now, i've fixed it.. and i can't even write PHP. i just know the very basics.

great mod tho.  :D


Quakeile

Hi, seems like a very nifty mod, but can't install it =(
It doesn't pass the test, see pic below.




My installed mods are



I'm using RC3, and chmoded the files to 777.


Very grateful for some help =)

Bigguy

If you install the mod and then add the edits to the file that failed manually (ManagePermissions.php) This will work. All the edits can be found in the "modification.xml" file.

Xarcell

very nice mod. i hate getting e-mails...

Xarcell

This is one of the sweetest mod's ever. Should be SMF standard....

I get this error though:

8: Undefined index: report_count
File: /home/.abigaildryer/xarcell/feyorin.com/smf/Sources/SendTopic.php
Line: 321

Valodim

thank you :)

fixed, didn't increment version number though since it's such a small fix :)

Xarcell

So the package is updated?  How can we fix it manually?

trenchteam

really love this mod!! Let us know of a fix!

Valodim

you could either reinstall the package, or replace the line

'update_post_count' => $modSettings['report_count'] != 0,

with

'update_post_count' => !empty($modSettings['report_count']),

in SendTopic.php. But this is not really a big deal, php is just nitpicking :P

Rop

Just installed this mod. Most of it works, except that (as reported by others) I have no 'resolved' icon. Unresolved shows fine. Also, when trying 'remove topic' from the board with reported posts I get this error:

Database Error: Out of range value adjusted for column 'posts' at row 1
File: C:\WWW\Solacity\GPT\Sources\Subs.php
Line: 633

The post is not removed, but remains listed. It should be possible for the Admin to remove posts from the reporting board (for one, I'm testing right now and don't want those bogus 'reported posts' to show when the forum goes live).

This is on SMF 1.1 RC3.
Thanks!

-Rob-

Advertisement: