Post Reply 
Resolved or Not Resolved system
Author Message
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #1
Resolved or Not Resolved system
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


Attached File(s)
.rar  Resolved.NotResolved Plugin 1.1.1.rar (Size: 16.29 KB / Downloads: 196)

(This post was last modified: 23/12/2007 05:34 PM by Pirata Nervo.)
06/09/2007 04:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Online
Post: #2
RE: Resolved or Not Resolved system
Good work Pirata Nervo - sounds great!
06/09/2007 08:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #3
RE: Resolved or Not Resolved system
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.


07/09/2007 02:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Online
Post: #4
RE: Resolved or Not Resolved system
Yes, they are SQL delete queries.
07/09/2007 03:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #5
RE: Resolved or Not Resolved system
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?

07/09/2007 03:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Online
Post: #6
RE: Resolved or Not Resolved system
Well if the items don't exist, there's nothing to remove...
07/09/2007 05:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #7
RE: Resolved or Not Resolved system
but it doesn't remove, if it remove then it wouldnt show the words after deactivated.

07/09/2007 05:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Online
Post: #8
RE: Resolved or Not Resolved system
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
07/09/2007 08:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #9
RE: Resolved or Not Resolved system
o yeh i forgot that one XD, lool thanks

08/09/2007 12:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #10
RE: Resolved or Not Resolved system
Plugin updated to 1.1.1 !

23/12/2007 05:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: