MyBB Community Forums

Full Version: Release: Report system like in vBulletin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7
i need this because

warn system to forum
(2010-01-08, 04:52 PM)Skiilz Wrote: [ -> ]How do I change the Thread/Post Icon on the plugin?
I saw this code below but I don't know how to add the icon I want it to show.
		// Building the report thread:
		$reportedthread = array(
		   "fid" => $mybb->settings['reporttoforum_forum'],
		   "subject" => "Reported post by ".$mybb->user['username'],
		   "icon" => "2",
		   "uid" => $mybb->user['uid'],
		   "username" => $mybb->user['username'],
		   "dateline" => TIME_NOW,
		   "lastpost" => TIME_NOW,
		   "lastposter" =>  $mybb->user['username'],
		   "lastposteruid" => $mybb->user['uid'],
		   "views" => 1,
		   "visible" => "1"
		 );    
		    
		 $tid = $db->insert_id($db->insert_query("threads", $reportedthread));
		    
		 // Building the report post:
		 $reportedpost = array(
		   "fid" => $mybb->settings['reporttoforum_forum'],
		   "subject" => "Reported post by ".$mybb->user['username'],
		   "icon" => "2",
		   "uid" => $mybb->user['uid'],
		   "username" => $mybb->user['username'],
		   "dateline" => TIME_NOW,
		   "message" => $message,
		   "ipaddress" => 1,
		   "longipaddress" => 1,
		   "visible" => 1,
		   "posthash" => $posthash
		  );

		   "icon" => "2",

Hello there!
Well actually you can change the icon's id and it should be fine, however myBB does not have any interface where you can see Post Icon's ID, so what you can do is to go to Configuration/Post Icons: admin/index.php?module=config/post_icons
and click Edit on the icon you'd like to have, in the URL you'll see "admin/index.php?module=config/post_icons&action=edit&iid=X"
Replace the 2 in the code by the id you've found out and you should have the icon you want.

Regards,
John_S
do we also have to edit some stuff mentioned from the begining of this thread or no?
(2010-01-10, 10:07 PM)technoman Wrote: [ -> ]do we also have to edit some stuff mentioned from the begining of this thread or no?

Hey there!
If you install the plugin, then code modifications are no longer necessary Smile
(2010-01-11, 03:04 PM)John_S Wrote: [ -> ]
(2010-01-10, 10:07 PM)technoman Wrote: [ -> ]do we also have to edit some stuff mentioned from the begining of this thread or no?

Hey there!
If you install the plugin, then code modifications are no longer necessary Smile

Thanks and great to hear the plugin does it all for us Wink
(2010-01-10, 09:12 PM)John_S Wrote: [ -> ]
(2010-01-08, 04:52 PM)Skiilz Wrote: [ -> ]How do I change the Thread/Post Icon on the plugin?
I saw this code below but I don't know how to add the icon I want it to show.
		// Building the report thread:
		$reportedthread = array(
		   "fid" => $mybb->settings['reporttoforum_forum'],
		   "subject" => "Reported post by ".$mybb->user['username'],
		   "icon" => "2",
		   "uid" => $mybb->user['uid'],
		   "username" => $mybb->user['username'],
		   "dateline" => TIME_NOW,
		   "lastpost" => TIME_NOW,
		   "lastposter" =>  $mybb->user['username'],
		   "lastposteruid" => $mybb->user['uid'],
		   "views" => 1,
		   "visible" => "1"
		 );    
		    
		 $tid = $db->insert_id($db->insert_query("threads", $reportedthread));
		    
		 // Building the report post:
		 $reportedpost = array(
		   "fid" => $mybb->settings['reporttoforum_forum'],
		   "subject" => "Reported post by ".$mybb->user['username'],
		   "icon" => "2",
		   "uid" => $mybb->user['uid'],
		   "username" => $mybb->user['username'],
		   "dateline" => TIME_NOW,
		   "message" => $message,
		   "ipaddress" => 1,
		   "longipaddress" => 1,
		   "visible" => 1,
		   "posthash" => $posthash
		  );

		   "icon" => "2",

Hello there!
Well actually you can change the icon's id and it should be fine, however myBB does not have any interface where you can see Post Icon's ID, so what you can do is to go to Configuration/Post Icons: admin/index.php?module=config/post_icons
and click Edit on the icon you'd like to have, in the URL you'll see "admin/index.php?module=config/post_icons&action=edit&iid=X"
Replace the 2 in the code by the id you've found out and you should have the icon you want.

Regards,
John_S

Thank you. I wouldn't find it!
Worked great.
superb plugin, working fine for me. i am currently using that
Wow...i love this. i am currently using this. I have one question...

when i clikc report button...a interface pops up saying i should only report a user for spam, advertisement, abuse...how do i edit that? so i can add my forum rules??
(2010-03-03, 07:47 AM)gamerfreak1788 Wrote: [ -> ]Wow...i love this. i am currently using this. I have one question...

when i clikc report button...a interface pops up saying i should only report a user for spam, advertisement, abuse...how do i edit that? so i can add my forum rules??

That text is within MyBB core, this plugin doesn't modify it, but you can manually edit it in /yourforumdirectory/inc/languages/english/report.lang.php

Hope it helps Smile
Sweet. Thank you Smile that's all i needed to know.
Pages: 1 2 3 4 5 6 7