{"id":59,"date":"2022-02-09T20:04:33","date_gmt":"2022-02-09T20:04:33","guid":{"rendered":"https:\/\/www.uni-forum.net\/blog\/?p=59"},"modified":"2025-04-09T18:52:15","modified_gmt":"2025-04-09T18:52:15","slug":"mybb-email-for-pending-threads-approvals","status":"publish","type":"post","link":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/","title":{"rendered":"MYBB &#8211; Email For Pending Threads Approvals"},"content":{"rendered":"<p>This plugin send email to Mods about pending threads approvals.<\/p>\n<p>For the plugin, you need to make an edit first. You can get the group ids about who will be sent from the plugin with the following path<\/p>\n<pre class=\"lang:default decode:true\">https:\/\/your-url.com\/admin\/index.php?module=user-groups<\/pre>\n<p>Click on one of the groups that will go from here, a section will come in the url as I have given below, at the end it says gid=4, this group index value of that group write them aside<\/p>\n<p>After that download the plugin which is attachment and edit line 28<\/p>\n<pre class=\"lang:default decode:true\">$groups = [3,4,6];<\/pre>\n<p>After that upload file to inc\/plugins and active plugin on admin panel \/ plugins<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/uni-forum.net\/download\/modthread - Eng.rar\" target=\"_blank\" rel=\"noopener\">Download Plugin<\/a><\/p>\n<p>Or Copy<\/p>\n<pre class=\"lang:php decode:true \">&lt;?php\r\n\tif(!defined(\"IN_MYBB\")){\r\n\t\tdie(\"??\");\r\n\t}\r\n\r\n\t$plugins-&gt;add_hook(\"newthread_do_newthread_end\",\"hook_newthread\");\r\n\t\t\r\n\tfunction modthread_info(){\r\n\t\treturn [\r\n\t\t\t\"name\"\t\t\t=&gt; \"Send Mail for pending threads approval\",\r\n\t\t\t\"description\"\t=&gt; \"This Plugin Send Email To Mods About Invisible Threads\",\r\n\t\t\t\"website\"\t\t=&gt; \"https:\/\/www.webailesi.com\",\r\n\t\t\t\"author\"\t\t=&gt; \"ITenGriTR\",\r\n\t\t\t\"authorsite\"\t=&gt; \"https:\/\/www.webailesi.com\",\r\n\t\t\t\"version\"\t\t=&gt; \"1.0\",\r\n\t\t\t\"compatibility\" =&gt; \"18*\"\r\n\t\t];\r\n\t}\r\n\tfunction modthread_activate(){\r\n\t}\r\n\tfunction modthread_deactivate(){\r\n\t}\r\n\tfunction hook_newthread(){\r\n\t\tglobal $db,$mybb,$thread_info,$cache;\r\n\t\tif($thread_info[\"visible\"] == 0){\r\n\t\t\t$thread_data = get_thread($thread_info[\"tid\"]);\r\n\t\t\t$message = \"Hello, {username}\\n\".$mybb-&gt;settings[\"bbname\"].\" there is a new thread and pending approval!\\n----------------------------\\n\\nThread Name: \".$thread_data[\"subject\"].\"\\nFrom: \".$thread_data[\"username\"].\"\\nThread URL: \".$mybb-&gt;settings[\"homeurl\"].\"\/\".get_thread_link($thread_data[\"tid\"]).\"\\n----------------------------\\nThanks,\\n\".$mybb-&gt;settings[\"bbname\"].\" \\n\".$mybb-&gt;settings[\"bburl\"].\"\";\r\n\t\t\t$groups = [3,4,6];\r\n\t\t\t$query = $db-&gt;simple_select(\"users\",\"username,email\",\"usergroup IN (\".implode(\",\",$groups).\")\");\r\n\t\t\twhile($user = $db-&gt;fetch_array($query)){\r\n\t\t\t\t$maildetails = array(\r\n\t\t\t\t\t\"mailto\" =&gt; $db-&gt;escape_string($user[\"email\"]),\r\n\t\t\t\t\t\"mailfrom\" =&gt; \"\",\r\n\t\t\t\t\t\"subject\" =&gt; $mybb-&gt;settings[\"bbname\"].\" - Konu Onay\u0131\",\r\n\t\t\t\t\t\"message\" =&gt; str_replace(\"{username}\",$user[\"username\"],$message),\r\n\t\t\t\t\t\"headers\" =&gt; \"\"\r\n\t\t\t\t);\r\n\t\t\t\t$db-&gt;insert_query(\"mailqueue\",$maildetails);\r\n\t\t\t\t$cache-&gt;update_mailqueue();\r\n\t\t\t}\r\n\t\t}\r\n\t}\t\t\r\n?&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This plugin send email to Mods about pending threads approvals. For the plugin, you need to make an edit first. You can get the group ids about who will be sent from the plugin with the following path https:\/\/your-url.com\/admin\/index.php?module=user-groups Click on one of the groups that will go from here, a section will come in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-mybb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MYBB - Email For Pending Threads Approvals - Uni-Forum.Net<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MYBB - Email For Pending Threads Approvals - Uni-Forum.Net\" \/>\n<meta property=\"og:description\" content=\"This plugin send email to Mods about pending threads approvals. For the plugin, you need to make an edit first. You can get the group ids about who will be sent from the plugin with the following path https:\/\/your-url.com\/admin\/index.php?module=user-groups Click on one of the groups that will go from here, a section will come in [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/\" \/>\n<meta property=\"og:site_name\" content=\"Uni-Forum.Net\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-09T20:04:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-09T18:52:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.uni-forum.net\/blog\/wp-content\/uploads\/2024\/04\/logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"330\" \/>\n\t<meta property=\"og:image:height\" content=\"104\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@uniforumnet\" \/>\n<meta name=\"twitter:site\" content=\"@uniforumnet\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#\/schema\/person\/0dc4cd203fc6aead452b50f1370b4ae8\"},\"headline\":\"MYBB &#8211; Email For Pending Threads Approvals\",\"datePublished\":\"2022-02-09T20:04:33+00:00\",\"dateModified\":\"2025-04-09T18:52:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/\"},\"wordCount\":114,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#organization\"},\"articleSection\":[\"MYBB\"],\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/\",\"url\":\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/\",\"name\":\"MYBB - Email For Pending Threads Approvals - Uni-Forum.Net\",\"isPartOf\":{\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#website\"},\"datePublished\":\"2022-02-09T20:04:33+00:00\",\"dateModified\":\"2025-04-09T18:52:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.uni-forum.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MYBB &#8211; Email For Pending Threads Approvals\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#website\",\"url\":\"https:\/\/www.uni-forum.net\/blog\/\",\"name\":\"Uni-Forum.Net\",\"description\":\"Uni-Forum.Net - T\u00fcrkiye&#039;nin \u00dcniversite Forumu\",\"publisher\":{\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#organization\"},\"alternateName\":\"Uni-Forum.Net - T\u00fcrkiye'nin \u00dcniversite Forumu\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.uni-forum.net\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#organization\",\"name\":\"Uni-Forum.Net\",\"url\":\"https:\/\/www.uni-forum.net\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.uni-forum.net\/blog\/wp-content\/uploads\/2024\/04\/logo.png\",\"contentUrl\":\"https:\/\/www.uni-forum.net\/blog\/wp-content\/uploads\/2024\/04\/logo.png\",\"width\":330,\"height\":104,\"caption\":\"Uni-Forum.Net\"},\"image\":{\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/uniforumnet\",\"https:\/\/instagram.com\/uniforumnet\",\"https:\/\/www.linkedin.com\/company\/uni-forum-net\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#\/schema\/person\/0dc4cd203fc6aead452b50f1370b4ae8\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/www.uni-forum.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/238c07b2247c050f187538667f12b1392f04000c079a53f4b4ed7fad4de3e433?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/238c07b2247c050f187538667f12b1392f04000c079a53f4b4ed7fad4de3e433?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/www.uni-forum.net\/blog\"],\"url\":\"https:\/\/www.uni-forum.net\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MYBB - Email For Pending Threads Approvals - Uni-Forum.Net","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/","og_locale":"tr_TR","og_type":"article","og_title":"MYBB - Email For Pending Threads Approvals - Uni-Forum.Net","og_description":"This plugin send email to Mods about pending threads approvals. For the plugin, you need to make an edit first. You can get the group ids about who will be sent from the plugin with the following path https:\/\/your-url.com\/admin\/index.php?module=user-groups Click on one of the groups that will go from here, a section will come in [&hellip;]","og_url":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/","og_site_name":"Uni-Forum.Net","article_published_time":"2022-02-09T20:04:33+00:00","article_modified_time":"2025-04-09T18:52:15+00:00","og_image":[{"width":330,"height":104,"url":"https:\/\/www.uni-forum.net\/blog\/wp-content\/uploads\/2024\/04\/logo.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@uniforumnet","twitter_site":"@uniforumnet","twitter_misc":{"Yazan:":"admin","Tahmini okuma s\u00fcresi":"1 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/#article","isPartOf":{"@id":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/"},"author":{"name":"admin","@id":"https:\/\/www.uni-forum.net\/blog\/#\/schema\/person\/0dc4cd203fc6aead452b50f1370b4ae8"},"headline":"MYBB &#8211; Email For Pending Threads Approvals","datePublished":"2022-02-09T20:04:33+00:00","dateModified":"2025-04-09T18:52:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/"},"wordCount":114,"commentCount":0,"publisher":{"@id":"https:\/\/www.uni-forum.net\/blog\/#organization"},"articleSection":["MYBB"],"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/","url":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/","name":"MYBB - Email For Pending Threads Approvals - Uni-Forum.Net","isPartOf":{"@id":"https:\/\/www.uni-forum.net\/blog\/#website"},"datePublished":"2022-02-09T20:04:33+00:00","dateModified":"2025-04-09T18:52:15+00:00","breadcrumb":{"@id":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.uni-forum.net\/blog\/mybb-email-for-pending-threads-approvals\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.uni-forum.net\/blog\/"},{"@type":"ListItem","position":2,"name":"MYBB &#8211; Email For Pending Threads Approvals"}]},{"@type":"WebSite","@id":"https:\/\/www.uni-forum.net\/blog\/#website","url":"https:\/\/www.uni-forum.net\/blog\/","name":"Uni-Forum.Net","description":"Uni-Forum.Net - T\u00fcrkiye&#039;nin \u00dcniversite Forumu","publisher":{"@id":"https:\/\/www.uni-forum.net\/blog\/#organization"},"alternateName":"Uni-Forum.Net - T\u00fcrkiye'nin \u00dcniversite Forumu","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.uni-forum.net\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"tr"},{"@type":"Organization","@id":"https:\/\/www.uni-forum.net\/blog\/#organization","name":"Uni-Forum.Net","url":"https:\/\/www.uni-forum.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/www.uni-forum.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.uni-forum.net\/blog\/wp-content\/uploads\/2024\/04\/logo.png","contentUrl":"https:\/\/www.uni-forum.net\/blog\/wp-content\/uploads\/2024\/04\/logo.png","width":330,"height":104,"caption":"Uni-Forum.Net"},"image":{"@id":"https:\/\/www.uni-forum.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/uniforumnet","https:\/\/instagram.com\/uniforumnet","https:\/\/www.linkedin.com\/company\/uni-forum-net\/"]},{"@type":"Person","@id":"https:\/\/www.uni-forum.net\/blog\/#\/schema\/person\/0dc4cd203fc6aead452b50f1370b4ae8","name":"admin","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/www.uni-forum.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/238c07b2247c050f187538667f12b1392f04000c079a53f4b4ed7fad4de3e433?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/238c07b2247c050f187538667f12b1392f04000c079a53f4b4ed7fad4de3e433?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.uni-forum.net\/blog"],"url":"https:\/\/www.uni-forum.net\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":5,"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions\/160"}],"wp:attachment":[{"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uni-forum.net\/blog\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}