[RC] Prime Subject Check

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Anti-Spam Guide
Locked
nexum
I've Been Banned!
Posts: 156
Joined: Tue May 25, 2004 8:36 pm

Re: [RC] Prime Subject Check

Post by nexum »

edit: ignore this post, i just noticed this mod already has AJAX
User avatar
Dangerell
Registered User
Posts: 89
Joined: Mon Oct 13, 2008 7:05 am
Location: Romania
Name: Cristi
Contact:

Re: [RC] Prime Subject Check

Post by Dangerell »

Thank you primehalo, so far so good.. it works.. if i'll find any more bugs i'll let you know.
disiami
Registered User
Posts: 6
Joined: Mon Jan 14, 2008 7:50 pm

Re: [RC] Prime Subject Check

Post by disiami »

Hello,

By publishing a title with a + sign hangs item.

Check locked topics: is disabled
Allow bypassing: This enabled

that may be because it is blocked

Thanks,
User avatar
primehalo
Former Team Member
Posts: 2893
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Subject Check

Post by primehalo »

Opening prime_Subject_check.js and changing this line:

Code: Select all

	s = s.replace('+', '%20');
to this:

Code: Select all

	//s = s.replace('+', '%20');
Try this and see how it works.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
disiami
Registered User
Posts: 6
Joined: Mon Jan 14, 2008 7:50 pm

Re: [RC] Prime Subject Check

Post by disiami »

thank you very much to remove that line works
femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: [RC] Prime Subject Check

Post by femu »

Hi Ken,

as I just stumbled over an error in the German translation, I modified it a little bit (was translated more like word per word) ;)

Code: Select all

<?php
/**
*
* prime_subject_check [GERMAN]
*
* @package language
* @version $Id: prime_subject_check.php,v 1.4.4 2008/07/18 14:45:00 primehalo Exp $
* @copyright (c) 2008 Ken F. Innes IV
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters you may want to copy&paste:
// ’ » “ ” …
//

$lang = array_merge($lang, array(
	'SUBJECT_CHECK_SIMILAR_TOPIC'		=> 'Der Betreff deines Themas ist ähnlich eines bereits existierenden Themas. Bitte prüfe dieses Thema und wenn deine Nachricht ähnlich sein sollte, dann antworte auf dieses Thema, anstatt ein neues zu verfassen.',
	'SUBJECT_CHECK_STRICT_TOPIC'		=> 'Der Betreff deines Themas ist ähnlich eines beriets existierenden Themas. Bitte antworte auf dieses Thema, anstatt ein neues zu verfassen.',
	'SUBJECT_CHECK_SIMILAR_TOPICS'		=> 'Der Betreff deines Themas ist ähnlich zu bereits existierenden Themen. Bitte prüfe diese Themen und wenn deine Nachricht passend dazu sein sollte, dann antworte in einem dieser Themen, anstatt ein neues Thema zu verfassen.',
	'SUBJECT_CHECK_STRICT_TOPICS'		=> 'Der Betreff deines Themas ist ähnlich zu bereits existierenden Themen. Bitte antworte auf jenes Thema, das am ehesten deinem Anliegen entspricht, anstatt ein neues Thema zu verfassen.',

	// One of these two strings will be appended to the above strings, so they need a leading space or some other separator.
	'SUBJECT_CHECK_NEW_WINDOW'			=> ' (Links werden im neuem Fenster geöffnet.)',
	'SUBJECT_CHECK_SAME_WINDOW'			=> ' (Links werden <em>NICHT</em> im neuem Fenster geöffnet.)',

	// ACP labels
	'SUBJECT_CHECK_ACP_TITLE'			=> 'Betreffprüfung',
	'SUBJECT_CHECK_ACP_ENABLE'			=> 'Betreffprüfung aktivieren',
	'SUBJECT_CHECK_ACP_ENABLE_EXPLAIN'	=> 'Deaktivieren dieser Option gilt für alle Foren.',
	'SUBJECT_CHECK_ACP_BYPASS'			=> 'Erlaube Umgehung',
	'SUBJECT_CHECK_ACP_BYPASS_EXPLAIN'	=> 'Die Umgehungsfunktion erlaubt es Benutzern ihr Thema auch bei Vorhandesein ähnlicher Themen zu schreiben.',
	'SUBJECT_CHECK_ACP_STRICT'			=> 'Akivieren des strikten Modus',
	'SUBJECT_CHECK_ACP_STRICT_EXPLAIN'	=> 'Mit dieser Funktion werden nur Themen mit identischen Betreff erfasst.',
	'SUBJECT_CHECK_ACP_AJAX'			=> 'Einschalten des AJAX Modus',
	'SUBJECT_CHECK_ACP_AJAX_EXPLAIN'	=> 'Wenn der AJAX Modus aktiviert ist, werden die Ergebnisse ohne erneutes Laden der Seite angezeigt.',
	'SUBJECT_CHECK_ACP_LOCKED'			=> 'Prüfe gesperrte Themen',
	'SUBJECT_CHECK_ACP_LOCKED_EXPLAIN'	=> 'Die Aktivierung dieser Funktion umfasst auch gesperrte Themen bei der Beitragsprüfung.',
	'SUBJECT_CHECK_ACP_POP'				=> 'Öffne Themenlinks in einem neuen Fenster',
	'SUBJECT_CHECK_ACP_POP_EXPLAIN'		=> 'Öffne die gefundenen Themen in einem neuen Browserfenster.',
	'SUBJECT_CHECK_ACP_ADMIN'			=> 'Administratoren ausschließen',
	'SUBJECT_CHECK_ACP_ADMIN_EXPLAIN'	=> 'Erlaube den Administratoren ohne Betreffprüfung Themen zu schreiben.',
	'SUBJECT_CHECK_ACP_MOD'				=> 'Moderatoren ausschließen',
	'SUBJECT_CHECK_ACP_MOD_EXPLAIN'		=> 'Erlaube den Moderatoren ohne Betreffprüfung Themen zu schreiben.',
	'SUBJECT_CHECK_ACP_COMMON'			=> 'Häufige Wörter prüfen',
	'SUBJECT_CHECK_ACP_COMMON_EXPLAIN'	=> 'Häufig vorkommende Wörter werden beim Betreffvergleich normalerweise ignoriert.',
	'SUBJECT_CHECK_ACP_FORUMS'			=> 'Prüfe alle Foren',
	'SUBJECT_CHECK_ACP_FORUMS_EXPLAIN'	=> 'Es werden alle Foren geprüft. Standardmäßig wird nur das  Forum geprüft, in dem geschrieben werden soll.',
	'SUBJECT_CHECK_ACP_FNAMES'			=> 'Zeige Forennamen',
	'SUBJECT_CHECK_ACP_FNAMES_EXPLAIN'	=> 'Ziege den Namen des Forums vor jedem gefundenen Thema.',
	'SUBJECT_CHECK_ACP_LIMIT'			=> 'Maximale Anzahl der Themen zum Anzeigen',
	'SUBJECT_CHECK_ACP_LIMIT_EXPLAIN'	=> 'Setze 0, um alle gefundene Themen anzuzeigen.',
	'SUBJECT_CHECK_ACP_ACTIVE'			=> 'Prüfe Themen seit',
	'SUBJECT_CHECK_ACP_ACTIVE_EXPLAIN'	=> 'Nur Themen prüfen, die seit dieser Anzahl von Tagen aktiv waren. Setze auf 0 für unbegrenzt.',
	'SUBJECT_CHECK_ACP_COUNT'			=> 'Beitragsanzahl',
	'SUBJECT_CHECK_ACP_COUNT_EXPLAIN'	=> 'Benutzer die die angegebenen Beitragszahl überschreiten, werden nicht mehr geprüft. Setz 0, um diese Funktion zu deaktivieren.',
	'SUBJECT_CHECK_ACP_BYPASS_EXACT'	=> 'Wenn kein genauer Treffer gefunden wird',

	// ACP labels for individual forums
	'SUBJECT_CHECK_ACP_FORUM'			=> 'Einschalten Betreffprüfung',
	'SUBJECT_CHECK_ACP_FORUM_EXPLAIN'	=> 'Prüfe Betreff von neuen Themen gegen existierende Themen.',

	// AJAX
	'SUBJECT_CHECK_WORKING'				=> 'Prüfe Themen mit ähnlichen Titeln ....',
));

?>
A great tool as most of your tools, which I installed! Thanks a lot!
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]
Scofield112
Registered User
Posts: 87
Joined: Sat Feb 02, 2008 11:39 am

Re: [RC] Prime Subject Check

Post by Scofield112 »

Nice mod primehalo :!:
I have little question. My forum has around 600 000 topics, so in one category is around 50 000 - 100 000 topics. So, this MOD will not be a burden on the server ? thanks
Sorry for my bad English :)
Image
Image
User avatar
primehalo
Former Team Member
Posts: 2893
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Subject Check

Post by primehalo »

Depends what you consider a burden and how you hvae the options set. It's basically like doing a search for each new thread that someone tries to start.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
canadaka
Registered User
Posts: 88
Joined: Tue Apr 26, 2005 8:47 pm
Location: Vancouver, Canada
Contact:

Re: [RC] Prime Subject Check

Post by canadaka »

Has anyone made a mod to this mod to work with "fulltext Mysql" search method?
Canada Kicks Ass
http://www.canadaka.net
davejo90
Registered User
Posts: 36
Joined: Sun Jul 31, 2005 8:07 pm
Contact:

Re: [RC] Prime Subject Check

Post by davejo90 »

canadaka wrote:Has anyone made a mod to this mod to work with "fulltext Mysql" search method?
I'd like to know the answer to that too please.

Thanks
User avatar
primehalo
Former Team Member
Posts: 2893
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Subject Check

Post by primehalo »

I believe the answer is still no. If someone does, I'm sure they'd post it here and allow me to include it with the MOD.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
kocoman
Registered User
Posts: 2
Joined: Thu Jan 14, 2010 7:59 pm

Re: [RC] Prime Subject Check

Post by kocoman »

primehalo (or others)

I would like to use your mod for my own localhost only 'notes forums', that I plan to enter a lot of 'duplicate' notes into...

Is it possible to change it so the check is on ALL message text (and or subject), instead of only "subjects"?

I've looked at the vb codes at another forum, the change would be similar to

Code: Select all

  'WHERE (MATCH(thread.title) AGAINST ("' . $text . '")) ' .
                   'AND thread.open <> 10 '

or

WHERE MATCH(thread.title) AGAINST ('$safetitle')
Change the "thread.title".. to something else..

I am not faimilar with php modding with SQL query commands, simple text mods I can do but not really programming stuff unless I spend a lot of time on it. Since I see you are still actively replying to others here, I hope it would not take much time for you to look for a solution for my question also.

thanks
User avatar
primehalo
Former Team Member
Posts: 2893
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC] Prime Subject Check

Post by primehalo »

That's not something I can change off the top of my head, and just too busy right now to investigate it.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
User avatar
Neuropass
Registered User
Posts: 1158
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: [RC] Prime Subject Check

Post by Neuropass »

Hi there i just wanted to know if the mod work on phpbb 3.06 and if there are any known bugs... (i want to install it on my live forum)


Thanks in advance for all your help.
User avatar
Stitch625
Registered User
Posts: 683
Joined: Wed Jun 20, 2007 3:38 pm
Location: Michigan
Contact:

Re: [RC] Prime Subject Check

Post by Stitch625 »

I am going crazy...Where are the settings supposed to be in the ACP???
Locked

Return to “[3.0.x] MODs in Development”