vReportBoard Mod

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

Previous topic - Next topic

ArkServer

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. :(

xXxMetaSoulxXx

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 ]
   

Valodim

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.

xXxMetaSoulxXx

Don't know what it was but inserting another one made it work. Thanks.

CiOooo

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)



Valodim

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.

CiOooo

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



JaGuR123

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

wesleyuk

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!

Valodim

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?

JaGuR123

#250
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


Neorics

how come this aint working for the mod parser?
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

Valodim


Neorics

#253
http://modparser.dev.dansoftaustralia.net/

when i upload it there it doesnt seem to work

nvm problem solved

great mod btw
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

Valodim


Neorics

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
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

Valodim

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"

Neorics

#257
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
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

Paracelsus

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?

Valodim

solving permissions is a global permission, which moderators cannot have since they are board-specific.

Advertisement: