Modern Tags
Give the ability to add tags inside threads.
Version: 1.5
Autor: MixRo
Deutsche Übersetzung: noch nicht übersetzt
Hochgeladen: 17.05.2025
Letzte Aktualisierung: 13.06.2025
Support: https://www.mybb.de/forum/thread-39397.html (1 Beiträge)
Kompatibilität: MyBB 1.8.x
Bisherige Downloads: 5
Description : Give the ability to add tags inside threads.Autor: MixRo
Deutsche Übersetzung: noch nicht übersetzt
Hochgeladen: 17.05.2025
Letzte Aktualisierung: 13.06.2025
Support: https://www.mybb.de/forum/thread-39397.html (1 Beiträge)
Kompatibilität: MyBB 1.8.x
Bisherige Downloads: 5
Features:
Thread Creation
- Adds a modern, styled Tagify input field on newthread.php
- Input matches MyBB .textbox theme (dark mode + consistent padding)
- Allows inserting multiple tags per thread
- Autocomplete suggestions from previously used tags
Thread Editing
- Allows editing tags from editpost.php (first post only)
- Loads existing tags into the input field
- Saves updated tags and replaces old ones
- Automatically updates sidebar tag cache
Database + Storage
- Tags are stored in a custom mybb_threadtagstable
- Automatically created on plugin activation
- One entry per tag per thread (tid + tag)
Display
- Tags are displayed in showthread.php below the thread title
- Tags are clickable, linking to search results
- Uses a custom CSS class .item-blog-tag for visual style (background image, font, shadow)
- Also styled consistently in the sidebar
Sidebar Integration
- Optional setting: enable/disable sidebar tags from ACP
- Variable {$sidebartags} can be placed in any template
- Displays the last 20 most recently used tags
- Styled identically to showthread tags
- Data is cached using MyBB's $cache system to reduce DB load
Configuration:
Modify newthread template:
<!-- Find: -->
{$posticons}
<!-- Add before it: -->
{$tags_input}
Inside showthread template <!-- Find: -->
{$thread['threadprefix']}
<!-- Add after it: -->
{$showthread_tags}
If you have to keep {$sidebartags} that will display the last 20 tags used in any template where the variable {$sidebartags} exists make sure that inACP -> Configuration -> Settings -> Plugin Settings -> Modern Tags Settings
The Option Enable Sidebar Recent Tags is set to YesIf you want the tag links (like search.php?action=tag&tag=cs) to actually list matching threads :
Go to search.php in your root and find the line :
$mybb->input['action'] = $mybb->get_input('action');
Add below to it this :if ($mybb->input['action'] === 'tag' && !empty($mybb->input['tag'])) {
global $theme, $templates, $header, $footer, $headerinclude, $lang;
add_breadcrumb("Tag Search", "search.php?action=tag");
$tag = htmlspecialchars_uni($mybb->get_input('tag'));
$escaped_tag = $db->escape_string($tag);
// Find threads with this tag
$tids = [];
$query = $db->simple_select('threadtags', 'tid', "tag='" . $escaped_tag . "'");
while ($row = $db->fetch_array($query)) {
$tids[] = (int)$row['tid'];
}
if (empty($tids)) {
error("No threads found for tag: <strong>{$tag}</strong>");
}
$threadlist = "";
$thread_query = $db->query("
SELECT t.*, f.name AS forumname
FROM " . TABLE_PREFIX . "threads t
LEFT JOIN " . TABLE_PREFIX . "forums f ON (f.fid = t.fid)
WHERE t.tid IN (" . implode(",", $tids) . ") AND t.visible=1
ORDER BY t.lastpost DESC
");
while ($thread = $db->fetch_array($thread_query)) {
$thread['subject'] = htmlspecialchars_uni($thread['subject']);
$thread['threadlink'] = get_thread_link($thread['tid']);
$thread['forumlink'] = get_forum_link($thread['fid']);
$threadlist .= "<li style='margin-bottom: 10px;'>
<a href='{$thread['threadlink']}' style='font-weight: bold;'>{$thread['subject']}</a>
<div style='font-size: 11px; color: #999;'>Forum: <a href='{$thread['forumlink']}'>{$thread['forumname']}</a></div>
</li>";
}
eval("$searchresults = \"<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Threads tagged with {$tag}</title>
{$headerinclude}
</head>
<body>
{$header}
<table width='100%' border='0' align='center' cellpadding='10'>
<tr>
<td class='trow1'>
<h2 style='margin-bottom: 15px;'>Threads tagged with: <span style='color: #3b8beb;'>#{$tag}</span></h2>
<ul style='list-style: none; padding-left: 0;'>{$threadlist}</ul>
</td>
</tr>
</table>
{$footer}
</body>
</html>\";");
output_page($searchresults);
exit;
}
Inside the Archive you will find :The php plugin
The css required to be added in global.css
The image used for tags appearance
UPDATE 13/06/2025
- Fixed the Bug where you can edit a thread that has tags , the tags disappear
- Added an option in plugin settings to have the tags displayed inside the threadlist
to have the tags displayed inside the threadlist go to forumdisplay_thread template and add the variable {$thread['taglist']}
Quelle: Modern Tags bei MyBB.com
Ähnliche Erweiterungen
Patches 1.5 von frostschutz für MyBB 1.6.x
Create and manage patches (core edits) within the ACP.
1006 Downloads
Create and manage patches (core edits) within the ACP.
1006 Downloads
MyProtection 1.5 von Diogo Parrinha für MyBB 1.8.x
This plugin enhances your forum security and prevents data loss.
399 Downloads
This plugin enhances your forum security and prevents data loss.
399 Downloads
Google Analytics 1.5 von querschlaeger für MyBB 1.4.x
Adds Google Analytics tracking code to every page.
439 Downloads
Adds Google Analytics tracking code to every page.
439 Downloads