Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Valodim on August 21, 2006, 07:58:17 PM

Title: vReportBoard Mod
Post by: Valodim on August 21, 2006, 07:58:17 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=392)

This mod replaces the Report to Moderator feature.

Instead of being sent by mail, reports are posted as a new thread in a board specified by the admin in the modSettings ("Features and Options"), quoting the post in question. This board should, of course, only be accessible for staff members.

All reports have an unsolved icon ((http://mugenguild.com/forumx/Themes/default/images/post/unsolved.gif)), which can be toggled to a solved icon ((http://mugenguild.com/forumx/Themes/default/images/post/solved.gif)) using a button right next to the "Lock/Unlock" one in the thread's display. You can replace those icons in $themedir$/images/post/ if you like.

Reports are visible to everyone who has access to the specified board. The origin of the report is shown in the subjects:
[Forum Name] Thread Name
So mods can easily find the reports concerning their assigned forums.

Advantages of this mod:
- mods can see what's been dealt with (and what's not) in their section, and admins can see if mods are doing their jobs ;)
- reports can be discussed, since the report threads can of course be replied to just like any other thread
- reports are archived, for further reference
- no more mailbox checking for reports. reports via mail are often overlooked, so users lose trust in the report feature pretty fast. At least that's how it is at my place :)

Reporting of PMs to a board (seperate from post reports possible) is optional.

Does not include a "solve report" icon for the babylon theme, you'll have to set that up yourself. PM me if you have the icon ready and I'll add it :P

Unsolved reports are listed above solved ones in the report board.

Since version 0.96, a permission is required to solve topics. Make sure you have that set up for your staff members!

1.1 beta 3 support dropped since version 0.95, use that if you still use that version (which you shouldn't by the way)

\\ 1.00

The first of my mods to reach version 1.00. Huzzah!

Lots of changes! :D

- added pm reporting to board, either to a seperate or same board as post reports go, or by pm as usual
- consequent reports of the same post are posted as replies instead of new threads in the report forum
- added option (by permission) to show a marker of reported posts in message view, and their solve status
- added "solve" image for classic theme
Title: Re: vReportBoard Mod
Post by: ArkServer on August 21, 2006, 09:03:53 PM
I installed it but after i reported a topic the new topic that is created has no title..
--> [[Today at 03:01:52 AM] this is the message title, is it possible to change it into something like: [report] topic title

Also, when i check the hidden topic report board this: "Feedback] recent topics" />" shows up at the top of the board.

And one more problem.. the layout of the forum is a bit scr3w3d up.. sample attachment added here:
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php?topic=3447.new#new

Thanks.
Title: Re: vReportBoard Mod
Post by: Valodim on August 22, 2006, 02:17:35 AM
very strange. do the board names possibly contain a > char?
Title: Re: vReportBoard Mod
Post by: Bigguy on August 22, 2006, 02:28:17 AM
This looks like a good mod, has it been tested with SMF 1.1RC3 yet ???
Title: Re: vReportBoard Mod
Post by: Valodim on August 25, 2006, 07:13:37 PM
*cough* whoops, the subject line remained without addslashes.

fixed that, made unsolved reports listed between sticky and non-sticky posts, and fixed the quote link.

not tested with 1.1RC3, any experiences?
Title: Re: vReportBoard Mod
Post by: Bigguy on August 25, 2006, 08:20:36 PM
I changed the version number in the "package-info.xml" file and tried to install. I get an error in MessageIndex.php. I do have other mods installed so it could be that.
Title: Re: vReportBoard Mod
Post by: Valodim on August 26, 2006, 11:23:09 AM
but the other ones work? good. please try if this one (http://mugenguild.com/vReportBoard_0.91.zip) works :)
Title: Re: vReportBoard Mod
Post by: Bigguy on August 26, 2006, 11:47:04 AM
It installed with no problems at all. It also uninstalls clean from what I can tell. Are there any options to set. ???

EDIT: Found the settings ok. Ya know it would be awesome if this could be integrated with the Visual Warning mod. ;)
Title: Re: vReportBoard Mod
Post by: Valodim on August 26, 2006, 11:50:29 AM
Great. *uploads with RC3 compatibility checked*

Yeah. At the bottom of basic forum features, you have to give the id of the board to post reports in (you ought to create a new one as subforum of staff forum for that), and set solved and unsolved icons' names. :)

\\ edit

what do you mean, integrated? not much interoperability going on between these two, is there? :P
Title: Re: vReportBoard Mod
Post by: Bigguy on August 26, 2006, 11:59:37 AM
I found all the settings and tested it out on a post and it worked. All I meant by integrating it is I feel if your going to report a post then maybe you should have the option also to Warn or ban the person that is being reported. Obbviuosly if your reporting them it's not for being a GOOD member, lol. Just a thought.
Title: Re: vReportBoard Mod
Post by: Valodim on August 26, 2006, 12:05:28 PM
but reporting is for normal members, warning is for staff only, who are directed to evildoers by reports :P

anyways, there is no technical reason to integrate these, so... no :P
Title: Re: vReportBoard Mod
Post by: Bigguy on August 26, 2006, 12:22:16 PM
ok, Thought I would bring it up. :)
Title: Re: vReportBoard Mod
Post by: edi67 on September 02, 2006, 03:44:49 AM
one problem, triyng to install this mod it not work cause this line:

<search for>
   " . (!empty($modSettings['enableStickyTopics']) ? 't.isSticky' . ($fake_ascending ? '' : ' DESC') . ',
</search for>


in my Messageindex.php there isn't

i have this line
   " . (!empty($modSettings['enableStickyTopics']) ? 'isSticky' . ($fake_ascending ? '' : ' DESC') . ',

so i have in everypage 'isSticky' and not 't.isSticky' as request is my error page messageindex.php or your error writing mod?
Title: Re: vReportBoard Mod
Post by: Valodim on September 07, 2006, 01:18:27 PM
what version of smf do you use?
Title: Re: vReportBoard Mod
Post by: edi67 on September 07, 2006, 07:42:02 PM
Quote from: Valodim on September 07, 2006, 01:18:27 PM
what version of smf do you use?
1,1 RC2
Title: Re: vReportBoard Mod
Post by: Valodim on September 08, 2006, 09:48:10 AM
aah, that's a line I added in the latest version. I accidently used 11b as reference instead of rc2, sorry :)

thank you, should be fixed now :)
Title: Re: vReportBoard Mod
Post by: fiver on September 10, 2006, 11:54:01 AM
Have been getting errors, shown in forum error log as

http://www.fivearts.net/index.php?board=2.0

8: Undefined index: report_icon1
File: /home/fivearts/public_html/Sources/MessageIndex.php
Line: 550


Board 2.0 is the board where the report is to go.

Edit: Using SMF 1.1 RC3
Title: Re: vReportBoard Mod
Post by: Valodim on September 10, 2006, 05:59:12 PM
that's because you didn't specify a report_icon1 in the features and options :)

you're right though, that's a bit failfast. going to change behaviour to use smiley and sad as default :)
Title: Re: vReportBoard Mod
Post by: fiver on September 11, 2006, 12:51:16 AM
Thanks Valodim. I'll do that.

While testing it, I reported the same topic to moderator twice and both went to Board 2. Now in Board 2, I wanted to delete the 2 reports, so I checked both reported topics and chose "Remove selected", clicked [Go!] and I got error message:
Database Error
Duplicate entry '1308-36' for key 2
File: /.../Sources/MoveTopic.php
Line: 414

What could be the problem causing smf not being able to remove 2 topics at a time? Is it a smf bug?

I was able to remove 1 topic (id271), afterwhich the remaining one (id270 in Board 2) now has a recycled icon on the left of the topic title. Next I tried to delete topic id270 and the same error message appeared.

Edit:
Found it! In the recycle board (Removed Topics & Posts), there is a topic under id 269 with exactly the same title and same hour, min, sec. I deleted that and now I can delete id270 (which now went into recyle board).
Title: Re: vReportBoard Mod
Post by: fiver on September 15, 2006, 02:57:34 AM
Hi Valodim,

I have made 2 simple gifs. Feel free to use it for the mod installation.
http://fivearts.net/rc3/index.php?topic=8.0
Title: Re: vReportBoard Mod
Post by: Valodim on September 16, 2006, 09:59:31 AM
cool, thanks :)
Title: Re: vReportBoard Mod
Post by: HecKel on September 28, 2006, 04:53:37 PM
Hi!

How can I set the solved and unsolved icons?

I have this: /images/post/unsolved.gif on Unsolved Report Icon

Maybe I am searching this icon on the wrong place :p Where should be visible?

HecKel
Title: Re: vReportBoard Mod
Post by: Bigguy on September 28, 2006, 10:09:41 PM
Is it in the images/post folder of the theme you are using. ???
Title: Re: vReportBoard Mod
Post by: HecKel on September 29, 2006, 07:44:35 AM
yes, I have.

I use the default theme...

HecKel
Title: Re: vReportBoard Mod
Post by: Valodim on September 29, 2006, 02:07:39 PM
check features and options, you sure the setting is set to "unsolved"? no .gif there
Title: Re: vReportBoard Mod
Post by: HecKel on September 30, 2006, 08:17:29 AM
Sorry, but I can do anything...

Here what I have setting:

(http://img291.imageshack.us/img291/4917/reportboardshu0.png)

HecKel

Title: Re: vReportBoard Mod
Post by: Valodim on September 30, 2006, 02:58:33 PM
uh, I think I get your problem now: the icon is used as post icon (like this one (http://www.simplemachines.org/community/Themes/newsite/images/post/xx.gif)) in the report board, to indicate solved and unsolved topics ;)
Title: Re: vReportBoard Mod
Post by: HecKel on September 30, 2006, 04:33:23 PM
Sorry..., but I still don't understand... :(

Where should be this icon? How I should use it?

I tried to edit the report post to see if thoose icons are on the post icon choises, but nothing..., and I do the same in the original post (the reported one) and nothing...

HecKel
Title: Re: vReportBoard Mod
Post by: Valodim on September 30, 2006, 06:01:37 PM
they aren't meant to be selected manually. a reported post has "unsolved.gif" as icon, and you can toggle it to "solved.gif" by using the solve topic icon at the bottom of the thread display
Title: Re: vReportBoard Mod
Post by: DrDom on September 30, 2006, 06:59:06 PM
Quote from: Valodim on September 30, 2006, 06:01:37 PM
they aren't meant to be selected manually. a reported post has "unsolved.gif" as icon, and you can toggle it to "solved.gif" by using the solve topic icon at the bottom of the thread display

hi, I have installed this mod on a clean install of 1.1.RC3, I have set the board ID for the report to go to,
the unsolved icon is present on the reported post, but there is no "solve topic icon", it does not appear anywhere at all, should this be a "tab" underneath the reported post?
Title: Re: vReportBoard Mod
Post by: Valodim on September 30, 2006, 08:43:08 PM
umm... yeah? do you use a theme with a display template other than the default one? :P
Title: Re: vReportBoard Mod
Post by: DrDom on September 30, 2006, 08:56:45 PM
hi,
as i said in my first post, its a clean install of 1.1.RC3, no other mods mods installed, and using the default theme.

Title: Re: vReportBoard Mod
Post by: HecKel on September 30, 2006, 09:34:02 PM
I allready find my "bug"..., now I clean the strings from features and options and mantain the board id, but now I have the same problem that DrDom have...

HecKel
Title: Re: vReportBoard Mod
Post by: NEMINI on September 30, 2006, 10:27:12 PM
Quote from: DrDom on September 30, 2006, 06:59:06 PM
Quote from: Valodim on September 30, 2006, 06:01:37 PM
they aren't meant to be selected manually. a reported post has "unsolved.gif" as icon, and you can toggle it to "solved.gif" by using the solve topic icon at the bottom of the thread display


hi, I have installed this mod on a clean install of 1.1.RC3, I have set the board ID for the report to go to,
the unsolved icon is present on the reported post, but there is no "solve topic icon", it does not appear anywhere at all, should this be a "tab" underneath the reported post?

I had this same problem when I tried this mod. using rc3 as well.  Ended up removing the mod until someone figures out whats wrong.
Title: Re: vReportBoard Mod
Post by: Valodim on September 30, 2006, 10:53:55 PM
DAMN I got it. For some reason, in the default theme, the array of moderation buttons is called mod_buttons while in the classic (and most other) themes, it's moderationButtons... meh.

fixed, try 0.94, gonna upload in a minute. thanks for the bugreport.

I also removed the solved/unsolved icon setting, it doesn't make much sense and confuses people. just set up the images as "unsolved" and "solved" :P
Title: Re: vReportBoard Mod
Post by: HecKel on October 01, 2006, 01:10:21 PM
sorry..., but I still without the solved icon..., you change anything on the strings files? I have my forum in Portuguese so I had to verify if is any changes..., and I don't see any changes..., maybe I missed something :(

Can you put here what changes you did and where you did?

HecKel
Title: Re: vReportBoard Mod
Post by: DrDom on October 01, 2006, 03:49:13 PM
hi,
I just installed the 0.94 version and it seems to be working correctly now.
Title: Re: vReportBoard Mod
Post by: HecKel on October 01, 2006, 04:27:48 PM
ups, my mistake..., that's all ok :)

Tnks ;)

HecKel
Title: Re: vReportBoard Mod
Post by: HecKel on October 02, 2006, 10:17:22 PM
Hi again :)

I think that I found a bug...

I have a board named "Mod's Stuff", and I tested this package on that board and I found this error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Stuff - Geral] Re: Permissões', 1, 255), SUBSTRING('sadsad

File: /var/www/vhosts/lei-forum.com/httpdocs/Sources/Subs-Post.php
Line: 1564

I think that the error can be the " ' " on the board name..

HecKel
Title: Re: vReportBoard Mod
Post by: Valodim on October 03, 2006, 08:07:24 AM
aah, you're right. thanks for the info, gonna fix in a minute :)
Title: Re: vReportBoard Mod
Post by: fiver on October 03, 2006, 12:37:27 PM
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
Title: Re: vReportBoard Mod
Post by: Valodim on October 03, 2006, 02:05:10 PM
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
Title: Re: vReportBoard Mod
Post by: fiver on October 05, 2006, 12:17:03 PM
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
Title: Re: vReportBoard Mod
Post by: Valodim on October 07, 2006, 06:44:19 PM
ok, there you go.
Title: Re: vReportBoard Mod
Post by: fiver on October 08, 2006, 08:53:08 AM
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
Title: Re: vReportBoard Mod
Post by: Valodim on October 08, 2006, 09:45:46 AM
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 :)
Title: Re: vReportBoard Mod
Post by: Grunt on October 11, 2006, 03:13:43 PM
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
Title: Re: vReportBoard Mod
Post by: Valodim on October 12, 2006, 06:06:56 AM
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.
Title: Re: vReportBoard Mod
Post by: Grunt on October 12, 2006, 10:30:55 AM
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.

Title: Re: vReportBoard Mod
Post by: Valodim on October 13, 2006, 01:32:54 AM
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)
}
Title: Re: vReportBoard Mod
Post by: Grunt on October 13, 2006, 09:12:20 AM
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

Title: Re: vReportBoard Mod
Post by: Quakeile on November 01, 2006, 03:33:33 PM
Hi, seems like a very nifty mod, but can't install it =(
It doesn't pass the test, see pic below.

(http://www.tiltad.se/images/testfailed.gif)


My installed mods are

(http://www.tiltad.se/images/installedpackages.gif)

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


Very grateful for some help =)
Title: Re: vReportBoard Mod
Post by: Bigguy on November 01, 2006, 03:59:18 PM
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.
Title: Re: vReportBoard Mod
Post by: Xarcell on November 04, 2006, 09:36:17 PM
very nice mod. i hate getting e-mails...
Title: Re: vReportBoard Mod
Post by: Xarcell on November 08, 2006, 12:33:54 AM
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
Title: Re: vReportBoard Mod
Post by: Valodim on November 19, 2006, 10:45:17 AM
thank you :)

fixed, didn't increment version number though since it's such a small fix :)
Title: Re: vReportBoard Mod
Post by: Xarcell on November 19, 2006, 10:39:45 PM
So the package is updated?  How can we fix it manually?
Title: Re: vReportBoard Mod
Post by: trenchteam on November 20, 2006, 05:05:44 AM
really love this mod!! Let us know of a fix!
Title: Re: vReportBoard Mod
Post by: Valodim on November 20, 2006, 12:35:54 PM
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
Title: Re: vReportBoard Mod
Post by: Rop on November 20, 2006, 07:01:37 PM
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-
Title: Re: vReportBoard Mod
Post by: Valodim on November 24, 2006, 02:38:01 PM
whoops, accidently renamed the file in the package. fixed the solved icon :)

reports do now add to postcount, if that setting is checked for the report board. that might fix it, but I'm not really sure what causes that remove topic error, since the threads are created like any other thread using an internal smf routine, and there is no technical difference to any other threads... :(
Title: Re: vReportBoard Mod
Post by: trenchteam on December 02, 2006, 04:23:28 PM
This works great with 1.1 Final. I just updated the XML file! Thanks! ;D
Title: Re: vReportBoard Mod
Post by: Valodim on December 02, 2006, 07:08:38 PM
thanks for the info, updated xml file :)
Title: Re: vReportBoard Mod
Post by: mama on December 03, 2006, 12:03:18 PM
sry for this question but I have read and tried for myself I while now and don´t get it to work.
I installed the mod without any problem using smf installation uploader.
But when I´m trying this mod out and press the link "report to moderator" then I get a new window there I can write my comment. No wrong so far...But the problem I get is when I press "send". Then I get the error: An

Error Has Occurred!


Reporting is currently disabled. Please try again later, or contact the forum administrator.

Without this mod it works fine but with this installed it doesn´t. I do something wrong but I´m stuck and really need your help. Thx in advanced. :)

The smf I use is 1.1 and the mods I have installed are this:
1.     EmailFlash      1.0     
2.    SMF 1.0.7 / 1.1 RC2 Update    1.0
3.    MessagePreviewOnHover    1.0    
4.    Buddy Message Highlight    1.0
5.    SMF 1.1 RC2 Security Patch - 2    1.1 RC2
6.    Expand Pages Mod    1.0    
7.    Free Smileys    0.8    
8.    vReportBoard Mod    0.97
Title: Re: vReportBoard Mod
Post by: Valodim on December 03, 2006, 12:44:01 PM
you need to specify a board id in the features and options. if that field is empty, reporting is disabled since the mod doesn't know where to post the reports.
Title: Re: vReportBoard Mod
Post by: RvG on December 03, 2006, 12:48:53 PM
great! :) updated my mod checklists before upgrading to smf 1.1. final...
Title: Re: vReportBoard Mod
Post by: mama on December 03, 2006, 03:10:39 PM
Thank you Valodim for your help it works great now. ;)

Another really fast question, I´m using another language then english and wonder which file/where do I have to change so it works with that?

Sry with my questions but I want to get this wonderful mod working in my forum. ;)

Now I only need to hide this board so people beside admin/mods can see this and don´t show in "last post" in forums statistic.
Title: Re: vReportBoard Mod
Post by: Valodim on December 03, 2006, 04:50:02 PM
Quote
Another really fast question, I´m using another language then english and wonder which file/where do I have to change so it works with that?

index, ModSettings, Errors and Help language files are edited. but I suggest you just update the modifications.whateverlanguage.php for your language, and add these strings in their translated versions:


$txt['smf315'] = 'Use this function to inform the moderators and administrators of an abusive or wrongly posted message.';
$txt['report_solve'] = 'Solve/Unsolve';
$txt['permissionname_report_solve'] = 'Solve Reports';

$txt['report_board'] = 'Report Board (id)';

$txt['rtm_noboard'] = 'Reporting is currently disabled. Please try again later, or contact the forum administrator.';
$txt['rtm_solveoutside'] = 'You cannot solve topics outside the report board.';
$txt['rtm_reportboard'] = 'You cannot report a post from the report board.';
$txt['cannot_report_solve'] = 'Sorry, you lack permission to solve topics.';

// note _help_txt!
$helptxt['report_board'] = 'The board to be used for reported posts. Should be a dedicated board, to keep stuff tidy.<br /><br /><b>If this is 0, post reporting will be disabled!!</b>';


Quote from: mama on December 03, 2006, 03:10:39 PM
Now I only need to hide this board so people beside admin/mods can see this and don´t show in "last post" in forums statistic.

just don't allow board access for everyone but your staff member group :)
Title: Re: vReportBoard Mod
Post by: mama on December 04, 2006, 12:12:17 PM
Thank you Vladim for all your help, really appreciate that..:)
It works great now..Thanks again for a great mod...;)
Title: Re: vReportBoard Mod
Post by: Kirsten07734 on December 12, 2006, 11:37:07 PM
I think I found a conflict with "Contact Page 1.0."

I had installed a few mods on my test forum (running 1.1 final) and when I got to vReportBoard 0.97 I got failed test on install.  Well, I reinstalled SMF 1.1 and installed vReportBoard first.  No problems.

I uninstalled it, installed Contact Page, and then reinstalled vReportBoard.  Same test failure:
   ./Sources/ManagePermissions.php

For what it is worth, it seems to work fine anyway even if installed despite the test failure.

I really like this mod.  We've been doing this sort of report management on my main board but by hand.  I especially like the icons that let you know at a glance if the problem has been resolved, even without opening the topic.

Thanks for the work you've put into this mod.
Title: Re: vReportBoard Mod
Post by: Valodim on December 17, 2006, 12:21:10 PM
just open managepermissions.php, and add this line

'report_solve' => false,


right after this line

'karma_edit' => false,


for some reasons the mods conflict there, I don't know why... :(
Title: Re: vReportBoard Mod
Post by: Mr.XS on December 28, 2006, 11:31:32 AM
SMF 1.1.1

Install Actions

Installations actions for "vReportBoard Mod":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: vReportBoard Mod
Post by: Valodim on December 28, 2006, 06:21:59 PM
updated package version information :)
Title: Re: vReportBoard Mod
Post by: Valodim on December 29, 2006, 07:45:14 AM
wtf, a review "this sucks" with no further comment at all? first time I see something this retarded arond here. lol :)
Title: Re: vReportBoard Mod
Post by: Mr.XS on December 29, 2006, 10:39:39 AM
Thank you very much for the 1.1.1 update! Works a charm! Thank you very much!
Title: Re: vReportBoard Mod
Post by: Mr.XS on December 29, 2006, 10:48:32 AM
Update*

I have no tab in the 'Features and Options' Admin area, but everything seemed to install correctly.
Title: Re: vReportBoard Mod
Post by: Valodim on December 29, 2006, 10:57:41 AM
it's not a tab, just a single option in the basic features tab :)
Title: Re: vReportBoard Mod
Post by: Mr.XS on December 29, 2006, 11:01:12 AM
Ah, stupid me :)

Thanks again for the mod! Works great!
Title: Re: vReportBoard Mod
Post by: ChaosEnergy on December 30, 2006, 07:24:11 AM
I get an installation error, looked into file, and there is no "karma_edit", my version is 1.1.1

edit file>
$sourcedir/ManagePermissions.php
</edit file>


<search for>
            'karma_edit' => false,
</search for>

<add after>
            'report_solve' => false,
</add after>
Title: Re: vReportBoard Mod
Post by: K_4_kelly on December 30, 2006, 08:07:26 PM
i got the error message while installing...

Execute Modification ./Sources/ManagePermissions.php Test failed


:'(
Title: Re: vReportBoard Mod
Post by: Valodim on December 30, 2006, 11:09:44 PM
geez. I got tons of reports about that one, that karma permission really seems to be an inconsistent one. gonna fix it, but not now.
Title: Re: vReportBoard Mod
Post by: RoarinRow on December 30, 2006, 11:58:53 PM
Quote from: ChaosEnergy on December 30, 2006, 07:24:11 AM
I get an installation error, looked into file, and there is no "karma_edit", my version is 1.1.1

edit file>
$sourcedir/ManagePermissions.php
</edit file>


<search for>
            'karma_edit' => false,
</search for>

<add after>
            'report_solve' => false,
</add after>


I added this fix thanks.

Just one error after use reports an issue:

8: Undefined offset: 0
File: /forum/Sources/SendTopic.php
Line: 306
Title: Re: vReportBoard Mod
Post by: Loverboy on January 01, 2007, 08:06:16 PM
Getting the following error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ta siz, piyonda siz

[/quote]', 1, 65534), SUBSTRING('Sehzade', ' at line 4
File: web/forum/Sources/Subs-Post.php
Line: 1518

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.1, while your database is at version 1.1 RC3. The above error might possibly go away if you execute the latest version of upgrade.php.



What should I do?
Title: Re: vReportBoard Mod
Post by: RoarinRow on January 01, 2007, 08:20:18 PM
Quote from: Loverboy on January 01, 2007, 08:06:16 PM
Getting the following error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ta siz, piyonda siz

', 1, 65534), SUBSTRING('Sehzade', ' at line 4
File: web/forum/Sources/Subs-Post.php
Line: 1518

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.1, while your database is at version 1.1 RC3. The above error might possibly go away if you execute the latest version of upgrade.php. [/i]


What should I do?
[/quote]

The last time I got that message I grabbed the upgrade.php file from the Final package, upload it via FTP, then run the upgrade, e.g. http://www.yoursite.com/forum/upgrade.php

Haven't seen that error since (knock on wood).
Title: Re: vReportBoard Mod
Post by: Mick. on January 05, 2007, 02:10:22 PM
Quote from: K_4_kelly on December 30, 2006, 08:07:26 PM
i got the error message while installing...

Execute Modification ./Sources/ManagePermissions.php Test failed


:'(

I got this error too.  Any ideas how to fix it?
Title: Re: vReportBoard Mod
Post by: RoarinRow on January 05, 2007, 02:14:07 PM
Quote from: BlueDevil on January 05, 2007, 02:10:22 PM
Quote from: K_4_kelly on December 30, 2006, 08:07:26 PM
i got the error message while installing...

Execute Modification ./Sources/ManagePermissions.php Test failed


:'(

I got this error too.  Any ideas how to fix it?

It's probaby conflicting with some other mods you have.  You'll probably have to input the code manually, then upload back via FTP.  I had the same problem.  See fix below.

Quote from: RoarinRow on December 30, 2006, 11:58:53 PM
Quote from: ChaosEnergy on December 30, 2006, 07:24:11 AM
I get an installation error, looked into file, and there is no "karma_edit", my version is 1.1.1

edit file>
$sourcedir/ManagePermissions.php
</edit file>


<search for>
            'karma_edit' => false,
</search for>

<add after>
            'report_solve' => false,
</add after>


I added this fix thanks.

Just one error after use reports an issue:

8: Undefined offset: 0
File: /forum/Sources/SendTopic.php
Line: 306
Title: Re: vReportBoard Mod
Post by: Saku on January 22, 2007, 07:52:53 AM
Quote from: Loverboy on January 01, 2007, 08:06:16 PM
Getting the following error:

[i]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ta siz, piyonda siz

[/quote]', 1, 65534), SUBSTRING('Sehzade', ' at line 4
File: web/forum/Sources/Subs-Post.php
Line: 1518


Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.1, while your database is at version 1.1 RC3. The above error might possibly go away if you execute the latest version of upgrade.php. [/i]


What should I do?

I got this error too with some posts but not all posts!

Quote from: RoarinRow on January 01, 2007, 08:20:18 PM
The last time I got that message I grabbed the upgrade.php file from the Final package, upload it via FTP, then run the upgrade, e.g. http://www.yoursite.com/forum/upgrade.php

Haven't seen that error since (knock on wood).
This didn't fixe it for me
Title: Re: vReportBoard Mod
Post by: Loverboy on January 22, 2007, 12:53:48 PM
the upgrade worked fine for me.
Title: Re: vReportBoard Mod
Post by: IngeJones on February 01, 2007, 08:47:57 AM
This installed successfully on 1.1.1 for me.

Just one question - how do I find out a board ID?
Title: Re: vReportBoard Mod
Post by: Mick. on February 01, 2007, 05:14:32 PM
Quote from: IngeJones on February 01, 2007, 08:47:57 AM
This installed successfully on 1.1.1 for me.

Just one question - how do I find out a board ID?

I may be wrong but....  click on any of your boards and look for the number at the end of the URL in your browser.  {topic=?}
Title: Re: vReportBoard Mod
Post by: IngeJones on February 01, 2007, 06:03:50 PM
Thank you, that did the trick :)
Title: Re: vReportBoard Mod
Post by: DarkVelocity on February 11, 2007, 01:54:23 PM
Its good but, whats the code to solver/unsolve cause it doesnt show up with the Musiconia style.
=[
Title: Re: vReportBoard Mod
Post by: Alejandro1 on February 15, 2007, 08:43:01 AM
Valodim,

I use SMF 1.1.2, TP 0.9.7 and a load of mods ;) (But no karma!!!) and I run the default theme.

After adjusting the package-info.xml to install on 1.1.2 i indeed did get a the infamous "permission-warning" before install, went ahead anyway (I'm a daredevil...  8)) and it installed perfectly!

In my opinion you could add 1.1.2 to the package-info.xml and make it a vReportBoard 0.9.8Beta ;) , I don't expect you to get more questions than right now...

Thanks for this wonderfull mod, as said before; the SMF-people should reward you and make this basic functionality of the next SMF-release!!!!
Title: Re: vReportBoard Mod
Post by: 62442al_Man on February 17, 2007, 01:26:20 AM
Im new to installing mods. Can someone walk me through installing this please? :D :D :D
Title: Re: vReportBoard Mod
Post by: babjusi on February 17, 2007, 01:28:15 AM
Quote from: 62442al_Man on February 17, 2007, 01:26:20 AM
Im new to installing mods. Can someone walk me through installing this please? :D :D :D

It''s very easy. You can install the mods through the package manager which is at the administrator panel in your forum
Title: Re: vReportBoard Mod
Post by: 62442al_Man on February 17, 2007, 01:53:03 AM
Well, I tested it by trying to report a post, and it said that there was an error and that the reporting post feature was currently disabled :(.
Title: Re: vReportBoard Mod
Post by: Valodim on February 17, 2007, 05:42:05 AM
So... did you read the error message? and the readme of the mod? ;)
Title: Re: vReportBoard Mod
Post by: RoarinRow on February 17, 2007, 10:56:29 AM
Anyone know how to fix this.  It happens when someone reports an issue:

8: Undefined offset: 0
File: /forum/Sources/SendTopic.php
Line: 306
Title: Re: vReportBoard Mod
Post by: 62442al_Man on February 17, 2007, 10:11:11 PM
I dont see a ReadMe anywhere in either zip file...
Title: Re: vReportBoard Mod
Post by: drgnfireinferno on February 17, 2007, 10:37:42 PM
Are you gunna upgrade the mod for use with 1.1.2? I just upgraded (I was using it before on 1.1.1) and now it won't let me re install it.
Title: Re: vReportBoard Mod
Post by: Rocketta on February 20, 2007, 08:06:15 PM
I get this error when I try to upload

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I had 1.1.1 and it wouldn't install and now I upgraded to 1.1.2 and it still won't install. :(
Title: Re: vReportBoard Mod
Post by: Gorm on February 24, 2007, 03:51:33 AM
Quote from: Rocketta on February 20, 2007, 08:06:15 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I have the same problem (with 1.1.2)

/Johan

Title: Re: vReportBoard Mod
Post by: Mr. Ksoft on February 24, 2007, 10:20:53 AM
If you just edit package_info.xml and replace the instances of 1.1.1 with 1.1.2, it works fine.

Now, I have a question: The forum I want to use this one uses the Babylon theme still.  What modifications would I make to get it to work on there?  I don't really know anything about themes to figure it out myself.
Title: Re: vReportBoard Mod
Post by: HecKel on February 25, 2007, 03:17:16 PM
when is released the VReportBoard Mod to SMF 1.1.2? I really need this mod :(

Is this mod a candidate to new feature on the next SMF version?

HecKel
Title: Re: vReportBoard Mod
Post by: Valodim on February 28, 2007, 02:38:10 PM
Quote from: Mr. Ksoft on February 24, 2007, 10:20:53 AM
If you just edit package_info.xml and replace the instances of 1.1.1 with 1.1.2, it works fine.

thanks for the info. updated package. :)

Quote from: RoarinRow on February 17, 2007, 10:56:29 AM
Anyone know how to fix this.  It happens when someone reports an issue:

8: Undefined offset: 0
File: /forum/Sources/SendTopic.php
Line: 306

could you paste line 306 of your sendtopic.php? can't seem to find any line in the code where that error may occur? :(

Quote
Now, I have a question: The forum I want to use this one uses the Babylon theme still.  What modifications would I make to get it to work on there?  I don't really know anything about themes to figure it out myself.

added babylon and classic template modifications. the links are lacking images, though :P
Title: Re: vReportBoard Mod
Post by: Shaman666 on March 04, 2007, 07:39:52 AM
I get this error:

http://www.xxxxx.com/index.php?action=reporttm;topic=277.0
8: Undefined offset: 0
File: /home/xxxxxxxxx/public_html/Sources/SendTopic.php
Line: 306
Title: Re: vReportBoard Mod
Post by: dexx on March 05, 2007, 06:15:39 AM
Hi there Mod is working perfectly except for one thing:

I'm using a theme from RocketThemes.com (Versatility 2) and no Solve/Unsolve text or image links appear anywhere (main board or in the actual thread beside lock/unlock)

Can you please (in newbie terms) explain how I alter the code to add the ability to do so?

Thank you and great mod! Just what I was looking for!
Title: Re: vReportBoard Mod
Post by: Valodim on March 05, 2007, 10:14:04 AM
that depends on the theme. you have to edit Display.template.php, and add the "solve" action to the mod action buttons. for example, in the default template there is an array with lines like this
'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),

to which you have to add an element like this:

'solve' => array('test' => 'can_solve', 'text' => 'report_solve', 'image' => 'solve.gif', 'lang' => true, 'url' => $scripturl . '?action=solve;topic=' . $context['current_topic']),


in the classic templates they are not in an array, but in a format similar to this

if ($context['can_solve'])
$moderationButtons[] = '<a href="' . $scripturl . '?action=solve;topic=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/solve.gif" alt="' . $txt['report_solve'] . '" border="0" />' : $txt['report_solve']) . '</a>';


themes are different, so there is no general way to do it. basically, add a link like this
<a href="', $scripturl, '?action=solve;topic=', $context['current_topic'], '">Solve</a>
somewhere in the Display template.
Title: Re: vReportBoard Mod
Post by: dexx on March 05, 2007, 06:07:08 PM
Hey, thanks for the quick reply!

Here's what the mod button code for my template looks like:

   if ($context['can_move'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_move.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';

   if ($context['can_delete'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . $txt[162] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_rem.gif" alt="' . $txt[63] . '" border="0" />' : $txt[63]) . '</a>';

   if ($context['can_lock'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_lock.gif" alt="' . (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280']) . '" border="0" />' : (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280'])) . '</a>';

   if ($context['can_sticky'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_sticky.gif" alt="' . (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278']) . '" border="0" />' : (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278'])) . '</a>';
   if ($context['can_merge'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/merge.gif" alt="' . $txt['smf252'] . '" border="0" />' : $txt['smf252']) . '</a>';
   if ($context['can_remove_poll'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . '" onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_remove_poll.gif" alt="' . $txt['poll_remove'] . '" border="0" />' : $txt['poll_remove']) . '</a>';

   if ($context['calendar_post'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/linktocal.gif" alt="' . $txt['calendar37'] . '" border="0" />' : $txt['calendar37']) . '</a>';

   if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
      $moderationButtons[] = $settings['use_image_buttons'] ? '<input type="image" name="submit" id="quickmodSubmit" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete_selected.gif" alt="' . $txt['quickmod_delete_selected'] . '" />' : '<a href="javascript:document.forms.quickModForm.submit();" id="quickmodSubmit">' . $txt['quickmod_delete_selected'] . '</a>';


But when I inserted:


if ($context['can_solve'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=solve;topic=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/solve.gif" alt="' . $txt['report_solve'] . '" border="0" />' : $txt['report_solve']) . '</a>';


A) No Image came up just text saying Solve/Unsolve (which I believe is normal based on Mod description)

but

B) When I click the link, it takes me back to the forum index. The property for the link shows this as the url:

http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,solve/topic,14/

While the other buttons show this as their links:

Lock/Unlock-
http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,lock/topic,14.0/sesc,9aa5adc4b63d67c98a00e1b84311a603/

Remove Topic-
http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,removetopic2/topic,14.0/sesc,9aa5adc4b63d67c98a00e1b84311a603/

Sticky-
http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,sticky/topic,14.0/sesc,9aa5adc4b63d67c98a00e1b84311a603/


Any ideas?
Title: Re: vReportBoard Mod
Post by: RoarinRow on March 07, 2007, 09:13:26 PM
Quote from: Valodim on February 28, 2007, 02:38:10 PM
Quote from: Mr. Ksoft on February 24, 2007, 10:20:53 AM
If you just edit package_info.xml and replace the instances of 1.1.1 with 1.1.2, it works fine.

thanks for the info. updated package. :)

Quote from: RoarinRow on February 17, 2007, 10:56:29 AM
Anyone know how to fix this.  It happens when someone reports an issue:

8: Undefined offset: 0
File: /forum/Sources/SendTopic.php
Line: 306

could you paste line 306 of your sendtopic.php? can't seem to find any line in the code where that error may occur? :(

Quote
Now, I have a question: The forum I want to use this one uses the Babylon theme still.  What modifications would I make to get it to work on there?  I don't really know anything about themes to figure it out myself.

added babylon and classic template modifications. the links are lacking images, though :P

This is my line 305 and 306:

   if(mysql_num_rows($query) > 0)
                list($countPosts) = mysql_fetch_assoc($query);
Title: Re: vReportBoard Mod
Post by: Shaman666 on March 08, 2007, 10:35:53 AM
Quote from: Shaman666 on March 04, 2007, 07:39:52 AM
I get this error:

http://www.xxxxx.com/index.php?action=reporttm;topic=277.0
8: Undefined offset: 0
File: /home/xxxxxxxxx/public_html/Sources/SendTopic.php
Line: 306
Can someone help me with this?
Title: Re: vReportBoard Mod
Post by: RoarinRow on March 08, 2007, 12:39:19 PM
Quote from: Shaman666 on March 08, 2007, 10:35:53 AM
Quote from: Shaman666 on March 04, 2007, 07:39:52 AM
I get this error:

http://www.xxxxx.com/index.php?action=reporttm;topic=277.0
8: Undefined offset: 0
File: /home/xxxxxxxxx/public_html/Sources/SendTopic.php
Line: 306
Can someone help me with this?

that's the same exact error message I'm getting and my line 306 is in post above.
Title: Re: vReportBoard Mod
Post by: Valodim on March 08, 2007, 04:45:22 PM
got it. just replace the mysql_fetch_assoc with mysql_fetch_row.

updated mod, no version number incremental though :)

\\ edit

dexx: sorry, can't find anything wrong there. maybe your index.php was not properly modified by the mod? make sure there's an action like

'solve' => array('SendTopic.php', 'SolveTopic'),

in it.
Title: Re: vReportBoard Mod
Post by: RoarinRow on March 08, 2007, 05:04:37 PM
Quote from: Valodim on March 08, 2007, 04:45:22 PM
got it. just replace the mysql_fetch_assoc with mysql_fetch_row.

updated mod, no version number incremental though :)

cool, i'll just make my change manually.  thank you!

mine will now read - list($countPosts) = mysql_fetch_row($query);  


edit - that worked!
Title: Re: vReportBoard Mod
Post by: Valodim on March 08, 2007, 05:07:14 PM
yep, that should do the trick :)
Title: Re: vReportBoard Mod
Post by: RoarinRow on March 08, 2007, 05:17:36 PM
Quote from: Valodim on March 08, 2007, 05:07:14 PM
yep, that should do the trick :)

it did, thanks!   8)
Title: Re: vReportBoard Mod
Post by: Matthew Schenker on March 10, 2007, 09:09:45 PM
Excellent modification!  Thanks for creating it!

I was getting a lot of e-mails for reported posts, and I was having trouble keeping track of them.  Now I have a way to organize reported posts.
Title: Re: vReportBoard Mod
Post by: korby on March 11, 2007, 10:25:16 AM
How can I install the mod manualy? (sorry if already explained, guess I mised it).
Thanks.
Title: Re: vReportBoard Mod
Post by: Valodim on March 11, 2007, 10:28:07 AM
uh... follow the steps in the mod file? :P
Title: Re: vReportBoard Mod
Post by: babjusi on March 11, 2007, 10:33:41 AM
Quote from: korby on March 11, 2007, 10:25:16 AM
How can I install the mod manualy? (sorry if already explained, guess I mised it).
Thanks.

Have a look here korby, hope this helps

http://docs.simplemachines.org/index.php?topic=402
Title: Re: vReportBoard Mod
Post by: korby on March 11, 2007, 12:32:40 PM
LOL, not that, I know how to install a mod. I want to install in manualy, by making modifications to PHP files. :P




Nevermind. I wanted to install it manualy because it kept giving me subs.php error, but works now. :|
Title: Re: vReportBoard Mod
Post by: dexx on March 15, 2007, 08:30:35 PM
Quote from: dexx on March 05, 2007, 06:07:08 PM
Hey, thanks for the quick reply!

Here's what the mod button code for my template looks like:

   if ($context['can_move'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_move.gif" alt="' . $txt[132] . '" border="0" />' : $txt[132]) . '</a>';

   if ($context['can_delete'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . $txt[162] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_rem.gif" alt="' . $txt[63] . '" border="0" />' : $txt[63]) . '</a>';

   if ($context['can_lock'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_lock.gif" alt="' . (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280']) . '" border="0" />' : (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280'])) . '</a>';

   if ($context['can_sticky'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_sticky.gif" alt="' . (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278']) . '" border="0" />' : (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278'])) . '</a>';
   if ($context['can_merge'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/merge.gif" alt="' . $txt['smf252'] . '" border="0" />' : $txt['smf252']) . '</a>';
   if ($context['can_remove_poll'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . '" onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin_remove_poll.gif" alt="' . $txt['poll_remove'] . '" border="0" />' : $txt['poll_remove']) . '</a>';

   if ($context['calendar_post'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/linktocal.gif" alt="' . $txt['calendar37'] . '" border="0" />' : $txt['calendar37']) . '</a>';

   if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
      $moderationButtons[] = $settings['use_image_buttons'] ? '<input type="image" name="submit" id="quickmodSubmit" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete_selected.gif" alt="' . $txt['quickmod_delete_selected'] . '" />' : '<a href="javascript:document.forms.quickModForm.submit();" id="quickmodSubmit">' . $txt['quickmod_delete_selected'] . '</a>';


But when I inserted:


if ($context['can_solve'])
      $moderationButtons[] = '<a href="' . $scripturl . '?action=solve;topic=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/solve.gif" alt="' . $txt['report_solve'] . '" border="0" />' : $txt['report_solve']) . '</a>';


A) No Image came up just text saying Solve/Unsolve (which I believe is normal based on Mod description)

but

B) When I click the link, it takes me back to the forum index. The property for the link shows this as the url:

http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,solve/topic,14/

While the other buttons show this as their links:

Lock/Unlock-
http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,lock/topic,14.0/sesc,9aa5adc4b63d67c98a00e1b84311a603/

Remove Topic-
http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,removetopic2/topic,14.0/sesc,9aa5adc4b63d67c98a00e1b84311a603/

Sticky-
http://www.imnetworked.com/component/option,com_smf/Itemid,28/action,sticky/topic,14.0/sesc,9aa5adc4b63d67c98a00e1b84311a603/


Any ideas?

Still havin a problem with this...any ideas on how to have the Solve button change the image to Solve instead of takin me back to the main page?

Thnx!
Title: Re: vReportBoard Mod
Post by: edi67 on March 24, 2007, 04:13:55 AM
Perfectly work in SMF 1.1.1 thx valodim

PS. one question is possible add in feature the ability to inform Reporter and thanx him for the Topic reported and maybe the Poster of Topic for inform him about the error in him Topic ?

thx anyway
Title: Re: vReportBoard Mod
Post by: kripz on March 28, 2007, 05:48:29 AM
not sure if this has been mentioned but if the same topic is reported more than once they should be added as replies to the original post instead of creating new topics.
Title: Re: vReportBoard Mod
Post by: Shonick on March 29, 2007, 08:06:00 PM

by defaul this mod will make the report board disppears to the members If they can not access to that board, right?
Title: Re: vReportBoard Mod
Post by: Coldfx on March 29, 2007, 08:33:34 PM
Quote from: viet on March 29, 2007, 08:06:00 PM

by defaul this mod will make the report board disppears to the members If they can not access to that board, right?

If you have the board set to be viewed by a certain group, only that group is capable of viewing it.
Title: Re: vReportBoard Mod
Post by: Valodim on April 05, 2007, 05:05:42 PM
Quote from: edi67 on March 24, 2007, 04:13:55 AM
PS. one question is possible add in feature the ability to inform Reporter and thanx him for the Topic reported and maybe the Poster of Topic for inform him about the error in him Topic ?

The mods can just do that manually, nuh?
Title: Re: vReportBoard Mod
Post by: dxdonline on April 10, 2007, 02:20:08 AM
i get this error when i try to install the mod

14.   Execute Modification   ./Themes/default/languages/index.turkish.php   File not found
15.   Execute Modification   ./Themes/default/languages/ModSettings.turkish.php   File not found
16.   Execute Modification   ./Themes/default/languages/Errors.turkish.php   File not found
17.   Execute Modification   ./Themes/default/languages/Help.turkish.php   File not found
Title: Re: vReportBoard Mod
Post by: bbulldog on April 11, 2007, 07:04:03 AM
thats the files for the turkish language just ignore them.
So far this is only in english and turkish
Title: Re: vReportBoard Mod
Post by: MattJ on April 12, 2007, 06:25:47 AM
I get this error when trying to install on 1.1.2, default theme.

6.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

Perhaps some sort of conflict?
Title: Re: vReportBoard Mod
Post by: MattJ on April 12, 2007, 08:47:54 AM
Managed to get it working by manually editing the above file...seems fine, although it doesnt report PM's...
Title: Re: vReportBoard Mod
Post by: Valodim on April 16, 2007, 04:44:57 PM
PMs are kinda... personal, so I thought they would be better off just going to the admins as usual, so they aren't visible to the whole staff.
Title: Re: vReportBoard Mod
Post by: Vampy on April 21, 2007, 12:41:37 PM
I'm currently on 1.1.2 - When I try to install the mod I get an error on test install

"7.     Execute Modification     ./Themes/amber/Display.template.php     Test failed"

I've had a look at the install files - to correct this would I have to change the vReportBoardRC3.mod file where it says ....

<edit file>
$themedir/Display.template.php
</edit file>

to ...

<edit file>
$themedir/amber/Display.template.php
</edit file>

there is no Display.template.php in the base /Themes/ directory only in the current theme (amber)  that's set as default.

If this isn't the way to fix this can someone please tell me what IS the correct way

Thanks
Title: Re: vReportBoard Mod
Post by: Valodim on April 28, 2007, 11:54:45 AM
the mod probably won't install on a custom theme, sorry. you'll have to apply those changes manually, which is not a trivial task.
Title: Re: vReportBoard Mod
Post by: Vampy on May 01, 2007, 10:00:08 AM
Quote from: Valodim on April 28, 2007, 11:54:45 AM
the mod probably won't install on a custom theme, sorry. you'll have to apply those changes manually, which is not a trivial task.

and i have no idea where to even start :(
Title: Re: vReportBoard Mod
Post by: taxidriva on May 01, 2007, 02:27:18 PM
Ok Im lost, hot do I set the reported topic to 'solved'? I dont see any icon anywhere..
Title: Re: vReportBoard Mod
Post by: tones_ie on May 11, 2007, 10:42:05 AM
Thanks for the mod...works great.......

However, I noticed that we dont get any email notifications at all anymore on the forum...im talking about subscribed threads / replies to posts and what not?  any ideas what would cause this ?

thanks
Title: Re: vReportBoard Mod
Post by: tones_ie on May 11, 2007, 10:46:55 AM
Quote from: taxidriva on May 01, 2007, 02:27:18 PM
Ok Im lost, hot do I set the reported topic to 'solved'? I dont see any icon anywhere..

Hi, you should be able to see a text link ( as no image supplied in mod ) when u look at a reported thread ....its down where u have the lock/unlock / move / remove buttons (links) ....  clicking this link will alternate between the solved / unsolved status ( red / green icons )

are u using a custom theme ?   if so...test using the smf default one to see where the links are located.
Title: Re: vReportBoard Mod
Post by: babjusi on May 11, 2007, 02:58:30 PM
Quote from: taxidriva on May 01, 2007, 02:27:18 PM
Ok Im lost, hot do I set the reported topic to 'solved'? I dont see any icon anywhere..

I don'''t think that u can set this topic or any other topic for that matter as solved, close it or anything else. That is up to the staff, thay have the power to do those things with the topics
Title: Re: vReportBoard Mod
Post by: tones_ie on May 11, 2007, 04:11:39 PM
Quote from: babjusi on May 11, 2007, 02:58:30 PM
Quote from: taxidriva on May 01, 2007, 02:27:18 PM
Ok Im lost, hot do I set the reported topic to 'solved'? I dont see any icon anywhere..

I don'''t think that u can set this topic or any other topic for that matter as solved, close it or anything else. That is up to the staff, thay have the power to do those things with the topics

I can only assume that taxidriva is referring to his/ her own forum and is an admin there.
Title: Re: vReportBoard Mod
Post by: babjusi on May 11, 2007, 04:56:50 PM
Quote from: tones_ie on May 11, 2007, 04:11:39 PM
Quote from: babjusi on May 11, 2007, 02:58:30 PM
Quote from: taxidriva on May 01, 2007, 02:27:18 PM
Ok Im lost, hot do I set the reported topic to 'solved'? I dont see any icon anywhere..

I don'''t think that u can set this topic or any other topic for that matter as solved, close it or anything else. That is up to the staff, thay have the power to do those things with the topics

I can only assume that taxidriva is referring to his/ her own forum and is an admin there.

You are propably right, my bad mate
Title: Re: vReportBoard Mod
Post by: bsd43 on May 12, 2007, 11:39:53 AM
I'm getting these errors:

Case #1:
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lamer. SHUT IT.
[/quote]', 1, 65534), SUBSTRING('FooBar', 1, 255), SUBS' at line 4
File: /var/www/stn/forums/Sources/Subs-Post.php
Line: 1518

Note that on the actual reported post, there *is* a single-quote before "lamer".

Case #2:
Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'd love to see your favorite sunset spots.

[url=http://i60.photobucket' at line 4
File: /var/www/stn/forums/Sources/Subs-Post.php
Line: 1518

In this case, the offending character is, again, the single-quote in "I'd".

Seems like singlequotes aren't getting properly handled, and getting passed straight to SQL raw.

Thanks for fixing this, in advance...
Title: Re: vReportBoard Mod
Post by: bsd43 on May 13, 2007, 08:35:35 PM
Fixed...

In $msgOptions = array(
change

               'body' => $message,
into
               'body' => addslashes($message),
Title: Re: vReportBoard Mod
Post by: Valodim on May 13, 2007, 10:58:55 PM
you are right. I had assumed preparsecode would do that, sorry about that.

uploading new version with this fix, and using new xml mod format.

Quote
However, I noticed that we dont get any email notifications at all anymore on the forum...im talking about subscribed threads / replies to posts and what not?  any ideas what would cause this ?

no, none.
Title: Re: vReportBoard Mod
Post by: Snow Wolf on May 16, 2007, 09:05:57 PM
I am not sure what is wrong with my install (yes I did uninstall and re-install) but when I try and report a post on my board I get this error:

"Parse error: parse error, unexpected '}' in /home/content/(hidden)/(hidden)/(hidden)/(hidden)/html/forum/Sources/SendTopic.php on line 338"

I placed the hidden in the path to hide my location because I am a security freak.

Anyway I am running version 0.98 of the vReportBoard Mod and SMF 1.1.2.
Title: Re: vReportBoard Mod
Post by: Valodim on May 17, 2007, 11:09:04 AM
uninstall the mod, replace SendTopic.php in Sources dir with the original one, and reinstall. that should do it.
Title: Re: vReportBoard Mod
Post by: Snow Wolf on May 17, 2007, 11:49:07 AM
Quote from: Valodim on May 17, 2007, 11:09:04 AM
uninstall the mod, replace SendTopic.php in Sources dir with the original one, and reinstall. that should do it.

I tried that and I got the exact same error message.

UPDATE:

Well I did that for the third time and now I'm getting a new error message. To let you know I was and am getting these error messages while I am logged in to my Admin account or my Moderator account if it makes a difference.

New ERROR Message:

"Parse error: parse error, unexpected '*' in /home/content/(hidden)/(hidden)/(hidden)/(hidden)/html/forum/Sources/SendTopic.php on line 336"
Title: Re: vReportBoard Mod
Post by: Valodim on May 17, 2007, 08:19:07 PM
ugh. post the sendtopic.php file please, I'll have a look at it.
Title: Re: vReportBoard Mod
Post by: Abangyarudo on May 17, 2007, 10:07:45 PM
I originally had a problem with unexpected )&nbsp; after I deleated the character it resulted in a screen when ya click report moderator that says an error has occured your session timed out while posting try again. Forgot to mention that I use the black rain theme by crip.

Edited for Clarity

Added my version of send topic to assist
Title: Re: vReportBoard Mod
Post by: Snow Wolf on May 23, 2007, 08:14:26 PM
Quote from: Valodim on May 17, 2007, 08:19:07 PM
ugh. post the sendtopic.php file please, I'll have a look at it.

Sorry it took so long to get this to you but I have been working on projects and prepairing for finals. Here is the file contents you wanted:


<?php
/**********************************************************************************
* SendTopic.php                                                                   *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* The functions in this file deal with sending topics toa friend or
moderator, and those functions are:

void SendTopic()
- sends information about a topic to a friend.
- uses the SendTopic template, with the main sub template.
- requires the send_topic permission.
- redirects back to the first page of the topic when done.
- is accessed via ?action=sendtopic.

void ReportToModerator()
- gathers data from the user to report abuse to the moderator(s).
- uses the ReportToModerator template, main sub template.
- requires the report_any permission.
- uses ReportToModerator2() if post data was sent.
- accessed through ?action=reporttm.

void ReportToModerator2()
- sends off emails to all the moderators.
- sends to administrators and global moderators. (1 and 2)
- called by ReportToModerator(), and thus has the same permission
  and setting requirements as it does.
- accessed through ?action=reporttm when posting.
*/

// Send a topic to a friend.
function SendTopic()
{
global $topic$txt$db_prefix$context$scripturl$sourcedir;

// Check permissions...
isAllowedTo('send_topic');

// We need at least a topic... go away if you don't have one.
if (empty($topic))
fatal_lang_error(472false);

// Get the topic's subject.
$request db_query("
SELECT m.subject
FROM (
{$db_prefix}messages AS m, {$db_prefix}topics AS t)
WHERE t.ID_TOPIC = 
$topic
AND t.ID_FIRST_MSG = m.ID_MSG
LIMIT 1"
__FILE____LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error(472false);
$row mysql_fetch_assoc($request);
mysql_free_result($request);

// Censor the subject....
censorText($row['subject']);

// Sending yet, or just getting prepped?
if (empty($_POST['send']))
{
loadTemplate('SendTopic');
$context['page_title'] = sprintf($txt['sendtopic_title'], $row['subject']);
$context['start'] = $_REQUEST['start'];

return;
}

// Actually send the message...
checkSession();
spamProtection('spam');

// This is needed for sendmail().
require_once($sourcedir '/Subs-Post.php');

// Trim the names..
$_POST['y_name'] = trim($_POST['y_name']);
$_POST['r_name'] = trim($_POST['r_name']);

// Make sure they aren't playing "let's use a fake email".
if ($_POST['y_name'] == '_' || !isset($_POST['y_name']) || $_POST['y_name'] == '')
fatal_lang_error(75false);
if (!isset($_POST['y_email']) || $_POST['y_email'] == '')
fatal_lang_error(76false);
if (preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~'stripslashes($_POST['y_email'])) == 0)
fatal_lang_error(243false);

// The receiver should be valid to.
if ($_POST['r_name'] == '_' || !isset($_POST['r_name']) || $_POST['r_name'] == '')
fatal_lang_error(75false);
if (!isset($_POST['r_email']) || $_POST['r_email'] == '')
fatal_lang_error(76false);
if (preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~'stripslashes($_POST['r_email'])) == 0)
fatal_lang_error(243false);

// Emails don't like entities...
$row['subject'] = un_htmlspecialchars($row['subject']);

// And off we go!
sendmail($_POST['r_email'], $txt[118] . ': ' $row['subject'] . ' (' $txt[318] . ' ' $_POST['y_name'] . ')',
sprintf($txt['sendtopic_dear'], $_POST['r_name']) . "\n\n" .
sprintf($txt['sendtopic_this_topic'], $row['subject']) . ":\n\n" .
$scripturl '?topic=' $topic ".0\n\n" .
(!empty($_POST['comment']) ? $txt['sendtopic2'] . ":\n" $_POST['comment'] . "\n\n" '') .
$txt['sendtopic_thanks'] . ",\n" .
$_POST['y_name'], $_POST['y_email']);

// Back to the topic!
redirectexit('topic=' $topic '.0');
}

// Report a post to the moderator... ask for a comment.
function ReportToModerator()
{
global $txt$db_prefix$topic$modSettings$user_info$ID_MEMBER$context;

// You can't use this if it's off or you are not allowed to do it.
isAllowedTo('report_any');

// If they're posting, it should be processed by ReportToModerator2.
if (isset($_POST['sc']) || isset($_POST['submit']))
ReportToModerator2();

// We need a message ID to check!
if (empty($_GET['msg']) && empty($_GET['mid']))
fatal_lang_error(1false);

// For compatibility, accept mid, but we should be using msg. (not the flavor kind!)
$_GET['msg'] = empty($_GET['msg']) ? (int) $_GET['mid'] : (int) $_GET['msg'];

// Check the message's ID - don't want anyone reporting a post they can't even see!
$result db_query("
SELECT m.ID_MSG, m.ID_MEMBER, t.ID_MEMBER_STARTED
FROM (
{$db_prefix}messages AS m, {$db_prefix}topics AS t)
WHERE m.ID_MSG = 
$_GET[msg]
AND m.ID_TOPIC = 
$topic
AND t.ID_TOPIC = 
$topic
LIMIT 1"
__FILE____LINE__);
if (mysql_num_rows($result) == 0)
fatal_lang_error('smf232');
list ($_GET['msg'], $member$starter) = mysql_fetch_row($result);
mysql_free_result($result);

// If they can't modify their post, then they should be able to report it... otherwise it is illogical.
if ($member == $ID_MEMBER && (allowedTo(array('modify_own''modify_any')) || ($ID_MEMBER == $starter && allowedTo('modify_replies'))))
fatal_lang_error('rtm_not_own'false);

// Show the inputs for the comment, etc.
loadLanguage('Post');
loadTemplate('SendTopic');

// This is here so that the user could, in theory, be redirected back to the topic.
$context['start'] = $_REQUEST['start'];
$context['message_id'] = $_GET['msg'];

$context['page_title'] = $txt['rtm1'];
$context['sub_template'] = 'report';
}

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

// Check their session... don't want them redirected here without their knowledge.
checkSession();
spamProtection('spam');

// You must have the proper permissions!
isAllowedTo('report_any');

require_once($sourcedir . '/Subs-Post.php');

// Get the basic topic information, and make sure they can see it.
$_POST['msg'] = (int) $_POST['msg'];

$request = db_query("
SELECT m.subject, m.ID_MEMBER, m.posterName, mem.realName
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS mem ON (m.ID_MEMBER = mem.ID_MEMBER)
WHERE m.ID_MSG = $_POST[msg]
AND m.ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($subject, $member, $posterName, $realName) = mysql_fetch_row($request);
mysql_free_result($request);

if ($member == $ID_MEMBER)
fatal_lang_error('rtm_not_own', false);

$posterName = un_htmlspecialchars($realName) . ($realName != $posterName ? ' (' . $posterName . ')' : '');
$reporterName = un_htmlspecialchars($user_info['name']) . ($user_info['name'] != $user_info['username'] && $user_info['username'] != '' ? ' (' . $user_info['username'] . ')' : '');
$subject = un_htmlspecialchars($subject);

// Get a list of members with the moderate_board permission.
require_once($sourcedir . '/Subs-Members.php');
$moderators = membersAllowedTo('moderate_board', $board);

$request = db_query("
SELECT ID_MEMBER, emailAddress, lngfile
FROM {$db_prefix}members
WHERE ID_MEMBER IN (" . implode(', ', $moderators) . ")
AND notifyTypes != 4
ORDER BY lngfile", __FILE__, __LINE__);

// Check that moderators do exist!
if (mysql_num_rows($request) == 0)
fatal_lang_error('rtm11', false);

// Send every moderator an email.
while ($row = mysql_fetch_assoc($request))
{
loadLanguage('Post', empty($row['lngfile']) || empty($modSettings['userLanguage']) ? $language : $row['lngfile'], false);

// Send it to the moderator.
sendmail($row['emailAddress'], $txt['rtm3'] . ': ' . $subject . ' ' . $txt['rtm4'] . ' ' . $posterName,
sprintf($txt['rtm_email1'], $subject) . ' ' . $posterName . ' ' . $txt['rtm_email2'] . ' ' . (empty($ID_MEMBER) ? $txt['guest'] . ' (' . $user_info['ip'] . ')' : $reporterName) . ' ' . $txt['rtm_email3'] . ":\n\n" .
$scripturl . '?topic=' . $topic . '.msg' . $_POST['msg'] . '#msg' . $_POST['msg'] . "\n\n" .
$txt['rtm_email_comment'] . ":\n" .
$_POST['comment'] . "\n\n" .
$txt[130], $user_info['email']);
}
mysql_free_result($request);

*/

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();

// You must have the proper permissions!
isAllowedTo('report_any');

include_once($sourcedir '/Subs-Post.php');

if(empty($modSettings['report_board']))
fatal_lang_error('rtm_noboard');

if($board == $modSettings['report_board'])
fatal_lang_error('rtm_reportboard');

// Get the basic topic information, and make sure they can see it.
$_POST['msg'] = (int) $_POST['msg'];

// fetch quote and stuff
$request db_query("
SELECT m.ID_MEMBER, m.posterName, mem.realName, m.posterTime, m.subject, m.body
FROM 
{$db_prefix}messages AS m
LEFT JOIN 
{$db_prefix}members AS mem ON (m.ID_MEMBER = mem.ID_MEMBER)
WHERE m.ID_MSG = 
$_POST[msg]
AND m.ID_TOPIC = 
$topic
LIMIT 1"
__FILE____LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($member$posterName$realName$mdate$form_subject$form_message) = mysql_fetch_row($request);
mysql_free_result($request);

if ($member == $ID_MEMBER)
fatal_lang_error('rtm_not_own'false);

$form_message preg_replace('~<br(?: /)?' '>~i'"\n"$form_message);

// Remove any nested quotes, if necessary.
if (!empty($modSettings['removeNestedQuotes']))
$form_message preg_replace(array('~\n?\[quote.*?\].+?\[/quote\]\n?~is''~^\n~''~\[/quote\]~'), ''$form_message);
// and replace all img tgs by url tags
$form_message preg_replace('/\[img\](.+?)\[\/img\]/is''[url]\1[/url]'$form_message);
// Add a quote string on the front and end.
$form_message '[quote author=' $posterName ' link=topic=' $topic '.msg' $_POST['msg'] . '#msg' $_POST['msg'] . ' date=' $mdate ']' "\n" $form_message "\n" '[/quote]';

// some parsing
$message htmlspecialchars($_POST['comment'], ENT_QUOTES) . "\n\n" $form_message;
preparsecode($message);

// we need to know :)
$query db_query("
SELECT countPosts
FROM 
{$db_prefix}boards
WHERE ID_BOARD = 
$modSettings[report_board]"__FILE____LINE__);
if(mysql_num_rows($query) > 0)
list($countPosts) = mysql_fetch_row($query);


// set up all options
$msgOptions = array(
'id' => 0,
'subject' => '[' addslashes($board_info['name']) . '] ' addslashes($form_subject),
'body' => addslashes($message),
'icon' => 'unsolved',
'smileys_enabled' => true,
'attachments' => array(),
);
$topicOptions = array(
'id' => 0,
'board' => $modSettings['report_board'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'mark_as_read' => false,
);
$posterOptions = array(
'id' => $ID_MEMBER,
'name' => $user_info['username'],
'email' => $user_info['email'],
// do reports count as posts?
'update_post_count' => !empty($countPosts),
);

// and post!
createPost($msgOptions$topicOptions$posterOptions);

*/

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();

// You must have the proper permissions!
isAllowedTo('report_any');

include_once($sourcedir '/Subs-Post.php');

if(empty($modSettings['report_board']))
fatal_lang_error('rtm_noboard');

if($board == $modSettings['report_board'])
fatal_lang_error('rtm_reportboard');

// Get the basic topic information, and make sure they can see it.
$_POST['msg'] = (int) $_POST['msg'];

// fetch quote and stuff
$request db_query("
SELECT m.ID_MEMBER, m.posterName, mem.realName, m.posterTime, m.subject, m.body
FROM 
{$db_prefix}messages AS m
LEFT JOIN 
{$db_prefix}members AS mem ON (m.ID_MEMBER = mem.ID_MEMBER)
WHERE m.ID_MSG = 
$_POST[msg]
AND m.ID_TOPIC = 
$topic
LIMIT 1"
__FILE____LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($member$posterName$realName$mdate$form_subject$form_message) = mysql_fetch_row($request);
mysql_free_result($request);

if ($member == $ID_MEMBER)
fatal_lang_error('rtm_not_own'false);

$form_message preg_replace('~<br(?: /)?' '>~i'"\n"$form_message);

// Remove any nested quotes, if necessary.
if (!empty($modSettings['removeNestedQuotes']))
$form_message preg_replace(array('~\n?\[quote.*?\].+?\[/quote\]\n?~is''~^\n~''~\[/quote\]~'), ''$form_message);
// and replace all img tgs by url tags
$form_message preg_replace('/\[img\](.+?)\[\/img\]/is''[url]\1[/url]'$form_message);
// Add a quote string on the front and end.
$form_message '[quote author=' $posterName ' link=topic=' $topic '.msg' $_POST['msg'] . '#msg' $_POST['msg'] . ' date=' $mdate ']' "\n" $form_message "\n" '[/quote]';

// some parsing
$message htmlspecialchars($_POST['comment'], ENT_QUOTES) . "\n\n" $form_message;
preparsecode($message);

// we need to know :)
$query db_query("
SELECT countPosts
FROM 
{$db_prefix}boards
WHERE ID_BOARD = 
$modSettings[report_board]"__FILE____LINE__);
if(mysql_num_rows($query) > 0)
list($countPosts) = mysql_fetch_row($query);


// set up all options
$msgOptions = array(
'id' => 0,
'subject' => '[' addslashes($board_info['name']) . '] ' addslashes($form_subject),
'body' => addslashes($message),
'icon' => 'unsolved',
'smileys_enabled' => true,
'attachments' => array(),
);
$topicOptions = array(
'id' => 0,
'board' => $modSettings['report_board'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'mark_as_read' => false,
);
$posterOptions = array(
'id' => $ID_MEMBER,
'name' => $user_info['username'],
'email' => $user_info['email'],
// do reports count as posts?
'update_post_count' => !empty($countPosts),
);

// and post!
createPost($msgOptions$topicOptions$posterOptions);

// Back to the board! (you probably don't want to see the post anymore..)
redirectexit('board=' $board '.0');

}

// Solves/Unsolves a topic.
function SolveTopic()
{
global $db_prefix$modSettings$board$topic$sourcedir;

// make sure they may do this!
isAllowedTo('report_solve');

// solving only in the report board! we don't need a permission check, everyone who has access here can solve.
if($board != $modSettings['report_board'])
fatal_lang_error('rtm_solveoutside');

// Just quit if there's no topic to lock.
if (empty($topic))
fatal_lang_error(472false);

// It's a toggle action, so get current status
$request db_query("
SELECT m.ID_MSG, m.icon
FROM 
{$db_prefix}topics as t, {$db_prefix}messages as m
WHERE t.ID_TOPIC = 
$topic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1"
__FILE____LINE__);
list ($msg$icon) = mysql_fetch_row($request);
mysql_free_result($request);

$icon = ($icon == 'unsolved') ? 'solved' 'unsolved';

// Actually lock the topic in the database with the new value.
db_query("
UPDATE 
{$db_prefix}messages
SET icon = '
$icon'
WHERE ID_MSG = 
$msg
LIMIT 1"
__FILE____LINE__);

// Always log this.
logAction('solve', array('topic' => $topic));

// Back to the board!
redirectexit('board=' $board '.0');


// Back to the board! (you probably don't want to see the post anymore..)
redirectexit('board=' $board '.0');

}

// Solves/Unsolves a topic.
function SolveTopic()
{
global $db_prefix$modSettings$board$topic$sourcedir;

// make sure they may do this!
isAllowedTo('report_solve');

// solving only in the report board! we don't need a permission check, everyone who has access here can solve.
if($board != $modSettings['report_board'])
fatal_lang_error('rtm_solveoutside');

// Just quit if there's no topic to lock.
if (empty($topic))
fatal_lang_error(472false);

// It's a toggle action, so get current status
$request db_query("
SELECT m.ID_MSG, m.icon
FROM 
{$db_prefix}topics as t, {$db_prefix}messages as m
WHERE t.ID_TOPIC = 
$topic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1"
__FILE____LINE__);
list ($msg$icon) = mysql_fetch_row($request);
mysql_free_result($request);

$icon = ($icon == 'unsolved') ? 'solved' 'unsolved';

// Actually lock the topic in the database with the new value.
db_query("
UPDATE 
{$db_prefix}messages
SET icon = '
$icon'
WHERE ID_MSG = 
$msg
LIMIT 1"
__FILE____LINE__);

// Always log this.
logAction('solve', array('topic' => $topic));

// Back to the board!
redirectexit('board=' $board '.0');


// Back to the board! (you probably don't want to see the post anymore..)
redirectexit('board=' $board '.0');
}

?>

Title: Re: vReportBoard Mod
Post by: geordie blue on May 25, 2007, 04:39:28 PM
Quote from: Snow Wolf on May 16, 2007, 09:05:57 PM
I am not sure what is wrong with my install (yes I did uninstall and re-install) but when I try and report a post on my board I get this error:

"Parse error: parse error, unexpected '}' in /home/content/(hidden)/(hidden)/(hidden)/(hidden)/html/forum/Sources/SendTopic.php on line 338"

I placed the hidden in the path to hide my location because I am a security freak.

Anyway I am running version 0.98 of the vReportBoard Mod and SMF 1.1.2.

Just installed this mod too (v0.98) on SMF1.1.2 forum and am getting the exact same error as reported by SnowWolf.  The board i chose to use was 21, so I typed 21.0 in the admin section.
Title: Re: vReportBoard Mod
Post by: Valodim on May 27, 2007, 09:41:46 AM
damn, I screwed up. sorry about that, not used to the xml format yet :P

fixed in a minute.

\\ edit

ok, should install and uninstall cleanly now. if you had those problems before, uninstall the mod, replace the SendTopic.php with the original one, and reinstall the mod.
Title: Re: vReportBoard Mod
Post by: Snow Wolf on May 27, 2007, 05:00:24 PM
Wait.....are you saying thats how to fix my error? because I tried that....
Title: Re: vReportBoard Mod
Post by: Valodim on May 28, 2007, 07:34:54 AM
with the new version, yes. the old one was causing that error due to a faulty installation file.
Title: Re: vReportBoard Mod
Post by: HecKel on May 28, 2007, 12:27:33 PM
Hi!

I am a PHP newbie..., very newbie :P

I insert this code in your package, and I think this is important to add to your package:

// some parsing
$message = htmlspecialchars($_POST['comment'], ENT_QUOTES) . "\n\n" . $form_message;
preparsecode($message);

if (!empty($board_info['moderators']))
foreach ($board_info['moderators'] as $temp_mod)
$mods = $temp_mod['name'] . ", ";

$message = "[b]Board Moderators:[/b] " . $mods . "\n\n" . $message;


The first lines is only to identify where I inserted this code.

I don't know what language file this package use, so, I inject the Board Moderators string..., and this code needs more readjustments.

I don't verify is is only one Moderator or more (plural string), and that message will have an extra coma...

If anyone can correct this, I would be very gratefull :)

HecKel
Title: Re: vReportBoard Mod
Post by: Snow Wolf on May 30, 2007, 07:41:42 AM
At the risk of sounding stupid...how do I find out the Board ID?
Title: Re: vReportBoard Mod
Post by: babjusi on May 30, 2007, 08:59:01 AM
Quote from: Snow Wolf on May 30, 2007, 07:41:42 AM
At the risk of sounding stupid...how do I find out the Board ID?

Click at the board in question and have a look at the browser. The id of the board is shown up there at the end of the url.

For example, www.yoursite.com/index.php?board=5.0

And so on, you can see the id of all the boards. If you still have any questions, just ask.
Title: Re: vReportBoard Mod
Post by: geordie blue on May 31, 2007, 02:01:01 PM
Quote from: Valodim on May 28, 2007, 07:34:54 AM
with the new version, yes. the old one was causing that error due to a faulty installation file.

Many thanks indeed Valodim and respect to you kind sir.

Have downloaded the updated mod (V0.99) and it works just fine thank you. (SMF 1.1.2)
Title: Re: vReportBoard Mod
Post by: anakmacan on June 02, 2007, 10:20:12 AM
0.99, im using 1.1.2
Type     Action     Description
1.    Execute Modification    -    Modification parse error
2.    Extract File    ./Themes/default/images/post/unsolved.gif    
3.    Extract File    ./Themes/default/images/post/solved.gif    
Anyone knows how come that happened?
Title: Re: vReportBoard Mod
Post by: katoona on June 10, 2007, 11:50:36 AM
This mod does not work. I have installed it manually, and when I click "report to moderator" in a topic I get a white screen without anything on it.

Title: Re: vReportBoard Mod
Post by: mforum on June 11, 2007, 03:09:13 AM
I have installed version 0.99 on 1.1.2 via package manager and works as it should.
No problems at all.

Great Mod ..!!  ;)
Title: Re: vReportBoard Mod
Post by: LW on June 20, 2007, 10:13:04 PM
I love this mod... however... none of my moderators can see the solve/unsolve button!
Title: Re: vReportBoard Mod
Post by: Abangyarudo on June 20, 2007, 10:34:28 PM
you have to make one I don't believe the button comes with the package
Title: Re: vReportBoard Mod
Post by: LW on June 20, 2007, 10:46:57 PM
Well, it shows up for me as an admin but not for global mods or the mods I've given access to the mod board.
Title: Re: vReportBoard Mod
Post by: Abangyarudo on June 21, 2007, 08:51:16 AM
Quote from: LW on June 20, 2007, 10:46:57 PM
Well, it shows up for me as an admin but not for global mods or the mods I've given access to the mod board.
thats odd no button shows up for me I was waiting to address the problem by creating a new button. I know the only images I found in the folder were the check mark and x maybe he released a new copy since then.
Title: Re: vReportBoard Mod
Post by: SlammedDime on June 21, 2007, 05:15:05 PM
Quote from: LW on June 20, 2007, 10:13:04 PM
I love this mod... however... none of my moderators can see the solve/unsolve button!
Did you give them permission to?  You need to give them permission to 'Solve Reports' in addition to just seeing the board.
Title: Re: vReportBoard Mod
Post by: LW on June 21, 2007, 10:12:24 PM
Ah ha... bingo! And now I feel like a moron :)
Title: Re: vReportBoard Mod
Post by: Exochat on June 27, 2007, 05:57:11 PM
Anyone know if this is now 1.1.3 for package manager on default skin?
I have tried the 1.1.2 version and most of the options are missing (such as board ID for the reports is blank with no writing to state that the box is there for that reason, and options in the permissions just have check boxes but no writing etc to explain what the checkbox is for.)

Title: Re: vReportBoard Mod
Post by: shadow82x on June 28, 2007, 05:44:31 PM
Can you update this to 1.1.3
Title: Re: vReportBoard Mod
Post by: SlammedDime on June 28, 2007, 07:58:41 PM
It will work for 1.1.3, you'll just have to download it and edit the package-info.xml file in the zip file, then rezip it and install it.
Title: Re: vReportBoard Mod
Post by: Exochat on June 29, 2007, 08:57:00 AM
Quote from: Matt @ ARTcom on June 28, 2007, 07:58:41 PM
It will work for 1.1.3, you'll just have to download it and edit the package-info.xml file in the zip file, then rezip it and install it.

so what do we edit exactly???
The idea of a package manager was to make things install simply and effectively for those with little experience of editing .xml files I thought?

I dont mind having a go but I havent got a scooby doo what to do with it!!!
Title: Re: vReportBoard Mod
Post by: Exochat on June 29, 2007, 09:16:19 AM
Ok I have a fresh new forum, it is 1.1.3 with NO mods added. I have taken Vreportboard_099 and edited the XML to 1.1.3

I have installed it to my new clean forum and STILL there is no writing where the "Report Board ID" section is and there is no writing on the Permissions about who can and who cannot solve topics.

Also there are no Solve/Unsolve button available when it was there during 1.1.2

Title: Re: vReportBoard Mod
Post by: SlammedDime on June 29, 2007, 10:45:35 AM
From the first post:
QuoteThis package does not include an image for the solve/unsolve feature (at bottom of thread), you should set something up yourself (except if you're using the default theme, since that one uses text links)

What do you mean 'no writing'?  There's a blank spot for some text, but the text isn't there?  What language are you using on your board?  Is it a UTF-8 variation (Admin Panel > Server Settings > Default Forum Language)?

Title: Re: vReportBoard Mod
Post by: Exochat on June 29, 2007, 11:06:26 AM
English-utf8 is in the default language, the theme is the default one and there are no MODS installed apart from the 1.1.3 upgrade.

When I say there is no writing it is as you said, no text next to the tick box.

On the Admin Panel>Feature and Options and scroll down, you have the part that says "Enable Reporting of Personal Messages" and a tick box.

When you install the Vreportboard there should be a new option under that which says something like "Report Board ID" or similar and there is a square text box next to it to input the number of the board you wish to put the reported posts into. The text box is there but there is no explaination what the box is for (I only know as I used it on a 1.1.2 forum and can remember what it was for). A new person installing this MOD would not know what that box was for without the text being there and therefore wouldnt be able to set up the board they wish reports to go into.

Also, When you go to permissions (for example, regular members) you have explaination followed by a tickbox. Such as eg....

See Who Is Online []
See Member List []

But..... with the VReportboard installed there is one more [] you can tick at the bottom of the first options that has no description (no text) but just a tickbox, and if my memory recalls I believe it is the option for a member to be able to Solve/Unsolve a topic. I may be wrong because I dont have a fantastic memory, but that is the point, how does anyone know what it is for without the text explaining the tickbox option.

I hope that makes a little more sense. As I have said, on 1.1.2 I had V.975 installed and it worked perfect, but with 1.1.3 I have tried V.975 (which installed but no text again), tried V.99 (didnt install as it was corrupt or out of date) and then tried the edited V.99 that a user suggest you edit and rezip (installed but again no text)

So i dont know what is happening.
Title: Re: vReportBoard Mod
Post by: Valodim on June 29, 2007, 04:17:06 PM
updated xml file. untested, but judging from the posts here it should work just fine
Title: Re: vReportBoard Mod
Post by: shadow82x on June 30, 2007, 04:17:17 PM
Hi where do you choose the board you want it to go to. I cant seem to find it in the acp
Title: Re: vReportBoard Mod
Post by: Exochat on July 01, 2007, 11:07:22 AM
Quote from: shadow82x on June 30, 2007, 04:17:17 PM
Hi where do you choose the board you want it to go to. I cant seem to find it in the acp

It is on Admin>Features and Options and scroll down. however if you read my above posts the option is MISSING and therefore the Mod doesnt work in my eyes. Please confirm if you can see the option?
Title: Re: vReportBoard Mod
Post by: babjusi on July 01, 2007, 11:11:42 AM
What theme are using Exochat? What is the default language of your forum?
Title: Re: vReportBoard Mod
Post by: Exochat on July 01, 2007, 11:17:30 AM
Default theme and English language

It has previously worked with 1.1.1 and 1.1.2 but wont work with the new1.1.3 installation.

I would like to know if anyone that has 1.1.3. installed can install the MOD and see if they can have the options viewable.
Title: Re: vReportBoard Mod
Post by: kamili34 on July 01, 2007, 02:43:38 PM
When I want install this mod

I have this error Modification parse error
7.  Wykonaj modyfikację  ./Themes/default/Display.template.php  Not succes

My theme is Saf multicolour and i use polish language.
Title: Re: vReportBoard Mod
Post by: shadow82x on July 01, 2007, 02:56:13 PM
Quote from: Exochat on July 01, 2007, 11:07:22 AM
Quote from: shadow82x on June 30, 2007, 04:17:17 PM
Hi where do you choose the board you want it to go to. I cant seem to find it in the acp

It is on Admin>Features and Options and scroll down. however if you read my above posts the option is MISSING and therefore the Mod doesnt work in my eyes. Please confirm if you can see the option?
Yes thats what happening to me to.. English and Smf core theme
Title: Re: vReportBoard Mod
Post by: kamili34 on July 02, 2007, 12:56:35 AM
Why it dont't want to install on smf 1.1.3 ?
Title: Re: vReportBoard Mod
Post by: SlammedDime on July 02, 2007, 02:05:36 AM
If you are using a Language file other than English, like English-UTF8, you will need to update the language file for that language, just like you'd have to do for a non-default theme.
Title: Re: vReportBoard Mod
Post by: kamili34 on July 02, 2007, 02:38:10 AM
But when i want install i get this error

7.  Wykonaj modyfikację  ./Themes/default/Display.template.php  Not success
Title: Re: vReportBoard Mod
Post by: SlammedDime on July 02, 2007, 02:54:30 AM
Then you'll have to install the mod manually on the default template, or, if you're using a custom template, you'll have to install it manually on that template anyway.
Title: Re: vReportBoard Mod
Post by: Exochat on July 02, 2007, 01:01:33 PM
Quote from: shadow82x on July 01, 2007, 02:56:13 PM
Quote from: Exochat on July 01, 2007, 11:07:22 AM
Quote from: shadow82x on June 30, 2007, 04:17:17 PM
Hi where do you choose the board you want it to go to. I cant seem to find it in the acp

It is on Admin>Features and Options and scroll down. however if you read my above posts the option is MISSING and therefore the Mod doesnt work in my eyes. Please confirm if you can see the option?
Yes thats what happening to me to.. English and Smf core theme

If it is any help, under the option ENABLE REPORTING OF PRIVATE MESSAGES, there is a small box that you can write a number into. That is the box that is the board ID box, but as I said, it doesnt tell you that as the text explaination is missing. Hope it helps you work out where it goes.
Title: Re: vReportBoard Mod
Post by: Exochat on July 02, 2007, 01:03:09 PM
Ok.... I am getting this in the Forum Error Log constantly and believe this is with the Report Board Mod because I only have 2 mods installed.

8: Undefined index: report_solve
File: /home/exochat/public_html/Themes/default/Display.template.php (main sub template - eval?)
Line: 617
Title: Re: vReportBoard Mod
Post by: kamili34 on July 03, 2007, 07:23:06 AM
Where   add this  <file name="$themedir/Display.template.php">

<operation>
<search position="before"><![CDATA[
'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),]]></search>
<add><![CDATA[
'solve' => array('test' => 'can_solve', 'text' => 'report_solve', 'image' => 'solve.gif', 'lang' => true, 'url' => $scripturl . '?action=solve;topic=' . $context['current_topic']),]]></add>
</operation>

</file>



to this, becouse I don't know

$moderationButtons = array();

if ($context['can_move'])
$moderationButtons[] = '<li><a href="' . $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0">' . $txt[132] . '</a></li>';
if ($context['can_delete'])
$moderationButtons[] = '<li><a href="' . $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . $txt[162] . '\');">' . $txt[63] . '</a></li>';
if ($context['can_lock'])
$moderationButtons[] = '<li><a href="' . $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . (empty($context['is_locked']) ? $txt['smf279'] : $txt['smf280']) . '</a></li>';
if ($context['can_sticky'])
$moderationButtons[] = '<li><a href="' . $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . (empty($context['is_sticky']) ? $txt['smf277'] : $txt['smf278']) . '</a></li>';
if ($context['can_merge'])
$moderationButtons[] = '<li><a href="' . $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic'] . '">' . $txt['smf252'] . '</a></li>';
if ($context['can_remove_poll'])
$moderationButtons[] = '<li><a href="' . $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start'] . '" onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');">' . $txt['poll_remove'] . '</a></li>';

if ($context['calendar_post'])
$moderationButtons[] = '<li><a href="' . $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id'] . '">' . $txt['calendar37'] . '</a></li>';

if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
$moderationButtons[] = '<li><a href="javascript:document.forms.quickModForm.submit();" id="quickmodSubmit">' . $txt['quickmod_delete_selected'] . '</a></li>';

  return implode($context['menu_separator'], $moderationButtons);


Thanks :)
Title: Re: vReportBoard Mod
Post by: SlammedDime on July 03, 2007, 07:33:58 AM
Exochat:
Quote from: Matt @ ARTcom on July 02, 2007, 02:05:36 AM
If you are using a Language file other than English, like English-UTF8, you will need to update the language file for that language, just like you'd have to do for a non-default theme.

Look at the mod's install file, and look for the text strings that it adds to the language files.  You'll have to add all of those strings to your -utf8.php files as well.  ie: index.english-utf8.php, ModSettings.english-utf8.php, etc.
Title: Re: vReportBoard Mod
Post by: kamili34 on July 03, 2007, 12:25:45 PM
Somebody know, becouse when I try do this I have many errors. So I realy don't know where paste that.
Title: Re: vReportBoard Mod
Post by: sportsguy on July 09, 2007, 02:01:19 PM
Well, it installed fine and works fine, but there's no way to toggle the icon - the red circle/exclamation point to the green check mark.

I read the info on the mod page, and looked where it said the toggle would be - nada... I'm on 1.1.2.

Any ideas gang?
Title: Re: vReportBoard Mod
Post by: SlammedDime on July 09, 2007, 04:11:23 PM
Are you using a custom theme?
Title: Re: vReportBoard Mod
Post by: sportsguy on July 11, 2007, 11:35:06 AM
Quote from: Matt @ ARTcom on July 09, 2007, 04:11:23 PM
Are you using a custom theme?

nope - default, though I am running Tiny Portal as well...
Title: Re: vReportBoard Mod
Post by: luminouscrusher on July 13, 2007, 12:33:41 AM
Well, it's a good mod I see. But I seem to have a question. Looking around my Admin CP, I don't seem to see any options under anything for this mod. Could it be my template?
Title: Re: vReportBoard Mod
Post by: MediYama on July 17, 2007, 08:34:14 AM
I guess I'm stupid seeing everyone just installing and using it, and me not even knowing in which folder to upload it. How should I install this mod?

Edit
-------------------
Alright, with that done, how do I set which board the posts are made when they are reported?
Title: Re: vReportBoard Mod
Post by: bbulldog on July 17, 2007, 11:27:15 AM
Quote from: luminouscrusher on July 13, 2007, 12:33:41 AM
Well, it's a good mod I see. But I seem to have a question. Looking around my Admin CP, I don't seem to see any options under anything for this mod. Could it be my template?
Its in the Admin - Features and Options - Basic Features. right at the bottom
Title: Re: vReportBoard Mod
Post by: bbulldog on July 17, 2007, 11:29:09 AM
Quote from: MediYama on July 17, 2007, 08:34:14 AM
I guess I'm stupid seeing everyone just installing and using it, and me not even knowing in which folder to upload it. How should I install this mod?

Edit
-------------------
Alright, with that done, how do I set which board the posts are made when they are reported?
save it to your hard drive and then go into the admin of your board. Then on the left PACKAGES - Download
Packages and using the Package to Upload - find it and upload it. Then into the Browse Packages to install it.
Title: Re: vReportBoard Mod
Post by: HecKel on July 17, 2007, 10:14:27 PM
Hi!

I have vReportBoard Mod 0.975 installed on my forum, but when I installed that, I was in 1.1.2. Now I want to upgrade to vReportBoard 0.99 and my forum is allready in 1.1.3, is any problem if I install vRB 0.99 without uninstall 0.975?

If is any problem, how can I uninstall 0.975?

HecKel
Title: Re: vReportBoard Mod
Post by: bbulldog on July 18, 2007, 06:47:13 AM
I am using SMF 1.1.3 and still have
ReportBoard 0.975 running. still works ok so i wont change it.

looking at this i dont think you need to update, maybe only that with the 0.98 but not sure what that is

Quote\\ 0.98

fixed missing slashes for query, props to bsd43.
also, switched to xml mod format, which allows to suppress the error message about missing turkish language files (in case they weren't present)

\\ 0.99 (fixed it)

I screwed up the last update, didn't know "before" and "after" are swapped in the xml format. Fixed now.

If you had version 0.98 of this mod installed, uninstall it, replace the SendTopic.php file in /Sources/ with the original one, and reinstall the mod.

Sorry for any inconveniences.

\\ 0.99 (still)

Didn't change anything but updated xml file so 1.1.3 is supported. Should work just fine
Title: Re: vReportBoard Mod
Post by: Matthew Schenker on July 19, 2007, 11:32:29 AM
Help!!

I was using this mod just fine, then I upgraded to the new version for 1.1.3 and now I am getting errors!

During the installation, I get this error:
Execute Modification ./Themes/default/languages/index.english.php Test failed

If my members try to report a post, they get a screen with this error:
Parse error: syntax error, unexpected '*' in /home/festool/public_html/Sources/SendTopic.php on line 385

I really like this mod, but it no longer seems to work for 1.1.3.

I am trying to uninstall it, but I get another error:
This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.


Please help!
Title: Re: vReportBoard Mod
Post by: bbulldog on July 19, 2007, 03:50:51 PM
what is on line 385?

better still post a copy of you SendTopic.php

i think i know what up.

as for the language file, make sure this is changed

$txt['smf315'] = 'Use this function to inform the moderators and administrators of an abusive or wrongly posted message.<br /><i>Please note that your email address will be revealed to the moderators if you use this.</i>';


to

$txt['smf315'] = 'Use this function to inform the moderators and administrators of an abusive or wrongly posted message.';
$txt['report_solve'] = 'Solve/Unsolve';
$txt['permissionname_report_solve'] = 'Solve Reports';

Title: Re: vReportBoard Mod
Post by: Valodim on July 19, 2007, 04:25:43 PM
Quote from: bbulldog on July 18, 2007, 06:47:13 AM
looking at this i dont think you need to update, maybe only that with the 0.98 but not sure what that is

Not entirely true. This line here

Quote\\ 0.98
fixed missing slashes for query, props to bsd43.

is rather important, as it allowed SQL injection exploits before the upgrade. though it's really barely a risk, you need someone with quite some skill who really means it to find out what mods you use, and check if they are exploitable ;)
Title: Re: vReportBoard Mod
Post by: Matthew Schenker on July 19, 2007, 07:23:29 PM
bbulldog,
Thanks for helping out!

Below is a copy of my SendTopic.php file.  I see sections that clearly refer to the modification, but I'm no programmer so I'm not sure whether I should delete them or not!

Here it is:
<?php
/**********************************************************************************
* SendTopic.php                                                                   *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* The functions in this file deal with sending topics toa friend or
moderator, and those functions are:

void SendTopic()
- sends information about a topic to a friend.
- uses the SendTopic template, with the main sub template.
- requires the send_topic permission.
- redirects back to the first page of the topic when done.
- is accessed via ?action=sendtopic.

void ReportToModerator()
- gathers data from the user to report abuse to the moderator(s).
- uses the ReportToModerator template, main sub template.
- requires the report_any permission.
- uses ReportToModerator2() if post data was sent.
- accessed through ?action=reporttm.

void ReportToModerator2()
- sends off emails to all the moderators.
- sends to administrators and global moderators. (1 and 2)
- called by ReportToModerator(), and thus has the same permission
  and setting requirements as it does.
- accessed through ?action=reporttm when posting.
*/

// Send a topic to a friend.
function SendTopic()
{
global $topic$txt$db_prefix$context$scripturl$sourcedir;

// Check permissions...
isAllowedTo('send_topic');

// We need at least a topic... go away if you don't have one.
if (empty($topic))
fatal_lang_error(472false);

// Get the topic's subject.
$request db_query("
SELECT m.subject
FROM (
{$db_prefix}messages AS m, {$db_prefix}topics AS t)
WHERE t.ID_TOPIC = 
$topic
AND t.ID_FIRST_MSG = m.ID_MSG
LIMIT 1"
__FILE____LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error(472false);
$row mysql_fetch_assoc($request);
mysql_free_result($request);

// Censor the subject....
censorText($row['subject']);

// Sending yet, or just getting prepped?
if (empty($_POST['send']))
{
loadTemplate('SendTopic');
$context['page_title'] = sprintf($txt['sendtopic_title'], $row['subject']);
$context['start'] = $_REQUEST['start'];

return;
}

// Actually send the message...
checkSession();
spamProtection('spam');

// This is needed for sendmail().
require_once($sourcedir '/Subs-Post.php');

// Trim the names..
$_POST['y_name'] = trim($_POST['y_name']);
$_POST['r_name'] = trim($_POST['r_name']);

// Make sure they aren't playing "let's use a fake email".
if ($_POST['y_name'] == '_' || !isset($_POST['y_name']) || $_POST['y_name'] == '')
fatal_lang_error(75false);
if (!isset($_POST['y_email']) || $_POST['y_email'] == '')
fatal_lang_error(76false);
if (preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~'stripslashes($_POST['y_email'])) == 0)
fatal_lang_error(243false);

// The receiver should be valid to.
if ($_POST['r_name'] == '_' || !isset($_POST['r_name']) || $_POST['r_name'] == '')
fatal_lang_error(75false);
if (!isset($_POST['r_email']) || $_POST['r_email'] == '')
fatal_lang_error(76false);
if (preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]*@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~'stripslashes($_POST['r_email'])) == 0)
fatal_lang_error(243false);

// Emails don't like entities...
$row['subject'] = un_htmlspecialchars($row['subject']);

// And off we go!
sendmail($_POST['r_email'], $txt[118] . ': ' $row['subject'] . ' (' $txt[318] . ' ' $_POST['y_name'] . ')',
sprintf($txt['sendtopic_dear'], $_POST['r_name']) . "\n\n" .
sprintf($txt['sendtopic_this_topic'], $row['subject']) . ":\n\n" .
$scripturl '?topic=' $topic ".0\n\n" .
(!empty($_POST['comment']) ? $txt['sendtopic2'] . ":\n" $_POST['comment'] . "\n\n" '') .
$txt['sendtopic_thanks'] . ",\n" .
$_POST['y_name'], $_POST['y_email']);

// Back to the topic!
redirectexit('topic=' $topic '.0');
}

// Report a post to the moderator... ask for a comment.
function ReportToModerator()
{
global $txt$db_prefix$topic$modSettings$user_info$ID_MEMBER$context;

// You can't use this if it's off or you are not allowed to do it.
isAllowedTo('report_any');

// If they're posting, it should be processed by ReportToModerator2.
if (isset($_POST['sc']) || isset($_POST['submit']))
ReportToModerator2();

// We need a message ID to check!
if (empty($_GET['msg']) && empty($_GET['mid']))
fatal_lang_error(1false);

// For compatibility, accept mid, but we should be using msg. (not the flavor kind!)
$_GET['msg'] = empty($_GET['msg']) ? (int) $_GET['mid'] : (int) $_GET['msg'];

// Check the message's ID - don't want anyone reporting a post they can't even see!
$result db_query("
SELECT m.ID_MSG, m.ID_MEMBER, t.ID_MEMBER_STARTED
FROM (
{$db_prefix}messages AS m, {$db_prefix}topics AS t)
WHERE m.ID_MSG = 
$_GET[msg]
AND m.ID_TOPIC = 
$topic
AND t.ID_TOPIC = 
$topic
LIMIT 1"
__FILE____LINE__);
if (mysql_num_rows($result) == 0)
fatal_lang_error('smf232');
list ($_GET['msg'], $member$starter) = mysql_fetch_row($result);
mysql_free_result($result);

// If they can't modify their post, then they should be able to report it... otherwise it is illogical.
if ($member == $ID_MEMBER && (allowedTo(array('modify_own''modify_any')) || ($ID_MEMBER == $starter && allowedTo('modify_replies'))))
fatal_lang_error('rtm_not_own'false);

// Show the inputs for the comment, etc.
loadLanguage('Post');
loadTemplate('SendTopic');

// This is here so that the user could, in theory, be redirected back to the topic.
$context['start'] = $_REQUEST['start'];
$context['message_id'] = $_GET['msg'];

$context['page_title'] = $txt['rtm1'];
$context['sub_template'] = 'report';
}

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

// Check their session... don't want them redirected here without their knowledge.
checkSession();
spamProtection('spam');

// You must have the proper permissions!
isAllowedTo('report_any');

require_once($sourcedir . '/Subs-Post.php');

// Get the basic topic information, and make sure they can see it.
$_POST['msg'] = (int) $_POST['msg'];

$request = db_query("
SELECT m.subject, m.ID_MEMBER, m.posterName, mem.realName
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS mem ON (m.ID_MEMBER = mem.ID_MEMBER)
WHERE m.ID_MSG = $_POST[msg]
AND m.ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($subject, $member, $posterName, $realName) = mysql_fetch_row($request);
mysql_free_result($request);

if ($member == $ID_MEMBER)
fatal_lang_error('rtm_not_own', false);

$posterName = un_htmlspecialchars($realName) . ($realName != $posterName ? ' (' . $posterName . ')' : '');
$reporterName = un_htmlspecialchars($user_info['name']) . ($user_info['name'] != $user_info['username'] && $user_info['username'] != '' ? ' (' . $user_info['username'] . ')' : '');
$subject = un_htmlspecialchars($subject);

// Get a list of members with the moderate_board permission.
require_once($sourcedir . '/Subs-Members.php');
$moderators = membersAllowedTo('moderate_board', $board);

$request = db_query("
SELECT ID_MEMBER, emailAddress, lngfile
FROM {$db_prefix}members
WHERE ID_MEMBER IN (" . implode(', ', $moderators) . ")
AND notifyTypes != 4
ORDER BY lngfile", __FILE__, __LINE__);

// Check that moderators do exist!
if (mysql_num_rows($request) == 0)
fatal_lang_error('rtm11', false);

// Send every moderator an email.
while ($row = mysql_fetch_assoc($request))
{
loadLanguage('Post', empty($row['lngfile']) || empty($modSettings['userLanguage']) ? $language : $row['lngfile'], false);

// Send it to the moderator.
sendmail($row['emailAddress'], $txt['rtm3'] . ': ' . $subject . ' ' . $txt['rtm4'] . ' ' . $posterName,
sprintf($txt['rtm_email1'], $subject) . ' ' . $posterName . ' ' . $txt['rtm_email2'] . ' ' . (empty($ID_MEMBER) ? $txt['guest'] . ' (' . $user_info['ip'] . ')' : $reporterName) . ' ' . $txt['rtm_email3'] . ":\n\n" .
$scripturl . '?topic=' . $topic . '.msg' . $_POST['msg'] . '#msg' . $_POST['msg'] . "\n\n" .
$txt['rtm_email_comment'] . ":\n" .
$_POST['comment'] . "\n\n" .
$txt[130], $user_info['email']);
}
mysql_free_result($request);

// 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();

// You must have the proper permissions!
isAllowedTo('report_any');

include_once($sourcedir '/Subs-Post.php');

if(empty($modSettings['report_board']))
fatal_lang_error('rtm_noboard');

if($board == $modSettings['report_board'])
fatal_lang_error('rtm_reportboard');

// Get the basic topic information, and make sure they can see it.
$_POST['msg'] = (int) $_POST['msg'];

// fetch quote and stuff
$request db_query("
SELECT m.ID_MEMBER, m.posterName, mem.realName, m.posterTime, m.subject, m.body
FROM 
{$db_prefix}messages AS m
LEFT JOIN 
{$db_prefix}members AS mem ON (m.ID_MEMBER = mem.ID_MEMBER)
WHERE m.ID_MSG = 
$_POST[msg]
AND m.ID_TOPIC = 
$topic
LIMIT 1"
__FILE____LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($member$posterName$realName$mdate$form_subject$form_message) = mysql_fetch_row($request);
mysql_free_result($request);

if ($member == $ID_MEMBER)
fatal_lang_error('rtm_not_own'false);

$form_message preg_replace('~<br(?: /)?' '>~i'"\n"$form_message);

// Remove any nested quotes, if necessary.
if (!empty($modSettings['removeNestedQuotes']))
$form_message preg_replace(array('~\n?\[quote.*?\].+?\[/quote\]\n?~is''~^\n~''~\[/quote\]~'), ''$form_message);
// and replace all img tgs by url tags
$form_message preg_replace('/\[img\](.+?)\[\/img\]/is''[url]\1[/url]'$form_message);
// Add a quote string on the front and end.
$form_message '[quote author=' $posterName ' link=topic=' $topic '.msg' $_POST['msg'] . '#msg' $_POST['msg'] . ' date=' $mdate ']' "\n" $form_message "\n" '[/quote]';

// some parsing
$message htmlspecialchars($_POST['comment'], ENT_QUOTES) . "\n\n" $form_message;
preparsecode($message);

        
// we need to know :)
$query db_query("
SELECT countPosts
FROM 
{$db_prefix}boards
WHERE ID_BOARD = 
$modSettings[report_board]"__FILE____LINE__);
if(mysql_num_rows($query) > 0)
                list(
$countPosts) = mysql_fetch_row($query);


// set up all options
$msgOptions = array(
'id' => 0,
'subject' => '[' addslashes($board_info['name']) . '] ' addslashes($form_subject),
'body' => $message,
'icon' => 'unsolved',
'smileys_enabled' => true,
'attachments' => array(),
);
$topicOptions = array(
'id' => 0,
'board' => $modSettings['report_board'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'mark_as_read' => false,
);
$posterOptions = array(
'id' => $ID_MEMBER,
'name' => $user_info['username'],
'email' => $user_info['email'],
// do reports count as posts?
'update_post_count' => !empty($countPosts),
);

// and post!
createPost($msgOptions$topicOptions$posterOptions);

// Back to the board! (you probably don't want to see the post anymore..)
redirectexit('board=' $board '.0');

}

// Solves/Unsolves a topic.
function SolveTopic()
{
global $db_prefix$modSettings$board$topic$sourcedir;

// make sure they may do this!
isAllowedTo('report_solve');

// solving only in the report board! we don't need a permission check, everyone who has access here can solve.
if($board != $modSettings['report_board'])
fatal_lang_error('rtm_solveoutside');

// Just quit if there's no topic to lock.
if (empty($topic))
fatal_lang_error(472false);

// It's a toggle action, so get current status
$request db_query("
SELECT m.ID_MSG, m.icon
FROM 
{$db_prefix}topics as t, {$db_prefix}messages as m
WHERE t.ID_TOPIC = 
$topic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1"
__FILE____LINE__);
list ($msg$icon) = mysql_fetch_row($request);
mysql_free_result($request);

$icon = ($icon == 'unsolved') ? 'solved' 'unsolved';

// Actually lock the topic in the database with the new value.
db_query("
UPDATE 
{$db_prefix}messages
SET icon = '
$icon'
WHERE ID_MSG = 
$msg
LIMIT 1"
__FILE____LINE__);

// Always log this.
logAction('solve', array('topic' => $topic));

// Back to the board!
redirectexit('board=' $board '.0');

}

?>
Title: Re: vReportBoard Mod
Post by: lematt on July 24, 2007, 02:43:12 AM
Request excuse me, but n have not even idea of English. I speak across google.

how can I do to bring my own messages?

If I bring my messages, this goes out for me:

    "You can\'t report your own post to the moderator, that doesn\'t make sense"

and to mark the brought post?


Thank you for de "mod"

Title: Re: vReportBoard Mod
Post by: SlammedDime on July 24, 2007, 04:05:51 AM
Why would you want to report your own message?  Create a test account and report your message from the test account.
Title: Re: vReportBoard Mod
Post by: lematt on July 24, 2007, 08:22:23 AM
Quote from: Matt @ ARTcom on July 24, 2007, 04:05:51 AM
Why would you want to report your own message?  Create a test account and report your message from the test account.

I need that anyone could bring a message, included the proper ones, but thanks for the suggestion
Title: Re: vReportBoard Mod
Post by: Flying Drupalist on July 24, 2007, 06:21:40 PM
Yikes! It fails on managepermissions...
Title: Re: vReportBoard Mod
Post by: lematt on July 24, 2007, 07:32:51 PM
Quote from: Miraploy on July 24, 2007, 06:21:40 PM
Yikes! It fails on managepermissions...

the foreign ones only
Title: Re: vReportBoard Mod
Post by: Col on July 25, 2007, 10:17:24 AM
Hi,

I can't work out where the problem lies.

I've installed the mod on SMF1.1.3 - nor errors reported. I use a theme based upon the the Default. The option to toggle solved/unsolved is not shown, but the space where it should display has been generated in the menubar. The files that are altered in the default theme are not used in my altered theme - the files from the default should therefore be used. Those files have the code modifications, including the English files. What am I missing?

Thanks.
Title: Re: vReportBoard Mod
Post by: bbulldog on July 26, 2007, 02:26:56 AM
Quote from: Matthew Schenker on July 19, 2007, 07:23:29 PM
bbulldog,
Thanks for helping out!

Below is a copy of my SendTopic.php file.  I see sections that clearly refer to the modification, but I'm no programmer so I'm not sure whether I should delete them or not!

Here it is:
that looks ok, is exactly the same as mine. am still looking into this
Title: Re: vReportBoard Mod
Post by: bbulldog on July 26, 2007, 02:46:44 AM
Quote from: Col on July 25, 2007, 10:17:24 AM
Hi,

I can't work out where the problem lies.

I've installed the mod on SMF1.1.3 - nor errors reported. I use a theme based upon the the Default. The option to toggle solved/unsolved is not shown, but the space where it should display has been generated in the menubar. The files that are altered in the default theme are not used in my altered theme - the files from the default should therefore be used. Those files have the code modifications, including the English files. What am I missing?

Thanks.
This sounds like a language file problem. Try adding the changes to all the themes language files
Title: Re: vReportBoard Mod
Post by: hmmrhd1 on August 07, 2007, 06:35:34 PM
I am having a problem I installed version 99 of this mod on forum version 1.1.2 it seemed to install fine and works as it should when I view the board as Admin but when it is viewed by either Global Mods or Forum mods they do not see the link at the end of the bar for solve/unsolve.

Any body have any idea what extra permission needs to be given for them to be able to see the link?

Edit Fixed added the lines to the managepermission.php and it is working now.
Title: Re: vReportBoard Mod
Post by: Col on August 08, 2007, 10:49:52 AM
Hi,

There's a small bug with this mod.

$txt['smf315'] = 'Use this function to inform the moderators and administrators of an abusive or wrongly posted message.'; is added to the language file instead of replacing $txt['smf315']. Obviously the uninstaller will need to be edited too.
Title: Re: vReportBoard Mod
Post by: hmmrhd1 on August 08, 2007, 01:21:22 PM
I was wondering does any one know how or if it is possible to set up another board that would use the same solve/unsolve function as this mod where it would work for any new posts ?

I run a tech support forum and I would like for the forum Mods to be able to toggle the solved icon once they have fixed the problem.
Title: Re: vReportBoard Mod
Post by: Defused on August 08, 2007, 04:54:55 PM
I read this thread, but got confused, im getting this error when clicking report to moderater:

Parse error: parse error, unexpected '*' in /home/content/d/e/f/defused/html/forums/Sources/SendTopic.php on line 385

i looked and its /*  ?? no sure what to do.

using 1.1.3 BTW.
Title: Re: vReportBoard Mod
Post by: Defused on August 09, 2007, 07:28:34 PM
^^^^^^^^^^^^^^
Not sure what the policy is on bumping, but its been over 24 hours, thanks!
Title: Re: vReportBoard Mod
Post by: Valodim on August 10, 2007, 04:45:54 AM
try replacing your SendTopic.php with this one (backup your old one!!)

it's the regular SendTopic.php version 1.1.3, with properly applied mod.
Title: Re: vReportBoard Mod
Post by: Col on August 10, 2007, 11:29:01 AM
Quote from: hmmrhd1 on August 08, 2007, 01:21:22 PM
I was wondering does any one know how or if it is possible to set up another board that would use the same solve/unsolve function as this mod where it would work for any new posts ?

I run a tech support forum and I would like for the forum Mods to be able to toggle the solved icon once they have fixed the problem.

Assuming that your moderators can edit member posts, all they need do is edit the opening post to choose a different symbol. This would have the advantage of the person who started the thread could also mark the thread as solved. You can add new symbols in Admin >> Smileys and Message Icons >> check Enable customized message icons >> Edit Message Icons.

Simply add (upload) the icons you'd like. Maybe not not as seemless as you'd like, but it will do job.
Title: Re: vReportBoard Mod
Post by: Defused on August 10, 2007, 12:31:41 PM
Quote from: Valodim on August 10, 2007, 04:45:54 AM
try replacing your SendTopic.php with this one (backup your old one!!)

it's the regular SendTopic.php version 1.1.3, with properly applied mod.
I get this error when using he SendTopic you provided.
Thanks for the reply, I really like this mod and hope to get it working soon!

Parse error: parse error, unexpected '*' in /home/content/d/e/f/defused/html/forums/Sources/SendTopic.php on line 385
Title: Re: vReportBoard Mod
Post by: Defused on August 10, 2007, 01:48:45 PM
Actually im getting this now:

Reporting is currently disabled. Please try again later, or contact the forum administrator.

Where do I enable?
Title: Re: vReportBoard Mod
Post by: Valodim on August 10, 2007, 03:50:49 PM
...read the readme?
Title: Re: vReportBoard Mod
Post by: Abangyarudo on August 10, 2007, 05:16:34 PM
Quote from: Defused on August 10, 2007, 01:48:45 PM
Actually im getting this now:

Reporting is currently disabled. Please try again later, or contact the forum administrator.

Where do I enable?

its in the admin panel under features and options. Click the check box to enable reporting of personal messages. (if you want that to be able to be reported. and set the board id where ya want the reports to find out the board id just go to that board and ya should see a number ontop put that in the board id for reporting messages. I think thats it but I installed it a long time ago.
Title: Re: vReportBoard Mod
Post by: MoreBloodWine on August 14, 2007, 06:23:37 PM
Does this work with PM's that people report? If so this mod will rock on my forum lol...
Title: Re: vReportBoard Mod
Post by: Abangyarudo on August 14, 2007, 10:25:41 PM
Quote from: MoreBloodWine on August 14, 2007, 06:23:37 PM
Does this work with PM's that people report? If so this mod will rock on my forum lol...

I believe theres an option in features and options that allows ya to enable pm reporting
Title: Re: vReportBoard Mod
Post by: MoreBloodWine on August 15, 2007, 01:08:57 AM
Well i know pm reporting can be enabled in the forum by default... But what im hoping is that this mod works with the report pm in the sense that it posts the pms reported to a specified board like it does with posts while at the same time disabling the emails sent to mods / admins when someone reports something. Im only asking because im funny about installing mods without knowing if they do what i want them to do. So if someone can actually test / confirm if this mod does work with reporting pms like it does with posts then that would be great and much appreciated.
Title: Re: vReportBoard Mod
Post by: Valodim on August 15, 2007, 11:41:41 AM
UPDATE TIME

- added pm reporting to board, seperate or same as post reports
- consequent reports of the same post are posted as replies instead of new threads in the report forum
- added option (by permission) to show a marker of reported posts in message view, and their solve status
- added "solve" image for classic theme


MoreBloodWine: YES, with this update what you want is possible :)
Title: Re: vReportBoard Mod
Post by: dxyy on August 15, 2007, 01:25:16 PM
Quote from: Valodim on August 15, 2007, 11:41:41 AM
UPDATE TIME

- added pm reporting to board, seperate or same as post reports
- consequent reports of the same post are posted as replies instead of new threads in the report forum
- added option (by permission) to show a marker of reported posts in message view, and their solve status
- added "solve" image for classic theme


MoreBloodWine: YES, with this update what you want is possible :)
Thanks, I just downloaded the latest version and will be installing it soon. :)
Title: Re: vReportBoard Mod
Post by: dxyy on August 15, 2007, 01:29:03 PM
Shucks, I got the following error message:

QuoteDatabase Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE TABLE `smf_log_reports` (
`ID_REPORT` mediumint(8) unsigned NO' at line 1
File: /home/daxueyin/public_html/finalforumtest/Packages/temp/install.php
Line: 21

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.3, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.

I'm no expert, so any ideas?
Title: Re: vReportBoard Mod
Post by: Valodim on August 15, 2007, 08:47:17 PM
redownload package and try again, please. screwed up in the table creation process ;)
Title: Re: vReportBoard Mod
Post by: dxyy on August 15, 2007, 11:37:57 PM
Quote from: Valodim on August 15, 2007, 08:47:17 PM
redownload package and try again, please. screwed up in the table creation process ;)
Will do, I'll let you know how it works out.

Thanks for the great mod. :)
Title: Re: vReportBoard Mod
Post by: dxyy on August 16, 2007, 07:18:45 AM
Great, it seems to be working well.
Thanks again! :)
Title: Re: vReportBoard Mod
Post by: HecKel on August 16, 2007, 10:23:55 PM
Quote from: Valodim on August 15, 2007, 11:41:41 AM
UPDATE TIME

- added pm reporting to board, seperate or same as post reports
- consequent reports of the same post are posted as replies instead of new threads in the report forum
- added option (by permission) to show a marker of reported posts in message view, and their solve status
- added "solve" image for classic theme


MoreBloodWine: YES, with this update what you want is possible :)

Can you add screenshots off the reported posts and the threads with more than one report to ModPage, please?

HecKel
Title: Re: vReportBoard Mod
Post by: ES23 on August 19, 2007, 11:13:53 AM
Hi!

I've installed extend sticky topics mods and some other mods previously and my display.php has been modified so installing this actually shows 'test failed' for my display.php .Tot of installing manually but that's one part under display.php you needa replace but it's hard to determine how to modify that replace part because there are other variables present and the part that needa be replace is different from mine.

I've attached my display.php file in this post .Can someone advise me how to go about making the modification for the replacement part.Any help is appreciated.

Thanks in advance :)
Title: Re: vReportBoard Mod
Post by: Valodim on August 24, 2007, 11:47:54 AM
ES23: too lazy, not now >_<

more supdate!
- added totally neat quicksolve feature. reports can be solved by ctrl-clicking the [ report ] marker :)
- removed "which admin do you want to report to" if reporting pms to a board is enabled
Title: Re: vReportBoard Mod
Post by: kill3r on August 26, 2007, 04:28:44 AM
Great mod. thanks for coding

I m getting this error whenever someone reports a post. any idea???

http://mysite/mysite/index.php?action=reporttm;topic=1.0
2: Missing argument 3 for db_query(), called in C:\wamp\www\mysite\Sources\SendTopic.php on line 349 and defined
File: C:\wamp\www\mysite\Sources\Subs.php
Line: 238


http://mysite/mysite/index.php?action=reporttm;topic=1.0
2: Missing argument 2 for db_query(), called in C:\wamp\www\mysite\Sources\SendTopic.php on line 349 and defined
File: C:\wamp\www\mysite\Sources\Subs.php
Line: 238


plz help....
Title: Re: vReportBoard Mod
Post by: Valodim on August 26, 2007, 08:41:55 AM
...I fixed that one in the last version, you sure you using the latest? :P
Title: Re: vReportBoard Mod
Post by: kill3r on August 26, 2007, 10:08:31 AM
Quote from: Valodim on August 26, 2007, 08:41:55 AM
...I fixed that one in the last version, you sure you using the latest? :P

nope, i was using 1.0 version :P . sorry didnt know about the update.

Now, no errors in 1.0.1. thank you :D
Title: Re: vReportBoard Mod
Post by: kill3r on August 26, 2007, 04:06:32 PM
okey, need a little more help on installing this on my working forum.

This mod is conflicting with some other mods say "reason for editing". I thought of adding this manually.

I applied this mod, though it showed a test failed for managepermissions.php. Now when i tried to edit this manually, i found two instances of the following code.


'pm_send',


i need to add the following code after the one shown above.


'report_solve',


Now the problem is, Do i need to add the code 'report_solve', after both the instances of 'pm_send', ???????

Plz help... thanks.
Title: Re: vReportBoard Mod
Post by: ArkServer on August 26, 2007, 07:33:06 PM
Two files fail:

4.     Execute Modification     ./Sources/PersonalMessage.php     Test failed
5.    Execute Modification    ./Sources/Display.php    Test failed

are these hard to edit?
Title: Re: vReportBoard Mod
Post by: Valodim on August 27, 2007, 11:35:24 AM
Quote from: kill3r on August 26, 2007, 04:06:32 PM
Plz help... thanks.

both instances :)

arkserver: uh... kinda. do you have other mods with similar functionality installed?
Title: Re: vReportBoard Mod
Post by: ArkServer on August 28, 2007, 05:00:01 AM
Quote from: Valodim on August 27, 2007, 11:35:24 AM
Quote from: kill3r on August 26, 2007, 04:06:32 PM
Plz help... thanks.

both instances :)

arkserver: uh... kinda. do you have other mods with similar functionality installed?

Mod Name     Version     
1.    View Single PM    1.1    [ Uninstall ] [ List Files ] [ Delete ]
2.    Seo 4 SMF    0.2.9.6    [ Uninstall ] [ List Files ] [ Delete ]
3.    vReportBoard Mod    1.01    [ Apply Mod ] [ List Files ] [ Delete ]
4.    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
5.    cbi, 1.0    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
6.    Users Online Today Mod    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    Topic Ratings    1.03    [ Apply Mod ] [ List Files ] [ Delete ]
8.    SMF Poll Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    GoogleTagged    1.0    [ Uninstall ] [ List Files ] [ Delete ]
10.    Topic description    1.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    Link Thumbnail    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    GeSHiSmf    0.1.3    [ Uninstall ] [ List Files ] [ Delete ]
13.    TinyPortal    0.983    [ Uninstall ] [ List Files ] [ Delete ]
14.    Spoiler Tag    0.3.2    [ Uninstall ] [ List Files ] [ Delete ]
15.    Reg Bar    1.0    [ Uninstall ] [ List Files ] [ Delete ]
16.    Tagging System    1.0.3    [ Uninstall ] [ List Files ] [ Delete ]
17.    Custom Board Sort    1.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    Sticky First Post (extends sticky topic)    1.3.2    [ Uninstall ] [ List Files ] [ Delete ]
19.    Welcome Topic Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]

I believe one of them conflicts with the mod. :(
Title: Re: vReportBoard Mod
Post by: xXxMetaSoulxXx on August 30, 2007, 09:15:48 AM
I have this problem:
   Execute Modification     ./Sources/SendTopic.php     Test failed
Everything else says successful, but not this.

I have 1.1.3 and these Mods Installed:
   Mod Name     Version     
1.    Hide button    1.0    [ List Files ] [ Delete ]
3.    Custom Profile Field Mod    3.16    [ Uninstall ] [ List Files ] [ Delete ]
4.    Registered Links    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    TinyPortal    0.983    [ Uninstall ] [ List Files ] [ Delete ]
6.    View Only Boards    1.1    [ Uninstall ] [ List Files ] [ Delete ]
7.    vReportBoard Mod    1.01    [ Apply Mod ] [ List Files ] [ Delete ]
   
Title: Re: vReportBoard Mod
Post by: Valodim on September 02, 2007, 04:53:18 PM
minor bugfix update :)

metasoul: those mods should not interfere. just replace your SendTopic.php with the original one (from the smf installation archive) and try again.
Title: Re: vReportBoard Mod
Post by: xXxMetaSoulxXx on September 02, 2007, 11:20:20 PM
Don't know what it was but inserting another one made it work. Thanks.
Title: Re: vReportBoard Mod
Post by: CiOooo on September 03, 2007, 03:23:01 PM
i have a problem about the VReportBoard mod.

when a report is posted to related board with "report moderator" button, the related message which reported from the user,is being shown in the recent posts.

i want that all users can see the board link in mainpage but i dont want that all users cant see the reported message in recent posts.

Only problem is "showing reported post in recent posts"

How can we solve this?

I guess, i will delete a small code group which serves the reported post to the recent posts group at mainpage.(i guess this file SendTopic.php)
Title: Re: vReportBoard Mod
Post by: Valodim on September 03, 2007, 06:10:15 PM
won't work that way.

go to recent.php, find this code block

$request = db_query("
SELECT
m.posterTime, m.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG,
IFNULL(mem.realName, m.posterName) AS posterName, t.ID_BOARD, b.name AS bName,
LEFT(m.body, 384) AS body, m.smileysEnabled
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE m.ID_MSG >= " . max(0, $modSettings['maxMsgID'] - 20 * $showlatestcount) . "
AND t.ID_TOPIC = m.ID_TOPIC
AND b.ID_BOARD = t.ID_BOARD" . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? "
AND b.ID_BOARD != $modSettings[recycle_board]" : '') . "
AND $user_info[query_see_board]
ORDER BY m.ID_MSG DESC
LIMIT $showlatestcount", __FILE__, __LINE__);

and before the AND $user_info[query_see_board], add a line

AND b.ID_BOARD != $modSettings[report_board]

that way the report board won't be shown in these posts.
Title: Re: vReportBoard Mod
Post by: CiOooo on September 03, 2007, 08:27:13 PM
Quote from: Valodim on September 03, 2007, 06:10:15 PM
won't work that way.

go to recent.php, find this code block

$request = db_query("
SELECT
m.posterTime, m.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG,
IFNULL(mem.realName, m.posterName) AS posterName, t.ID_BOARD, b.name AS bName,
LEFT(m.body, 384) AS body, m.smileysEnabled
FROM ({$db_prefix}messages AS m, {$db_prefix}topics AS t, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE m.ID_MSG >= " . max(0, $modSettings['maxMsgID'] - 20 * $showlatestcount) . "
AND t.ID_TOPIC = m.ID_TOPIC
AND b.ID_BOARD = t.ID_BOARD" . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? "
AND b.ID_BOARD != $modSettings[recycle_board]" : '') . "
AND $user_info[query_see_board]
ORDER BY m.ID_MSG DESC
LIMIT $showlatestcount", __FILE__, __LINE__);

and before the AND $user_info[query_see_board], add a line

AND b.ID_BOARD != $modSettings[report_board]

that way the report board won't be shown in these posts.

it was critical solution shot man

Tnx 4 all ;)
Title: Re: vReportBoard Mod
Post by: JaGuR123 on September 04, 2007, 08:36:41 AM
Thanks Great Mod , works great   !!!
Any chance of adding some more moderating features, lots of people would love them ;)
I Would love to be able to have the option to delete a Thread with out actually deleting it , but instead post a reason next to the thread title for it being deleted, and remove the link to the thread to regular members but still allow moderators and admins to still view the thread so they can make comment on it.
I feel it would make for a more transparent forum where all moderators can check and see if they believed there was real enough reason to delete it, and other members can view the thread title deleted and the reason for deleting it.
What do you think, i would pay for a mod like this   :D
my forum is www.racehorsetalk.com.au
Title: Re: vReportBoard Mod
Post by: wesleyuk on September 06, 2007, 04:21:20 PM
just installed this mod, how can i enable it? SMF 1.1.3 with default theme, no MOD/theme installed

looked in features and options, cant find it!
Title: Re: vReportBoard Mod
Post by: Valodim on September 07, 2007, 07:14:47 AM
Quote from: wesleyuk on September 06, 2007, 04:21:20 PM
looked in features and options, cant find it!

look harder :P

Quote
I Would love to be able to have the option to delete a Thread with out actually deleting it , but instead post a reason next to the thread title for it being deleted, and remove the link to the thread to regular members but still allow moderators and admins to still view the thread so they can make comment on it.

very feasible, but isn't the recycled thread feature enough for that?
Title: Re: vReportBoard Mod
Post by: JaGuR123 on September 07, 2007, 07:38:49 AM
Quote from: Valodim on September 07, 2007, 07:14:47 AM
very feasible, but isn't the recycled thread feature enough for that?

Might be if i knew what i was :(

Haven't come across anything in my SMF installation ( only been using it around 3 months) and did a search for it in the SMF community to no avail Ok found it , but no not what i was looking for was hoping to keep the deleted topic in it's original place

I just like the idea of the moderators not being able to delete stuff for the hell of it and having to give a reason to the forum members for doing so .... if it turns out that a thread has been deleted and shouldn't of been through another moderator seeing the deleted thread or even a forum member then it can be reinstated with out it actually being lost.

My idea  would be to have the thread title link grayed out and not linkable (except to moderators and maybe the thread poster so he or she could maybe change it ) and a reason for it being deleted. and maybe carry this through to single posts inside of a thread.

I am no coding guru , but i might have a bit of a play and see what i can come up with , unless somebody comes to my rescue and does it for me ...  as i doubt i will have the ability :(

Thanks

Title: Re: vReportBoard Mod
Post by: Neorics on September 18, 2007, 12:29:11 PM
how come this aint working for the mod parser?
Title: Re: vReportBoard Mod
Post by: Valodim on September 18, 2007, 06:45:34 PM
...what?
Title: Re: vReportBoard Mod
Post by: Neorics on September 19, 2007, 06:40:32 AM
http://modparser.dev.dansoftaustralia.net/

when i upload it there it doesnt seem to work

nvm problem solved

great mod btw
Title: Re: vReportBoard Mod
Post by: Valodim on September 19, 2007, 06:40:41 PM
good to hear.

thanks :)
Title: Re: vReportBoard Mod
Post by: Neorics on September 23, 2007, 01:39:07 PM
here is a challenge... well at least for me it is...

i want a button beside the report to moderator button and i already did that... hehe

i wanted to make that button do the same function as the report to moderator button so i just copied the code:

note: what i meant by the same function as the report button is it would do the same thing if you click the report button when vreportboard mod is installed

if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> &nbsp;';


and replace it with:
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '"><img src="link here"></img></a> &nbsp;';


then the button has the same function, now for what i really want

what i really want is to change the template of what shows after you click the new button, well not the complete template but the texts on that template

i'm thinking i can do that if i make a custom action similar to the reporttm action so that instead of:
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '"><img src="link here"></img></a> &nbsp;';


i'll replace it with:
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=custom_action;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '"><img src="link here"></img></a> &nbsp;';


then copy the php source of the report script and the template then modify the php source for the new custom action and edit the texts on the template file.

now what i want to know is that... will this work? and what are the files i need to edit? will the custom action mod work for this?

i attached some pictures to show what the button looks like and what report template i'm talking about that i want to edit the texts in
Title: Re: vReportBoard Mod
Post by: Valodim on September 23, 2007, 06:24:27 PM
simple stuff.

what you thought above was correct, but it's easier to just use an empty indicator parameter. like
index.php?action=reporttm;buy;topic=12345.0;msg=529735

go to SendTopic.template.php, copy&paste the whole function template_report and name the new one template_whatever

now open up SendTopic.php, and replace this line

$context['sub_template'] = 'report';

with this
Quote
   $context['sub_template'] = isset($_REQUEST['buy']) ? 'whatever' : 'report';

that way, when "buy" is in the request string, it will show the "whatever" template instead of "report"
Title: Re: vReportBoard Mod
Post by: Neorics on September 24, 2007, 08:32:02 AM
ok i got a few more questions just to clear things out

you know after a post is reported there is a [reported] that shows on top of the post... is it possible to edit to say something else if they used the buy button but it would still show [reported] if the post is reported to moderator?

btw how do you know if the post had been resolved already from the original post? will the [reported] word will be on that post forever? is it possible so that the [reported] button would not show if the check mark is already applied?

also i want  to edit the template of what shows when the user click the buy button on his own post
Title: Re: vReportBoard Mod
Post by: Paracelsus on October 02, 2007, 04:36:35 AM
Just a small question:

When Moderator (not Global Mod) there isn't any "Solve Report" option in Permissions... so my question is: can Moderators solve reports or is it just limited to Global Mods and Admins?
Title: Re: vReportBoard Mod
Post by: Valodim on October 04, 2007, 03:05:56 PM
solving permissions is a global permission, which moderators cannot have since they are board-specific.
Title: Re: vReportBoard Mod
Post by: HecKel on October 12, 2007, 09:01:00 AM
Hi!

I had a problem with this mod, the previous version didn't had an uninstall..., I had to uninstall manually but SMF continues to "think" that this mod still installed, then I tried to install the new version and once again I had problems with strings.

A lot of work for nothing...

How can I "tell" SMF that that MOD isn't installed anymore? Is any XML that I had to change?

I want to clean this mod from my forum, totality. After that I'll install again the new version...

EDIT: Ignore this, already done ;)
Title: Re: vReportBoard Mod
Post by: HecKel on October 19, 2007, 09:47:02 AM
Hi!

I notice one bug in this MOD!

My Reports Folder is configured to not count to post count, but WHO report one post, increase on postcount..., but who only reply to the report no (this is ok).

How to fixe this?
Title: Re: vReportBoard Mod
Post by: shacon on October 23, 2007, 10:59:48 AM
This is a great feature, but unfortunely I am new to SMF and using SMF ver. 1.1.4.  Is there something in the works to make it compatible with ver 1.1.4, if not could some kind person point me to something very similar to vReportBoard Mod?  Thank You Valodim for your efforts.

-shacon
Title: Re: vReportBoard Mod
Post by: HecKel on October 26, 2007, 08:24:32 AM
Quote from: HecKel on October 19, 2007, 09:47:02 AM
Hi!

I notice one bug in this MOD!

My Reports Folder is configured to not count to post count, but WHO report one post, increase on postcount..., but who only reply to the report no (this is ok).

How to fixe this?

Any news about this?
Title: Re: vReportBoard Mod
Post by: Valodim on November 05, 2007, 02:32:03 PM
it's probably compatible with 1.1.4 already, just call your package manager like this:
index.php?action=packages;version_emulate=1.1.3
and try it.

heckel: update_post_count is set according to the setting in the board... not sure what could cause that.. is it that important to your board structure? :P
Title: Re: vReportBoard Mod
Post by: HecKel on November 05, 2007, 04:16:24 PM
That is not REALY important..., but it sucks :P

When I delete that report, the postcount don't change 'cause that board is set to don't count the posts..., but when one member report some thread that counts...
Title: Re: vReportBoard Mod
Post by: DHC on November 07, 2007, 01:30:00 PM
Quote from: Valodim on November 05, 2007, 02:32:03 PM
it's probably compatible with 1.1.4 already, just call your package manager like this:
index.php?action=packages;version_emulate=1.1.3
and try it.

heckel: update_post_count is set according to the setting in the board... not sure what could cause that.. is it that important to your board structure? :P

I am using 1.1.4, and I tried to use the emulation back to 1.1.3, and it did NOT work.

I show errors in the Display.php and the ManagePermissions.php files.

It would be appreciated if this modification would be updated to be compatible with 1.1.4.

Thanks!
Title: Re: vReportBoard Mod
Post by: SlammedDime on November 07, 2007, 01:33:51 PM
Quote from: DHC on November 07, 2007, 01:30:00 PM
Quote from: Valodim on November 05, 2007, 02:32:03 PM
it's probably compatible with 1.1.4 already, just call your package manager like this:
index.php?action=packages;version_emulate=1.1.3
and try it.

heckel: update_post_count is set according to the setting in the board... not sure what could cause that.. is it that important to your board structure? :P

I am using 1.1.4, and I tried to use the emulation back to 1.1.3, and it did NOT work.

I show errors in the Display.php and the ManagePermissions.php files.

It would be appreciated if this modification would be updated to be compatible with 1.1.4.

Thanks!
It does work with 1.1.4... you most likely have another mod that already modified some parts of the code that this messes with, thus the errors.
Title: Re: vReportBoard Mod
Post by: DHC on November 07, 2007, 01:41:41 PM
Quote from: SlammedDime on November 07, 2007, 01:33:51 PM
Quote from: DHC on November 07, 2007, 01:30:00 PM
Quote from: Valodim on November 05, 2007, 02:32:03 PM
it's probably compatible with 1.1.4 already, just call your package manager like this:
index.php?action=packages;version_emulate=1.1.3
and try it.

heckel: update_post_count is set according to the setting in the board... not sure what could cause that.. is it that important to your board structure? :P

I am using 1.1.4, and I tried to use the emulation back to 1.1.3, and it did NOT work.

I show errors in the Display.php and the ManagePermissions.php files.

It would be appreciated if this modification would be updated to be compatible with 1.1.4.

Thanks!
It does work with 1.1.4... you most likely have another mod that already modified some parts of the code that this messes with, thus the errors.

OK. In any case, it does not work for me - unfortunately.
Title: Re: vReportBoard Mod
Post by: SlammedDime on November 07, 2007, 01:46:59 PM
You could install it manually.
Title: Re: vReportBoard Mod
Post by: Tramposch on November 07, 2007, 01:53:33 PM
i tried installing both versions through the package manager, and it says that the mod is not for my version -1.1.4- but it says its for 1.1.3, and others have said that they have it on 1.1.4
Title: Re: vReportBoard Mod
Post by: DHC on November 07, 2007, 01:55:20 PM
Quote from: SlammedDime on November 07, 2007, 01:46:59 PM
You could install it manually.

If I knew how, or wanted to learn - maybe. I *think* the whole purpose of the Package Manager is to make it *easy* (or relatively so) for someone to install modifications to the core system. Mostly it works well. Sometimes, as in this case, apparently, it does not.
Title: Re: vReportBoard Mod
Post by: Tramposch on November 07, 2007, 02:18:36 PM
yea, so i gotta manually install it now! yay for me!
Title: Re: vReportBoard Mod
Post by: Valodim on November 07, 2007, 03:21:00 PM
As said above, the mod works with 1.1.4, just not with your mods it appears. So you would have to do it manually one way or another.

uploaded a version with 1.1.4 compatibility flag :P
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 11, 2007, 09:21:37 PM
I have successsfully intalled on 1.1.4, package manager installed itself.
Title: Re: vReportBoard Mod
Post by: CAMPARi on November 14, 2007, 11:56:38 AM
Thank you for this mod. Works great on 1.1.4
Title: Re: vReportBoard Mod
Post by: rjayXD on November 16, 2007, 12:48:59 AM
is this working in 1.1.2??
Title: Re: vReportBoard Mod
Post by: Valodim on November 16, 2007, 01:41:16 PM
don't you think looking at the compatibility chart would be faster for you, and spare someone else the exercise to answer this?
Title: Re: vReportBoard Mod
Post by: [SAP]Francis on November 16, 2007, 08:50:44 PM
Nice but, when you report, you get one more post. -_-
Title: Re: vReportBoard Mod
Post by: shadow16 on December 06, 2007, 03:52:20 PM
Having some problems with this package...
It says it's installed but I can't find it anywhere, nothing in features and options and reporting threads do nothing.

If it helps, I'm not using the default theme.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 08, 2007, 10:18:51 AM
Quote from: [SAP]Francis on November 16, 2007, 08:50:44 PM
Nice but, when you report, you get one more post. -_-

Its easy to disable "count posts" in board settings if you want.


Quote from: shadow16 on December 06, 2007, 03:52:20 PM
Having some problems with this package...
It says it's installed but I can't find it anywhere, nothing in features and options and reporting threads do nothing.

If it helps, I'm not using the default theme.

be sure to set CHMOD 0777 related files will be patched. it says installed but its not install cause of permissions arent set. There should be settings in "Features and Options".
Title: Re: vReportBoard Mod
Post by: Eisenhorn on December 20, 2007, 11:27:53 AM
I just tried installing this mod on my SMF 1.1.4 with TP 0.98 and it failed the check on Managepermissions.

Tried using the default one, still failed. Any ideas?

Edit : Figured my way around by manually modifying the file. Thanks (read through the 15 pages of stuff:D)
Title: Re: vReportBoard Mod
Post by: RickJ on January 07, 2008, 12:03:21 PM
I installed this mod (we're using 1.1.4) but I don't see a setting in Features and Options to tell it what board to post the reports in.

Am I missing something that's staring me in the face?  :-[
Title: Re: vReportBoard Mod
Post by: RickJ on January 07, 2008, 12:08:03 PM
PS.  I just did a test report using a test user...and after clicking Submit, the user gets an error...simply

"An Error Has Occurred!"
Title: Re: vReportBoard Mod
Post by: drgnfireinferno on January 10, 2008, 09:12:31 PM
You messed up on the modifications file. somewhere (more than one spot) you have a parse error. I found one. At the very end you put <</modification>.
Title: Re: vReportBoard Mod
Post by: RickJ on January 11, 2008, 07:57:40 AM
???
All I did was install it from the Packages page.  I did not edit any files. I've since uninstalled it realizing that there is more to do to make it work with our theme.
Title: Re: vReportBoard Mod
Post by: drgnfireinferno on January 11, 2008, 12:44:08 PM
Quote from: RickJ on January 11, 2008, 07:57:40 AM
???
All I did was install it from the Packages page.  I did not edit any files. I've since uninstalled it realizing that there is more to do to make it work with our theme.

That message wasn't directed towards you. It was directed towards the creator, Valodim.
Title: Re: vReportBoard Mod
Post by: shinji257 on January 24, 2008, 04:45:45 PM
There is a conflict between this mod and the akismet spam filter and reason for editing mods.  They both edit this section:

ID_MSG, icon, subject, posterTime, posterIP, ID_MEMBER, modifiedTime, modifiedName, body,
smileysEnabled, posterName, posterEmail,
ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead
FROM {$db_prefix}messages
WHERE ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);


So... mine actually looked like the following:
                $messages_request = db_query("
                        SELECT
                                ID_MSG, icon, subject, posterTime, posterIP, ID_MEMBER, modifiedTime, modifiedName, body, edit_reason,
                                smileysEnabled, posterName, posterEmail, spam,
                                ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead
                        FROM {$db_prefix}messages
                        WHERE ID_MSG IN (" . implode(',', $messages) . ")
{$spamclause}                   ORDER BY ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);


Based on a few assumptions as to how this code was being modified I found the following to be best but it isn't tested.  I'm just assuming it will work.  Guess I will find out when I go to bring up a post...

*steps away a bit*
Oops.  Looks like the akismet stuff is broken.  Now I need to figure out where {$spamclause} is going to so I can fix it.

EDIT:
Ok.  $spamclause is defined directly above the statement but I can't get it to work right...

                // ---- Begin Akismet Mod 1.0 ----
                // If 'spam=true' was passed as a GET variable, show spam messages. This is done straight after the spammer posts
                // Otherwise, don't show spam (normally).
                $spamclause = (!isset($_GET['spam'])) ? ' AND spam = 0' : '';
                // ---- End Akismet Mod 1.0 ----


I've tried re-defining spam as m.spam and different combinations but it seems that the issue is the sql query fails.  It seems that $spamclause just drops in an additional bit to the sql query that completely breaks it.  I took out the spam related checks and it finishes fine now but of course the message isn't being marked as spam anymore.

EDIT 2: I've rolled back all my mods including vReportBoard and took out Akismet Spam Blocking which is the conflicting modification.  I'll speak with the author of that mod about making it compatible with vReportBoard as it is the way it is inserted into the sql query that causes them to conflict.  Reason for Edit mod can be made compatible.  I'll post up the replacement code in a minute.  I'm still re-applying all the mods
Title: Re: vReportBoard Mod
Post by: shinji257 on January 24, 2008, 05:29:43 PM
Ok.  I'll just post this seperately.  This will make Reason for Editing mod and vReportBoard work with each other.  A small manual edit to Display.php is required before and after installation of vReportBoard.  If you do not do the first part of this then vReportBoard will not install properly (Display.php will not be changed).

Now then keep in mind to do these changes in reverse order if you intend of uninstalling vReportBoard.  Otherwise the uninstall will fail too.  This is not supported by the author of either vReportBoard or Reason for Editing mods and you take your own risk with this.  Backup your database and files before proceeding.

Prior to installation:

Display.php update to make vReportBoard and Reason for Edit to work together.

Find:
ID_MSG, icon, subject, posterTime, posterIP, ID_MEMBER, modifiedTime, modifiedName, body, edit_reason,

Replace with:
ID_MSG, icon, subject, posterTime, posterIP, ID_MEMBER, modifiedTime, modifiedName, body,


After installation:

Find:
m.ID_MSG, m.icon, m.subject, m.posterTime, m.posterIP, m.ID_MEMBER, m.modifiedTime, m.modifiedName, m.body,

Replace with:
m.ID_MSG, m.icon, m.subject, m.posterTime, m.posterIP, m.ID_MEMBER, m.modifiedTime, m.modifiedName, m.body, m.edit_reason
Title: Re: vReportBoard Mod
Post by: HecKel on January 25, 2008, 08:44:40 AM
Hey!

I've been using this MOD for some time, but now I have one "problem"..., some of my moderators don't appear on the community as they use to be, and they asked if there is any way that the reports comes to email too.

My idea is one new (profile) options to receive the reports on email or not, this can be done?

If not, how can I change the mod to send the reports to the email and to the board?
Title: Re: vReportBoard Mod
Post by: shinji257 on January 25, 2008, 06:36:46 PM
Ok.  Any way I can make local moderators have access to the forums where reports are getting posted?  Right now I have 3 groups that can take care of the reports.  Global Moderators, Jr. Administrators (like the admin but can't do everything in the admin panel), and Administrators.  I would like any local moderator to be able to check out and handle reports for their own forum if possible.  Global Moderator and Jr. Administrator status is something that will be earned over time but Moderator status to a local forum can be voted on probably.  Note my forum isn't done but I would like this ability if possible.  Emailing the local moderators along with the post is something I am willing to do as well instead of giving them access.  Oh and the Solve/Unsolve permissions can't be set for local moderators it seems.

EDIT: I figured it out.  Setup a new group named Moderator (or whatever you want) and give them permission to access those boards.  This group will contain all the local board moderators.  The group permissions should not contain any actual moderator permissions.  They will get this from the other Moderator entry that just does those items.  Then they will inherit it from being a board moderator.  When they go to a board they are not supposed to moderate they will not have any moderation permissions.  I would suggest setting up local permissions for the board where the reports will be going to.  This will allow you to control what is done in those specific boards.
Title: Re: vReportBoard Mod
Post by: shinji257 on January 28, 2008, 04:04:25 AM
Ok.  This one is a new reply here.

Bug report:  I found that vReportBoard apparently keeps track of the topic number a report is done to.  Therefore if the same post is reported it goes to the original report topic.  However there is a bug with that.  If the original topic report is deleted then the post report will end up attaching to a non-existent topic.  I did manage to reproduce this myself.

Mods currently installed:
1. SMF_Wordpress 1.09
2. Reason For Editing Mod 1.14
3. Seo 4 SMF 0.2.9.9
4. SMF Archive1.1
5. Board Viewers Mod 1.2
6. Global Announcements 1.0
7. Integrate Lightbox 1.4
8. PhpInfo 1.1
9. vReportBoard Mod 1.03
10.GeSHiSmf 0.1.4
11.Add PM Info To header (v1.0) 1.0
12.Admin Notepad 1.0
13.Member Notepad 1.0
14.Ad Revenue Sharing 1.2
15.Admin Lock Thread 1.2
16.Profil Moderator Managment 1.0.0
17.RSS Feed Icon 1.1

I had to do a small special step (as I posted above) to get the "Reason for Editing Mod" to work with vReportBoard.
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on January 28, 2008, 05:50:01 AM
I like the mod, but seems it just won't go through the package parser, so that I could try to translate this - or make it work with other themes... :(
Title: Re: vReportBoard Mod
Post by: HellForge on January 29, 2008, 09:20:50 AM
I'm having some really strange FTP error while installing this mod.
I downloaded it and was able to uppload it just fine, but when i'm about to apply the mod it says:

QuoteFTP Information Required
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
So i type in my FTP account information and choose "Proseed" but return to the same message.
The i figured wth so i started my FTP client and 777 the dir's affected but still can't install it.
Any ideas?

Edit: Forgot to include that i'm using SMF 1.1.4
Title: Re: vReportBoard Mod
Post by: drgnfireinferno on January 29, 2008, 09:58:38 AM
Quote from: HellForge on January 29, 2008, 09:20:50 AM
I'm having some really strange FTP error while installing this mod.
I downloaded it and was able to uppload it just fine, but when i'm about to apply the mod it says:

QuoteFTP Information Required
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
So i type in my FTP account information and choose "Proseed" but return to the same message.
The i figured wth so i started my FTP client and 777 the dir's affected but still can't install it.
Any ideas?

Edit: Forgot to include that i'm using SMF 1.1.4

This is something you should probably talk to your server host about.
Title: Re: vReportBoard Mod
Post by: HellForge on January 29, 2008, 11:27:43 AM
Quote from: drgnfireinferno on January 29, 2008, 09:58:38 AM
Quote from: HellForge on January 29, 2008, 09:20:50 AM
I'm having some really strange FTP error while installing this mod.
I downloaded it and was able to uppload it just fine, but when i'm about to apply the mod it says:

QuoteFTP Information Required
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
So i type in my FTP account information and choose "Proseed" but return to the same message.
The i figured wth so i started my FTP client and 777 the dir's affected but still can't install it.
Any ideas?

Edit: Forgot to include that i'm using SMF 1.1.4

This is something you should probably talk to your server host about.

Okay, i did that and they told me i should use an ftp client to edit the chmod... This is beginning to become a pain in the @£$#% for me.
Is it too much to ask for someone to make a quick guide on how to install this manually?
I'm not really that keen on php.
Title: Re: vReportBoard Mod
Post by: drgnfireinferno on January 29, 2008, 11:35:28 AM
open the modification file and search for the text within the search tags and do with it what it says. It's pretty straight forward.
Title: Re: vReportBoard Mod
Post by: HellForge on January 29, 2008, 02:16:08 PM
Okay I've managed to do all the file edits required, but i can't understand the sql stuff that needs to be done properly.
I'm still just beginning to learn all this stuff but just this once could someone please just spoon feed me with the queries needed?

I would really appreciate it!
Title: Re: vReportBoard Mod
Post by: Chriss Cohn on January 30, 2008, 11:14:50 AM
This is a outstanding mod and its working just perfect!!!!!
Thank you very much for this.... couldn't find any problem/issues so far and its working perfect even with SEF-URLS
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on January 30, 2008, 06:11:29 PM
Quote from: shinji257 on January 28, 2008, 04:04:25 AM
Ok.  This one is a new reply here.

Bug report:  I found that vReportBoard apparently keeps track of the topic number a report is done to.  Therefore if the same post is reported it goes to the original report topic.  However there is a bug with that.  If the original topic report is deleted then the post report will end up attaching to a non-existent topic.  I did manage to reproduce this myself.
I just found out about the same thing.

I use a board where deleted posts go to wait for me to check them,
and just noticed that if someone reports a post, that has already been reported, solved and the orig. report deleted - then the new report ends up with the deleted old one to the recycle -board.

Didn't try though, what would happen if the deleted old report would not be there anyore...

Was I clear enough? I'm a bit tired, sorry...
Title: Re: vReportBoard Mod
Post by: Mr.CoWbOy on February 05, 2008, 02:52:31 PM
Hello its very good mod tnx for it..

But i found a problem for turkish users.

<file name="$themedir/languages/index.turkish.php" error="skip">

<operation>
<search position="before"><![CDATA[
$txt['smf315'] = 'Bu mesaji yetkililere bildir.';]]></search>
<add><![CDATA[
$txt['smf315'] = 'Bu mesaji yetkililere bildir.';
$txt['report_solve'] = 'Çözüldü/Çözülmedi';
$txt['permissionname_report_solve'] = 'Çözülen Raporlar';]]></add>
</operation>


it s >>> <search position="before">
has to be >>> "replace"
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on February 11, 2008, 01:25:25 AM
Quote from: LexArma on January 30, 2008, 06:11:29 PM
Quote from: shinji257 on January 28, 2008, 04:04:25 AM
Ok.  This one is a new reply here.

Bug report:  I found that vReportBoard apparently keeps track of the topic number a report is done to.  Therefore if the same post is reported it goes to the original report topic.  However there is a bug with that.  If the original topic report is deleted then the post report will end up attaching to a non-existent topic.  I did manage to reproduce this myself.
I just found out about the same thing.

I use a board where deleted posts go to wait for me to check them,
and just noticed that if someone reports a post, that has already been reported, solved and the orig. report deleted - then the new report ends up with the deleted old one to the recycle -board.

Didn't try though, what would happen if the deleted old report would not be there anyore...

Was I clear enough? I'm a bit tired, sorry...
Ok, tried to delete the original report and make a new one of the same thing,
and the post got lost. Only way to find it is to use the "Find and repair errors" -tool in admin area. Any way to fix this?
Title: Re: vReportBoard Mod
Post by: Ramón Cutanda on February 23, 2008, 05:25:48 PM
Hi,

First of all, THANKS. Really big THANKS for such a useful mod like this

Secondly, a suggestion: I'd like to be able remove the [ reported ] sign just on SOME of the reported posts (just those I choose)

This is why: There are several reasons why a post may be reported in my forum. One of them is because the user that reads it thinks it's violent, sexually explicit, rude, and so on and so forth. For that purposes the mod is just great because it visually warns my users of the reported posts. Red means it has not been reviewed by mods yet and green means it has been approved my mods but, even though, SOME users may still find that content innapropiate. Because the post is marked as "possible innapropiate" we avoid many conflicts. The mod works just great for that. We have a new post in a mods board, we open a poll and discuss its content.

But there are other reasons such as having written in caps, in the wrong board, repeated the same topic several times... Once those posts have been marked as "reported" there is no way of removing that label. Or at least I have not been able to find the way (and I have read one by one the 16 pages of this thread) That's what I would like to do. To remove the mark [ reported ] in those posts in which mods have taken part and there is no longer need to warn the readers about anything wrong.  I would even be willing to pay for that.

Anyway, thanks a lot for such a great mod
Title: Re: vReportBoard Mod
Post by: Ramón Cutanda on February 24, 2008, 08:27:50 AM
Well... I think what I need should be quite easy to do. All reported messages are stored in the table smf_log_reports and that table only stores ID_REPORT, ID_MSG, ID_TOPIC and   solved. It should be easy to add a button next to the "Solved / Unsolved" for "Deleting report". It would look for ID_MSG and delete it from table smf_log_reports.

I would love to do it myself, but I'm not a coder. I manage somehow to surf the code and "guess" what this or that does, but I'm not able to do it by myself. Any help?

Thanks in advance
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on February 25, 2008, 01:08:03 AM
I haven't tested it actually, but I thought there was a group permission that set the visibility for those marks...
Title: Re: vReportBoard Mod
Post by: Ramón Cutanda on February 25, 2008, 04:52:51 AM
Quote from: LexArma on February 25, 2008, 01:08:03 AM
I haven't tested it actually, but I thought there was a group permission that set the visibility for those marks...

Thanks for the reply, but the idea is not to show the mark just to certain group of people but to choose WHICH of the marked posts should be visible to those very same groups.

Thanks anyway for the remark
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on February 25, 2008, 05:09:17 AM
Ok, misunderstood what you wanted, sorry I couldn't help.

EDIT: Wouldn't the Solved-label do the trick though? It tell's a post has been reported, and dealt with - and nothing wrong anymore.
Title: Re: vReportBoard Mod
Post by: Ramón Cutanda on February 25, 2008, 09:19:28 AM
Quote from: LexArma on February 25, 2008, 05:09:17 AM
EDIT: Wouldn't the Solved-label do the trick though? It tell's a post has been reported, and dealt with - and nothing wrong anymore.

I have no problem with the mod board, where all the reported posts are stored. The problem is with the open forum. Whenever a user reports a post the mark [ reported ] appears on it. That mark is red when it has not been reviewed/solved and green once mods have done their jobs. What I want is to be able so supress that mark ONLY in certain posts. Not all of them. For instance. A user reports a post that includes an innapropiate image/video. Then a mod does his job and deletes that content. After that there is no sense for me to have that post marked as [ reported ] The mods know when a post have been reviewed with the blu icon on the mod board. I hope to have got my meaning across. Thanks anyway for the suggesions!
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on February 26, 2008, 01:13:50 AM
Yep, now I understand what you mean - don't know how to do it though.. Hopefully someone else will be able to help you with that.
Title: Re: vReportBoard Mod
Post by: kripz on March 04, 2008, 05:38:26 AM
Is this still being updates?

If so is there a rough ETA on the next version?

I would hate to see a great mod die :(
Title: Re: vReportBoard Mod
Post by: JoshieDaMan on March 06, 2008, 10:50:49 AM
I am using a custom template. I need to figure where to put [reported] link for it to be solved as in quick-solve action. Any one know?
Title: Re: vReportBoard Mod
Post by: dillon on March 10, 2008, 10:51:33 AM
Are there any instructions on using this mod?  Sorry, I'm a noob.  Thanks
Title: Re: vReportBoard Mod
Post by: dillon on March 11, 2008, 12:06:10 PM
I have this mod installed and it's awesome.  I'm looking though for something that would allow the member who is reporting the post, to choose to either publicly do the report (through the topic) or so send it directly to the admin via pm.

Thanks
Title: Re: vReportBoard Mod
Post by: Antechinus on April 03, 2008, 03:50:00 AM
I've just installed this mod and it seems flawless. A couple of our themes lack the solve/unsolve button for staff, but the reporting function is fine. I'll sort the buttons at some point but in the meantime the staff just have to use one of the other themes if actually ticking off a post. No problem.

ETA: Actually let's do it. I want to install and link up a solve/unsolve button for the Helios and Mesh themes.
I'll dig out whatever files people want to see, but I haven't done this sort of thing before so I'd appreciate some help.
I have already made the button for Helios and Mesh uses text rather than an image.
Ijust need to know how to sort them so they're functioning.
Thanks.
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on April 03, 2008, 05:05:07 AM
You could just dig the modifications from the package with a package parser,
and apply the changes to your custom themes.

Would ofcourse mean coming up with suitable images for buttons as well. :)

http://www.smfhacks.com/smf-package-parser.html

And I have to point out, the mod is not flawless. If a report made from one topic is deleted, then all other reports from the same topic will get lost.... *sorry* This has been pointed out earlier in here, but I haven't noticed anyone coming up with a fix to this...
Title: Re: vReportBoard Mod
Post by: Antechinus on April 03, 2008, 06:05:27 AM
Yup, I already have the image I need. Made it this afternoon.
I also know about not deleting the original report. I've put that in the staff instructions.
As long as nobody does anything silly it should be fine.

Ok, package parser then.
Title: Re: vReportBoard Mod
Post by: Antechinus on April 03, 2008, 07:13:44 AM
Eh? It says it sent a file but I can't find it anywhere. Where is it supposed to send them?
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on April 03, 2008, 07:19:51 AM
Quote from: antechinus on April 03, 2008, 07:13:44 AM
Eh? It says it sent a file but I can't find it anywhere. Where is it supposed to send them?
Ok... The parser doesn't seem to show the edits for this package...
You'll just have to try and fish the changes from the install.xml

You can just open it with wordpad if you want...
Title: Re: vReportBoard Mod
Post by: Antechinus on April 03, 2008, 07:29:54 AM
Righty o. I did have a look at it earlier with Notepad but it looked like Swahili so I was hoping for an easy option. I'll go have another look tomorrow. Getting a bit late here now. Thanks. 
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on April 03, 2008, 07:37:48 AM
Notepad no good for that, really should try wordpad. :)
Title: Re: vReportBoard Mod
Post by: Valodim on April 03, 2008, 01:51:02 PM
Quote from: LexArma on April 03, 2008, 07:37:48 AM
Notepad no good for that, really should try wordpad. :)

...dude... >_<

Quote
If a report made from one topic is deleted, then all other reports from the same topic will get lost.... *sorry* This has been pointed out earlier in here, but I haven't noticed anyone coming up with a fix to this...

...what are you talking about? A report is a thread and treated as such :blank:
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on April 03, 2008, 01:59:46 PM
Quote from: Valodim on April 03, 2008, 01:51:02 PM
Quote from: LexArma on April 03, 2008, 07:37:48 AM
Notepad no good for that, really should try wordpad. :)

...dude... >_<

Quote
If a report made from one topic is deleted, then all other reports from the same topic will get lost.... *sorry* This has been pointed out earlier in here, but I haven't noticed anyone coming up with a fix to this...

...what are you talking about? A report is a thread and treated as such :blank:
Go ahead and try. A report creates a thread. Delete that thread, and make a new report from the same topic as the first one. You'll see.
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on April 03, 2008, 02:01:01 PM
Quote from: shinji257 on January 28, 2008, 04:04:25 AM
Ok.  This one is a new reply here.

Bug report:  I found that vReportBoard apparently keeps track of the topic number a report is done to.  Therefore if the same post is reported it goes to the original report topic.  However there is a bug with that.  If the original topic report is deleted then the post report will end up attaching to a non-existent topic.  I did manage to reproduce this myself.

This is what I'm talking about.
Title: Re: vReportBoard Mod
Post by: Valodim on April 03, 2008, 04:22:54 PM
A-ha. Right. Gonna fix.
Title: Re: vReportBoard Mod
Post by: Antechinus on April 03, 2008, 07:10:17 PM
Quote from: LexArma on April 03, 2008, 07:37:48 AM
Notepad no good for that, really should try wordpad. :)

Rofl. It was late and I was lazy with my typing. I should have written "Notepad++", which is very good for that.
I'm just rather new to file editing.



Valodim: since your mod works by intercepting emails how hard would it be to alter it so that all emails to the site address were routed to a selected board on the forum?

I mean so that if any member of the public emails the site admins it would show as a post.
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on April 04, 2008, 01:11:19 AM
Quote from: antechinus on April 03, 2008, 07:10:17 PM
Quote from: LexArma on April 03, 2008, 07:37:48 AM
Notepad no good for that, really should try wordpad. :)

Rofl. It was late and I was lazy with my typing. I should have written "Notepad++", which is very good for that.
I'm just rather new to file editing.



Valodim: since your mod works by intercepting emails how hard would it be to alter it so that all emails to the site address were routed to a selected board on the forum?

I mean so that if any member of the public emails the site admins it would show as a post.
Ok, I know Notepad++ as well, now that is one of the best pieces of software there is to read files like that. :)
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on April 04, 2008, 01:15:00 AM
Oh, and if I'm not mistaken this does not actually handle e-mail, but instead it changes the way a report is created. So no e-mail is involved.
Title: Re: vReportBoard Mod
Post by: SlammedDime on April 04, 2008, 03:36:11 AM
Quote from: antechinus on April 03, 2008, 07:10:17 PM
Quote from: LexArma on April 03, 2008, 07:37:48 AM
Notepad no good for that, really should try wordpad. :)

Rofl. It was late and I was lazy with my typing. I should have written "Notepad++", which is very good for that.
I'm just rather new to file editing.



Valodim: since your mod works by intercepting emails how hard would it be to alter it so that all emails to the site address were routed to a selected board on the forum?

I mean so that if any member of the public emails the site admins it would show as a post.
His mod doesn't intercept emails.  It completely rewrites the function for reporting posts so that it makes a topic, rather than shoots an email.
Title: Re: vReportBoard Mod
Post by: Antechinus on April 04, 2008, 03:38:56 AM
I'm getting one sight glitch with this mod.

Although the mod generally works well the array for [reported] isn't showing on the reported posts.
This appears to be the only flaw with Helios. The parser doesn't give a file for this mod.

Any clues?


Figured it out. All good now. I just had to take a short code stretch out of classic and paste it in.
Title: Re: vReportBoard Mod
Post by: sjmarsha on April 14, 2008, 09:01:21 AM
I just upgraded a friend's forum to 1.4 for them. They had been running this mod fine under 1.2. After I upgraded for them I reinstalled this mod and got no errors of any kind. However, there is nothing under Features and Options to do the settings. When I report a post to test it, they just get the emails. I tried to uninstall it to see if I could maybe reinstall to get it to work, but I got a Test Failed on everything. This was not a manual install, it was via the package manager and again, there were no "failed" errors when I installed. What should I do now?
Title: Re: vReportBoard Mod
Post by: malcomxar on April 15, 2008, 11:46:50 PM
Hey, GREAT MOD, i love it! (maybe cause i like vB :P)

Just a quick question, how can I make the "Solve/Unsolve" buttons.
I am not using the default theme. Using outline_TP

And an easier thing :
Is there a way that, instead of the title being "[Board] Post's title" to be "Board - Username"?

Help will be apreciated ;)
Title: Re: vReportBoard Mod
Post by: Erra on April 16, 2008, 06:44:56 AM
Quote from: sjmarsha on April 14, 2008, 09:01:21 AM
I just upgraded a friend's forum to 1.4 for them. They had been running this mod fine under 1.2. After I upgraded for them I reinstalled this mod and got no errors of any kind. However, there is nothing under Features and Options to do the settings. When I report a post to test it, they just get the emails. I tried to uninstall it to see if I could maybe reinstall to get it to work, but I got a Test Failed on everything. This was not a manual install, it was via the package manager and again, there were no "failed" errors when I installed. What should I do now?

I, too, get an error and neither did I manually install it.
When trying to use the report function, it says "An Error Has Occured" and there's a blank page.
Title: Re: vReportBoard Mod
Post by: Erra on April 16, 2008, 07:26:52 AM
here's the info:
8: Undefined index: rtm_reportboard
File: /forum/Sources/Errors.php
Line: 337
Title: Re: vReportBoard Mod
Post by: Antechinus on April 17, 2008, 08:10:48 PM
Quote from: malcomxar on April 15, 2008, 11:46:50 PM
Hey, GREAT MOD, i love it! (maybe cause i like vB :P)

Just a quick question, how can I make the "Solve/Unsolve" buttons.
I am not using the default theme. Using outline_TP

And an easier thing :
Is there a way that, instead of the title being "[Board] Post's title" to be "Board - Username"?

Help will be apreciated ;)
I can't help you with the title but making buttons is a piece of cake. Just use an online button generator and pick the style you prefer. If you want to avoid error messages in your server's log you'll have to use five buttons in total (as per the contents of the mod package).

Button generators can be found at:

Bloc's buttons (http://www.tinyportal.net/index.php?page=13)

Marco's buttons. (http://www.marcovanveelen.nl/buttongenerator/)

NetDenizen (http://www.netdenizen.com/buttonmill/glassy.php)

There are several other scattered around the web but these should do you.
Which reminds me, I must do these buttons for my copy of Outline.  :D
Using just the text array works but does generate errors in the server, although they wont show in the admin centre and don't appear to affect the running of the forum.
Title: Re: vReportBoard Mod
Post by: malcomxar on April 18, 2008, 03:27:33 PM
Thanks antechinus, but i think that i've expressed myself the wrong way :P
The thing is that I am not using the default theme, and the buttons solved/unsolved weren't disible in my template, and I just wanted to make them visible in it.
What I did was just
Search for
merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
Add after
'solve' => array('test' => 'can_solve', 'text' => 'report_solve', 'image' => 'solve.gif', 'lang' => true, 'url' => $scripturl . '?action=solve;topic=' . $context['current_topic']),

Anyway, your help was appreciated ^^
Title: Re: vReportBoard Mod
Post by: Antechinus on April 18, 2008, 06:36:15 PM
Ok cool. Some themes do require manual edits.

I run Outline_tp myself by the way and I found this mod installed without requiring any editing at all on my copy, so I'm  not sure why it didn't work on yours. Outline mostly just calls on default theme files anyway.

Title: Re: vReportBoard Mod
Post by: Snow Wolf on May 01, 2008, 08:03:56 PM
Do you plan on making this mod 1.5 compatible? I ask because I love this mod but when I upgraded it stoped working. I uninstalled and reinstalled and :


1.  Execute Modification  ./Sources/SendTopic.php  Test successful
2. Execute Modification ./Sources/ModSettings.php Test failed
3. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on May 02, 2008, 01:34:22 AM
I'm not a 100% sure, but I'd say it is 1.1.5 compatible.

I have been testing some of the mods I've used, on a fresh 1.1.5 installation yesterday,
and at least the following went in smoothly (with just perhaps changing the version information in the packages)


1. Load Standard Language 1.0.1
2. Admins Can Post As Alternative User 1.0
3. Auto Embed Video Clips 2.1.4
4. Anonymous Boards 0.3b
5. Case Insensitive Smileys 1.0 
6. Enable/Disable Themes 1.0.2
7. Googlebot & Spiders Mod 2.0.3
8. Karma Description Mod 2.3
9. Moderator Activity Report for SMF1.1.2 1.2
10. Member posts recount 0.5
11. vReportBoard Mod 1.03
12. Spoiler Tag 0.3.2


I have not yet had time to actually test if they work correctly though. :)
Title: Re: vReportBoard Mod
Post by: HecKel on May 02, 2008, 10:04:29 AM
I had no problems with the upgrading to 1.1.5 ;)
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on May 04, 2008, 02:43:03 AM
Hello,

An excellent MOD.  Thank you very much for creating it.

I have run into two items I hope can be sorted out:

1) I have set the boards for the reports to go to.  I clicked on "Notify" on each board.  This way I can be notified there is a new topic.  However, when I tested and created reports, I never got the alert from Notify.  Can you have the MOD act like a manually created new topic and send a Notify the way a manually created topic will?

2) One of our Global Mods uses her cell phone to access, using WAP and HTML without displaying images.  This means she can't see if reports are open or closed.  Is there any way to include text to indicate this, maybe "<+>" or "<->"?  Edit the subject line?

3) Is there a way to display a notice that reports are open and waiting?  Maybe in the header text block on each page?  Maybe on the "Hello" or "messages waiting" line, something like "Reports open: (1) Post (0) PM". with visibility of the message defined by panel settings (don't know if you want to do separate settings for displaying Post and PM portions of that message).

I hope this is possible and not imposing on you.  Really do appreciate what you have done.

Grazie mille,

Cal
Title: Re: vReportBoard Mod
Post by: SSaint on May 10, 2008, 09:16:23 AM
I however have had some issues upgrading to 1.1.5 with this mod. When I upgraded, the mod disapeared. When I tried to reinstall it, I was told that it was incompatible.

I suck at coding, otherwise I'd try and install it manually.

Any word on a package installer for v1.1.5?
Title: Re: vReportBoard Mod
Post by: aishaweb on May 15, 2008, 06:45:37 AM
Try this.
see attached file.
Title: Re: vReportBoard Mod
Post by: SSaint on May 15, 2008, 10:44:23 AM
It uploads just fine. But it fails three tests. Since my forum is English-language, I can assume that the Turkish file should just have been skipped, no?


Type     Action     Description
1.    Execute Code    install.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/SendTopic.php    Test successful
4.    Execute Modification    ./Sources/PersonalMessage.php    Test successful
5.    Execute Modification    ./Sources/Display.php    Test failed
6.    Execute Modification    ./Sources/MessageIndex.php    Test successful
7.    Execute Modification    ./Sources/ModSettings.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
9.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
10.    Execute Modification    ./Themes/default/Display.template.php    Test successful
11.    Execute Modification    ./Themes/classic/Display.template.php    Test successful
12.    Execute Modification    ./Themes/babylon/Display.template.php    Test successful
13.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
14.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
16.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
17.    Execute Modification    ./Themes/default/languages/index.turkish.php    Skipping file
18.    Execute Modification    ./Themes/default/languages/ModSettings.turkish.php    Skipping file
19.    Execute Modification    ./Themes/default/languages/Errors.turkish.php    Test failed
20.    Execute Modification    ./Themes/default/languages/Help.turkish.php    Skipping file
21.    Extract File    ./Themes/default/images/post/unsolved.gif    
22.    Extract File    ./Themes/default/images/post/solved.gif    
23.    Extract File    ./Themes/classic/images/english/solve.gif
Title: Re: vReportBoard Mod
Post by: aishaweb on May 15, 2008, 01:20:56 PM
Im no expert, bur i would think another mod has already edited the files that failed, or 1.1.5 has altered those files a little, so a manual edit of the bits that have failed should fix it.
Title: Re: vReportBoard Mod
Post by: Tuplad on June 09, 2008, 06:20:46 AM
Quote from: aishaweb on May 15, 2008, 06:45:37 AM
Try this.
see attached file.
Thanks :) it works for me
Title: Re: vReportBoard Mod
Post by: protonxl on June 09, 2008, 02:58:26 PM
5.     Execute Modification     ./Sources/Display.php     Test failed
6.    Execute Modification    ./Sources/MessageIndex.php    Test successful
7.    Execute Modification    ./Sources/ModSettings.php    Test successful
8.    Execute Modification    ./Sources/ManagePermissions.php    Test failed


1.     Export Personal Messages      1.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Auto Embed Video Clips    2.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    ShowTopics    1.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Mod Hide Post    1.1    [ Uninstall ] [ List Files ] [ Delete ]
5.    XarSmilies-2    1.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    Remove Post Modified Time    1.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    Topic description    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
8.    Perfect Smiley Set    1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    View Single PM    1.3    [ Uninstall ] [ List Files ] [ Delete ]
10.    Contact Page    1.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    Advanced Reputation System    1.4.1    [ List Files ] [ Delete ]
12.    SimplePortal    1.2    [ Uninstall ] [ List Files ] [ Delete ]
13.    Profile Comments    1.3.6    [ Uninstall ] [ List Files ] [ Delete ]
14.    Image Quote Removal Package    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    Hide SMF Version    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
16.    vReportBoard Mod    1.03    [ Apply Mod ] [ List Files ] [ Delete ]
17.    nCode Image Resizer    1.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    Advanced XFire Field    1.2    [ Apply Mod ] [ List Files ] [ Delete ]
19.    Change_Poster_Of_Topic_And_Message    1.0    [ Uninstall ] [ List Files ] [ Delete ]
20.    Downloads System    1.0.4    [ Uninstall ] [ List Files ] [ Delete ]
21.    Admin Notepad    1.0    [ Uninstall ] [ List Files ] [ Delete ]
22.    SMF Gallery Lite    1.8.3    [ Uninstall ] [ List Files ] [ Delete ]
23.    SMF Links    1.6.7    [ Uninstall ] [ List Files ] [ Delete ]


smf 1.1.5


downloaded  aishaweb's attachment
Title: Re: vReportBoard Mod
Post by: ruaduck on June 09, 2008, 04:08:24 PM
i use utf8 extentions on my language files. What edits do i need to make so it will work effectively on my boards?
Title: Re: vReportBoard Mod
Post by: kai920 on June 09, 2008, 10:39:37 PM
I edited the xml to include 1.1.5, all tests were successful, but when I click install I get an error msg:

Quote from: error message
Incorrect table name 'my_database.smf_log_reports'
File: /my_domain/public_html/forums/Packages/temp/install.php
Line: 21

Looks like it's somehow not creating the table properly? Any ideas?

Code (install.php) Select

$result = db_query("SHOW TABLES LIKE '{$db_prefix}log_reports'", __FILE__, __LINE__);
if(mysql_num_rows($result) == 0)
    db_query("
        CREATE TABLE `{$db_prefix}log_reports` (
          `ID_REPORT` mediumint(8) unsigned NOT NULL auto_increment,
          `ID_MSG` int(10) unsigned NOT NULL default '0',
          `ID_TOPIC` int(10) unsigned NOT NULL default '0',
          `solved` tinyint(3) unsigned NOT NULL default '0',
          PRIMARY KEY  (`ID_REPORT`),
          KEY `ID_MSG` (`ID_MSG`)
        )", __FILE__, __LINE__);
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on June 19, 2008, 06:30:09 PM
Any way to get alerts sent out when a report is made?

Also noticed that monitoring the RTM board does not get any alerts when the topic is created.

Unless one actively checks the RTM board, one won't know when someone has reported a problem... that can delay response...

Cal
Title: Re: vReportBoard Mod
Post by: bumbumlongtime on June 22, 2008, 06:46:50 PM
needs updating for 1.1.5
Title: Re: vReportBoard Mod
Post by: MissyNL on June 24, 2008, 08:25:29 AM
hello.. i like this mod very much! It made things real easier for me and my crew.

I wanted to ask.. it there a way to make an extra option for reporting profiles?

I get a lot of reported profiles and when i am not around i want my crew to look at it. And since i am the only one who receives an e-mail.. it would be nice if the reported profiles are also in a board.

If not to much trouble.. can you please make it compatible with ultimate profile?

Thank you!!
Title: Re: vReportBoard Mod
Post by: PatrickPriest on July 01, 2008, 11:48:38 PM
How can I change permissions to see the solve?  My Global Moderators can't make a reported post "Solved"!
Title: Re: vReportBoard Mod
Post by: SONSiVRi on July 07, 2008, 08:38:15 PM
Quote from: PatrickPriest on July 01, 2008, 11:48:38 PM
How can I change permissions to see the solve?  My Global Moderators can't make a reported post "Solved"!

"Admin" Page > "Permissions" in the left handed menu > Choose "Global Moderator" > "Solve Reports"
this is what you need to set.
Title: Re: vReportBoard Mod
Post by: Kimmie on July 28, 2008, 10:46:04 PM
I got this error when trying to apply it (on 1.1.5):

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on July 29, 2008, 12:50:29 AM
You do what I did... edit package-info.xml and add "1.1.5, " to the line that starts "<install_for=".

It installs like a charm.  Admittedly, this is a rather risky approach in general, and not recommended in the main, but it did work this time.

Of course, I'd much prefer the author made the change ;)

Title: Re: vReportBoard Mod
Post by: Kimmie on July 29, 2008, 01:47:42 AM
oK i tried that - it uploaded fine but failed on Display.php. I wil have to check that file and see what changes it needs to make and see if I can do them manualy. I would REALLY love to get this mod to work :)
Title: Re: vReportBoard Mod
Post by: klra on July 29, 2008, 02:55:24 PM
I'd love to see this released for 1.1.5

I have tried the edits and am unable to get it to work properly.
Title: Re: vReportBoard Mod
Post by: Kimmie on August 13, 2008, 05:06:02 AM
I got the mod installed on 1.1.5 and it works great however I have one question about this part:

QuoteAdded option (by permission) to show a marker of reported posts in message view, and their solve status

What exactly is the marker and where is it supposed to be at? I have the option checked in permissions but I dont see anything different in terms of the actual post that was reported
Title: Re: vReportBoard Mod
Post by: klra on August 13, 2008, 10:45:25 AM
I did the edits again for 1.1.5 and during installation get this message (on 2 different forums)-

QuoteExecute Modification   ./Sources/ManagePermissions.php   Test failed

Anyone have a solution?  ???

I really would like to get this Mod to work -
Title: Re: vReportBoard Mod
Post by: aishaweb on August 13, 2008, 12:28:37 PM
Manually edit that file..
Title: Re: vReportBoard Mod
Post by: klra on August 13, 2008, 12:31:29 PM
How & when would I do that?

Do I do the install, then edit the permissions file when complete?
Title: Re: vReportBoard Mod
Post by: Kimmie on August 13, 2008, 05:43:03 PM
Quote from: klra on August 13, 2008, 12:31:29 PM
How & when would I do that?

Do I do the install, then edit the permissions file when complete?

you need to install it first - make a note of what files has "test failed" on them. And then make the edits to those files after. Make sure you download a copy of those files "before" you make the edits incase something goes wrong - that way you can just reupload the working file again.
Title: Re: vReportBoard Mod
Post by: klra on August 13, 2008, 07:16:59 PM
I think I'll wait for a new release- don't want to go down that road.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on August 14, 2008, 04:02:49 AM
maybe its better to show "solved by" entry in report and showing statistics of who solved more. this will give an idea who is solving and who is not.
Title: Re: vReportBoard Mod
Post by: Kimmie on August 14, 2008, 07:39:48 AM
Quote from: klra on August 13, 2008, 07:16:59 PM
I think I'll wait for a new release- don't want to go down that road.

it doesnt matter what the release version is.It has a certain code that it looks for when it installs and if that file has already had that same specific code modified by another mod, your still going to have to manually edit it and add the code for this mod because you will still get the "test failed" because its not going to be able to find the code its looking for. A new release of the mod has nothing to do with that file and whether its already been modified by another mod, and will return the same result.
Title: Re: vReportBoard Mod
Post by: klra on August 14, 2008, 09:39:37 AM
Ok, have any recommendations as to what I would need to edit?

Title: Re: vReportBoard Mod
Post by: CrazyHorse80 on August 14, 2008, 11:28:16 AM
I have a problem with this... I've installed the "Thank-O-Matic" mod and it interfere with this in file Display.php.
Can someone help me editing this code to make them compatible?

ID_MSG, icon, subject, posterTime, posterIP, ID_MEMBER, modifiedTime, modifiedName, body, edit_reason,
smileysEnabled, posterName, posterEmail,
".($board_info['thank_you_post_enable'] && allowedTo('thank_you_post_show') ? "thank_you_post, thank_you_post_counter," : "")."
ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead
FROM {$db_prefix}messages
WHERE ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);


These are edits required by vReportBoard mod:
<operation>
<search position="replace"><![CDATA[
ID_MSG, icon, subject, posterTime, posterIP, ID_MEMBER, modifiedTime, modifiedName, body,
smileysEnabled, posterName, posterEmail,
ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead
FROM {$db_prefix}messages
WHERE ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);]]></search>
<add><![CDATA[
m.ID_MSG, m.icon, m.subject, m.posterTime, m.posterIP, m.ID_MEMBER, m.modifiedTime, m.modifiedName, m.body,
m.smileysEnabled, m.posterName, m.posterEmail,
m.ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead,
IFNULL(lr.ID_TOPIC, 0) as reporttopic, IFNULL(lr.solved, -1) as reportsolved
FROM {$db_prefix}messages as m
                LEFT JOIN {$db_prefix}log_reports as lr ON (lr.ID_MSG = m.ID_MSG)
            WHERE m.ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY m.ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);]]></add>
</operation>


Thanks in advance,
PS
Title: Re: vReportBoard Mod
Post by: SONSiVRi on August 14, 2008, 12:45:41 PM
Quote from: klra on August 14, 2008, 09:39:37 AM
Ok, have any recommendations as to what I would need to edit?

you need to manual edit as previously mentioned.
http://www.adrevenueshare.com/package.php
Title: Re: vReportBoard Mod
Post by: Kimmie on August 14, 2008, 04:13:44 PM
Quote from: klra on August 14, 2008, 09:39:37 AM
Ok, have any recommendations as to what I would need to edit?



When you install the package via the package manager, "any" file that has "Test Failed" out to the right is a file you will have to manually edit. (or you can use the parser on the mod page and manually make the edits on every file it lists instead of uploading what you can through the package manager). As I previously stated, make sure you download a copy of each one that you plan to edit from the server. If something should happen that you edit the code incorrectly, you can simply reupload the file you downloaded and it will go back to how it was before you tried to edit it.
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on August 16, 2008, 09:19:24 PM
Hello,

I don't know if I'm encountering a bug or this is something this MOD does not do, but even though I've set the destination board to notify, I only find out about reports by looking at the board.

I had one that sat for two days because no one noticed it was there.

Is this how it actually works?  If so, I have to look at backing it out, as I really need Report to Moderators and Admins to be addressed quickly, which means some sort of email notification.

Grazie
Title: Re: vReportBoard Mod
Post by: Kimmie on August 17, 2008, 04:39:48 AM
Quote from: Cal O'Shaw on August 16, 2008, 09:19:24 PM
Hello,

I don't know if I'm encountering a bug or this is something this MOD does not do, but even though I've set the destination board to notify, I only find out about reports by looking at the board.

I had one that sat for two days because no one noticed it was there.

Is this how it actually works?  If so, I have to look at backing it out, as I really need Report to Moderators and Admins to be addressed quickly, which means some sort of email notification.

Grazie,

Mike

well depending on the host, it may take a day or two to get the emails from the notification just as it would any other board on your site. The notification on that board is just like the notification on any other board and is handled by the forum not this mod. It takes me sometimes 3 days to get mine. If its an issue, why dont you just make it mandatory for your staff to check that board every time they come on?Its what I do, and mine get taken care of on an almost immediate basis every day. The whole purpose of this mod is so that admins and mods dont have to fool with emails any more because emails often get overlooked, or not received at all.
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on August 17, 2008, 07:21:55 AM
Well, that appears to answer my first question: Is the PM/email notification supposed to still work after the MOD is installed?  For us, the answer appears to be 'no'.

Then one has to wonder why not.  The RTM board is set as a child board on our site (although I can look at elevating it to see if that solves it).
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on August 18, 2008, 02:59:41 PM
I think I found the bug.  By using the manual edit option for the mod (had to choose version 1.1.4).

In ./sources/SendTopic.php:
The function ReportToModerator2() is in there twice!

It looks like one of them needs to be renamed, but which one, and to what?

I got the Report To Admin (PMs) to work because ./Themes/default/PersonalMessage.template.php was not updated.  Adding the two changes manually got that working.

Can someone please advise on how to fix SendTopic.php?

Grazie
Title: Re: vReportBoard Mod
Post by: Col on August 20, 2008, 11:28:55 AM
Quote from: Cal O'Shaw on August 16, 2008, 09:19:24 PM
Hello,

I don't know if I'm encountering a bug or this is something this MOD does not do, but even though I've set the destination board to notify, I only find out about reports by looking at the board.

I had one that sat for two days because no one noticed it was there.

Is this how it actually works?  If so, I have to look at backing it out, as I really need Report to Moderators and Admins to be addressed quickly, which means some sort of email notification.

Grazie

Hi,

I've come here to report the same issue. It is a bug (of sorts). My guess is that this occurs because when a post is 'reported', this post (and thread) is created on the board from where the report was made. Then this new report thread is moved to the Report board. Because it is moved to the Report board (rather than generated there), this fails to trigger the 'Notify' option.

It is far more preferable that reported posts go to a report board rather than moderators' e-mail inbox, but having notification of new threads on the Report board is useful too. Although not a coder, I'd be surprised if this was more than a minor tweak to the code. I hope this feature or bug fix (according to your perspective) in included with next version.

A great and useful mod, by the way.
Title: Re: vReportBoard Mod
Post by: Kimmie on August 22, 2008, 12:10:31 AM
Quote from: Cal O'Shaw on August 17, 2008, 07:21:55 AM
Well, that appears to answer my first question: Is the PM/email notification supposed to still work after the MOD is installed?  For us, the answer appears to be 'no'.

Then one has to wonder why not.  The RTM board is set as a child board on our site (although I can look at elevating it to see if that solves it).


Well since its a board just like any other board on your site, have you tried clicking on the Notify button at the top of that board? This mod was created with the fact that emails are a nuisance and in alot of cases are getting overlooked by staff and in some cases not received at all (which like on my host - it only allowed so many emails to be sent from the server in a 24 hour period). I am not 100% sure, but if the typical email that was normally sent out when someone clicks on the Report To Moderator button, is no longer being sent, this mod may be set up to disable that feature. Just have your staff click the NOtify button at the top of that board and they will get emails when nwe topics are put in that board. My staff still do.
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on August 22, 2008, 12:36:07 AM
Hello,

Unfortunately, setting Notify does not work.  Tried that many weeks ago, turned it on and off, had Global Mods and regular Mods try it as well.

It is almost like the this is a reply that gets split off and moved to the RTM board.  The flag that this is a new topic in a board with Notify set does not seem to get set.  Once it's created I can go in and set the topic to notify on new posts, but that's a bit late in the game.

I prefer the board notify to an actual RTM email, so everyone who should be made aware can be.

Now, I did notice, and make mention in an earlier post that the ReportToModerator2 function is in the php file TWICE, and they are NOT identical.  Clearly one of them is supposed to be named something similar, but I don't know which one is which, and experimenting with a Production site is not good practise, so I'm at a loss.

If someone could look at this topic, and maybe find what is wrong, that would be super (making it officially 1.1.5 compatible would be nice as well ;) ).

Is there something like this in 2.0.0 (either in the base code or as a MOD), or are we spinning our wheels in trying to fix it when we'll have to leave it behind at the 2.0.0 upgrade?

Grazie,

Cal
Title: Re: vReportBoard Mod
Post by: Kimmie on August 23, 2008, 01:26:17 AM
My staff all get the normal notification emails from that board so I am not sure why its different on yours.

As for the 2.0 question, I dont know of its a default feature or not. I wont be moving to 2.0 anytime soon because I run TP, however, I am sure that someone will eventually either update this mod so it will work with it, or make one similar. With almost 6,000 downloads, its been a pretty popular mod.
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on August 23, 2008, 01:46:38 AM
When did you install it?  The last official update was to 1.1.4, but I just added 1.1.5 to the list, which was likely not the smartest choice (even though there were no errors, it does seem to have some problems, such as missing globals and that proc being installed twice.).

I'm debating uninstalling it, but concerned I'll make things worse.

And I intend to wait on 2.0.0 for some time (wait for the bugs to be found, the MODs to be updated, and that I really have to upgrade ;)).
Title: Re: vReportBoard Mod
Post by: Kimmie on August 23, 2008, 01:58:55 AM
Ive only had it installed for about a week now. I am also running 1.1.5. There arent any file changes between 1.1.4 and 1.1.5. They only thing that gets updated is the package_info.xml file so that it knows to install and uninstall for 1.1.5 and no longer give the "package corrupt or not compatible" error that they often give
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on August 23, 2008, 02:06:05 AM
Maybe I will see about uninstalling it, delete my copy, get the MOD again, upload it, edit it, and then install it.

Grazie
Title: Re: vReportBoard Mod
Post by: kitun on August 29, 2008, 04:42:59 AM
Where are plugin options? I've installed it on SMF 1.1.5 and I can't find them under Features and Options...

Also, I can't uninstall plugin, it shows me failed on all files...
Title: Re: vReportBoard Mod
Post by: SONSiVRi on September 04, 2008, 03:50:00 PM
Quote from: kitun on August 29, 2008, 04:42:59 AM
Where are plugin options? I've installed it on SMF 1.1.5 and I can't find them under Features and Options...

Also, I can't uninstall plugin, it shows me failed on all files...

It means you didnt install it. Forum said its installed but probably your CHMOD settings didnt allowed to edit those files. Just uninstall even forum says "failed". Then install it but this time CHMOD 0777 your files before installation. Dont forget to turn CHMOD 0644 back after installation.
Title: Re: vReportBoard Mod
Post by: Ozman69 on September 04, 2008, 06:15:45 PM
Just installed this to a heavily modified 1.1.5 and had no real problems.  Only thing I can't seem to find is a way to change the unsolved image to solved when I've read the reported post in my sub-forum.  I'm not sure which file gets changed in the non-default theme I'm running since package parser keeps telling me this mod won't work with 1.1.5 (even though it did).  I figured it would be just a matter of clicking modify on the post that has the initial report and changing it to solved, but neither solver or unsolved appears in the options.

Any help would be appreciated.

Oz

edit:  changing to the default theme doesn't seem to solve the problem either.
Title: Re: vReportBoard Mod
Post by: SlammedDime on September 04, 2008, 08:15:36 PM
Who can and can't solve topics is permission based in SMF's permission system.  The edit for where the solve icon is shown should be in Display.template.php.
Title: Re: vReportBoard Mod
Post by: Ozman69 on September 04, 2008, 10:22:50 PM
Quote from: SlammedDime on September 04, 2008, 08:15:36 PM
Who can and can't solve topics is permission based in SMF's permission system.  The edit for where the solve icon is shown should be in Display.template.php.

I understand about the permissions, but not sure what I've done wrong.  If anyone gets bored, I've included a copy of my Display.template.php file.  If you see my mistake, feel free to point it out for me.   :P

Oz
Title: Re: vReportBoard Mod
Post by: SONSiVRi on September 05, 2008, 06:08:28 AM
I added new behaviour.
When you solved / unsolved the report, system reply Solved by SONSiVRi in your behalf.
This can clear the situation of who did wrong solution.
Check the attached image of working screenshot.

And I will add who solved more statistics soon.

Make this changing in SendTopic.php

Code ("Find") Select

// Solves/Unsolves a topic.
function SolveTopic()
{
global $context, $db_prefix, $modSettings, $board, $topic, $sourcedir;

    // I did NOT include a session check here. It's just... not risky. Duh.

// make sure they may do this!
isAllowedTo('report_solve');

// solving only in the report board! we don't need a permission check, everyone who has access here can solve.
if($board != $modSettings['report_board'] && $board != $modSettings['report_board_pm']) {
        if(isset($_REQUEST['xml'])) {
            header('Content-Type: text/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
        echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<message>error</message>
</smf>';
            die();
        }

        fatal_lang_error('rtm_solveoutside');
}

// Just quit if there's no topic to lock.
if (empty($topic)) {
        if(isset($_REQUEST['xml'])) {
            header('Content-Type: text/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
        echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<message>error</message>
</smf>';
            die();
        }

        fatal_lang_error(472, false);
    }

// It's a toggle action, so get current status
$request = db_query("
SELECT m.ID_MSG, m.icon
FROM {$db_prefix}topics as t, {$db_prefix}messages as m
WHERE t.ID_TOPIC = $topic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($msg, $icon) = mysql_fetch_row($request);
mysql_free_result($request);

$solved = ($icon == 'unsolved') ? 1 : 0;
$icon = ($icon == 'unsolved') ? 'solved' : 'unsolved';

// Actually lock the topic in the database with the new value.
db_query("
UPDATE {$db_prefix}messages
SET icon = '$icon'
WHERE ID_MSG = $msg
LIMIT 1", __FILE__, __LINE__);

    // and update log
    db_query("
            UPDATE {$db_prefix}log_reports
            SET solved = $solved
            WHERE ID_TOPIC = $topic
            LIMIT 1", __FILE__, __LINE__);

// Always log this.
logAction('solve', array('topic' => $topic));

    // xml? just report!
if(isset($_REQUEST['xml'])) {
        header('Content-Type: text/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
        echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<message>', $solved ? 'solved' : 'unsolved', '</message>
</smf>';

        die();
}

// Else, back to the board!
redirectexit('board=' . $board . '.0');

}


Code ("Replace") Select

// Solves/Unsolves a topic.
function SolveTopic()
{
global $context, $db_prefix, $modSettings, $board, $topic, $sourcedir;
global $user_info;

    // I did NOT include a session check here. It's just... not risky. Duh.

// make sure they may do this!
isAllowedTo('report_solve');

// solving only in the report board! we don't need a permission check, everyone who has access here can solve.
if($board != $modSettings['report_board'] && $board != $modSettings['report_board_pm']) {
        if(isset($_REQUEST['xml'])) {
            header('Content-Type: text/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
        echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<message>error</message>
</smf>';
            die();
        }

        fatal_lang_error('rtm_solveoutside');
}

// Just quit if there's no topic to lock.
if (empty($topic)) {
        if(isset($_REQUEST['xml'])) {
            header('Content-Type: text/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
        echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<message>error</message>
</smf>';
            die();
        }

        fatal_lang_error(472, false);
    }

// It's a toggle action, so get current status
$request = db_query("
SELECT m.ID_MSG, m.icon
FROM {$db_prefix}topics as t, {$db_prefix}messages as m
WHERE t.ID_TOPIC = $topic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($msg, $icon) = mysql_fetch_row($request);
mysql_free_result($request);

$solved = ($icon == 'unsolved') ? 1 : 0;
$icon = ($icon == 'unsolved') ? 'solved' : 'unsolved';

// Actually lock the topic in the database with the new value.
db_query("
UPDATE {$db_prefix}messages
SET icon = '$icon'
WHERE ID_MSG = $msg
LIMIT 1", __FILE__, __LINE__);

    // and update log
    db_query("
            UPDATE {$db_prefix}log_reports
            SET solved = $solved
            WHERE ID_TOPIC = $topic
            LIMIT 1", __FILE__, __LINE__);

// Always log this.
logAction('solve', array('topic' => $topic));

include_once($sourcedir . '/Subs-Post.php');
$message = ($icon == 'unsolved') ? 'Unsolved' : 'Solved';
$message = $message . ' by ' . $user_info['name'] . '.';

// we need to know :)
$query = db_query("
SELECT countPosts
FROM {$db_prefix}boards
WHERE ID_BOARD = $modSettings[report_board]", __FILE__, __LINE__);
if(mysql_num_rows($query) > 0)
list($countPosts) = mysql_fetch_row($query);
    else
        fatal_lang_error('rtm_notexist');   
       
// set up all options
$msgOptions = array(
'id' => 0,
'subject' => '[' . $icon . ']',
'body' => addslashes($message),
'icon' => $icon,
'smileys_enabled' => true,
'attachments' => array(),
);
$topicOptions = array(
'id' => $topic,
'board' => $modSettings['report_board'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'mark_as_read' => true,
);
$posterOptions = array(
'id' => 0,
'name' => $user_info['name'],
'email' => '',
// do reports count as posts?
'update_post_count' => !empty($countPosts),
);

// and post!
createPost($msgOptions, $topicOptions, $posterOptions);

    // xml? just report!
if(isset($_REQUEST['xml'])) {
        header('Content-Type: text/xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));
        echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<message>', $solved ? 'solved' : 'unsolved', '</message>
</smf>';

        die();
}

// Else, back to the board!
redirectexit('board=' . $board . '.0');

}
Title: Re: vReportBoard Mod
Post by: klra on September 05, 2008, 09:07:35 AM
Any plans on releasing a 1.1.5 version?
Title: Re: vReportBoard Mod
Post by: SONSiVRi on September 05, 2008, 09:48:22 AM
Quote from: klra on September 05, 2008, 09:07:35 AM
Any plans on releasing a 1.1.5 version?

You can modify package-info.xml

Search
<install for="1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">

Replace
<install for="1.1.5, 1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">

It should install w/o problem.
Title: Re: vReportBoard Mod
Post by: Kimmie on September 05, 2008, 11:22:43 PM
Quote from: SONSiVRi on September 05, 2008, 09:48:22 AM
Quote from: klra on September 05, 2008, 09:07:35 AM
Any plans on releasing a 1.1.5 version?

You can modify package-info.xml

Search
<install for="1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">

Replace
<install for="1.1.5, 1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">

It should install w/o problem.

you also need to add 1.1.5 to the UNINSTALL line as well or you will have to manually uninstall it from every file if you ever decide to get rid of it.
Title: Re: vReportBoard Mod
Post by: warmachine on September 06, 2008, 11:50:25 AM
I have to manually edit display.php and am having issues.

This is a new install with a few mods (SMF Garage, Staff page, trader system, and ignore user)

I have to find this:
ID_MSG, icon, subject, posterTime, posterIP, ID_MEMBER, modifiedTime, modifiedName, body, smileysEnabled, posterName, posterEmail,
ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead
FROM {$db_prefix}messages
WHERE ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);


When found, this is what I have:

m.ID_MSG, m.icon, m.subject, m.posterTime, m.posterIP, m.ID_MEMBER, m.modifiedTime, m.modifiedName, m.body,
                m.smileysEnabled, m.posterName, m.posterEmail,
                m.ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead,
                uv.vehicle, uv.vid
            FROM {$db_prefix}messages AS m
            LEFT OUTER JOIN (
                    SELECT CONCAT_WS(' ', v.made_year, mk.make, md.model) AS vehicle, v.id AS vid, v.user_id
                    FROM {$db_prefix}garage_vehicles AS v, {$db_prefix}garage_makes AS mk, {$db_prefix}garage_models AS md
                    WHERE v.make_id = mk.id
                        AND v.model_id = md.id
                        AND v.main_vehicle = 1
                        AND mk.pending != '1'
                        AND md.pending != '1'
                        AND v.pending != '1'
                    ) AS uv ON uv.user_id = m.ID_MEMBER
            WHERE m.ID_MSG IN (" . implode(',', $messages) . ")
            ORDER BY m.ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);


This is what I am supposed to replace it with:

m.ID_MSG, m.icon, m.subject, m.posterTime, m.posterIP, m.ID_MEMBER, m.modifiedTime, m.modifiedName, m.body,
m.smileysEnabled, m.posterName, m.posterEmail,
m.ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead,
IFNULL(lr.ID_TOPIC, 0) as reporttopic, IFNULL(lr.solved, -1) as reportsolved
FROM {$db_prefix}messages as m
LEFT JOIN {$db_prefix}log_reports as lr ON (lr.ID_MSG = m.ID_MSG)
WHERE m.ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY m.ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);


The extra code that is there is from SMF Garage. Every time I try to put the following 2 lines of code where they should be (the only 2 that need to be there for this mod to work), I get errors.

IFNULL(lr.ID_TOPIC, 0) as reporttopic, IFNULL(lr.solved, -1) as reportsolved

and

LEFT JOIN {$db_prefix}log_reports as lr ON (lr.ID_MSG = m.ID_MSG)

Where do those go? The error I get is this:
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'uv.vehicle, uv.vid
FROM smf_messages AS m
LEFT OUTER J' at line 6
File: /home/tgpforum/public_html/Sources/Display.php
Line: 758

Thanks for any help.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on September 06, 2008, 10:11:25 PM
warmachine,
What is your mixed code at last?
You said "Every time I try to put the following 2 lines" but where you put it?
It seems you having problem with 2 LEFT JOIN same time.
Title: Re: vReportBoard Mod
Post by: warmachine on September 07, 2008, 12:08:15 PM
I compared the code that I am supposed to replace, with the code that I was supposed to find. Those 2 separate code lines I have in my post above are the changes to the code that the mod makes. Does that make sense? I'm trying to explain this as best as I can.

I tried putting those 2 lines of code where the mod was supposed to put them, but both of them caused errors like the one in the quote box in my post above to appear. This is why I'm asking where I need to put these, because with out them the mod is pretty much useless.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on September 07, 2008, 01:22:42 PM

m.ID_MSG, m.icon, m.subject, m.posterTime, m.posterIP, m.ID_MEMBER, m.modifiedTime, m.modifiedName, m.body,
                m.smileysEnabled, m.posterName, m.posterEmail,
                m.ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead,
                IFNULL(lr.ID_TOPIC, 0) as reporttopic, IFNULL(lr.solved, -1) as reportsolved,
                uv.vehicle, uv.vid
               FROM {$db_prefix}messages AS m
            LEFT JOIN {$db_prefix}log_reports as lr ON (lr.ID_MSG = m.ID_MSG)
            LEFT JOIN (
                    SELECT CONCAT_WS(' ', v.made_year, mk.make, md.model) AS vehicle, v.id AS vid, v.user_id
                    FROM {$db_prefix}garage_vehicles AS v, {$db_prefix}garage_makes AS mk, {$db_prefix}garage_models AS md
                    WHERE v.make_id = mk.id
                        AND v.model_id = md.id
                        AND v.main_vehicle = 1
                        AND mk.pending != '1'
                        AND md.pending != '1'
                        AND v.pending != '1'
                    ) AS uv ON uv.user_id = m.ID_MEMBER
            WHERE m.ID_MSG IN (" . implode(',', $messages) . ")
            ORDER BY m.ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);


Maybe this one helps.
Title: Re: vReportBoard Mod
Post by: warmachine on September 07, 2008, 05:28:21 PM
That worked!! Thank you so much!  :)
Title: Re: vReportBoard Mod
Post by: JoshieDaMan on October 03, 2008, 03:58:34 AM
I really need this for 1.1.6 version of SMF. Please update if you don't mind doing so.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on October 04, 2008, 04:56:53 PM
Quote from: JoshieDaMan on October 03, 2008, 03:58:34 AM
I really need this for 1.1.6 version of SMF. Please update if you don't mind doing so.

Did you edited <install for="1.1.6"> in package-info.xml ? (same as uninstall)
Title: Re: vReportBoard Mod
Post by: JoshieDaMan on October 05, 2008, 11:35:28 PM
Quote from: SONSiVRi on October 04, 2008, 04:56:53 PM
Quote from: JoshieDaMan on October 03, 2008, 03:58:34 AM
I really need this for 1.1.6 version of SMF. Please update if you don't mind doing so.

Did you edited <install for="1.1.6"> in package-info.xml ? (same as uninstall)
No sir/ma'am. I will try that.
Title: Re: vReportBoard Mod
Post by: Sabre™ on October 07, 2008, 08:18:02 AM
Hi peeps. :)
After youve solved the report, is there a way to make the text  [ Reported ]  in the original thread, disappear?
It continues sitting next to "quote"

Thank You in advance :)
Title: Re: vReportBoard Mod
Post by: SONSiVRi on October 07, 2008, 05:24:41 PM
Quote from: Sabre™ on October 07, 2008, 08:18:02 AM
Hi peeps. :)
After youve solved the report, is there a way to make the text  [ Reported ]  in the original thread, disappear?
It continues sitting next to "quote"

Thank You in advance :)

Good idea, I will let you know result from here.
Title: Re: vReportBoard Mod
Post by: Sabre™ on October 07, 2008, 05:42:02 PM
Ok cool.
Thanks mate :)
Title: Re: vReportBoard Mod
Post by: SONSiVRi on October 10, 2008, 02:55:22 PM
Quote from: Sabre™ on October 07, 2008, 08:18:02 AM
Hi peeps. :)
After youve solved the report, is there a way to make the text  [ Reported ]  in the original thread, disappear?
It continues sitting next to "quote"

Thank You in advance :)

In Display.template.php

Search
if ($context['can_see_reports'] && !empty($message['report']))
echo '
[ <a class="solveLink" href="', $scripturl, '?topic=', $message['report']['topic'], '.0" style="color: ', $message['report']['solved'] ? 'green' : 'red', ';">', $txt['report_ed'], '</a> ]&nbsp;';


Replace
if ($context['can_see_reports'] && !empty($message['report']) && !$message['report']['solved'])
echo '
[ <a class="solveLink" href="', $scripturl, '?topic=', $message['report']['topic'], '.0" style="color: red;">', $txt['report_ed'], '</a> ]&nbsp;';
Title: Re: vReportBoard Mod
Post by: Sabre™ on October 10, 2008, 07:07:17 PM
Hi SONSiVRi,
Good stuff mate.
The above code makes the  [ Reported ]  text disappear before it has been solved also.
This means the same post can be reported many times, as nobody knows it has been reported.
I meant to have it removed after it has been solved.
Can you have another look at this champ?

Cheers :)
Title: Re: vReportBoard Mod
Post by: _Anthony_ on October 12, 2008, 05:55:50 AM
Can someone update this for smf 2.0 beta 4?
Title: Re: vReportBoard Mod
Post by: Antechinus on October 12, 2008, 06:09:35 AM
SMF 2 has a built in moderation system that function much like vReportBoard.
Title: Re: vReportBoard Mod
Post by: DareDevil1990 on October 12, 2008, 06:20:56 AM
when will this be updated to work  with smf 1.1.5  :'( :'(
Title: Re: vReportBoard Mod
Post by: Sabre™ on October 12, 2008, 06:33:12 AM
Have you read any of the other pages?
It tells you how to install it.
I have version 1.1.6 and its running perfect!!
I could show you where it says how to do it for smf1.1.5, but that takes the fun out of your learning, and the actual function of the search button ;)

Good luck :)
Title: Re: vReportBoard Mod
Post by: Antechinus on October 12, 2008, 06:48:09 AM
If I'd known you were winding him up I wouldn't have given him my package-info.xml file in another thread. Now he'll miss out on all the fun. :D
Title: Re: vReportBoard Mod
Post by: DareDevil1990 on October 12, 2008, 06:52:32 AM
:D got the modified package from this thread only :p
Title: Re: vReportBoard Mod
Post by: SONSiVRi on October 12, 2008, 07:03:24 AM
"Sabre™"
I hit again and its working me as what you want. Showing [ Reported ] without solution, and if you solve the report it will disappear.
Let me explain what is my changings are (that I posted couple of messages above):
- deleting green style inside of <a> tag
- adding condition that checks "isn't report solved" (!$message['report']['solved'])

I dont know what is the difference between your and mine tests?
Title: Re: vReportBoard Mod
Post by: Sabre™ on October 12, 2008, 07:38:28 AM
Quote from: antechinus on October 12, 2008, 06:48:09 AM
If I'd known you were winding him up I wouldn't have given him my package-info.xml file in another thread. Now he'll miss out on all the fun. :D

LOL

Quote from: keshav on October 12, 2008, 06:52:32 AM
:D got the modified package from this thread only :p

haha see.  A little look and you'd find it ;)
I think the explanation is 1 or 2 pages back.

@ SONSiVRi
At the time I was modding 3 themes simultaneously, so its possible that I may have missed something.
I'll retry tomorrow, as its fairly late here.

Cheers :)

EDIT:
Just tested before going to bed.
Worked perfect SONSiVRi!!
Thanks for reconfirming that for me :)
Title: Re: vReportBoard Mod
Post by: genieuk on October 12, 2008, 08:41:59 AM
Hi,

I just edited the package info file and put 1.1.6 on the install and uninstall part so i can install via package manager on SMF 1.1.6

I am now being told :

Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.

which files do i need to chmod?

Mathew
Title: Re: vReportBoard Mod
Post by: SONSiVRi on October 12, 2008, 09:47:31 AM
Quote from: genieuk on October 12, 2008, 08:41:59 AM
Hi,

I just edited the package info file and put 1.1.6 on the install and uninstall part so i can install via package manager on SMF 1.1.6

I am now being told :

Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.

which files do i need to chmod?

Mathew

- Doesnt smf handle CHMOD stuff for you? (when you entered requested informations)

- If it doesn't:
Use "manual installation instructions" (or something like that) in "mod download page". You cannot choose smf version 1.1.6 since mod page will says "this version doesnt supported"; instead of it, select mod supported smf version (like 1.1.2) and see which files should be CHMOD'ed.



"Sabre™"
You welcome.
Title: Re: vReportBoard Mod
Post by: genieuk on October 12, 2008, 10:15:59 AM
Hi,

It does ask for details so it can CHMOD for me but did not want to do that as it does not say what files it is going to CHMOD and whether after it CHMOD the files it will put it back to the defualt CHMOD.

I looked on manual install already and it does not say anything about files needing to be CHMOD.

Mathew
Title: Re: vReportBoard Mod
Post by: SONSiVRi on October 12, 2008, 02:20:44 PM
Quote from: genieuk on October 12, 2008, 10:15:59 AM
Hi,

It does ask for details so it can CHMOD for me but did not want to do that as it does not say what files it is going to CHMOD and whether after it CHMOD the files it will put it back to the defualt CHMOD.

I looked on manual install already and it does not say anything about files needing to be CHMOD.

Mathew

Yes it does say what files need to CHMOD'ed.
Check attachment I sent, and press submit button where it showns.
Title: Re: vReportBoard Mod
Post by: _Anthony_ on October 12, 2008, 02:33:10 PM
Quote from: antechinus on October 12, 2008, 06:09:35 AM
SMF 2 has a built in moderation system that function much like vReportBoard.
How do I enable it?
Title: Re: vReportBoard Mod
Post by: genieuk on October 12, 2008, 03:07:01 PM
Am i missing the point here,

I checked how to manually install but don't see anywhere on where it tells you which files to CHMOD, i have checked it 4 times now and cant find anywhere which files it says to CHMOD

Am i going blind or have I confused you?

Mathew
Title: Re: vReportBoard Mod
Post by: Antechinus on October 12, 2008, 03:32:17 PM
Quote from: MrMoney on October 12, 2008, 02:33:10 PM
Quote from: antechinus on October 12, 2008, 06:09:35 AM
SMF 2 has a built in moderation system that function much like vReportBoard.
How do I enable it?
You don't have to. It runs by default, but it reports to the moderation centre instead of to a board as such.
Title: Re: vReportBoard Mod
Post by: Antechinus on October 12, 2008, 03:33:23 PM
Quote from: genieuk on October 12, 2008, 10:15:59 AM
Hi,

It does ask for details so it can CHMOD for me but did not want to do that as it does not say what files it is going to CHMOD and whether after it CHMOD the files it will put it back to the defualt CHMOD.

I looked on manual install already and it does not say anything about files needing to be CHMOD.

Mathew
Just do it.
Title: Re: vReportBoard Mod
Post by: genieuk on October 12, 2008, 07:21:03 PM
I did and it said failed on one files which was ok as i knew while it failed but it would not install came up with an error.
Title: Re: vReportBoard Mod
Post by: BlackXBOX on October 12, 2008, 08:44:49 PM
Does this mod work witih 1.1.5?
Title: Re: vReportBoard Mod
Post by: Antechinus on October 12, 2008, 09:14:09 PM
Yes it does.
Title: Re: vReportBoard Mod
Post by: BlackXBOX on October 12, 2008, 11:00:41 PM
Then why does it show this when I try to download it...

Title: Re: vReportBoard Mod
Post by: Antechinus on October 13, 2008, 03:48:42 AM
On Lines 10 and 25 of package-info.xml add 1.1.5, to the list of compatible versions if it isn't already listed.
Title: Re: vReportBoard Mod
Post by: BlackXBOX on October 13, 2008, 08:59:45 AM
Quote from: antechinus on October 13, 2008, 03:48:42 AM
On Lines 10 and 25 of package-info.xml add 1.1.5, to the list of compatible versions if it isn't already listed.

Huh? Mine is called theme_info.xml? And there's no line 25 it only goes up to 11. I added "1.1.5" to line 10, and it didn't do anything.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on October 13, 2008, 10:59:09 AM
Quote from: BlackXBOX on October 13, 2008, 08:59:45 AM
Quote from: antechinus on October 13, 2008, 03:48:42 AM
On Lines 10 and 25 of package-info.xml add 1.1.5, to the list of compatible versions if it isn't already listed.

Huh? Mine is called theme_info.xml? And there's no line 25 it only goes up to 11. I added "1.1.5" to line 10, and it didn't do anything.

There is a package-info.xml inside of mod archieve file. You need to edit as "antechinus" told.
Means;
<install for="1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">
into
<install for="1.1.5, 1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">
same for uninstall.
Title: Re: vReportBoard Mod
Post by: BlackXBOX on October 13, 2008, 11:34:07 AM
Quote from: SONSiVRi on October 13, 2008, 10:59:09 AM
Quote from: BlackXBOX on October 13, 2008, 08:59:45 AM
Quote from: antechinus on October 13, 2008, 03:48:42 AM
On Lines 10 and 25 of package-info.xml add 1.1.5, to the list of compatible versions if it isn't already listed.

Huh? Mine is called theme_info.xml? And there's no line 25 it only goes up to 11. I added "1.1.5" to line 10, and it didn't do anything.

There is a package-info.xml inside of mod archieve file. You need to edit as "antechinus" told.
Means;
<install for="1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">
into
<install for="1.1.5, 1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">
same for uninstall.

How do I edit it? Where do I go to edit it? I can't even open the dang mod it won't let me edit it!
Title: Re: vReportBoard Mod
Post by: MissyNL on October 13, 2008, 03:14:48 PM
hello...

i was wondering... With Ultimate Profile my members has now the option to report a profile. Now only a message is send to me, but can this feature be also added to your mod, so that the profile comes in the team board?
Title: Re: vReportBoard Mod
Post by: Antechinus on October 13, 2008, 04:01:47 PM
Quote from: BlackXBOX on October 13, 2008, 11:34:07 AM
Quote from: SONSiVRi on October 13, 2008, 10:59:09 AM
Quote from: BlackXBOX on October 13, 2008, 08:59:45 AM
Quote from: antechinus on October 13, 2008, 03:48:42 AM
On Lines 10 and 25 of package-info.xml add 1.1.5, to the list of compatible versions if it isn't already listed.

Huh? Mine is called theme_info.xml? And there's no line 25 it only goes up to 11. I added "1.1.5" to line 10, and it didn't do anything.

There is a package-info.xml inside of mod archieve file. You need to edit as "antechinus" told.
Means;
<install for="1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">
into
<install for="1.1.5, 1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">
same for uninstall.

How do I edit it? Where do I go to edit it? I can't even open the dang mod it won't let me edit it!
Danged easy, pardner. You've got a copy of the danged mod zip on yer cotton-pickin' desktop, right? So unzip that there varmint and then open the package-info.xml file in a good file editing program. (http://notepad-plus.sourceforge.net/uk/about.php)
Then edit it. Rezip and install.
Title: Re: vReportBoard Mod
Post by: Sabre™ on October 13, 2008, 04:15:28 PM
Quote from: BlackXBOX on October 13, 2008, 11:34:07 AM
How do I edit it? Where do I go to edit it? I can't even open the dang mod it won't let me edit it!

Ive attatched the mod here which is updated to install on SMF versions up to 1.1.6.
To open your package-info.xml(if you ever need to for another mod) drag it out of the zipped file onto your desktop.
Right click, and open with notepad.
Make the edits you need, delete that file from the zip folder, and drag your new version within.
Finished ;)

My apologies to the mod author for uploading this package.
I will remove it upon request :)
Title: Re: vReportBoard Mod
Post by: BlackXBOX on October 13, 2008, 04:30:13 PM
It installed successfully.

But now I can't even find the options or the place to configure it. Yes I'm in the 'Featuers and Options' place and it doesn't show crap.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on October 13, 2008, 04:41:08 PM
Quote from: BlackXBOX on October 13, 2008, 04:30:13 PM
It installed successfully.

But now I can't even find the options or the place to configure it. Yes I'm in the 'Featuers and Options' place and it doesn't show crap.

You may didn't install it. I mean sometimes (like my hosting does) chmod gives you a problem and you cant change things easily.
So what now? You need to check "are modifications made" correctly.
To do this you have two options; try uninstalling this mod and check all of modifications are "Test successful", second option is use manual instructions page and compare them with your current smf files (dont prefer this since you dont seem familiar with coding).
Title: Re: vReportBoard Mod
Post by: Sabre™ on October 13, 2008, 04:47:08 PM
Im guessing his lang files maybe UTF8 if everything checks out fine.
But since he is not familiar with code, that maybe unlikely.
But still a possibilty ;) lol

Orrr... just missing it.

Double check in your features and options page that the section in my attachment is there.  It should be 3/4 of the way down
Title: Re: vReportBoard Mod
Post by: MissyNL on October 19, 2008, 06:42:59 AM
Quote from: BlackXBOX on October 13, 2008, 04:30:13 PM
It installed successfully.

But now I can't even find the options or the place to configure it. Yes I'm in the 'Featuers and Options' place and it doesn't show crap.

is your forum in an other language? Because most of the times mods don't show up if you have not set the default language to English.
Title: Re: vReportBoard Mod
Post by: Kimmie on October 22, 2008, 09:23:39 PM
I just found a major glitch with this mod:

If you have marked a topic as "solved" and then someone else reports the same post at a later time, it adds the report to the end of the 1st one, it does not bump the thread back up to the top (it only bumps it up to the top of the "solved" topics ) nor does mark the thread "unsolved". It should be set up to make an "entirely new report thread" since it is a new report and the old one was resolved. I also tried moving all the solved topics over to another board - and instead of the report making a new thread on the original board, it still makes a reply to the original repotr (no matter where its at).

#1: If the first report has already been marked as solved, why would any new reports not make a new thread?

#2: Why does it still add the new reports to the old reports when that thread has been moved to an entirely different board and is not the board that is set up to have the report posts go to?

#3: Do we have to completely "delete" the threads before a new thread will be made on any thread that has already had a previous report on it?

How can this be fixed because this is making it way too hard to keep up with any new reports?


Edit: I just tried testing the theory of deleting a solved report to see what happened when I made a new report on that same post. Result: The report said it went through however, there is NO new report thread anywhere. WHen I do a search for the report nothing comes up. Where is the report going? This also has now made it to where if those same two threads that I just tested that on, get reported, I will never get the report on them.

Lots of glitches.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on October 24, 2008, 11:35:31 AM
Kimmie I can solve this problem, its not complicated.
But I am on another mod problem right now.
I will let you know if someone else doesnt solve this issue.
Title: Re: vReportBoard Mod
Post by: Kimmie on October 24, 2008, 04:15:28 PM
Quote from: SONSiVRi on October 24, 2008, 11:35:31 AM
Kimmie I can solve this problem, its not complicated.
But I am on another mod problem right now.
I will let you know if someone else doesnt solve this issue.

WONDERFUL!! Thank you :). Take your time.

There is also an issue of where its not completely moving solved threads down all the way. Example - I have 7 pages of report threads. Page 1 are all unsolved - page 2 are part unsolved and part unsolved with the entire lower half of that page being unsolved (the solved ones shouldnt even be on that page )- but they are mixed up instead of being all together (if that makes sense to you..lol)

Example:

(http://i33.tinypic.com/1sdq4n.gif)
Title: Re: vReportBoard Mod
Post by: Apllicmz on November 08, 2008, 11:54:53 AM
Plaese update portuguese

<file name="$themedir/languages/index.portuguese.php" error="skip">

        <operation>
            <search position="before"><![CDATA[
$txt['smf315'] = 'Utilize esta fun&ccedil;&atilde;o para informar os moderadores e administradores de uma inj&uacute;ria ou erradamente mensagem postada.<br /><i>Observe que o seu endere&ccedil;o de e-mail ser&aacute; revelado aos moderadores se usar esta.</i>';]]></search>
            <add><![CDATA[
$txt['smf315'] = 'Utilize esta fun&ccedil;&atilde;o para informar os moderadores e administradores de uma inj&uacute;ria ou erradamente mensagem postada.';
$txt['report_solve'] = 'Solve/Unsolve';
$txt['report_ed'] = 'Denunciado';
$txt['permissionname_report_solve'] = 'Resolvido Relat&oacute;rios';
$txt['permissionname_report_seeinline'] = 'Veja Relat&oacute;rios';
$txt['permissionhelp_report_seeinline'] = 'Essa permiss&atilde;o mostra um marcador de lugares comunicados na mensagem opini&atilde;o, e indica se eles foram ou n&atilde;o resolvidos.';]]></add>
        </operation>

    </file>
    <file name="$themedir/languages/index.portuguese_pt.php" error="skip">

        <operation>
            <search position="before"><![CDATA[
$txt['smf315'] = 'Utilize esta fun&ccedil;&atilde;o para informar os moderadores e administradores de uma inj&uacute;ria ou erradamente mensagem postada.<br /><i>Observe que o seu endere&ccedil;o de e-mail ser&aacute; revelado aos moderadores se usar esta.</i>';]]></search>
            <add><![CDATA[
$txt['smf315'] = 'Utilize esta fun&ccedil;&atilde;o para informar os moderadores e administradores de uma inj&uacute;ria ou erradamente mensagem postada.';
$txt['report_solve'] = 'Solve/Unsolve';
$txt['report_ed'] = 'Denunciado';
$txt['permissionname_report_solve'] = 'Resolvido Relat&oacute;rios';
$txt['permissionname_report_seeinline'] = 'Veja Relat&oacute;rios';
$txt['permissionhelp_report_seeinline'] = 'Essa permiss&atilde;o mostra um marcador de lugares comunicados na mensagem opini&atilde;o, e indica se eles foram ou n&atilde;o resolvidos.';]]></add>
        </operation>

    </file>


<file name="$themedir/languages/ModSettings.portuguese.php" error="skip">

        <operation>
            <search position="before"><![CDATA[
$txt['enableReportPM'] = 'Activar relatórios de mensagens pessoais';]]></search>
            <add><![CDATA[
$txt['report_board'] = 'Report Board (id)';
$txt['disable_quicksolve'] = 'Desabilite rápida de resolver';
$txt['report_board_pm'] = 'PM relatório Quadro(id)';]]></add>
        </operation>

    </file>
   
    <file name="$themedir/languages/ModSettings.portuguese_pt.php" error="skip">

        <operation>
            <search position="before"><![CDATA[
$txt['enableReportPM'] = 'Activar relatórios de mensagens pessoais';]]></search>
            <add><![CDATA[
$txt['report_board'] = 'Report Board (id)';
$txt['disable_quicksolve'] = 'Desabilite rápida de resolver';
$txt['report_board_pm'] = 'PM relatório Quadro(id)';]]></add>
        </operation>

    </file>


<file name="$themedir/languages/Errors.portuguese.php" error="skip">

        <operation>
            <search position="before"><![CDATA[
$txt['rtm_not_own'] = 'Você não pode postar em seu próprio relatório do moderador, que não faz sentido!';]]></search>
            <add><![CDATA[
$txt['rtm_noboard'] = 'Relatando está atualmente desativado. Por favor, tente novamente mais tarde, ou entre em contato com o administrador fórum.';
$txt['rtm_solveoutside'] = 'Você não pode resolver assuntos fora do relatório quadro.';
$txt['rtm_reportboard'] = 'Você não pode postar um relatório a partir do relatório quadro.';
$txt['rtm_notexist'] = 'O relatório quadro não tenha sido configurado corretamente, entre em contato com o administrador.';
$txt['cannot_report_solve'] = 'Desculpa, mas falta-lhe permissão para resolver assuntos.';]]></add>
        </operation>

    </file>
    <file name="$themedir/languages/Errors.portuguese_pt.php" error="skip">

        <operation>
            <search position="before"><![CDATA[
$txt['rtm_not_own'] = 'Voc&ecirc; n&atilde;o pode postar em seu pr&oacute;prio relat&oacute;rio do moderador, que n&atilde;o faz sentido!';]]></search>
            <add><![CDATA[
$txt['rtm_noboard'] = 'Relatando está actualmente desativado. Por favor, tente novamente mais tarde, ou entre em contato com o administrador f&oacute;rum.';
$txt['rtm_solveoutside'] = 'Voc&ecirc; n&atilde;o pode resolver assuntos fora do relat&oacute;rio quadro.';
$txt['rtm_reportboard'] = 'Voc&ecirc; n&atilde;o pode postar um relat&oacute;rio a partir do relat&oacute;rio quadro.';
$txt['rtm_notexist'] = 'O relat&oacute;rio quadro n&atilde;o tenha sido configurado corretamente, entre em contato com o administrador.';
$txt['cannot_report_solve'] = 'Desculpa, mas falta-lhe permiss&atilde;o para resolver assuntos.';]]></add>
        </operation>

    </file>


<file name="$themedir/languages/Help.portuguese.php" error="skip">

        <operation>
            <search position="before"><![CDATA[
$helptxt['enableReportPM'] = 'Esta opção permite que seus membros para reportar mensagens pessoais que recebem a equipe da administração. Isto pode ser útil para ajudar a detectar eventuais abusos do sistema de mensagens pessoais.';]]></search>
            <add><![CDATA[
$helptxt['report_board'] = 'O quadro deve ser utilizado para comunicados lugares. Deve ser dedicado um conselho, para manter tudo arrumado.<br /><br /><b>Se for 0, pós relato será desativado!!</b>';
$helptxt['disable_quicksolve'] = 'Normalmente, relatou um poste pode ser resolvido rapidamente, clicando no [ Reported ] marcador enquanto segura ctrl.<br /><br />No entanto, alguns administradores podem optar por desativar esse recurso, porque ela promove a resolução de relatórios sem os ler primeiro. Isso é certo em casos triviais (que é por isso que existe este recurso), mas se você encontrar o seu prazo demasiado curto mods resolver relatórios, você pode querer verificar essa.';
$helptxt['report_board_pm'] = 'o Quadro, para serem utilizados para mensagens pessoais relatadas. Isto pode ou não ser o mesmo que o cartão utilizado para comunicados posts.<br /><br />No entanto, lembre-se de mensagens pessoais são chamados pessoais por um motivo, é aconselhável para usar uma placa dedicada para esse acesso somente com admin. Apesar de que depende do seu caso individual, de curso.<br /><br />Definindo-o para 0 (ou vazias) permitirá que o padrão de comunicação através de mensagens pessoais pm.';]]></add>
        </operation>

    </file>
    <file name="$themedir/languages/Help.portuguese_pt.php" error="skip">

        <operation>
            <search position="before"><![CDATA[
$helptxt['enableReportPM'] = 'Esta opção permite que seus membros para reportar mensagens pessoais que recebem a equipe da administração. Isto pode ser útil para ajudar a detectar eventuais abusos do sistema de mensagens pessoais.';]]></search>
            <add><![CDATA[
$helptxt['report_board'] = 'O quadro deve ser utilizado para comunicados lugares. Deve ser dedicado um conselho, para manter tudo arrumado.<br /><br /><b>Se for 0, pós relato será desativado!!</b>';
$helptxt['disable_quicksolve'] = 'Normalmente, relatou um poste pode ser resolvido rapidamente, clicando no [ Reported ] marcador enquanto segura ctrl.<br /><br />No entanto, alguns administradores podem optar por desativar esse recurso, porque ela promove a resolução de relatórios sem os ler primeiro. Isso é certo em casos triviais (que é por isso que existe este recurso), mas se você encontrar o seu prazo demasiado curto mods resolver relatórios, você pode querer verificar essa.';
$helptxt['report_board_pm'] = 'o Quadro, para serem utilizados para mensagens pessoais relatadas. Isto pode ou não ser o mesmo que o cartão utilizado para comunicados posts.<br /><br />No entanto, lembre-se de mensagens pessoais são chamados pessoais por um motivo, é aconselhável para usar uma placa dedicada para esse acesso somente com admin. Apesar de que depende do seu caso individual, de curso.<br /><br />Definindo-o para 0 (ou vazias) permitirá que o padrão de comunicação através de mensagens pessoais pm.';]]></add>
        </operation>

    </file>
Title: Re: vReportBoard Mod
Post by: HecKel on November 09, 2008, 07:57:54 PM
hey joomlamz, that is in pt_BR. I think you know that SMF has one language package to pt_BR as well, in my honest opinion I think that translation shouldn'y be in pt_PT.

And if you don't mind, some of your translations have some issues, they don't have a proper meaning, for example:

$txt['disable_quicksolve'] = 'Desabilite rápida de resolver';

Why not link this:

$txt['disable_quicksolve'] = 'Desabilite a funcionalidade de resolução rápida';

You have more translations like this one, please look at this again ;)
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 11, 2008, 03:34:23 AM
"Kimmie"
I solved it (how ironic huh, solving solution stuff), couple of SQL queries and its done. Btw, when you delete report topic it won't make any difference. Because system keep tracking reports within different table and you can't access it directly in forum. Deletion of whole report topic means nothing since you can't edit that table. But those aren't problem anymore.

System still works like old way does, it adds new repply if that message already reported. But this time it bumps up in topic listing, so you won't miss anything. Also topic icon is reversing to unsolved. I hope this is what we want?

Find in $sourcedir/SendTopic.php:
    // insert into report log
    if($oldtopic == 0)
        db_query("INSERT INTO {$db_prefix}log_reports (ID_MSG, ID_TOPIC, solved) VALUES ($_POST[msg], $topicOptions[id], 0)", __FILE__, __LINE__);


Add after:

    // If this message already reported (and may solved later), then make it UNSOLVED again because its reported for some reasons again.
    if($oldtopic != 0)
    {
    // This is "reported" entry appears red/green in posts
        db_query("
        UPDATE {$db_prefix}log_reports
        SET solved = 0
        WHERE ID_TOPIC = $oldtopic
        LIMIT 1", __FILE__, __LINE__);

// Get first message of "report topic"
$request = db_query("
SELECT m.ID_MSG
FROM {$db_prefix}topics AS t, {$db_prefix}messages AS m
WHERE t.ID_TOPIC = $oldtopic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($first_msg) = mysql_fetch_row($request);
mysql_free_result($request);

// Set first message of report topic's icon UNSOLVED
db_query("
UPDATE {$db_prefix}messages
SET icon = 'unsolved'
WHERE ID_MSG = $first_msg
LIMIT 1", __FILE__, __LINE__);
}
Title: Re: vReportBoard Mod
Post by: Kimmie on November 11, 2008, 07:34:23 AM
Thanks for getting back to me on this. I will try it and see if it works.

I have a question though. Since it obviously already knows to check for any existing reports on that post because it makes a reply to the original report thread if there is one, can it just be made so that while its checking for the existance of a thread anyways, it also checks to see if that thread has already been marked solved and if it is, just have it make a completely new thread instead of making a reply? that would completely solve the issue of deleting the thread and then you would be able to delete old threads that are no longer needed. Since its set up to always make replies, you will never be able to delete any old threads because any new reports made on that same post will always be dependant on them being there so it can make a reply.

I would like a way to be able to delete old threads because they would no longer be needed if they are solved. I just think it would be easier that way..hehehe. If it cant be done, thats ok - its merely a suggestion since its already looking for report threads anyways I just figured you could just add another line of code like an if/else statement to say something like

if
There is no thread started;
Make a new thread
endif

if
a thread is already started on this post;
and it has been marked solved;
make a new thread

else
make a reply

I am going to try your suggestion later today and I will let you know how it works. It sounds like it will be atleast better than the way the mod is set up now. :). Thanks again!! :)
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 11, 2008, 08:54:32 AM
"Kimmie"
Yeah this one is possible also. One checkbox in settings page and if you set it new reports doesn't show as repply under original one if its already solved (and maybe report has been deleted later). In summary: Second report belong same message will be in different report topic if previous report has been solved. You want that huh?
Title: Re: vReportBoard Mod
Post by: Kimmie on November 12, 2008, 02:11:19 PM
Quote from: SONSiVRi on November 11, 2008, 08:54:32 AM
"Kimmie"
Yeah this one is possible also. One checkbox in settings page and if you set it new reports doesn't show as repply under original one if its already solved (and maybe report has been deleted later). In summary: Second report belong same message will be in different report topic if previous report has been solved. You want that huh?


YES YES YES PLEASE   heheheheh

I havent tried your new code you already posted yet. Do you want me to go ahead and apply the new codes or do I need to wait and just apply the ones you are going to make?
Title: Re: vReportBoard Mod
Post by: Costa on November 12, 2008, 03:16:38 PM
Quote from: HecKel on November 09, 2008, 07:57:54 PM
And if you don't mind, some of your translations have some issues, they don't have a proper meaning, for example:
some?!?!
The translation from joomlamz have VERY issues.
The SimplePortal have very things made by Google!
When you translate something you need to havecautions, see if the phrases made sense.

$txt['report_solve'] = 'Solve/Unsolve';
Where is the translation?

$txt['permissionname_report_solve'] = 'Resolvido Relat&oacute;rios';

What?!

$txt['permissionhelp_report_seeinline'] = 'Essa permiss&atilde;o mostra um marcador de lugares comunicados na mensagem opini&atilde;o, e indica se eles foram ou n&atilde;o resolvidos.';

WTF?!

Please, have more carefull when you translate mod's, the Portuguese/Brazilian/Mozambique/Angola/ect etc Community have pleased.

Farewell
- Costa
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 13, 2008, 03:15:02 AM
Quote from: Kimmie on November 12, 2008, 02:11:19 PM
Quote from: SONSiVRi on November 11, 2008, 08:54:32 AM
"Kimmie"
Yeah this one is possible also. One checkbox in settings page and if you set it new reports doesn't show as repply under original one if its already solved (and maybe report has been deleted later). In summary: Second report belong same message will be in different report topic if previous report has been solved. You want that huh?


YES YES YES PLEASE   heheheheh

I havent tried your new code you already posted yet. Do you want me to go ahead and apply the new codes or do I need to wait and just apply the ones you are going to make?

If you don't have a test place so don't bother. Because I will work on new one as you asked.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 13, 2008, 05:59:43 AM
"Kimmie"
It's ready. But its not same as you wanted. I didn't changed the working style, reports goes under as repply in already created topics. But this time you can freely delete those topics.

Here is the story of how it's work;
If new report has arrives, system checks already made it before and if its then it passes through second check routine (that I included). This additional routine checks original topic exist or not. If it doesn't exist anymore (because you deleted) system adds fresh new topic. But if exist and solved, it bumps up that topic and change it's situation into "unsolved" and you can do whatever you want. This way is better because you can see how many times a topic is reported and you may take extra actions.

Find in SendTopic.php
// Report to the report board.
function ReportToModerator2()
{
bla bla bla
}


Replace with
// Report to the report board.
function ReportToModerator2()
{

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();

// You must have the proper permissions!
isAllowedTo('report_any');

include_once($sourcedir . '/Subs-Post.php');

if(empty($modSettings['report_board']))
fatal_lang_error('rtm_noboard');

if($board == $modSettings['report_board'])
fatal_lang_error('rtm_reportboard');

// Get the basic topic information, and make sure they can see it.
$_POST['msg'] = (int) $_POST['msg'];

// fetch quote and stuff
$request = db_query("
SELECT m.ID_MEMBER, IFNULL(lr.ID_TOPIC, 0), m.posterName, mem.realName, m.posterTime, m.subject, m.body
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS mem ON (m.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}log_reports AS lr ON (m.ID_MSG = lr.ID_MSG)
WHERE m.ID_MSG = $_POST[msg]
AND m.ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($member, $oldtopic, $posterName, $realName, $mdate, $form_subject, $form_message) = mysql_fetch_row($request);
mysql_free_result($request);

// Check report topic exist anymore. Returns 0 if its not.
$request = db_query("
SELECT IFNULL(ID_TOPIC, 0)
FROM {$db_prefix}topics
WHERE ID_TOPIC = $oldtopic
LIMIT 1", __FILE__, __LINE__);
list ($oldtopic_exist) = mysql_fetch_row($request);
mysql_free_result($request);

// if "report topic" isn't exist anymore.
if ($oldtopic_exist == 0)
{
// delete report entry in database
db_query("
DELETE FROM {$db_prefix}log_reports
WHERE ID_TOPIC = $oldtopic
LIMIT 1", __FILE__, __LINE__);
// and make $oldtopic = 0 so new topic can be created instead of posting repply in old one
$oldtopic = 0;
}

if ($member == $ID_MEMBER)
fatal_lang_error('rtm_not_own', false);

$form_message = preg_replace('~<br(?: /)?' . '>~i', "\n", $form_message);

// Remove any nested quotes, if necessary.
if (!empty($modSettings['removeNestedQuotes']))
$form_message = preg_replace(array('~\n?\[quote.*?\].+?\[/quote\]\n?~is', '~^\n~', '~\[/quote\]~'), '', $form_message);
// and replace all img tgs by url tags
$form_message = preg_replace('/\[img\](.+?)\[\/img\]/is', '[url]\1[/url]', $form_message);
// Add a quote string on the front and end.
$form_message = '[quote author=' . $posterName . ' link=topic=' . $topic . '.msg' . $_POST['msg'] . '#msg' . $_POST['msg'] . ' date=' . $mdate . ']' . "\n" . $form_message . "\n" . '[/quote]';

// some parsing
$message = htmlspecialchars($_POST['comment'], ENT_QUOTES) . "\n\n" . $form_message;
preparsecode($message);

// we need to know :)
$query = db_query("
SELECT countPosts
FROM {$db_prefix}boards
WHERE ID_BOARD = $modSettings[report_board]", __FILE__, __LINE__);
if(mysql_num_rows($query) > 0)
list($countPosts) = mysql_fetch_row($query);
    else
        fatal_lang_error('rtm_notexist');

// set up all options
$msgOptions = array(
'id' => 0,
'subject' => '[' . addslashes($board_info['name']) . '] ' . addslashes($form_subject),
'body' => addslashes($message),
'icon' => 'unsolved',
'smileys_enabled' => true,
'attachments' => array(),
);
$topicOptions = array(
'id' => $oldtopic,
'board' => $modSettings['report_board'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'mark_as_read' => false,
);
$posterOptions = array(
'id' => $ID_MEMBER,
'name' => $user_info['username'],
'email' => $user_info['email'],
// do reports count as posts?
'update_post_count' => !empty($countPosts),
);

// and post!
createPost($msgOptions, $topicOptions, $posterOptions);

    // insert into report log
    if($oldtopic == 0)
        db_query("INSERT INTO {$db_prefix}log_reports (ID_MSG, ID_TOPIC, solved) VALUES ($_POST[msg], $topicOptions[id], 0)", __FILE__, __LINE__);

// If this message already reported (and may solved later), then make it UNSOLVED again because its reported for some reasons again.
if($oldtopic != 0)
{
// This is "reported" entry appears red/green in posts
db_query("
UPDATE {$db_prefix}log_reports
SET solved = 0
WHERE ID_TOPIC = $oldtopic
LIMIT 1", __FILE__, __LINE__);

// Get first message of "report topic"
$request = db_query("
SELECT m.ID_MSG
FROM {$db_prefix}topics AS t, {$db_prefix}messages AS m
WHERE t.ID_TOPIC = $oldtopic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($first_msg) = mysql_fetch_row($request);
mysql_free_result($request);

// Set first message of report topic's icon UNSOLVED
db_query("
UPDATE {$db_prefix}messages
SET icon = 'unsolved'
WHERE ID_MSG = $first_msg
LIMIT 1", __FILE__, __LINE__);
}

// Back to the board!
redirectexit('board=' . $board . '.0');
}
Title: Re: vReportBoard Mod
Post by: Kimmie on November 14, 2008, 11:05:50 AM
SONSiVRi

You are my hero hehehe. I will try out the new codes later this afternoon. I am waiting on my cable guy to come out right now because I am switching internet service providers so I will get you some feedback on it in a few hours after I have had time to test it out :)
Title: Re: vReportBoard Mod
Post by: klra on November 14, 2008, 12:21:27 PM
Any chance of an update to 1.1.7?
Title: Re: vReportBoard Mod
Post by: Costa on November 14, 2008, 02:25:23 PM
It works on SMF 1.1.7
I have 2 foruns (one open pubic, other for test) and this mod works on both
Title: Re: vReportBoard Mod
Post by: klra on November 14, 2008, 07:01:24 PM
Quote from: Costa on November 14, 2008, 02:25:23 PM
It works on SMF 1.1.7
I have 2 foruns (one open pubic, other for test) and this mod works on both

It still shows 1.1.4 on the Mod site.
Title: Re: vReportBoard Mod
Post by: Costa on November 15, 2008, 06:34:37 AM
The author don't update, but works in 1.1.7

Farewell
- Costa
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 15, 2008, 07:27:18 AM
Quote from: klra on November 14, 2008, 07:01:24 PM
Quote from: Costa on November 14, 2008, 02:25:23 PM
It works on SMF 1.1.7
I have 2 foruns (one open pubic, other for test) and this mod works on both

It still shows 1.1.4 on the Mod site.
This will help;
http://www.site.com/forum/index.php?action=packages;emulate_version=1.1.7
Title: Re: vReportBoard Mod
Post by: Costa on November 15, 2008, 07:44:35 AM
For 1.1.6 and 1.1.7, just upload the attach on this post

It works in SMF 1.1.6/7
Title: Re: vReportBoard Mod
Post by: Rhine on November 15, 2008, 12:29:43 PM
Is it possible to make that solved reports comes in their own forum?
Title: Re: vReportBoard Mod
Post by: klra on November 15, 2008, 12:34:00 PM
Quote from: SONSiVRi on November 15, 2008, 07:27:18 AM
Quote from: klra on November 14, 2008, 07:01:24 PM
Quote from: Costa on November 14, 2008, 02:25:23 PM
It works on SMF 1.1.7
I have 2 foruns (one open pubic, other for test) and this mod works on both

Bad link -

It still shows 1.1.4 on the Mod site.
This will help;
http://www.site.com/forum/index.php?action=packages;emulate_version=1.1.7
Title: Re: vReportBoard Mod
Post by: klra on November 15, 2008, 12:43:09 PM

Quote from: Costa on November 15, 2008, 07:44:35 AM
For 1.1.6 and 1.1.7, just upload the attach on this post

It works in SMF 1.1.6/7

I get this error -

Execute Modification   ./Sources/ManagePermissions.php   Test failed
Title: Re: vReportBoard Mod
Post by: klra on November 15, 2008, 12:50:51 PM
Quote from: SONSiVRi on November 15, 2008, 07:27:18 AM
Quote from: klra on November 14, 2008, 07:01:24 PM
Quote from: Costa on November 14, 2008, 02:25:23 PM
It works on SMF 1.1.7
I have 2 foruns (one open pubic, other for test) and this mod works on both

It still shows 1.1.4 on the Mod site.
This will help;
http://www.site.com/forum/index.php?action=packages;emulate_version=1.1.7

OK, I just reread your post, not sure what to do with this.

Wouldn't it just be easier to just update the package to 1.1.7?
Title: Re: vReportBoard Mod
Post by: Sabre™ on November 15, 2008, 02:55:15 PM
You are not supposed to bump a thread within a 24 hour time frame, yet alone 3 times in 16 minutes.  ::)
With 233 posts here, you'd think you'd know this !!??
This is a world forum where we live in different time frames, so sometimes you need to WAIT!!!

Quote from: klra on November 15, 2008, 12:50:51 PM
Wouldn't it just be easier to just update the package to 1.1.7?

Only the mod author can update the package on the mod page.
You can go to the mod download page and click on "Notify me of updates!" to wait for that.
Or...      with your error, you can still install the mod, then add this code to your  ManagePermissions.php  in your sources folder.

Find
'karma_edit' => false,

and add after it

'report_solve' => false,
'report_seeinline' => false,


then find
'pm_send',

and add after it
'report_solve',
Title: Re: vReportBoard Mod
Post by: klra on November 16, 2008, 04:00:39 PM
QuoteYou are not supposed to bump a thread within a 24 hour time frame, yet alone 3 times in 16 minutes

They were not bumps, but replys,and one was a double reply that I didn't submit (I removed it).

Thanks for the lecture. A person with your massive amount of posts and experience should understand that the private message system is usually used to address these types of issues, unless you are trying to embarass me.

Sorry for the thread creep-
Title: Re: vReportBoard Mod
Post by: Costa on November 16, 2008, 04:12:54 PM
Please, calm down guys
If you two have a problem, resolve that by PM, not with public posts




klra, did your problem as resolved?
Title: Re: vReportBoard Mod
Post by: klra on November 16, 2008, 04:18:14 PM
Unfortunately, no.

I tried your package and it won't install. Not quite sure why though, as it is setup correctly with the version information (I tried my own edits before).

Any suggestions?

I'd really like to have this Mod installed, as it looks like a great tool for the staff of of my forums.
Title: Re: vReportBoard Mod
Post by: Costa on November 16, 2008, 04:21:22 PM
Klra, wich files have fail test?
Attach them to your posts, please
Title: Re: vReportBoard Mod
Post by: klra on November 16, 2008, 04:30:06 PM
Quote from: Costa on November 16, 2008, 04:21:22 PM
Klra, wich files have fail test?
Attach them to your posts, please

ManagePermissions.php

Title: Re: vReportBoard Mod
Post by: Sabre™ on November 16, 2008, 06:39:42 PM
Quote from: klra on November 16, 2008, 04:00:39 PM
Sorry for the thread creep-

Creep?
Use the edit button idiot!!

You embarrass yourself with your ignorance, and I, with a reply to it.

I offered assistance after pointing out your 16 minutes of fame, and as far as Im concerned...
You can Choke on it!!
I will not reply to any further foolishness.
Title: Re: vReportBoard Mod
Post by: klra on November 17, 2008, 12:46:29 AM
QuoteCreep?
Use the edit button idiot!!

You embarrass yourself with your ignorance, and I, with a reply to it.

"Thread creep" is another term for an off topic comment or threadjack.

Got it, Einstien?

Title: Re: vReportBoard Mod
Post by: Kimmie on November 17, 2008, 12:56:27 AM
klra to get it to install on 1.1.7 all you need to do is download the mod, open up the package xml file and add 1.1.7 to both the "install" and "uninstall" lines of that file, rezip it back up and upload it.

If your getting a test failed that means that you have another mod that has already edited that files codes for that area so you will need to just manually install the code into that file.
Title: Re: vReportBoard Mod
Post by: klra on November 17, 2008, 12:59:39 AM
Thanks Kimmie, I tried version edits & it failed, so it must be related to an installed module as you have said.

Thank you for your help -
Title: Re: vReportBoard Mod
Post by: Sabre™ on November 17, 2008, 01:07:56 AM
Quote from: klra on November 17, 2008, 12:46:29 AM
"Thread creep" is another term for an off topic comment or threadjack.

Ahhh my apologies.
I thought it was worse off than it actually is.
It isnt expected for everyone to know all bogan slang is it?
English is my third language, so I learn more within each thread :)

Quote from: klra on November 17, 2008, 12:46:29 AM
Got it, Einstien?

round n round we go....

Try the attached file after you've installed the mod.
Thats if you choose to :)
Title: Re: vReportBoard Mod
Post by: klra on November 17, 2008, 01:10:12 AM
Thank you Sabre, I will check it out.
Title: Re: vReportBoard Mod
Post by: Sabre™ on November 17, 2008, 01:14:48 AM
Hopefully it solves your issue.
SONSiVRi has added some nice tips within this thread also, some may interest you.

Good luck :)
Title: Re: vReportBoard Mod
Post by: Kimmie on November 17, 2008, 01:21:21 AM
Quote from: SONSiVRi on November 13, 2008, 05:59:43 AM
"Kimmie"
It's ready. But its not same as you wanted. I didn't changed the working style, reports goes under as repply in already created topics. But this time you can freely delete those topics.

Here is the story of how it's work;
If new report has arrives, system checks already made it before and if its then it passes through second check routine (that I included). This additional routine checks original topic exist or not. If it doesn't exist anymore (because you deleted) system adds fresh new topic. But if exist and solved, it bumps up that topic and change it's situation into "unsolved" and you can do whatever you want. This way is better because you can see how many times a topic is reported and you may take extra actions.

Find in SendTopic.php
// Report to the report board.
function ReportToModerator2()
{
bla bla bla
}


Replace with
// Report to the report board.
function ReportToModerator2()
{

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();

// You must have the proper permissions!
isAllowedTo('report_any');

include_once($sourcedir . '/Subs-Post.php');

if(empty($modSettings['report_board']))
fatal_lang_error('rtm_noboard');

if($board == $modSettings['report_board'])
fatal_lang_error('rtm_reportboard');

// Get the basic topic information, and make sure they can see it.
$_POST['msg'] = (int) $_POST['msg'];

// fetch quote and stuff
$request = db_query("
SELECT m.ID_MEMBER, IFNULL(lr.ID_TOPIC, 0), m.posterName, mem.realName, m.posterTime, m.subject, m.body
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS mem ON (m.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}log_reports AS lr ON (m.ID_MSG = lr.ID_MSG)
WHERE m.ID_MSG = $_POST[msg]
AND m.ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($member, $oldtopic, $posterName, $realName, $mdate, $form_subject, $form_message) = mysql_fetch_row($request);
mysql_free_result($request);

// Check report topic exist anymore. Returns 0 if its not.
$request = db_query("
SELECT IFNULL(ID_TOPIC, 0)
FROM {$db_prefix}topics
WHERE ID_TOPIC = $oldtopic
LIMIT 1", __FILE__, __LINE__);
list ($oldtopic_exist) = mysql_fetch_row($request);
mysql_free_result($request);

// if "report topic" isn't exist anymore.
if ($oldtopic_exist == 0)
{
// delete report entry in database
db_query("
DELETE FROM {$db_prefix}log_reports
WHERE ID_TOPIC = $oldtopic
LIMIT 1", __FILE__, __LINE__);
// and make $oldtopic = 0 so new topic can be created instead of posting repply in old one
$oldtopic = 0;
}

if ($member == $ID_MEMBER)
fatal_lang_error('rtm_not_own', false);

$form_message = preg_replace('~<br(?: /)?' . '>~i', "\n", $form_message);

// Remove any nested quotes, if necessary.
if (!empty($modSettings['removeNestedQuotes']))
$form_message = preg_replace(array('~\n?\[quote.*?\].+?\[/quote\]\n?~is', '~^\n~', '~\[/quote\]~'), '', $form_message);
// and replace all img tgs by url tags
$form_message = preg_replace('/\[img\](.+?)\[\/img\]/is', '[url]\1[/url]', $form_message);
// Add a quote string on the front and end.
$form_message = '[quote author=' . $posterName . ' link=topic=' . $topic . '.msg' . $_POST['msg'] . '#msg' . $_POST['msg'] . ' date=' . $mdate . ']' . "\n" . $form_message . "\n" . '[/quote]';

// some parsing
$message = htmlspecialchars($_POST['comment'], ENT_QUOTES) . "\n\n" . $form_message;
preparsecode($message);

// we need to know :)
$query = db_query("
SELECT countPosts
FROM {$db_prefix}boards
WHERE ID_BOARD = $modSettings[report_board]", __FILE__, __LINE__);
if(mysql_num_rows($query) > 0)
list($countPosts) = mysql_fetch_row($query);
    else
        fatal_lang_error('rtm_notexist');

// set up all options
$msgOptions = array(
'id' => 0,
'subject' => '[' . addslashes($board_info['name']) . '] ' . addslashes($form_subject),
'body' => addslashes($message),
'icon' => 'unsolved',
'smileys_enabled' => true,
'attachments' => array(),
);
$topicOptions = array(
'id' => $oldtopic,
'board' => $modSettings['report_board'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'mark_as_read' => false,
);
$posterOptions = array(
'id' => $ID_MEMBER,
'name' => $user_info['username'],
'email' => $user_info['email'],
// do reports count as posts?
'update_post_count' => !empty($countPosts),
);

// and post!
createPost($msgOptions, $topicOptions, $posterOptions);

    // insert into report log
    if($oldtopic == 0)
        db_query("INSERT INTO {$db_prefix}log_reports (ID_MSG, ID_TOPIC, solved) VALUES ($_POST[msg], $topicOptions[id], 0)", __FILE__, __LINE__);

// If this message already reported (and may solved later), then make it UNSOLVED again because its reported for some reasons again.
if($oldtopic != 0)
{
// This is "reported" entry appears red/green in posts
db_query("
UPDATE {$db_prefix}log_reports
SET solved = 0
WHERE ID_TOPIC = $oldtopic
LIMIT 1", __FILE__, __LINE__);

// Get first message of "report topic"
$request = db_query("
SELECT m.ID_MSG
FROM {$db_prefix}topics AS t, {$db_prefix}messages AS m
WHERE t.ID_TOPIC = $oldtopic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($first_msg) = mysql_fetch_row($request);
mysql_free_result($request);

// Set first message of report topic's icon UNSOLVED
db_query("
UPDATE {$db_prefix}messages
SET icon = 'unsolved'
WHERE ID_MSG = $first_msg
LIMIT 1", __FILE__, __LINE__);
}

// Back to the board!
redirectexit('board=' . $board . '.0');
}


ok I juist now had a chance to test this. I made a test report to see if it would add the reply and then change the topic to unsolved. That part worked however, when I went to mark the thread as solved again I got this immediate error:

(http://i34.tinypic.com/10rl8hs.gif)

And these 2 errors in my log:

http://patriotgames2.info/index.php?action=solve;topic=13520
Unable to load the 'main' template.


2: call_user_func(SolveTopic) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback
File: /home//public_html/index.php
Line: 140

-------

I also tested out if it would make a whole new thread once I archived the old report thread and it didnt. It still made a reply to the old thread but it also made the thread unsolved too.

I am attaching my sendtopic.php so you can take a look at it.

Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 19, 2008, 05:31:57 PM
"Kimmie"

I was banned and away. They carelessly banned whole mail domain used by spam bots and that included me (sneakemail).

If we come again to topic;
- "call_user_func(SolveTopic)" I dunno why this happened and I am going to find it.
- "Unable to load the 'main' template" this is caused of previous error. When error happens the rest of procedure won't processed and it cannot redirect page into theme. So there are #1 error only.

"...I archived the old report thread..."
What you mean by 'archived'. You move it into another board?
Title: Re: vReportBoard Mod
Post by: Kimmie on November 19, 2008, 11:04:05 PM
Quote from: SONSiVRi on November 19, 2008, 05:31:57 PM
"Kimmie"

I was banned and away. They carelessly banned whole mail domain used by spam bots and that included me (sneakemail).

If we come again to topic;
- "call_user_func(SolveTopic)" I dunno why this happened and I am going to find it.
- "Unable to load the 'main' template" this is caused of previous error. When error happens the rest of procedure won't processed and it cannot redirect page into theme. So there are #1 error only.

"...I archived the old report thread..."
What you mean by 'archived'. You move it into another board?

sorry to hear about your ban issue, I hope its all fixed now. :)

Yes, by archive I mean move to another board. I have a board set up called "Reported Posts" which is where all the new threads go to when something gets reported. I also have another area called The Dump"which is where I move old threads and stuff. It looks to me like: when it does its initial search to see if a report thread has been started or not, its searching the whole forum and not just the board I have set up for them to be which is why it finds the one I moved. Is there a way to just have it look in the one board? (I think that may be where the problem is).

I cant remember if I tried to actually "Delete" an old report thread and then make a new report. When you get the error fixed, I will try that and see what happens. If it works, that will take care of that half of the problem - and I will just delete the threads instead of archiving them.
Title: Re: vReportBoard Mod
Post by: Snow Wolf on November 20, 2008, 12:21:27 AM
Quote from: Kimmie on November 17, 2008, 12:56:27 AM
klra to get it to install on 1.1.7 all you need to do is download the mod, open up the package xml file and add 1.1.7 to both the "install" and "uninstall" lines of that file, rezip it back up and upload it.

If your getting a test failed that means that you have another mod that has already edited that files codes for that area so you will need to just manually install the code into that file.

I did that and I get an error message saying:

The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: vReportBoard Mod
Post by: Rhine on November 20, 2008, 01:02:20 AM
Quote from: Rhine on November 15, 2008, 12:29:43 PM
Is it possible to make that solved reports comes in their own board like in an subforum??
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 20, 2008, 05:03:53 AM
"Kimmie"

The problem was on you. You also deleted SolveTopic() function within ReportToModerator2(). I added BoardID control mechanism and its now checking topic located in which board. With this control you can delete reports or move it in another board. In this situation there will be fresh new report topic. But if you save solved reports in report board, it will be unsolved and pumped up if someone reports it again.

I am attaching implemented file here, you can check what differences made.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 20, 2008, 05:09:22 AM
Quote from: Snow Wolf on November 20, 2008, 12:21:27 AM
I did that and I get an error message saying:

The package you tried to upload either is not a valid package or has become corrupted.
Here is already made one: http://www.simplemachines.org/community/index.php?topic=107556.msg1799422#msg1799422

Quote from: Rhine on November 15, 2008, 12:29:43 PM
Is it possible to make that solved reports comes in their own board like in an subforum??
You mean you will have child boards for each boards you have and report topics will moved into child boards after solved them?
We are talking about report topic, not reported topic huh?
Title: Re: vReportBoard Mod
Post by: Rhine on November 20, 2008, 11:10:49 AM
Quote from: SONSiVRi on November 20, 2008, 05:09:22 AM
Quote from: Rhine on November 15, 2008, 12:29:43 PM
Is it possible to make that solved reports comes in their own board like in an subforum??
You mean you will have child boards for each boards you have and report topics will moved into child boards after solved them?
We are talking about report topic, not reported topic huh?

Like someone report post "Test Report post"

And it creates an report in the report board (like it its now) and when the report is set as solved it moves to a child board in the reported posts forum like:

--- Category: Report Section For
Title: Re: vReportBoard Mod
Post by: Rhine on November 20, 2008, 11:12:44 AM
Quote from: SONSiVRi on November 20, 2008, 05:09:22 AM
Quote from: Rhine on November 15, 2008, 12:29:43 PM
Is it possible to make that solved reports comes in their own board like in an subforum??
You mean you will have child boards for each boards you have and report topics will moved into child boards after solved them?
We are talking about report topic, not reported topic huh?

Like someone report post "Test Report post"

And it creates an report in the report board (like it its now) and when the report is set as solved it moves to a child board in the reported posts forum like:

--- Category: Report Section!
-----Forum board: Reported Posts <-- Reported Post goes here, as unsolved.
-----------Child Board of the forum Board: Reported Posts <-- and when the report has been solved it goes here.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 21, 2008, 01:01:30 PM
Quote from: Rhine on November 20, 2008, 11:12:44 AM
Like someone report post "Test Report post"

And it creates an report in the report board (like it its now) and when the report is set as solved it moves to a child board in the reported posts forum like:

--- Category: Report Section!
-----Forum board: Reported Posts <-- Reported Post goes here, as unsolved.
-----------Child Board of the forum Board: Reported Posts <-- and when the report has been solved it goes here.

It can be done of course. But its needs so specific coding and I can't do it easily. I can't help with that.
Title: Re: vReportBoard Mod
Post by: Kimmie on November 23, 2008, 04:09:08 AM
Quote from: SONSiVRi on November 20, 2008, 05:03:53 AM
"Kimmie"

The problem was on you. You also deleted SolveTopic() function within ReportToModerator2(). I added BoardID control mechanism and its now checking topic located in which board. With this control you can delete reports or move it in another board. In this situation there will be fresh new report topic. But if you save solved reports in report board, it will be unsolved and pumped up if someone reports it again.

I am attaching implemented file here, you can check what differences made.


I figured it was probably something I did which is why I went ahead and attached the file..lol. I will try the updated file that you posted tomorrow and see how works and let you know.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on November 23, 2008, 12:41:31 PM
Waiting for hearing from you.
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on November 26, 2008, 12:13:28 AM
I have taken the latest version (1.03), edited the xml file to install and uninstall on 1.1.7.  The MOD is only partially operational.

The Report to Moderator flags the offending post, opens a new topic in the correct board, and deposits the report.

It does NOT send any alerts.  Even with the board set to notify when a new topic is created, no alert is sent out.

I suspect corruption of the php file, but don't know what is wrong.  I get alerts from other boards I have set to Notify, and if I go to the newly created topic, I can request Notify from it.

Any help would be welcome, as we like the MOD, and having a way to track responses to a report, but not getting notified is causing response issues.

Grazie!

Cal
Title: Re: vReportBoard Mod
Post by: themortalgod on November 27, 2008, 10:01:51 AM
Hey I have read threw most of this topic and to change who can set topics as solved it seems that I just have to change a permission? What permission do I need to allow? I don't seem to have any in my permissions list that seem to have anything to do with vReport? I am using v1.03 with SMF 1.1.6, could there be a problem with the installation?

any direction would be fantastic

thx
Title: Re: vReportBoard Mod
Post by: Kimmie on December 01, 2008, 11:49:07 PM
Quote from: SONSiVRi on November 23, 2008, 12:41:31 PM
Waiting for hearing from you.

Sorry it has taken me so long to get back with you on this, I have been under the weather alot lately.

IT WORKS IT WORKS YIPPPPEEEE IT WORKS!!!  hhehehe

Just one thing I noticed - when a report gets marked as solved, its now adding a reply to that thread automatically stating who locked it.

(http://i33.tinypic.com/azfh9w.gif)

This is a VERY NICE addition to the mod. Should a thread happen to not get moved (archived) before a new report is made on that same post, it lets you know exactly where the new report starts if there are alot of replies that have been made up to that point. THANK YOU for all your work on this. You are my HERO!!    :D
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 02, 2008, 03:03:44 PM
Ahh I forgot to delete that part I improved. I added this because sometimes wrong solutions can made and you should know who made it without checking modlog. And you can see which moderator works hard. Seems you found it nice too. If anything goes wrong or you may different actions, just tell and I may handle if I have time to do it.
Title: Re: vReportBoard Mod
Post by: Mo786 on December 04, 2008, 10:39:19 PM
Quote from: SONSiVRi on November 20, 2008, 05:03:53 AM
"Kimmie"

The problem was on you. You also deleted SolveTopic() function within ReportToModerator2(). I added BoardID control mechanism and its now checking topic located in which board. With this control you can delete reports or move it in another board. In this situation there will be fresh new report topic. But if you save solved reports in report board, it will be unsolved and pumped up if someone reports it again.

I am attaching implemented file here, you can check what differences made.
So does that mean the modification you posted earlier works?

Quote from: SONSiVRi on November 13, 2008, 05:59:43 AM
"Kimmie"
It's ready. But its not same as you wanted. I didn't changed the working style, reports goes under as repply in already created topics. But this time you can freely delete those topics.

Here is the story of how it's work;
If new report has arrives, system checks already made it before and if its then it passes through second check routine (that I included). This additional routine checks original topic exist or not. If it doesn't exist anymore (because you deleted) system adds fresh new topic. But if exist and solved, it bumps up that topic and change it's situation into "unsolved" and you can do whatever you want. This way is better because you can see how many times a topic is reported and you may take extra actions.

Find in SendTopic.php
// Report to the report board.
function ReportToModerator2()
{
bla bla bla
}


Replace with
// Report to the report board.
function ReportToModerator2()
{

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();

// You must have the proper permissions!
isAllowedTo('report_any');

include_once($sourcedir . '/Subs-Post.php');

if(empty($modSettings['report_board']))
fatal_lang_error('rtm_noboard');

if($board == $modSettings['report_board'])
fatal_lang_error('rtm_reportboard');

// Get the basic topic information, and make sure they can see it.
$_POST['msg'] = (int) $_POST['msg'];

// fetch quote and stuff
$request = db_query("
SELECT m.ID_MEMBER, IFNULL(lr.ID_TOPIC, 0), m.posterName, mem.realName, m.posterTime, m.subject, m.body
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS mem ON (m.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}log_reports AS lr ON (m.ID_MSG = lr.ID_MSG)
WHERE m.ID_MSG = $_POST[msg]
AND m.ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($member, $oldtopic, $posterName, $realName, $mdate, $form_subject, $form_message) = mysql_fetch_row($request);
mysql_free_result($request);

// Check report topic exist anymore. Returns 0 if its not.
$request = db_query("
SELECT IFNULL(ID_TOPIC, 0)
FROM {$db_prefix}topics
WHERE ID_TOPIC = $oldtopic
LIMIT 1", __FILE__, __LINE__);
list ($oldtopic_exist) = mysql_fetch_row($request);
mysql_free_result($request);

// if "report topic" isn't exist anymore.
if ($oldtopic_exist == 0)
{
// delete report entry in database
db_query("
DELETE FROM {$db_prefix}log_reports
WHERE ID_TOPIC = $oldtopic
LIMIT 1", __FILE__, __LINE__);
// and make $oldtopic = 0 so new topic can be created instead of posting repply in old one
$oldtopic = 0;
}

if ($member == $ID_MEMBER)
fatal_lang_error('rtm_not_own', false);

$form_message = preg_replace('~<br(?: /)?' . '>~i', "\n", $form_message);

// Remove any nested quotes, if necessary.
if (!empty($modSettings['removeNestedQuotes']))
$form_message = preg_replace(array('~\n?\[quote.*?\].+?\[/quote\]\n?~is', '~^\n~', '~\[/quote\]~'), '', $form_message);
// and replace all img tgs by url tags
$form_message = preg_replace('/\[img\](.+?)\[\/img\]/is', '[url]\1[/url]', $form_message);
// Add a quote string on the front and end.
$form_message = '[quote author=' . $posterName . ' link=topic=' . $topic . '.msg' . $_POST['msg'] . '#msg' . $_POST['msg'] . ' date=' . $mdate . ']' . "\n" . $form_message . "\n" . '[/quote]';

// some parsing
$message = htmlspecialchars($_POST['comment'], ENT_QUOTES) . "\n\n" . $form_message;
preparsecode($message);

// we need to know :)
$query = db_query("
SELECT countPosts
FROM {$db_prefix}boards
WHERE ID_BOARD = $modSettings[report_board]", __FILE__, __LINE__);
if(mysql_num_rows($query) > 0)
list($countPosts) = mysql_fetch_row($query);
    else
        fatal_lang_error('rtm_notexist');

// set up all options
$msgOptions = array(
'id' => 0,
'subject' => '[' . addslashes($board_info['name']) . '] ' . addslashes($form_subject),
'body' => addslashes($message),
'icon' => 'unsolved',
'smileys_enabled' => true,
'attachments' => array(),
);
$topicOptions = array(
'id' => $oldtopic,
'board' => $modSettings['report_board'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'mark_as_read' => false,
);
$posterOptions = array(
'id' => $ID_MEMBER,
'name' => $user_info['username'],
'email' => $user_info['email'],
// do reports count as posts?
'update_post_count' => !empty($countPosts),
);

// and post!
createPost($msgOptions, $topicOptions, $posterOptions);

    // insert into report log
    if($oldtopic == 0)
        db_query("INSERT INTO {$db_prefix}log_reports (ID_MSG, ID_TOPIC, solved) VALUES ($_POST[msg], $topicOptions[id], 0)", __FILE__, __LINE__);

// If this message already reported (and may solved later), then make it UNSOLVED again because its reported for some reasons again.
if($oldtopic != 0)
{
// This is "reported" entry appears red/green in posts
db_query("
UPDATE {$db_prefix}log_reports
SET solved = 0
WHERE ID_TOPIC = $oldtopic
LIMIT 1", __FILE__, __LINE__);

// Get first message of "report topic"
$request = db_query("
SELECT m.ID_MSG
FROM {$db_prefix}topics AS t, {$db_prefix}messages AS m
WHERE t.ID_TOPIC = $oldtopic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($first_msg) = mysql_fetch_row($request);
mysql_free_result($request);

// Set first message of report topic's icon UNSOLVED
db_query("
UPDATE {$db_prefix}messages
SET icon = 'unsolved'
WHERE ID_MSG = $first_msg
LIMIT 1", __FILE__, __LINE__);
}

// Back to the board!
redirectexit('board=' . $board . '.0');
}

Does this work without any errors since you said the problem was on that guy's end.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 05, 2008, 07:47:58 AM
"Mo786"

Forget earlier edits I posted. You may just take a look at this: http://www.simplemachines.org/community/index.php?topic=107556.msg1806785#msg1806785
I attached file there and compare with yours, so you can see what differences made.
And this code also makes "reported by xxx" post when who solves it. You may delete that part.
Screenshot posted 3-4 posts above.
Title: Re: vReportBoard Mod
Post by: klra on December 05, 2008, 09:35:02 AM
Will an updated version be posted at the Mod site, oe possibly here in this topic?
Title: Re: vReportBoard Mod
Post by: Kimmie on December 21, 2008, 02:10:03 AM
I have been trying to get this feature to work for months now:

Added option (by permission) to show a marker of reported posts in message view, and their solve status

But unless I am blind it doesnt work. Can anyone show me where exactly in the message that is shows this to the member?
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 22, 2008, 02:20:25 PM
Quote from: Kimmie on December 21, 2008, 02:10:03 AM
I have been trying to get this feature to work for months now:

Added option (by permission) to show a marker of reported posts in message view, and their solve status

But unless I am blind it doesnt work. Can anyone show me where exactly in the message that is shows this to the member?

Is this what you are talking about http://www.simplemachines.org/community/index.php?topic=107556.msg1745915#msg1745915 ?
Title: Re: vReportBoard Mod
Post by: HR on December 26, 2008, 01:17:57 PM
Appreciated to be sure but this FTP garbage on install bugs me something serious. I cant ever get past the thing
Title: Re: vReportBoard Mod
Post by: KadirX on December 26, 2008, 02:19:52 PM
It works with 1.1.7 :)
I just installed a clean smf, then installed this package ;)
It works.
Title: Re: vReportBoard Mod
Post by: phpMyTony on December 26, 2008, 02:22:08 PM
Good idea! Well donee :)
Title: Re: vReportBoard Mod
Post by: HR on December 26, 2008, 03:16:21 PM
Quote from: KadirX on December 26, 2008, 02:19:52 PM
It works with 1.1.7 :)
I just installed a clean smf, then installed this package ;)
It works.
Never said it didnt work, did say I couldnt get it installed via package manager due to FTP window.
Title: Re: vReportBoard Mod
Post by: foempspeedy on December 26, 2008, 07:22:46 PM
Quote from: KadirX on December 26, 2008, 02:19:52 PM
It works with 1.1.7 :)
I just installed a clean smf, then installed this package ;)
It works.
I want this mod too ,but the info says it isnt compatible for 1.1.7
Or what i do to get it working if ..change codes?..
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 27, 2008, 05:53:31 AM
foempspeedy
what info, just dont say "its not wroking....." give us proper informations, which steps you have taken.

damn, this is like solving puzzle.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 27, 2008, 05:55:15 AM
Quote from: HR on December 26, 2008, 03:16:21 PM
Quote from: KadirX on December 26, 2008, 02:19:52 PM
It works with 1.1.7 :)
I just installed a clean smf, then installed this package ;)
It works.
Never said it didnt work, did say I couldnt get it installed via package manager due to FTP window.
Is it asking ftp informations?
Title: Re: vReportBoard Mod
Post by: foempspeedy on December 27, 2008, 07:15:51 AM
Quote from: SONSiVRi on December 27, 2008, 05:53:31 AM
foempspeedy
what info, just dont say "its not wroking....." give us proper informations, which steps you have taken.

damn, this is like solving puzzle.
I didn say that..i see on mod info it isnt compatible for 1.1.7 but some posted here they installed.
I rather ask then install and get my some files messed up or unable to install.
Just asking if install with packager works or i have to manual edit/add still
Title: Re: vReportBoard Mod
Post by: HR on December 27, 2008, 11:14:06 AM
Quote from: SONSiVRi on December 27, 2008, 05:55:15 AM
Quote from: HR on December 26, 2008, 03:16:21 PM
Quote from: KadirX on December 26, 2008, 02:19:52 PM
It works with 1.1.7 :)
I just installed a clean smf, then installed this package ;)
It works.
Never said it didnt work, did say I couldnt get it installed via package manager due to FTP window.
Is it asking ftp informations?
Yes, and I know for certain all my files have the proper permissions.. just an annoyance really.
Title: Re: vReportBoard Mod
Post by: foempspeedy on December 27, 2008, 11:35:38 AM
Quote from: foempspeedy on December 27, 2008, 07:15:51 AM
Quote from: SONSiVRi on December 27, 2008, 05:53:31 AM
foempspeedy
what info, just dont say "its not wroking....." give us proper informations, which steps you have taken.

damn, this is like solving puzzle.
I didn say that..i see on mod info it isnt compatible for 1.1.7 but some posted here they installed.
I rather ask then install and get my some files messed up or unable to install.
Just asking if install with packager works or i have to manual edit/add still
and whoever said it installs from package manager on 1.1.7 impossible
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 27, 2008, 03:43:27 PM
Quote from: HR on December 27, 2008, 11:14:06 AM
Yes, and I know for certain all my files have the proper permissions.. just an annoyance really.
Informations asked for exporting icon files located in archieve files. You need directory permissions to set also.

Quote from: foempspeedy on December 27, 2008, 07:15:51 AM
I didn say that..i see on mod info it isnt compatible for 1.1.7 but some posted here they installed.
I rather ask then install and get my some files messed up or unable to install.
Just asking if install with packager works or i have to manual edit/add still
Use this method for evulating 1.1.4, so this mod won't throw incompatibility error.
http://www.site.com/forum/index.php?action=packages;emulate_version=1.1.4
Title: Re: vReportBoard Mod
Post by: foempspeedy on December 28, 2008, 11:52:41 AM
Quote from: SONSiVRi on December 27, 2008, 03:43:27 PM
Quote from: HR on December 27, 2008, 11:14:06 AM
Yes, and I know for certain all my files have the proper permissions.. just an annoyance really.
Informations asked for exporting icon files located in archieve files. You need directory permissions to set also.

Quote from: foempspeedy on December 27, 2008, 07:15:51 AM
I didn say that..i see on mod info it isnt compatible for 1.1.7 but some posted here they installed.
I rather ask then install and get my some files messed up or unable to install.
Just asking if install with packager works or i have to manual edit/add still
Use this method for evulating 1.1.4, so this mod won't throw incompatibility error.
http://www.site.com/forum/index.php?action=packages;emulate_version=1.1.4
erm sorry but that link doesnt work or what i have to do with it :(
Title: Re: vReportBoard Mod
Post by: KadirX on December 28, 2008, 10:08:29 PM
I just changed the versions it was compatible with in the .xml file, and then I could install it.
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 29, 2008, 04:43:30 PM
Quote from: foempspeedy on December 28, 2008, 11:52:41 AM
erm sorry but that link doesnt work or what i have to do with it :(
KadirX's method is works too. My link method is ok but you don't know how to do it. So just edit xml file inside of archieve.
Title: Re: vReportBoard Mod
Post by: DareDevil1990 on December 31, 2008, 03:07:14 AM
any chance of it being upgraded to work with 1.1.7 ?
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 31, 2008, 05:19:29 AM
Seems nobody managing to upgrade it, so here I modified it way you needed.

1.1.7 ported version is attached to this post
Title: Re: vReportBoard Mod
Post by: DareDevil1990 on December 31, 2008, 05:29:16 AM
thanks it worked and installed clean but i am not seeeing option to mark the topic solve or unsolved :) ..can u tell me the edits i need to do to make that visible
Title: Re: vReportBoard Mod
Post by: SONSiVRi on December 31, 2008, 11:56:56 AM
probably you didn't edit custom theme.
Title: Re: vReportBoard Mod
Post by: Valodim on January 02, 2009, 07:26:26 PM
uploaded new version, very minor fix and version kick.

Nice to see 10+ pages of activity here in my absence. I'll try to do the version upgrades sooner next time. And thanks SONSiVRi for providing people with support :)
Title: Re: vReportBoard Mod
Post by: gemigene on January 02, 2009, 09:43:32 PM
Great Mod, excellent work!

Cheers,
Gene
Title: Re: vReportBoard Mod
Post by: foempspeedy on January 02, 2009, 11:06:54 PM
finally :d

when i apply i get this error :
8.     Execute Modification     ./Sources/ManagePermissions.php     Test failed
can i still install ? i tried on testforum , didnt see problems but dont know what that failed part included on my forum. If it has permissions for groups then that will be it..reason?
Title: Re: vReportBoard Mod
Post by: Valodim on January 03, 2009, 09:46:01 AM
Might be a conflict with another mod. Does this happen to anyone else?

Anyways that means you won't be able to set the mod's permissions for your members, everything else works. There is only one permission, "Solve Report", which people need to solve reports in the report board. It's a very simple modification, you should be able to do it yourself using the instructions from the mod page :)
Title: Re: vReportBoard Mod
Post by: SONSiVRi on January 06, 2009, 05:04:05 PM
Quote from: Valodim on January 02, 2009, 07:26:26 PM
uploaded new version, very minor fix and version kick.

Nice to see 10+ pages of activity here in my absence. I'll try to do the version upgrades sooner next time. And thanks SONSiVRi for providing people with support :)

You welcome, it was pleasure. Seems sometimes I published modified files without your permission, I hope you don't mind.
Title: Re: vReportBoard Mod
Post by: Valodim on January 08, 2009, 10:36:46 AM
no prob, feel free to :)
Title: Re: vReportBoard Mod
Post by: Darkness_ on January 11, 2009, 05:36:57 PM
will there be an update for smf 2 beta 4?
Title: Re: vReportBoard Mod
Post by: GMCbris on January 20, 2009, 12:50:41 AM
Hi

This looks great... I have partially installed this mod (I have a custom theme) and I have hit a snag

I have tried many things to update my display.template.php file but get parse errors everywhere!  can someone look at this for me??

My theme (its unsupported now) doesnt have a help.english.php file at all - can i just add this to my themes folder - or will this cause a conflict somewhere

I am a little concerned as these are the only two things that need to be completed - and while I try to make them work - the report to moderator function isnt working anymore - so any help I can get is appreciated

I have attached my display template for anyone that thinks they can help me

cheers

GMC
Title: Re: vReportBoard Mod
Post by: Ninja-Matic on January 22, 2009, 02:59:33 PM
Something odd I found... searched this thread with no luck:

1.1.7 SMF

Mod works great with the exception of one tiny little problem... when a user reports a post - his post count is not changed (it should be if the mod creates a new post for that users in a specified board).

So if his post count was 100 before he reported it will still be 100 after he reported.  NO BIGGIE.

Once the report is solved, if I choose to delete that report... he loses 1 post and is now at 99 posts total ;)

I've looked into it and I can't seem to find where the issue is.  It is the same with just this mod installed or with other mods - no conflicts noted.
Title: Re: vReportBoard Mod
Post by: GMCbris on January 23, 2009, 12:15:36 AM
Quote from: GMCbris on January 20, 2009, 12:50:41 AM
Hi

This looks great... I have partially installed this mod (I have a custom theme) and I have hit a snag

I have tried many things to update my display.template.php file but get parse errors everywhere!  can someone look at this for me??

My theme (its unsupported now) doesnt have a help.english.php file at all - can i just add this to my themes folder - or will this cause a conflict somewhere

I am a little concerned as these are the only two things that need to be completed - and while I try to make them work - the report to moderator function isnt working anymore - so any help I can get is appreciated

I have attached my display template for anyone that thinks they can help me

cheers

GMC
Any body willing to help??
Title: Re: vReportBoard Mod
Post by: CesarManara on January 24, 2009, 12:40:44 AM
I LOVE this mod, but... i need very much your help.

i NEED to now what modifications the  mod execute on

./Themes/default/languages/ModSettings.english.php
./Themes/default/languages/Errors.english.php
./Themes/default/languages/index.english.php
./Themes/default/languages/Help.english.php

I will have to edit it manually because I'm using language PORTUGUESE BRAZILIAN.

I Need very much to now...

and this info's is not in the install manual, please, someone tell me.

SMF 1.1.7 PLEASE.

i have these mods installed:

1.     VisualWarning      1.42
2.    Avatar Under Membergroups Rank    1.3
3.    Anti-Spam Verification Questions
4.    Are You Human? Anti-Bot Registration Check
5.    Banlist    1.0
6.    Clickable Avatars    1.1.0
7.    CmdModeration    1.0
8.    Disable Right Click v3    3.1
9.    HacksPark shoutBox    1.2.1
10.    Justify BBCode    2.1
11.    Member Color Link
12.    Last Topics of Person    1.0
13.    New In Topic View    1.1
14.    No Single Character Serach    1.0.5
Title: Re: vReportBoard Mod
Post by: sombra on January 24, 2009, 11:32:08 AM
you know what ive been looking for somthing like this for like a week now at last found exact mod but i got a problem im using 2.04 any chance an upgrade for it?
Title: Re: vReportBoard Mod
Post by: Garou on January 24, 2009, 09:56:00 PM
CesarManara

The info you are looking for is in the manual install instructions. http://custom.simplemachines.org/mods/index.php?action=parse;mod=392;attach=81400;smf_version=1.1.7

All the changes, including the ones you are looking for are there.
Title: Re: vReportBoard Mod
Post by: Namule on February 19, 2009, 11:58:37 AM
Excuse me, could you update the mod and make it compatible with version 1.1.8? I would be very helpful. :P
Title: Re: vReportBoard Mod
Post by: JoshieDaMan on February 25, 2009, 05:41:53 PM
Quote from: Namule on February 19, 2009, 11:58:37 AM
Excuse me, could you update the mod and make it compatible with version 1.1.8? I would be very helpful. :P
You read my mind, also!
Title: Re: vReportBoard Mod
Post by: Garou on February 27, 2009, 11:53:06 AM
Its not my mod to update but I'm sure Valodim will get to it as soon as he can. The best I can recommend either installing manually on 1.1.8 or maybe even just modifying the package-info.xml in the zip file to reflect 1.1.8 as I don't see any reason why this shouldn't work on it other then the install file doesn't list itself as being compatible with it but I haven't tried to put it on any of my updated sites yet.
Title: Re: vReportBoard Mod
Post by: Fabis94 on March 08, 2009, 02:14:53 PM
Could someone fix the package so it works on 1.1.8?
Title: Re: vReportBoard Mod
Post by: heinandar on March 08, 2009, 10:46:08 PM
Quote from: Fabis94 on March 08, 2009, 02:14:53 PM
Could someone fix the package so it works on 1.1.8?

OK... you can use on 1.1.8. I attach for you .  ;)
Title: Re: vReportBoard Mod
Post by: daveaite on March 09, 2009, 03:03:43 AM
Quote from: heinandar on March 08, 2009, 10:46:08 PM
Quote from: Fabis94 on March 08, 2009, 02:14:53 PM
Could someone fix the package so it works on 1.1.8?

OK... you can use on 1.1.8. I attach for you .  ;)

Thanks god work mate. I used his attachment and works with 1.1.8
Title: Re: vReportBoard Mod
Post by: ms_ukyankee on March 10, 2009, 08:00:42 AM
I think the mod v.95 was replaced by v1.0.4? I just updated myself so I could install it on SMF 1.1.8 and attached.

Great mod, thanks. :)
Title: Re: vReportBoard Mod
Post by: Apllicmz on March 15, 2009, 01:14:50 AM
where can see demo page i try to puty she not work

when update dont forget portuguese_pt



<file name="$themedir/languages/index.portuguese_pt.php" error="skip">

        <operation>
            <search position="end"><![CDATA[
$txt['smf315'] = 'Utilize esta fun&ccedil;&atilde;o para informar os moderadores e administradores de uma mensagem postada abusiva ou indevidamente.<br /><i>Observe que o seu e-mail ser&aacute; revelado aos moderadores se utilizar este.</i>';]]></search>
            <add><![CDATA[
$txt['smf315'] = 'Utilize esta fun&ccedil;&atilde;o para informar os moderadores e administradores de uma mensagem postada abusiva ou indevidamente.';
$txt['report_solve'] = 'resolvido/N&atilde;o Resolvido';
$txt['report_ed'] = 'Denunciado';
$txt['permissionname_report_solve'] = 'Resolva Relat&oacute;rios';
$txt['permissionname_report_seeinline'] = 'Ver relat&oacute;rios';
$txt['permissionhelp_report_seeinline'] = 'Essa permiss&atilde;o mostra um marcador para relatados postes em mensagem de opini&atilde;o, e indica se eles foram ou n&atilde;o resolvidos.';]]></add>
        </operation>

    </file>


<file name="$themedir/languages/ModSettings.portuguese_pt.php" error="skip">

        <operation>
            <search position="end"><![CDATA[
$txt['enableReportPM'] = 'Activar notifica&ccedil;&atilde;o de mensagens pessoais';]]></search>
            <add><![CDATA[
$txt['report_board'] = 'Relat&oacute;rio do Quadro (id)';
$txt['disable_quicksolve'] = 'Desactivar Resolver-r&aacute;pido';
$txt['report_board_pm'] = 'PM Relat&oacute;rio do Quadro (id)';]]></add>
        </operation>

    </file>
   
    <file name="$themedir/languages/ModSettings.portuguese_pt-utf8.php" error="skip">

        <operation>
            <search position="end"><![CDATA[
$txt['enableReportPM'] = 'Activar notifica&ccedil;&atilde;o de mensagens pessoais';]]></search>
            <add><![CDATA[
$txt['report_board'] = 'Relat&oacute;rio do Quadro (id)';
$txt['disable_quicksolve'] = 'Desactivar Resolver-r&aacute;pido';
$txt['report_board_pm'] = 'PM Relat&oacute;rio do Quadro (id)';]]></add>
        </operation>

    </file>


<file name="$themedir/languages/Errors.portuguese_pt.php" error="skip"

        <operation>
            <search position="before"><![CDATA[
$txt['rtm_not_own'] = 'Voc&ecirc; n&atilde;o pode postar em seu pr&oacute;prio relat&oacute;rio do moderador, que n&atilde;o faz sentido!';]]></search>
            <add><![CDATA[
$txt['rtm_noboard'] = 'Reporter est&aacute; actualmente desativado. Tente novamente mais tarde ou contacte o administrador f&oacute;rum.';
$txt['rtm_solveoutside'] = 'Voc&ecirc; n&atilde;o pode resolver assuntos fora do relat&oacute;rio do quadro.';
$txt['rtm_reportboard'] = 'Voc&ecirc; n&atilde;o pode postar um relat&oacute;rio a partir do relat&oacute;rio do quadro.';
$txt['rtm_notexist'] = 'O relat&oacute;rio do qaudro n&atilde;o foi configurado corretamente, entre em contacto com o administrador.';
$txt['cannot_report_solve'] = 'Desculpa, mas falta-lhe permiss&atilde;o para resolver os T&oacute;picos.';]]></add>
        </operation>

    </file>
   
    <file name="$themedir/languages/Errors.portuguese_pt-utf8.php" error="skip"

        <operation>
            <search position="before"><![CDATA[
$txt['rtm_not_own'] = 'Voc&ecirc; n&atilde;o pode postar em seu pr&oacute;prio relat&oacute;rio do moderador, que n&atilde;o faz sentido!';]]></search>
            <add><![CDATA[
$txt['rtm_noboard'] = 'Reporter est&aacute; actualmente desativado. Tente novamente mais tarde ou contacte o administrador f&oacute;rum.';
$txt['rtm_solveoutside'] = 'Voc&ecirc; n&atilde;o pode resolver assuntos fora do relat&oacute;rio do quadro.';
$txt['rtm_reportboard'] = 'Voc&ecirc; n&atilde;o pode postar um relat&oacute;rio a partir do relat&oacute;rio do quadro.';
$txt['rtm_notexist'] = 'O relat&oacute;rio do qaudro n&atilde;o foi configurado corretamente, entre em contacto com o administrador.';
$txt['cannot_report_solve'] = 'Desculpa, mas falta-lhe permiss&atilde;o para resolver os T&oacute;picos.';]]></add>
        </operation>

    </file>


<file name="$themedir/languages/Help.portuguese_pt.php" error="skip"

        <operation>
            <search position="before"><![CDATA[
$helptxt['enableReportPM'] = 'Esta op&ccedil;&atilde;o permite que os utilizadores que recebem mensagens pessoais relat&oacute;rio para a administra&ccedil;&atilde;o equipa. Isto pode ser útil para ajudar a detectar eventuais abusos do sistema de mensagens pessoais.';]]></search>
            <add><![CDATA[
$helptxt['report_board'] = 'O Quadro a ser utilizada para relatados lugares. Deve ser dedicado um quadro, para manter coisas tidy.<br /><br /><b>Se este &eacute; 0, p&oacute;s comunica&ccedil;&atilde;o ser&aacute; desativado!!</b>';
$helptxt['disable_quicksolve'] = 'Normalmente, uma relatada p&oacute;s-r&aacute;pida pode ser resolvido clicando no bot&atilde;o [Denunciado] marcador, mantendo ctrl.<br /><br />No entanto, alguns administradores podem optar por desativar este recurso, porque promove a resolu&ccedil;&atilde;o de relat&oacute;rios sem ler-las primeiro. Isto &eacute; bem triviais em casos (que &eacute; por isso que existe este recurso), mas se você encontrar o seu mods demasiado apressadamente resolver relat&oacute;rios, você pode querer verificar isso.';
$helptxt['report_board_pm'] = 'O qaudro a ser utilizado para mensagens pessoais relatadas. Isso pode ou n&atilde;o ser o mesmo que o poste utilizado para comunicados lugares.<br /><br />No entanto, lembre-se de mensagens pessoais s&atilde;o chamadas pessoais por um motivo, &eacute; aconselh&aacute;vel a utiliza&ccedil;&atilde;o de uma quadro espec&iacute;fico para este admin-somente com o acesso. Apesar de que depende o seu caso individual, naturalmente.<br /><br />Definir esta op&ccedil;&atilde;o para 0 (ou vazios) ir&aacute; permitir que o padr&atilde;o de comunica&ccedil;&atilde;o atrav&eacute;s de mensagens pessoais pm.';]]></add>
        </operation>

    </file>

<file name="$themedir/languages/Help.portuguese_pt-utf8.php" error="skip"

        <operation>
            <search position="before"><![CDATA[
$helptxt['enableReportPM'] = 'Esta op&ccedil;&atilde;o permite que os utilizadores que recebem mensagens pessoais relat&oacute;rio para a administra&ccedil;&atilde;o equipa. Isto pode ser útil para ajudar a detectar eventuais abusos do sistema de mensagens pessoais.';]]></search>
            <add><![CDATA[
$helptxt['report_board'] = 'O Quadro a ser utilizada para relatados lugares. Deve ser dedicado um quadro, para manter coisas tidy.<br /><br /><b>Se este &eacute; 0, p&oacute;s comunica&ccedil;&atilde;o ser&aacute; desativado!!</b>';
$helptxt['disable_quicksolve'] = 'Normalmente, uma relatada p&oacute;s-r&aacute;pida pode ser resolvido clicando no bot&atilde;o [Denunciado] marcador, mantendo ctrl.<br /><br />No entanto, alguns administradores podem optar por desativar este recurso, porque promove a resolu&ccedil;&atilde;o de relat&oacute;rios sem ler-las primeiro. Isto &eacute; bem triviais em casos (que &eacute; por isso que existe este recurso), mas se você encontrar o seu mods demasiado apressadamente resolver relat&oacute;rios, você pode querer verificar isso.';
$helptxt['report_board_pm'] = 'O qaudro a ser utilizado para mensagens pessoais relatadas. Isso pode ou n&atilde;o ser o mesmo que o poste utilizado para comunicados lugares.<br /><br />No entanto, lembre-se de mensagens pessoais s&atilde;o chamadas pessoais por um motivo, &eacute; aconselh&aacute;vel a utiliza&ccedil;&atilde;o de uma quadro espec&iacute;fico para este admin-somente com o acesso. Apesar de que depende o seu caso individual, naturalmente.<br /><br />Definir esta op&ccedil;&atilde;o para 0 (ou vazios) ir&aacute; permitir que o padr&atilde;o de comunica&ccedil;&atilde;o atrav&eacute;s de mensagens pessoais pm.';]]></add>
        </operation>

    </file>
Title: Re: vReportBoard Mod
Post by: CesarManara on March 17, 2009, 01:50:02 PM
Hey, when i will install the mod says that are no actions of install unistall detected

in portuguese:

Não há acções de instalação ou desinstalação definidas!

I'am using SMF 1.1.8
Title: Re: vReportBoard Mod
Post by: - Lawrence - on March 17, 2009, 03:57:10 PM
Will this ever be converted to work on 2.0 RC1 or not?

If yes, when?
If no, why not?
Title: Re: vReportBoard Mod
Post by: aishaweb on March 21, 2009, 04:42:17 AM
Quote from: - Lawrence - on March 17, 2009, 03:57:10 PM
Will this ever be converted to work on 2.0 RC1 or not?

If yes, when?
If no, why not?

SMF 2.x has a warning system built in, no need for hacks or mods.
Title: Re: vReportBoard Mod
Post by: Kimmie on March 25, 2009, 02:35:32 PM
Quote from: aishaweb on March 21, 2009, 04:42:17 AM
Quote from: - Lawrence - on March 17, 2009, 03:57:10 PM
Will this ever be converted to work on 2.0 RC1 or not?

If yes, when?
If no, why not?

SMF 2.x has a warning system built in, no need for hacks or mods.

what does a warning system have to do with the report mod? (those are two entirely different things)  ;)
Title: Re: vReportBoard Mod
Post by: aishaweb on March 26, 2009, 03:13:38 AM
DOH!!

Sorry.
Title: Re: vReportBoard Mod
Post by: Jessikard on March 28, 2009, 02:52:13 AM
Quote from: CesarManara on March 17, 2009, 01:50:02 PM
Hey, when i will install the mod says that are no actions of install unistall detected

in portuguese:

Não há acções de instalação ou desinstalação definidas!

for using in smf 1.1.8 open package.info and complete the versions

<install for="1.1.8, 1.1.7, 1.1.6, 1.1.5, 1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">
<readme type="inline">Posts reported posts into a specific board, instead of sending mails.</readme>

Written By Valodim - [email protected] - ICQ #994385387
DO NOT BOTHER ME WITH SUPPORT QUESTIONS, THAT'S WHAT THE FORUM IS FOR!!
http://mugenguild.com
Copyright 2007 - Neither this package or any of it's contents may be distributed without authorisation

<code type="file">install.php</code>
<modification type="file">install.xml</modification>
<require-file name="unsolved.gif" destination="$themedir/images/post" />
<require-file name="solved.gif" destination="$themedir/images/post" />
<require-file name="solve.gif" destination="$boarddir/Themes/classic/images/english" />
    </install>

<uninstall for="1.1.8, 1.1.7, 1.1.6, 1.1.5, 1.1.4, 1.1.3, 1.1.2, 1.1.1, 1.1, 1.1 RC3">
<readme type="inline">Uninstall will remove all the changes made by the mod. You must do this before upgrading!</readme>
<modification type="file" reverse="true">install.xml</modification>
</uninstall>


when you get an error while installing in ManagePermission.php and diplay.php you should parse this mod and change them manually

-------

that´was the way i did - if you want to, it´s your own risk (maybe backup your files before changing)



I'am using SMF 1.1.8
Title: Re: vReportBoard Mod
Post by: CesarManara on March 30, 2009, 12:43:34 PM
Quote from: Jessikard on March 28, 2009, 02:52:13 AM
for using in smf 1.1.8 open package.info and complete the versions

when you get an error while installing in ManagePermission.php and diplay.php you should parse this mod and change them manually

-------

that´was the way i did - if you want to, it´s your own risk (maybe backup your files before changing)



I'am using SMF 1.1.8

Thx dude, thats work.
Title: Re: vReportBoard Mod
Post by: JamesD01 on March 30, 2009, 05:31:49 PM
Quote from: Kimmie on March 25, 2009, 02:35:32 PM
Quote from: aishaweb on March 21, 2009, 04:42:17 AM
Quote from: - Lawrence - on March 17, 2009, 03:57:10 PM
Will this ever be converted to work on 2.0 RC1 or not?

If yes, when?
If no, why not?

SMF 2.x has a warning system built in, no need for hacks or mods.

what does a warning system have to do with the report mod? (those are two entirely different things)  ;)
SMF2 has a simular thing with the moderation center. ;)
Title: Re: vReportBoard Mod
Post by: UnleashedFX on April 02, 2009, 10:07:13 PM
Hi i installed on 1.1.8 apart from it wouldent let me use the package manager for sources/display.php and sources/managepermissions.php, so when i tried to manaul edit those files, the parts it told me to find could not be found. is their anyway around this?
Title: Re: vReportBoard Mod
Post by: SONSiVRi on April 03, 2009, 12:09:34 PM
Quote from: UnleashedFX on April 02, 2009, 10:07:13 PM
Hi i installed on 1.1.8 apart from it wouldent let me use the package manager for sources/display.php and sources/managepermissions.php, so when i tried to manaul edit those files, the parts it told me to find could not be found. is their anyway around this?
Seems you installed other mods that changed same part this mods needs. You need to find which mod changed it, and make your own code.
Title: Re: vReportBoard Mod
Post by: candidosa2 on May 05, 2009, 10:14:15 PM
well for me it does not work for version 1.1.8
Title: Re: vReportBoard Mod
Post by: SONSiVRi on May 14, 2009, 05:27:19 AM
Quote from: candidosa2 on May 05, 2009, 10:14:15 PM
well for me it does not work for version 1.1.8

What is the error?
Title: Re: vReportBoard Mod
Post by: azn_romeo_4u on June 01, 2009, 01:17:56 AM
does this work on 1.1.9?
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on June 01, 2009, 01:46:55 AM
I have this working on 1.1.9, so I should think it works.
May need manual edits though - I'm not sure.
Title: Re: vReportBoard Mod
Post by: MaXiForum.cz on June 01, 2009, 02:50:30 AM
Quote from: LexArma on June 01, 2009, 01:46:55 AM
I have this working on 1.1.9, so I should think it works.
May need manual edits though - I'm not sure.

I too and all OK :)
Title: Re: vReportBoard Mod
Post by: coldy316 on June 05, 2009, 08:16:09 AM
will this be updated for version 1.1.9 so it can be installed via the uploader of the admin
dont particular want to manual install on the default core. and i'm sure there is alot of other
people that would like this to be updated as well
Title: Re: vReportBoard Mod
Post by: SONSiVRi on June 05, 2009, 01:15:23 PM
Quote from: coldy316 on June 05, 2009, 08:16:09 AM
will this be updated for version 1.1.9 so it can be installed via the uploader of the admin
dont particular want to manual install on the default core. and i'm sure there is alot of other
people that would like this to be updated as well
If you don't want to edit within mod file, than you can emulate your SMF version by this method;
While browsing packages page in your forum, simply add bold part into your url.
http://www.site.com/forum/index.php?action=packages;emulate_version=1.1.7

I hope this is what you want.
Title: Re: vReportBoard Mod
Post by: Velvet on June 06, 2009, 11:34:46 AM
Hello, I really need this for 1.1.9 pretty please!

Is there anything that can be done to make this compatible?

Thanks.
Title: Re: vReportBoard Mod
Post by: MaXiForum.cz on June 06, 2009, 02:11:07 PM
Quote from: Velvet on June 06, 2009, 11:34:46 AM
Hello, I really need this for 1.1.9 pretty please!

Is there anything that can be done to make this compatible?

Thanks.

I use this:
http://www.simplemachines.org/community/index.php?topic=107556.msg1969422#msg1969422
It is compatible ;)
Title: Re: vReportBoard Mod
Post by: merlin2 on June 15, 2009, 02:09:53 PM
Quote from: MaxiPes on June 06, 2009, 02:11:07 PM
Quote from: Velvet on June 06, 2009, 11:34:46 AM
Hello, I really need this for 1.1.9 pretty please!

Is there anything that can be done to make this compatible?

Thanks.

I use this:
http://www.simplemachines.org/community/index.php?topic=107556.msg1969422#msg1969422
It is compatible ;)

sorry but no go

anybody??!!, does anybody got a compatible automatic version you could to via packages.
all i get is corrupt or bad version, too bad, just what i needed..
Title: Re: vReportBoard Mod
Post by: MaXiForum.cz on June 15, 2009, 02:16:20 PM
What?
This is not possible.
I have v 1.1.9 and this package
http://www.simplemachines.org/community/index.php?action=dlattach;topic=107556.0;attach=89711

Install this by hand
Title: Re: vReportBoard Mod
Post by: candidosa2 on June 17, 2009, 02:43:29 AM
thanks i will try...
Title: Re: vReportBoard Mod
Post by: erewrwea on June 17, 2009, 01:18:27 PM
Quote from: MaxiPes on June 15, 2009, 02:16:20 PM
What?
This is not possible.
I have v 1.1.9 and this package
http://www.simplemachines.org/community/index.php?action=dlattach;topic=107556.0;attach=89711

Install this by hand

I use this but when i upload and i try to install its no possible

Tipo Acción Descripción
1. Ejecutar Código install.php 
2. Ejecutar Modificación ./index.php Éxito
3. Ejecutar Modificación ./Sources/SendTopic.php Éxito
4. Ejecutar Modificación ./Sources/PersonalMessage.php Éxito
5. Ejecutar Modificación ./Sources/Display.php Prueba fallida   this failed i dont know what to do.

Thanks for your help
Title: Re: vReportBoard Mod
Post by: MaXiForum.cz on June 18, 2009, 03:43:49 AM
Send this file ;)
I modify this by hand.
Title: Re: vReportBoard Mod
Post by: paulshepherd on June 21, 2009, 03:42:29 PM
Any chance of this being tested/made available for 2.0 1-1? =]
Title: Re: vReportBoard Mod
Post by: akbora on June 30, 2009, 07:40:27 PM
Isn't it still compatible with 2.x?
Title: Re: vReportBoard Mod
Post by: Garou on June 30, 2009, 08:34:42 PM
The Mod was never compatible with 2.x only 1.1.x. The last version is was compatible with was 1.1.7 and I'm not sure if Valodim is still supporting it. I have been able to get it to install on 1.1.9 by entering it by hand.
Title: Re: vReportBoard Mod
Post by: TurtleKicker on July 11, 2009, 11:56:28 AM
Quote from: Cal O'Shaw on November 26, 2008, 12:13:28 AM
I have taken the latest version (1.03), edited the xml file to install and uninstall on 1.1.7.  The MOD is only partially operational.

The Report to Moderator flags the offending post, opens a new topic in the correct board, and deposits the report.

It does NOT send any alerts.  Even with the board set to notify when a new topic is created, no alert is sent out.

I suspect corruption of the php file, but don't know what is wrong.  I get alerts from other boards I have set to Notify, and if I go to the newly created topic, I can request Notify from it.

Any help would be welcome, as we like the MOD, and having a way to track responses to a report, but not getting notified is causing response issues.

Grazie!

Cal
Bumping this since I'm having the exact same problem. The mod works fine (SMF 1.1.9) but I want to receive notification of new topics started in the report board. I'm not getting these notifications, despite me having turned on Notify for the report board.

Notifications work fine on other regular boards I have Notify turned on for, so it's not that.

Any ideas?
Title: Re: vReportBoard Mod
Post by: ms_ukyankee on July 12, 2009, 11:49:14 AM
I made manual edits to Sources/SendTopic.php to keep sending the Report emails as well. I don't think these report topics go through the usual new topic posting functions to send notifications of new topics to the board.

// Report to the report board.
function ReportToModerator2()
{

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();

// You must have the proper permissions!
isAllowedTo('report_any');

include_once($sourcedir . '/Subs-Post.php');

if(empty($modSettings['report_board']))
fatal_lang_error('rtm_noboard');

if($board == $modSettings['report_board'])
fatal_lang_error('rtm_reportboard');

// Get the basic topic information, and make sure they can see it.
$_POST['msg'] = (int) $_POST['msg'];

// fetch quote and stuff
$request = db_query("
SELECT m.subject, m.ID_MEMBER, IFNULL(lr.ID_TOPIC, 0), m.posterName, mem.realName, m.posterTime, m.subject, m.body
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS mem ON (m.ID_MEMBER = mem.ID_MEMBER)
LEFT JOIN {$db_prefix}log_reports AS lr ON (m.ID_MSG = lr.ID_MSG)
WHERE m.ID_MSG = $_POST[msg]
AND m.ID_TOPIC = $topic
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($subject, $member, $oldtopic, $posterName, $realName, $mdate, $form_subject, $form_message) = mysql_fetch_row($request);
mysql_free_result($request);

if ($member == $ID_MEMBER)
fatal_lang_error('rtm_not_own', false);

$form_message = preg_replace('~<br(?: /)?' . '>~i', "\n", $form_message);

// Remove any nested quotes, if necessary.
if (!empty($modSettings['removeNestedQuotes']))
$form_message = preg_replace(array('~\n?\[quote.*?\].+?\[/quote\]\n?~is', '~^\n~', '~\[/quote\]~'), '', $form_message);
// and replace all img tgs by url tags
$form_message = preg_replace('/\[img\](.+?)\[\/img\]/is', '[url]\1[/url]', $form_message);
// Add a quote string on the front and end.
$form_message = '[quote author=' . $posterName . ' link=topic=' . $topic . '.msg' . $_POST['msg'] . '#msg' . $_POST['msg'] . ' date=' . $mdate . ']' . "\n" . $form_message . "\n" . '[/quote]';

// some parsing
$precomment = 'Reporter comment: ';
$message = $precomment . htmlspecialchars($_POST['comment'], ENT_QUOTES) . "\n\n" . $form_message;
preparsecode($message);

// we need to know :)
$query = db_query("
SELECT countPosts
FROM {$db_prefix}boards
WHERE ID_BOARD = $modSettings[report_board]", __FILE__, __LINE__);
if(mysql_num_rows($query) > 0)
list($countPosts) = mysql_fetch_row($query);
    else
        fatal_lang_error('rtm_notexist');


// set up all options
$msgOptions = array(
'id' => 0,
'subject' => '[' . addslashes($board_info['name']) . '] ' . addslashes($form_subject),
'body' => addslashes($message),
'icon' => 'unsolved',
'smileys_enabled' => true,
'attachments' => array(),
);
$topicOptions = array(
'id' => $oldtopic,
'board' => $modSettings['report_board'],
'poll' => null,
'lock_mode' => null,
'sticky_mode' => null,
'mark_as_read' => false,
);
$posterOptions = array(
'id' => $ID_MEMBER,
'name' => $user_info['username'],
'email' => $user_info['email'],
// do reports count as posts?
'update_post_count' => !empty($countPosts),
);

// and post!
createPost($msgOptions, $topicOptions, $posterOptions);

    // insert into report log
    if($oldtopic == 0)
        db_query("INSERT INTO {$db_prefix}log_reports (ID_MSG, ID_TOPIC, solved) VALUES ($_POST[msg], $topicOptions[id], 0)", __FILE__, __LINE__);
       
// begin Leah edit
     // send emails as well
      $reporterName = un_htmlspecialchars($user_info['name']) . ($user_info['name'] != $user_info['username'] && $user_info['username'] != '' ? ' (' . $user_info['username'] . ')' : '');

// Get a list of members with the moderate_board permission.
require_once($sourcedir . '/Subs-Members.php');
$moderators = membersAllowedTo('moderate_board', $board);

$request = db_query("
SELECT ID_MEMBER, emailAddress, lngfile
FROM {$db_prefix}members
WHERE ID_MEMBER IN (" . implode(', ', $moderators) . ")
AND notifyTypes != 4
ORDER BY lngfile", __FILE__, __LINE__);

// Check that moderators do exist!
if (mysql_num_rows($request) == 0)
fatal_lang_error('rtm11', false);

// Send every moderator an email.
while ($row = mysql_fetch_assoc($request))
{
loadLanguage('Post', empty($row['lngfile']) || empty($modSettings['userLanguage']) ? $language : $row['lngfile'], false);

// Send it to the moderator.
sendmail($row['emailAddress'], $txt['rtm3'] . ': ' . $subject . ' ' . $txt['rtm4'] . ' ' . $posterName,
sprintf($txt['rtm_email1'], $subject) . ' ' . $posterName . ' ' . $txt['rtm_email2'] . ' ' . (empty($ID_MEMBER) ? $txt['guest'] . ' (' . $user_info['ip'] . ')' : $reporterName) . ' ' . $txt['rtm_email3'] . ":\n\n" .
$scripturl . '?topic=' . $topic . '.msg' . $_POST['msg'] . '#msg' . $_POST['msg'] . "\n\n" .
$txt['rtm_email_comment'] . ":\n" .
$_POST['comment'] . "\n\n" .
$txt[130], $user_info['email']);
}
// end Leah add
// Back to the board!
redirectexit('board=' . $board . '.0');

}


Hope that helps, I rely on the emails as well. (Don't forget board rss feeds are available too.)

:)
Title: Re: vReportBoard Mod
Post by: Fenris78 on July 12, 2009, 06:02:37 PM
I have updated to SMF v1.1.9 and this package

http://www.simplemachines.org/community/index.php?action=dlattach;topic=107556.0;attach=89711

I use this but when i upload and i try to install its no possible:

QuoteInstallations actions for "vReportBoard Mod":

¡No se definieron las acciones de instalación!

Can anybody help me? i don´t know how to install this mod in particular manually.
Title: Re: vReportBoard Mod
Post by: Ninja-Matic on July 19, 2009, 05:22:07 PM
Any luck on this compatability with 1.1.10?
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on July 20, 2009, 01:30:54 AM
Quote from: Ninja-Matic on July 19, 2009, 05:22:07 PM
Any luck on this compatability with 1.1.10?
I'm using this on 1.1.10 (Updated from earlier versions), so there should not be major problems in getting this to work :)
Title: Re: vReportBoard Mod
Post by: Garou on July 23, 2009, 06:01:39 AM
Quote from: Garou on June 30, 2009, 08:34:42 PM
The last version this was compatible with was 1.1.7 and I'm not sure if Valodim is still supporting it. I have been able to get it to install on 1.1.9 by entering it by hand.

That said again, you can try to install by hand but I haven't tested it myself, so no promises that it will work.
Title: Re: vReportBoard Mod
Post by: Costa on July 23, 2009, 06:02:51 AM
I've this version working on smf 1.1.10, until now works fine :)

Farewell
- Costa
Title: Re: vReportBoard Mod
Post by: SONSiVRi on July 23, 2009, 02:44:40 PM
It is worked on 1.1.7, 1.1.8, 1.1.9 and probably it will continue working on whole 1.1.x family.
And %90 of the mods will work on new releases, because new releases made on minor changes, not core functions.
Title: Re: vReportBoard Mod
Post by: [A-US]James246 on August 01, 2009, 10:36:35 AM
Fantastic mod! I love it!

Thanks a lot!
Title: Re: vReportBoard Mod
Post by: CesarManara on August 01, 2009, 05:15:10 PM
Any chance of updating for SMF 2.0 RC1.2?
Title: Re: vReportBoard Mod
Post by: Kimmie on August 05, 2009, 01:15:38 PM
Quote from: CesarManara on August 01, 2009, 05:15:10 PM
Any chance of updating for SMF 2.0 RC1.2?


I second this motion..lol PUH-LEEEEEEEEEEEEEZE...lol
Title: Re: vReportBoard Mod
Post by: TurtleKicker on August 05, 2009, 01:18:46 PM
I just want to see Notifications fixed for the report board.
Title: Re: vReportBoard Mod
Post by: akl on October 29, 2009, 08:26:16 AM
I third the request for this being modified to work with SMF 2.0 RC1.2!
And Curve!
PLEASE! =D
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on October 29, 2009, 08:45:51 AM
Quote from: akl on October 29, 2009, 08:26:16 AM
I third the request for this being modified to work with SMF 2.0 RC1.2!
And Curve!
PLEASE! =D
There's no real need for this in 2.0 really.
Title: Re: vReportBoard Mod
Post by: akl on October 29, 2009, 11:32:13 AM
Could you explain please?
I really want it for mine, though!
Title: Re: vReportBoard Mod
Post by: Aleksi "Lex" Kilpinen on October 29, 2009, 11:36:31 AM
2.0 has a very similar feature built in, with additional features such as moderation logs.
Title: Re: vReportBoard Mod
Post by: akl on October 29, 2009, 12:05:26 PM
Yes, but it doesn't create topics and such.
Title: Re: vReportBoard Mod
Post by: watchhorse on December 15, 2009, 03:03:32 PM
Quote from: akl on October 29, 2009, 12:05:26 PM
Yes, but it doesn't create topics and such.

I agree.

Quote from: akl on October 29, 2009, 08:26:16 AM
I third the request for this being modified to work with Curve!
PLEASE! =D

PLEASE, PLEASE, PLEASE O:)
Title: Re: vReportBoard Mod
Post by: dj ju@n on January 02, 2010, 10:28:12 AM
hola a todos, me sumo al pedido de que este fantastico mod funcione sobre smf 2.0 RC 2




hello all, I join the call for work on this fantastic mod smf 2.0 RC 2
Title: Re: vReportBoard Mod
Post by: Arantor on January 02, 2010, 12:34:02 PM
Since 2.0 RC2 has almost all of this built in, what exactly about it do you want added?
Title: Re: vReportBoard Mod
Post by: Spoogs on January 02, 2010, 01:16:07 PM
For some of us its just a little easier to deal with. TBH the only reason i'd prefer this idea is from using VB for years so i'm stuck on that design (I find it a little more user friendly, but then again i'm just gettin use to SMF). I dont expect SMF to be anything like VB but the average convert from other type of forums are just attached to certain things, for me this is 1 such feature that i prefer.

As far as features, this mod seem to have hit it on the head.
Title: Re: vReportBoard Mod
Post by: Arantor on January 02, 2010, 01:17:16 PM
So what does this do that Post Moderation + Warnings doesn't?
Title: Re: vReportBoard Mod
Post by: Spoogs on January 02, 2010, 01:28:03 PM
TBH, probably nothing, just a matter of personal preference... i found the mod center a little confusing at first (mostly because i wasnt sure how to use to it), i got over it by being an admin so i dont visit the mod center unless someone complains about a mod then i check it out.
Title: Re: vReportBoard Mod
Post by: Nibogo on January 15, 2010, 04:38:06 PM
I agree with Arantor and Lex Arma, it shouldn't be upgrade it to SMF 2.0 RC2. The Moderation Center is such a great addition and it works like a charm, it doesn't create the topic but you have an alert in the header of the forum about the Open Reports so I don't know why do you need it for 2.0 (Obviouslly in 1.1.11 it's a great addon)
Title: Re: vReportBoard Mod
Post by: PatrickPriest on March 30, 2010, 04:44:49 PM
I'd have to agree that it should be modified to work with 2.0 RC2.  I don't mind the way things are reported, however, my moderators like to discuss a reported post before action is taken.  With this Mod, it was easy to discuss and know when someone replied.

I like to know when a Moderator has responded to the reported post discussion.  That's my only complaint about the way reported posts work now in 2.0.
Title: Re: vReportBoard Mod
Post by: paulwicking on April 02, 2010, 08:19:02 PM
Hi,
first of all, thanks for a great mod for SMF. This has made my life incredibly much easier. Kudos!

Now, I do have a problem: today I installed a new language pack (norwegian) to reflect how the forum is actually a norwegian one - not much sense in all the buttons and whatnot being in english then, eh? At first, I had to add a couple of translations for the various mods I had installed to make everything look okay. Later though, I found in my error logs this entry:


8: Undefined index: report_solve
Fil: /usr/home/www/[cencored].no/Themes/default/Display.template.php (main sub template - eval?)
Linje: 666


I've been searching the web for a solution to this, as far as I gather this has to do with a php array index which is not set? I went through the manual installation, checked my files, and added a couple of things to the norwegian translation files. Still though, the problem persists.

Although this basically isn't a problem with the mod, it is still connected to the mod as it reports report_index which I believe is part of this mod. I'd be super grateful if I could get some pointers to what this might be, or suggested ways to fix it.

Thanks in advance  :)
Title: Re: vReportBoard Mod
Post by: Arantor on April 02, 2010, 08:28:00 PM
Without seeing the code, I'd suspect that $txt['report_solve'] isn't defined containing the Norwegian translation of whatever $txt['report_solve'] is in English.
Title: Re: vReportBoard Mod
Post by: paulwicking on April 02, 2010, 08:54:05 PM
Quote from: Arantor on April 02, 2010, 08:28:00 PM
Without seeing the code, I'd suspect that $txt['report_solve'] isn't defined containing the Norwegian translation of whatever $txt['report_solve'] is in English.
That makes sense. Now to the question that will unveil my noobity; where exactly do I define these variables? (which file)  :o
Title: Re: vReportBoard Mod
Post by: PatrickPriest on April 03, 2010, 01:52:42 AM
Arantor... Is it possible to update this for 2.0??

I really dislike the reporting system in 2.0 and which I could install this mod.
Title: Re: vReportBoard Mod
Post by: Arantor on April 03, 2010, 06:03:53 AM
Not without a complete rewrite, no.
Title: Re: vReportBoard Mod
Post by: paulwicking on April 03, 2010, 07:49:03 AM
Quote from: Arantor on April 02, 2010, 08:28:00 PM
Without seeing the code, I'd suspect that $txt['report_solve'] isn't defined containing the Norwegian translation of whatever $txt['report_solve'] is in English.
Actually, turns out I'd entered the translation in the languages/norwegian/index.norwegian.php file, but I had to enter it in languages/index.norwegian.php as well. Problem solved.
Title: Re: vReportBoard Mod
Post by: hcfwesker on April 11, 2010, 05:54:51 AM
Apparently I clicked the wrong support topic while browsing several MODs with report in the name.

http://www.simplemachines.org/community/index.php?topic=162729.msg2579743#msg2579743

Is this Report MOD able to work on SMF 1.1.11

I really, really , really hate the reports sent to email.  It's useless and don't know why smf set it up like that.

I really need this for my forum, or at least something similar.

I'm in the middle of a manual installation, but not sure if I should continue.


Title: Re: vReportBoard Mod
Post by: Costa on April 11, 2010, 06:45:37 AM
@hcfwesker
try the attach, please :)

-Costa
Title: Re: vReportBoard Mod
Post by: hcfwesker on April 11, 2010, 07:11:20 AM
YES!  I'm gonna try it out, but are there parse instructions, in case I run into any error.

This site below doesn't allow me to check version 1.1.11

http://sleepycode.com/PackageParser/index.php

Is there another site that does this?

And how do I execute the install.php

I'm very new to smf, only been on for a moth :(  So this is something new for me.
Title: Re: vReportBoard Mod
Post by: Arantor on April 11, 2010, 07:40:56 AM
The parse instructions for 1.1.11 will likely be identical to earlier versions ;)

Have a read of Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0) - as regards to running install.php, you generally don't have to unless you cannot install any of it through the package manager (and really, that's what Version Emulate Dropdown (http://custom.simplemachines.org/mods/index.php?mod=2113) is for)

If you do have to run it manually, generally you put it in the same folder as SSI.php and then browse to it.
Title: Re: vReportBoard Mod
Post by: hcfwesker on April 11, 2010, 07:46:49 AM
Well, usually when i check 1.1.5 I get what I need from that link i supplied.

But this keeps popping up, no matter was version I select.

Error: Modification XML file (/home1/sleepyco/backend/temp/packageparser/install.xml) doesn't exist!


And, I downloaded, and clicked [Apply Mod]   , There are  No errors at all.  But the execute install.php doesn't have anything beside it.

1.   Execute Code   install.php   
2.   Execute Modification   ./index.php   Test successful


Does that mean I have to manually run it after the Package is Applied all the way?  Or it will run itself when applied?


Sorry for sounding so noobish, lol.  I've only been at SMF for less than a month :(

I'm just scared to Apply this , and something goes wrong, and if it won't uninstall properly, I won't be able to remove it manually without parser instructions.  I have already saved a copy of my Sources folder, and other files it edits.

I still haven't learned how to backup my forum yet :D  I think I need to get on that.
Title: Re: vReportBoard Mod
Post by: Arantor on April 11, 2010, 07:51:06 AM
Use the parse instructions HERE for the mod on THIS site. They will be almost identical if not TOTALLY identical for 1.1.11.
Title: Re: vReportBoard Mod
Post by: Antechinus on April 21, 2010, 05:57:05 PM
Quote from: NIBOGO on January 15, 2010, 04:38:06 PM
I agree with Arantor and Lex Arma, it shouldn't be upgrade it to SMF 2.0 RC2. The Moderation Center is such a great addition and it works like a charm, it doesn't create the topic but you have an alert in the header of the forum about the Open Reports so I don't know why do you need it for 2.0 (Obviouslly in 1.1.11 it's a great addon)

I strongly disagree. To my mind the moderation centre is not nearly as good a format for staff discussions of pending actions. Given that the moderation centre does exist though it would probably be best to write a mod to extend it into something more user-friendly. At the moment it's more like an error log than a place where staff can actually discuss things. Half finished job IMO.

If Valodim doesn't update this mod for 2.0 I may try to write something similar.
Title: Re: vReportBoard Mod
Post by: TurtleKicker on April 22, 2010, 09:54:31 AM
Quote from: Antechinus on April 21, 2010, 05:57:05 PM
If Valodim doesn't update this mod for 2.0 I may try to write something similar.
That would be most welcome. This is one area where I fear taking a considerable step backwards when I ultimately migrate to SMF2. :(
Title: Re: vReportBoard Mod
Post by: Gewoon Max on April 27, 2010, 04:48:02 AM
It would be great if this was compatible with SMF 1.1.11 :(
Title: Re: vReportBoard Mod
Post by: Paracelsus on April 27, 2010, 03:10:16 PM
Quote from: Gewoon Max on April 27, 2010, 04:48:02 AM
It would be great if this was compatible with SMF 1.1.11 :(

It is compatible with 1.1.11.
Title: Re: vReportBoard Mod
Post by: Antechinus on April 27, 2010, 03:26:44 PM
I can confirm that. I run this mod with 1.1.11 and it works perfectly.
Title: Re: vReportBoard Mod
Post by: smoothedit on May 17, 2010, 10:31:28 AM
Hey all. Had the mod working for an hour then it dissapeared. Tried reinstalling the 1.1.11 version and get the following error:
9.   Execute Modification   ./Themes/default/PersonalMessage.template.php   Test failed

Any ideas? Many thanks.
Title: Re: vReportBoard Mod
Post by: Arantor on May 17, 2010, 10:33:41 AM
Quote from: Antechinus on April 21, 2010, 05:57:05 PM
If Valodim doesn't update this mod for 2.0 I may try to write something similar.

What about http://www.simplemachines.org/community/index.php?topic=381827.0 ?
Title: Re: vReportBoard Mod
Post by: smoothedit on May 17, 2010, 10:40:28 AM
OO tickets would be good Arantor...

Im on a fledgling forum at the moment but could definitely see the need for organisation of reports in future.

Ps. Any ideas on the above? It installed fine the first time, worked fine then disappeared from my Packages? Thanks.
Title: Re: vReportBoard Mod
Post by: Arantor on May 17, 2010, 10:55:37 AM
Well, I already have a helpdesk mod but it's 2.0 only (and I don't see that ever changing, since the amount of rewriting for 1.1 is somewhat prohibitive, and I do not want to maintain two code branches if possible)

Was it still working when it disappeared from packages? Note that the package file doesn't have to be there for the mod to be installed; the mod changes SMF's core files during installation.
Title: Re: vReportBoard Mod
Post by: smoothedit on May 17, 2010, 11:02:51 AM
Will check out helpdesk mod for my beta site.

As for the proper forum and this mod - it is very strange - it worked for one test report perfectly but has since (an hour later) dissapeared from packages and the settings for it in 'Features and Options' have dissapeared too.

I used the zip file posted earlier in thread.... hope it wasnt dodgey....

I have not installed a mod manually before... should I do that?

A company tweaked the overall forum theme for us but literally only changed the colours of the default theme - I take it this is what the mod is reacting against with the personalmessagetemplate?

Thank you so much for your help....  :-[
Title: Re: vReportBoard Mod
Post by: Arantor on May 17, 2010, 11:11:20 AM
If the settings disappeared, it seems the whole thing got removed - or at least, partially removed.

Is any other mod missing?
Title: Re: vReportBoard Mod
Post by: smoothedit on May 17, 2010, 12:16:24 PM
Nope all others (3) are working and listed :(
Do you think it would be ok to ignore the test fail?
Title: Re: vReportBoard Mod
Post by: Arantor on May 17, 2010, 12:20:38 PM
If the test fail is simply PersonalMessage.template.php, I'd be taking a look at the code to see what it can't find - or if the code is already there. If it's already there, just ignore the warning (since already-there would make it fail)
Title: Re: vReportBoard Mod
Post by: smoothedit on May 17, 2010, 12:23:38 PM
Thank you so much for your time :)

I have just checked the forum error logs and am getting these:
Apply Filter: Only show the error messages of this URL  http://www.chipsplay.org/forum/index.php?topic=28.0
Apply Filter: Only show the errors with the same message
8: Undefined index: can_see_reports
File: D:\Domains\chipsplay.org\wwwroot\forum\Themes\default\Display.template.php (main sub template - eval?)
Line: 391

From every member/guest who visits and are from all over forum :(
Title: Re: vReportBoard Mod
Post by: Arantor on May 17, 2010, 12:28:07 PM
Check Sources/Display.php for the edits as documented on http://custom.simplemachines.org/mods/index.php?action=parse;mod=392;attach=81400;smf_version=1.1.7 (they should be applied equally to 1.1.11)
Title: Re: vReportBoard Mod
Post by: smoothedit on May 17, 2010, 12:32:51 PM
Thank yoooou!  :D :D

The edits were already there so I reapplied the Mod and it is working again. I will keep a close eye on it and watch for it deactivating itself again.

Thank you so much Aranator. I really do appreciate you taking the time to help a Noob! I hope this is the last time I will disturb you! Still not sure what caused it to fall over the first time?!
Title: Re: vReportBoard Mod
Post by: Arantor on May 17, 2010, 12:34:04 PM
I don't know either, because that's weird.

Does anyone have admin rights in the forum?


(Oh, btw, the helpdesk I mentioned earlier... www.simpledesk.net for 2.0 RC3 if you're curious)
Title: Re: vReportBoard Mod
Post by: smoothedit on May 17, 2010, 12:45:04 PM
Thanks for the linky! Looks very cool!

Noone else has admin - only me. Could it be that visiting a certain part of site or generating a certain report would trigger it to dissapear? Two errors we were getting was: can see reports and could solve, both within template.php

Very weird!
Title: Re: vReportBoard Mod
Post by: smoothedit on May 17, 2010, 12:52:08 PM
Think I have found source of error possibly:
Reporting a post that is in a staff only area?
We have a test board and I reported the post in that and it fails to copy to the 'Report Board'.

Very strange....

Not that you would need to report staff area and it is working perfectly for PM and general user areas...
Title: Re: vReportBoard Mod
Post by: Arantor on May 17, 2010, 01:29:33 PM
It's possible that it could do that, I suspect it was a case never really intended by the developer.
Title: Re: vReportBoard Mod
Post by: PatrickPriest on May 18, 2010, 05:38:41 PM
Quote from: Antechinus on April 21, 2010, 05:57:05 PM
I strongly disagree. To my mind the moderation centre is not nearly as good a format for staff discussions of pending actions. Given that the moderation centre does exist though it would probably be best to write a mod to extend it into something more user-friendly. At the moment it's more like an error log than a place where staff can actually discuss things. Half finished job IMO.

If Valodim doesn't update this mod for 2.0 I may try to write something similar.
I completely agree with this post.  I can't stand the moderation center from a "staff discussion" stand point.

I am thinking about "downgrading" my forums just so I can use this mod.  Does it work with 1.1.11?  I tried to install it on a test site, and it said "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Title: Re: vReportBoard Mod
Post by: Arantor on May 18, 2010, 05:44:15 PM
The mod should work but might need some encouragement, such as Version Emulate Dropdown (http://custom.simplemachines.org/mods/index.php?mod=2113) being used to 'pretend' it's running 1.1.7.

Patrick, would the suggestion I posted above be of merit - pushing a report into a helpdesk ticket?
Title: Re: vReportBoard Mod
Post by: PatrickPriest on May 18, 2010, 05:52:46 PM
Quote from: Arantor on May 18, 2010, 05:44:15 PM
The mod should work but might need some encouragement, such as Version Emulate Dropdown (http://custom.simplemachines.org/mods/index.php?mod=2113) being used to 'pretend' it's running 1.1.7.

Patrick, would the suggestion I posted above be of merit - pushing a report into a helpdesk ticket?
I've never used a helpdesk ticket, but as long as it places the reported post in a "topic" where it's easy to tell when a new staff member makes a comment, I'd def try that out.

I found the attachment on the previous page for 1.1.11 but no "Solve/Unsolve" link at the bottom of the reported post.  I changed the permissions, still no "Solve/Unsolve" link.

But I'd love to see your idea Arantor.
Title: Re: vReportBoard Mod
Post by: Arantor on May 18, 2010, 05:54:29 PM
Well, I already have a helpdesk mod available - check out www.simpledesk.net for more details. I've been looking at writing a mod-of-a-mod or similar to provide the ability to funnel reports of PMs and moderation reports into the helpdesk.
Title: Re: vReportBoard Mod
Post by: PatrickPriest on May 18, 2010, 05:59:59 PM
If I install this now, and you work in this feature, will I have to uninstall and reinstall?
Title: Re: vReportBoard Mod
Post by: Arantor on May 18, 2010, 06:02:41 PM
No, the new feature is looking increasingly like I'll add it as a mod-of-a-mod, rather than building it into SimpleDesk itself - and the next version is a little bit (a couple of months, possibly) away yet in any case.

Only thing is, the mod will modify SD's code, meaning you'd have to uninstall the mod before uninstalling SD itself, say for doing the upgrade to 1.1 when it's done (bringing lots of new features)
Title: Re: vReportBoard Mod
Post by: PatrickPriest on May 18, 2010, 06:19:00 PM
K.  I just installed SD on my SMF 2.0 RC2 site.  Looking into how I can incorporate it into my current forums.
Title: Re: vReportBoard Mod
Post by: Arantor on May 18, 2010, 06:20:27 PM
I'd encourage you to upgrade to 2.0 RC3 for dozens of security fixes (and we don't test SD on 2.0 RC2 at all)
Title: Re: vReportBoard Mod
Post by: Antechinus on May 19, 2010, 11:44:32 PM
Quote from: Arantor on May 17, 2010, 10:33:41 AM
Quote from: Antechinus on April 21, 2010, 05:57:05 PM
If Valodim doesn't update this mod for 2.0 I may try to write something similar.

What about http://www.simplemachines.org/community/index.php?topic=381827.0 ?

That could work, but frankly I wouldn't have much use for a fully fledged helpdesk and would prefer to simply send moderation reports to the board we currently use.
Title: Re: vReportBoard Mod
Post by: PatrickPriest on May 19, 2010, 11:49:06 PM
Quote from: Arantor on May 18, 2010, 06:20:27 PM
I'd encourage you to upgrade to 2.0 RC3 for dozens of security fixes (and we don't test SD on 2.0 RC2 at all)
the only reason I haven't is because I'd have to reinstall all my mods, plus all my customized coding in the templates. It's a pain.
Title: Re: vReportBoard Mod
Post by: Antechinus on May 19, 2010, 11:54:05 PM
People always say that when a new version is released to plug security exploits. We don't have much sympathy if they get hacked as a result of their preference for mods over security. It's your call though.
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on May 20, 2010, 12:10:39 AM
We're holding back to 1.1.11 (latest 1.1.x version) because 2.0 has not been released for Production use.

This MOD is all we really need for problem management, if only the problem with it never sending out alerts when a topic is created could ever be fixed (I and others have noted this in this topic several times, i.e. http://www.simplemachines.org/community/index.php?topic=107556.msg2154183#msg2154183 (http://www.simplemachines.org/community/index.php?topic=107556.msg2154183#msg2154183) ).  I find out about a new RTM or RTA Issue topic only when someone on our Support team makes a reply to the post that creates the topic (then get alert saying a reply has been made to the topic).

It would really be great if this could be looked into?  Please?

Cal
Title: Re: vReportBoard Mod
Post by: TurtleKicker on May 20, 2010, 09:36:58 AM
Quote from: Antechinus on May 19, 2010, 11:44:32 PM
That could work, but frankly I wouldn't have much use for a fully fledged helpdesk and would prefer to simply send moderation reports to the board we currently use.

I'm in the same boat. Here's hoping something works out ultimately by the time SMF2 final comes out.
Title: Re: vReportBoard Mod
Post by: Arantor on May 20, 2010, 09:37:37 AM
Ant, sremick: I expected as much, just thought I'd float the notion anyway.
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on May 23, 2010, 01:35:10 AM
It also looks like the problem we have with this MOD, where it does not send out the notification of new topic alert, impacts the "PM Post" MOD, as that MOD seems to use the same routine to send out the "New Topic" alert.

Any assistance would be greatly appreciated.

Cal
Title: Re: vReportBoard Mod
Post by: Sabre™ on May 25, 2010, 12:27:12 AM
Quote from: Antechinus on April 21, 2010, 05:57:05 PM
If Valodim doesn't update this mod for 2.0 I may try to write something similar.

Is this is action mate?
I also agree with your observations
Title: Re: vReportBoard Mod
Post by: Sabre™ on July 28, 2010, 08:08:33 AM
Guess not
Title: Re: vReportBoard Mod
Post by: Antechinus on July 28, 2010, 06:38:57 PM
Mate I'm too busy sorting out RC4. If you don't mind waiting twice as long for RC4 I can go and code mods. Your choice. ;)
Title: Re: vReportBoard Mod
Post by: Sabre™ on July 28, 2010, 06:46:29 PM
lol Yeah I know mate, I was just pushing at an update on the process.
I may get someone to code it[paid] and some other additions if anyone has any suggestions, then release it here or on the mod side.
I dont really need it, it's more for convenience than anything.
BUT, that all depends on the changes that will be made to smf from now, to the stable release.
I may see how Arantors feeling, I've only just noticed the deactivation of his account here.
Title: Re: vReportBoard Mod
Post by: Antechinus on July 28, 2010, 07:14:34 PM
Template and css changes aren't that great. Mostly I've been tweaking things to support IE and RTL. Not sure about database and Sources as that's not my department. I'm pretty sure the major changes were in RC3 though. 
Title: Re: vReportBoard Mod
Post by: Sabre™ on July 28, 2010, 07:38:43 PM
Ok thanks.
Well take your mind off of this mod, I'll get it updated if somebody accepts.
I have less time for much lately, got another little one due soon, so it's gettin pretty busy offline. I'd rather pay for someone to have the headaches instead of adding more to myself lol

Cheers
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on August 16, 2010, 02:21:39 AM
Hello,

We already have this MOD installed (and living with the problem of it not sending alerts when a topic is created), but wanted to install Nibogo's Reason for Editing MOD (http://custom.simplemachines.org/mods/index.php?mod=349 ).  However, this MOD changes a line in ./Sources/Display.php ("ID_MSG, icon, subject, posterTime, posterIP, ID_MEMBER, modifiedTime, modifiedName, body,") so each element is in an array (i.e. "ID_MSG" is now "m.ID_MSG").

The Reason for Edit MOD wants to append "edit_reason" to the line and manually changing it to "m.edit_reason" isn't the solution.

Any assistance in this would be greatly appreciated.

Cal
Title: Re: vReportBoard Mod
Post by: HunterP on November 27, 2010, 09:08:39 PM

Ok, I've been searching for hours, but I keep on getting :

8: Undefined index: can_solve
Bestand: /www/htdocs/hulpvera/forum/Themes/default/Display.template.php (main sub template - eval?)
Regel: 413


Which refers to :

      // May the user solve the report? Only in the report board, obviously.
      if ($message['can_solve'])
         echo '
               <a href="' . $scripturl . '?action=solve;topic=' . $context['current_topic'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/solve.gif" alt="' . $txt['report_solve'] . '" border="0" />' : $txt['report_solve']) . '</a>';


Any help, please?
Title: Re: vReportBoard Mod
Post by: hcfwesker on November 27, 2010, 09:39:52 PM
@HunterP  , most of those undefined index errors, i add a statement in the languages files, and usually fixes them.

In either  /Themes/default/languages/index.english.php     (((OR)))     /Themes/default/languages/ModSettings.english.php

Add this near the bottom, or with the other vReport MOd language codes in the file.

$txt['can_solve'] = 'Can Solve Reports';

May not work, but worth a shot.

Unless this isn't in your Error Log, but happening when you try to test the mod, and get an error page?  then my suggestion won't help.
Title: Re: vReportBoard Mod
Post by: HunterP on November 28, 2010, 05:42:07 AM
Quote from: hcfwesker on November 27, 2010, 09:39:52 PM
@HunterP  , most of those undefined index errors, i add a statement in the languages files, and usually fixes them.

In either  /Themes/default/languages/index.english.php     (((OR)))     /Themes/default/languages/ModSettings.english.php

Add this near the bottom, or with the other vReport MOd language codes in the file.

$txt['can_solve'] = 'Can Solve Reports';

I've tried it, but didn't solve the errors. But it is not a text string, it's a variable?

     if ($message['can_solve'])

Any more ideas?
Title: Re: vReportBoard Mod
Post by: NanoSector on November 28, 2010, 06:39:27 AM
Quote from: HunterP on November 28, 2010, 05:42:07 AM
Quote from: hcfwesker on November 27, 2010, 09:39:52 PM
@HunterP  , most of those undefined index errors, i add a statement in the languages files, and usually fixes them.

In either  /Themes/default/languages/index.english.php     (((OR)))     /Themes/default/languages/ModSettings.english.php

Add this near the bottom, or with the other vReport MOd language codes in the file.

$txt['can_solve'] = 'Can Solve Reports';

I've tried it, but didn't solve the errors. But it is not a text string, it's a variable?

     if ($message['can_solve'])

Any more ideas?
Change the $message part to $txt.

I guess the variable $message was used in an older version of SMF.
Title: Re: vReportBoard Mod
Post by: HunterP on November 28, 2010, 07:07:49 AM
Quote from: Yoshi2889 on November 28, 2010, 06:39:27 AMChange the $message part to $txt.

I guess the variable $message was used in an older version of SMF.

Are you sure? I'm using 1.1.12 and if I change $message to $txt, the 'if' would test for content in the variable $txt['can_solve'], which can't be correct... But you've got me thinking, probably it should be $context['can_solve'], which doen't give me any more errors :)
Title: Re: vReportBoard Mod
Post by: NanoSector on November 28, 2010, 07:16:32 AM
Quote from: HunterP on November 28, 2010, 07:07:49 AM
Quote from: Yoshi2889 on November 28, 2010, 06:39:27 AMChange the $message part to $txt.

I guess the variable $message was used in an older version of SMF.

Are you sure? I'm using 1.1.12 and if I change $message to $txt, the 'if' would test for content in the variable $txt['can_solve'], which can't be correct... But you've got me thinking, probably it should be $context['can_solve'], which doen't give me any more errors :)
That could also work, yes.
But mostly mods use the $txt variables to change text per language :)
Title: Re: vReportBoard Mod
Post by: HunterP on December 11, 2010, 07:32:08 PM

I've been using this modification for a few weeks now (GREAT MOD!), but I notice that apostrophes get escaped in the posted message.

For example "I don't like 'Wikileaks' at all" will be posted as "I don\'t like \'Wikileaks\' at all".

Any ideas?
Title: Re: vReportBoard Mod
Post by: Sakae on December 26, 2010, 09:48:25 PM
Any plans for SMF 2 upgrade?
Title: Re: vReportBoard Mod
Post by: MaXiForum.cz on December 27, 2010, 01:56:25 AM
Quote from: Sakae on December 26, 2010, 09:48:25 PM
Any plans for SMF 2 upgrade?

SMF 2.0 have better system ;)
Title: Re: vReportBoard Mod
Post by: HunterP on January 08, 2011, 12:56:17 AM
Quote from: HunterP on December 11, 2010, 07:32:08 PMI've been using this modification for a few weeks now (GREAT MOD!), but I notice that apostrophes get escaped in the posted message.

For example "I don't like 'Wikileaks' at all" will be posted as "I don\'t like \'Wikileaks\' at all"

Solved!

Code (find) Select
$message = $form_message . "\n[b]" . $txt['report_comment'] . "[/b]" . htmlspecialchars($_POST['comment'], ENT_QUOTES);

Code (replace by) Select
$message = $form_message . "\n[b]" . $txt['report_comment'] . "[/b]" . htmlspecialchars(stripslahes($_POST['comment']), ENT_QUOTES);

Thanks to Kays in Incorrect escaping of apostrophes (http://www.simplemachines.org/community/index.php?topic=416369.msg2905492#msg2905492)
Title: Re: vReportBoard Mod
Post by: hcfwesker on January 21, 2011, 02:59:28 PM
Quote from: MaXiForum.cz on December 27, 2010, 01:56:25 AM
Quote from: Sakae on December 26, 2010, 09:48:25 PM
Any plans for SMF 2 upgrade?

SMF 2.0 have better system ;)

True, it has its own system built in.  But having a staff specific board for reports to be posted in made it so much better for staff to discuss certain reports in the reported topic that was created.
Title: Re: vReportBoard Mod
Post by: sharks on January 25, 2011, 05:12:31 AM
Quote from: HunterP on January 08, 2011, 12:56:17 AM
Quote from: HunterP on December 11, 2010, 07:32:08 PMI've been using this modification for a few weeks now (GREAT MOD!), but I notice that apostrophes get escaped in the posted message.

For example "I don't like 'Wikileaks' at all" will be posted as "I don\'t like \'Wikileaks\' at all"

Solved!

Code (find) Select
$message = $form_message . "\n[b]" . $txt['report_comment'] . "[/b]" . htmlspecialchars($_POST['comment'], ENT_QUOTES);

Code (replace by) Select
$message = $form_message . "\n[b]" . $txt['report_comment'] . "[/b]" . htmlspecialchars(stripslahes($_POST['comment']), ENT_QUOTES);

Thanks to Kays in Incorrect escaping of apostrophes (http://www.simplemachines.org/community/index.php?topic=416369.msg2905492#msg2905492)


What file to edit?
Title: Re: vReportBoard Mod
Post by: HunterP on January 25, 2011, 09:34:15 AM
Quote from: sharks on January 25, 2011, 05:12:31 AMWhat file to edit?

Sorry; SendTopic.php
Title: Re: vReportBoard Mod
Post by: sharks on January 25, 2011, 10:30:46 AM
Quote from: HunterP on January 25, 2011, 09:34:15 AM
Quote from: sharks on January 25, 2011, 05:12:31 AMWhat file to edit?

Sorry; SendTopic.php

Thanks for the info. I'll try it ASAP.
Title: Re: vReportBoard Mod
Post by: HunterP on February 27, 2011, 07:30:44 AM

Bugreport; when a user clicks twice on the submit-button, the report gets posted twice.
Title: Re: vReportBoard Mod
Post by: NanoSector on February 27, 2011, 12:23:35 PM
Quote from: HunterP on February 27, 2011, 07:30:44 AM

Bugreport; when a user clicks twice on the submit-button, the report gets posted twice.
Which is normal; wouldn't a dog eat two cookies if you gave him two?
Title: Re: vReportBoard Mod
Post by: Arantor on February 27, 2011, 12:25:16 PM
It's inconsistent with SMF generally, everything else is geared to only allowing one post at a time...
Title: Re: vReportBoard Mod
Post by: HunterP on February 27, 2011, 01:10:00 PM
Quote from: Yoshi2889 on February 27, 2011, 12:23:35 PM
Which is normal; wouldn't a dog eat two cookies if you gave him two?

If it's normal, please tell me what the function checkSubmitOnce() is for?
Title: Re: vReportBoard Mod
Post by: Arantor on February 27, 2011, 01:33:03 PM
It's not normal. checkSubmitOnce should be being called once in the form (with 'register') and once in the receiving page ('check', IIRC) to ensure that it's a single hit.
Title: Re: vReportBoard Mod
Post by: HunterP on February 27, 2011, 01:39:22 PM
Quote from: Arantor on February 27, 2011, 01:33:03 PM
It's not normal. checkSubmitOnce should be being called once in the form (with 'register') and once in the receiving page ('check', IIRC) to ensure that it's a single hit.

That's what I thought, but I'm not sure how and where to modify :(

MOD still supported? I really like it, though  8)
Title: Re: vReportBoard Mod
Post by: NanoSector on February 27, 2011, 03:24:48 PM
Quote from: Arantor on February 27, 2011, 01:33:03 PM
It's not normal. checkSubmitOnce should be being called once in the form (with 'register') and once in the receiving page ('check', IIRC) to ensure that it's a single hit.
Not every mod has this implemented. That's why it can be normal.
Title: Re: vReportBoard Mod
Post by: HunterP on February 27, 2011, 03:32:34 PM
Quote from: Yoshi2889 on February 27, 2011, 03:24:48 PM
Not every mod has this implemented. That's why it can be normal.

So that might explain why not all dogs eat more than one cookie ;)
Title: Re: vReportBoard Mod
Post by: sharks on February 27, 2011, 04:24:33 PM
Just wondering, has the "Incorrect escaping of apostrophes" issue from SMF 1.1.x been resolved in SMF 2.0?

And is there any possibility of this core functionality getting patched in a future bug-fix release of 1.1.x branch?
Title: Re: vReportBoard Mod
Post by: Arantor on February 27, 2011, 05:06:15 PM
QuoteJust wondering, has the "Incorrect escaping of apostrophes" issue from SMF 1.1.x been resolved in SMF 2.0?

That sounds like a mod issue, SMF 1.1 itself has no issues with apostrophes, it's up to the mod author to ensure apostrophes are handled properly. But it was made *much* easier for mod authors in 2.0.

QuoteAnd is there any possibility of this core functionality getting patched in a future bug-fix release of 1.1.x branch?

There might if there were any such bugs (especially security related) in 1.1.x itself, but there aren't.
Title: Re: vReportBoard Mod
Post by: coldy316 on April 13, 2011, 11:23:27 AM
will this mod ever be updated for the new forum software like smf 2.0 RC3 , RC4, RC5....
Title: Re: vReportBoard Mod
Post by: Arantor on April 13, 2011, 11:56:13 AM
Quote from: coldy316 on April 13, 2011, 11:23:27 AM
will this mod ever be updated for the new forum software like smf 2.0 RC3 , RC4, RC5....

Well, let's see... author: Last Active: April 24, 2010, 03:16:32 PM, plus the fact that there's a moderation center in 2.0 that sort of removes the need for this... so, I'd guess the answer is no.
Title: Re: vReportBoard Mod
Post by: HunterP on April 13, 2011, 01:16:10 PM
Quote from: Arantor on April 13, 2011, 11:56:13 AM
plus the fact that there's a moderation center in 2.0 that sort of removes the need for this...

I totally disagree. I've used this mod for a while in SMF 1.1.x and when migrated to SMF 2.0 I was forced to use the built-in reporting function. This really is like 20 steps back compared to topics which are much easier. Related postings can be moved to that reported topic, which happened often on my board. Much easier to see all reported topics as a list, 10 times easier to see when a team member replied on a report (in fact not easier, in the built-in it's impossible to see, unless one accesses the moderaton centre).

Ok, the built-in option is better than the emails in 1.1.x but can in no way be compared with this modification.
Title: Re: vReportBoard Mod
Post by: Arantor on April 13, 2011, 01:20:10 PM
I said 'sort of'! I'm well aware that many people do not like what's in 2.0. I'm also aware that it's a major reason why no-one's bothering to update this mod.

(I'm also aware that it's not an issue for me on several of my sites because I use SimpleDesk on those, and wrote a plugin to import it into there instead...)
Title: Re: vReportBoard Mod
Post by: Joker™ on April 13, 2011, 02:08:41 PM
Sorry to interrupt but current we have a topic going on this, might be  of your interest HunterP. Topic Link (http://www.simplemachines.org/community/index.php?topic=429154.0)
Title: Re: vReportBoard Mod
Post by: NanoSector on April 13, 2011, 02:09:45 PM
Quote from: Arantor on April 13, 2011, 01:20:10 PM
I'm well aware that many people do not like what's in 2.0.
Eh? :o
Title: Re: vReportBoard Mod
Post by: Cal O'Shaw on April 13, 2011, 02:21:19 PM
I've worked with the RCs and I'm not in any hurry to inflict all those changes on my mods and members.

Sorry for going OT.  Will be quiet now.  ::)

Cal
Title: Re: vReportBoard Mod
Post by: HunterP on April 13, 2011, 03:48:11 PM
Quote from: Joker™ on April 13, 2011, 02:08:41 PM
Sorry to interrupt but current we have a topic going on this, might be  of your interest HunterP. Topic Link (http://www.simplemachines.org/community/index.php?topic=429154.0)

(http://www.hulpverleningsforum.nl/forum/Smileys/uitgebreid/afro.gif)
Title: Re: vReportBoard Mod
Post by: sharks on October 15, 2011, 04:19:38 PM
This mod seems to have been forgotten... *sigh*

When installing, i get this error:

19.    Execute Modification    ./Themes/default/languages/Errors.turkish.php    Test failed

Can someone please help to fix this? Maybe update the package file so others won't face the same problem.
Title: Re: vReportBoard Mod
Post by: littlenicki on December 05, 2011, 02:20:22 AM
Hello,

I waned to install this mod but unfortunately the code in my display.php differs. Could someone please kindly give me a hand at this?

Thank you,

Nicole


<search position="replace"><![CDATA[

ID_MSG, icon, subject, posterTime, posterIP, ID_MEMBER, modifiedTime, modifiedName, body, smileysEnabled, posterName, posterEmail,
ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead
FROM {$db_prefix}messages
WHERE ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);

]]>
</search>

<add>
<![CDATA[

m.ID_MSG, m.icon, m.subject, m.posterTime, m.posterIP, m.ID_MEMBER, m.modifiedTime, m.modifiedName, m.body, m.smileysEnabled, m.posterName, m.posterEmail, m.ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead,
IFNULL(lr.ID_TOPIC, 0) as reporttopic, IFNULL(lr.solved, -1) as reportsolved
FROM {$db_prefix}messages as m
                LEFT JOIN {$db_prefix}log_reports as lr ON (lr.ID_MSG = m.ID_MSG)
               WHERE m.ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY m.ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);

]]>
</add>


My code is hower:


ID_MSG, icon, subject, posterTime, posterIP, m.ID_MEMBER, modifiedTime, modifiedName, body, showSIG, edit_reason, post_hidden, hidden_reason, hidden_by, hmd.realName,
smileysEnabled, posterName, posterEmail,
                ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead
FROM {$db_prefix}messages m
LEFT JOIN {$db_prefix}members AS hmd ON (hmd.ID_MEMBER = hidden_by)

WHERE ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);

Title: Re: vReportBoard Mod
Post by: sharks on December 06, 2011, 05:51:01 AM
It would be great if someone took over this mod and fix all its bugs as well as making it work for SMF 2. This would have been the final push i need to convert all my SMF 1.1 forums to SMF 2. :(
Title: Re: vReportBoard Mod
Post by: hcfwesker on December 06, 2011, 07:28:17 AM
Quote from: sharks on December 06, 2011, 05:51:01 AMas well as making it work for SMF 2. This would have been the final push i need to convert all my SMF 1.1 forums to SMF 2. :(

Have you seen this?  http://custom.simplemachines.org/mods/index.php?mod=3011
Title: Re: vReportBoard Mod
Post by: sharks on December 06, 2011, 07:54:45 AM
Thanks for the hint, hcfwesker. It seems promising. :)
Title: Re: vReportBoard Mod
Post by: hcfwesker on December 06, 2011, 08:07:15 AM
It does exactly what this MOD used to do, with even more features to chose from.
Title: Re: vReportBoard Mod
Post by: sharks on February 03, 2012, 08:24:20 AM
I can't install this mod on SMF 1.1.16 :(

An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: vReportBoard Mod
Post by: hcfwesker on February 03, 2012, 10:12:42 AM
Quote from: sharks on February 03, 2012, 08:24:20 AM
I can't install this mod on SMF 1.1.16 :(

An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.

thats because the latest version of SMF 1.x it was  updated for was 1.1.7 , try emulation in package manager.  Though most likely going to require manual edits, or even edit changes
Title: Re: vReportBoard Mod
Post by: sharks on February 03, 2012, 10:28:12 AM
Hi hcfwesker

But the same mod installed perfectly fine on SMF 1.1.15. OK, i will try the emulation mode. :)
Title: Re: vReportBoard Mod
Post by: hcfwesker on February 03, 2012, 10:34:21 AM
the latest version it parse's for me is 1.1.7 , indicating it has to be installed on that version.  Now, if you know how to unzip packages and edit the package-info file and change 1.1.7 to 1.1.16 , and rezip, then it'll install fine on 1.1.16, I'm assuming.
Title: Re: vReportBoard Mod
Post by: NanoSector on February 04, 2012, 10:17:38 AM
Hi Sharks, has the suggestion helped?

As I don't think it will help, considering SMF doesn't even upload the package (which it should).
Title: Re: vReportBoard Mod
Post by: hhy89 on March 27, 2012, 10:56:58 AM
for 2.0.2 and 2.0.x  ;)
Title: Re: vReportBoard Mod
Post by: sharks on April 08, 2012, 11:23:28 AM
Quote from: Yoshi2889 on February 04, 2012, 10:17:38 AM
Hi Sharks, has the suggestion helped?

As I don't think it will help, considering SMF doesn't even upload the package (which it should).
Sorry for the late reply! I have been very busy off-line. I used emulator mode first, and then uploaded the package. It's a sloppy way of doing things but hey, it worked. :) Although i'm not so lucky with most of the other outdated/abandoned mods. Since my last support request here, i stopped messing around with my SMF 1.1.16 forums as i didn't want to take the risk of anything breaking and disabling my community.
Title: Re: vReportBoard Mod
Post by: Angelina Belle on April 09, 2012, 03:07:15 PM
hhy89,

I noticed that you have produced an updated version of the mod.

With apologies, I must ask you to remove your attachment.
Unfortunately, the mod's original author did not grant any license (permission) for others to modify and re-distribute his code.

I understand that you did this in good faith, as a service to the SMF community, in the same way that the original author distributed his mod.

I would suggest that it might be acceptable to post instructions for modifying the mod's code, rather than publishing the "finished product".

I am sorry that this is necessary. Because the author did not provide any licensing statement at all, he did not provide any permission for others to re-use, modify, and redistribute his code. We will honor the original author's copyright.  If he wishes to grant permission to others to modify and re-distribute, the original author may publish a new version of the code with a new copyright notice, perhaps choosing one of the many open-source copyright licenses already available.

Again, my apologies.

------------
Edit:

A member of the SMF team has removed that attachment. Our apologies.  I hope you can understand why it was necessary.
Please contact the mod author for permission to distribute an altered version of the mod.
Thank You.