Posts: 871
Threads: 102
Joined: Mar 2009
Reputation:
9
i need this because
warn system to forum
Posts: 66
Threads: 11
Joined: Mar 2008
Reputation:
0
(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
Posts: 1,052
Threads: 108
Joined: Jun 2008
do we also have to edit some stuff mentioned from the begining of this thread or no?
Posts: 66
Threads: 11
Joined: Mar 2008
Reputation:
0
(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
Posts: 1,052
Threads: 108
Joined: Jun 2008
(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
Thanks and great to hear the plugin does it all for us
Posts: 919
Threads: 146
Joined: Sep 2009
Reputation:
0
(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.
Posts: 11
Threads: 2
Joined: Dec 2009
Reputation:
0
superb plugin, working fine for me. i am currently using that
Posts: 31
Threads: 10
Joined: May 2009
Reputation:
0
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??
Posts: 66
Threads: 11
Joined: Mar 2008
Reputation:
0
(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
Posts: 31
Threads: 10
Joined: May 2009
Reputation:
0
Sweet. Thank you that's all i needed to know.
|