Endless Paradigm

Full Version: Resolved or Not Resolved system
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Ok i made this plugin for my site and for the help section.
I made this plugin because i saw some sites using other forum systems using a plugin that does the same thing. As MyBB does not have one, I made it.

Change Log Wrote:1.1 » 1.1.1
- Fixed a small bug.
1.0 » 1.1
- Removed text setting.
- Removed text formatting.
- Added a Resolved image and a Not Resolved image.
- No need for code edits now!
0.5 » 1.0
Font color, bold.
"Not resolved" setting.
Ability to choose from admin cp wich section is affected by the plugin.
Ability to change the phrase of resolved and not resolved from admin cp.



How does the plugin works?
Simple!
Opened threads are "not resolved".
Closed threads are "resolved".

Note: stickies aren't affected.

This was tested on 1.2.10

Installation:
Follow the readme.html
Good work Pirata Nervo - sounds great!
thk you, do you know isn't  this:

PHP Code:
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='resolvedprefix'");
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='notresolvedprefix'");
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='forumid'");

removing the rows from the database?

Double post
thk you, do you know isn't  this:

PHP Code:
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='resolvedprefix'");
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='notresolvedprefix'");
$db->query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='forumid'");

removing the rows from the database? Well it removes from the "Forum Display" but after deactivated i see the resolved and not resolved in the help section. After removing what i said from the forumdisplay.php it removes the words but im sure the db still have something there.

Yes, they are SQL delete queries.
o i forgot the 'why' lol
do you know "why" isn't this:
$db»query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='resolvedprefix'");
$db»query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='notresolvedprefix'");
$db»query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='forumid'");
removing the rows from the database?
Well if the items don't exist, there's nothing to remove...
but it doesn't remove, if it remove then it wouldnt show the words after deactivated.
Quote:$db»query("DELETE FROM ".TABLE_PREFIX."settings WHERE name='resolvedprefix'");
If there is nothing where the name = 'resolvedprefix', obviously, nothing will be removed.

Also note that MyBB stores settings in two places - removing them from the DB doesn't necessarily remove them from /inc/settings.php
o yeh i forgot that one XD, lool thanks
Plugin updated to 1.1.1 !
Pages: 1 2
Reference URL's