[ABD] Signature Restrictions 0.0.1

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
Thoul
Registered User
Posts: 810
Joined: Sun Jun 23, 2002 1:25 am
Location: USA
Contact:

[ABD] Signature Restrictions 0.0.1

Post by Thoul »

Modification Name: Signature Restrictions

Modification Download: Signature Restrictions 0.0.1

Requirements: phpBB 3.0.4

Modification Description: Adds additional settings for restricting the content of signatures.

Some forum administrators like to have very clear, precise limits on user signatures. These can involve restrictions on length and content that go beyond the limits of phpBB's default signature settings. For such forums, dealing with signatures that break the forum's rules can eat up a good bit of time for both forum staff, who have to handle these violations, and the users, who often have to guess if a signature is acceptable.

Signature Restrictions adds new settings to phpBB 3 forums, allowing administrators to set additional rules for signatures. These include the number of images, number of text lines, and number of characters per line. The width and height of images, in relation to the line restrictions, are also considered. With these more precise controls on signature length and layout, the hassle of maintaining signatures is reduced for users and staff.

Features:
  • Control the maximum number of images in a signature.
  • Limit the total height of a signature, in number of lines.
  • Limit the length of each line of a signature.
  • Image widths and heights can be included in the check to see if a signature is too wide or too long.
Version 0.0.1 Notes:
This is the first release, so I'm going with a low version number, but I believe this version is stable enough to use. It is based on a mod I made and was using on phpBB 2 (but never released), so the bulk of the code has been tested pretty well. Feedback welcome.

User avatar
Tomelie
Registered User
Posts: 50
Joined: Fri Nov 07, 2008 9:33 pm

Re: [BETA] Signature Restrictions 0.0.1

Post by Tomelie »

Hi hi!

I installed this mod, but it didn't work.
After, reviewing the install instructions, I saw that there is probably an incomplete instruction:

Code: Select all

Find

Tip: This may be a partial find and not the whole line.
Code:Select All

						if (sizeof($message_parser->warn_msg))
						{
							$error[] = implode('<br />', $message_parser->warn_msg);
						}

That's all, it not says if add or replace something then find it...
Please help me, this mod is very useful.

demon327
Registered User
Posts: 847
Joined: Thu Nov 16, 2006 2:16 pm

Re: [BETA] Signature Restrictions 0.0.1

Post by demon327 »

*bookmark* like the features...

usenet2you
Registered User
Posts: 407
Joined: Sat Mar 22, 2008 7:31 pm
Location: The Netherlands

Re: [BETA] Signature Restrictions 0.0.1

Post by usenet2you »

Maybe this is a nice feature: Block a certain BBCode in signature, e.g. [youtube], so the users can't use it in the signatures,

demon327
Registered User
Posts: 847
Joined: Thu Nov 16, 2006 2:16 pm

Re: [BETA] Signature Restrictions 0.0.1

Post by demon327 »

usenet2you wrote:Maybe this is a nice feature: Block a certain BBCode in signature, e.g. [youtube], so the users can't use it in the signatures,
yes, but custom bbcode is realy complex :(

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Signature Restrictions 0.0.1

Post by 4_seven »

demon327 wrote:realy complex
if you want to do this:
http://www.phpbb.com/community/viewtopi ... 25&start=0

and, 4 shure that should be a nice additional feature 4 this mod ;)
Current Mods | Mod Base | php(BB) programming | No help via PM

demon327
Registered User
Posts: 847
Joined: Thu Nov 16, 2006 2:16 pm

Re: [BETA] Signature Restrictions 0.0.1

Post by demon327 »

4_seven wrote:
demon327 wrote:realy complex
if you want to do this:
http://www.phpbb.com/community/viewtopi ... 25&start=0

and, 4 shure that should be a nice additional feature 4 this mod ;)
lol! i'm not a programer :D, and that mod does not what i want.. ;)

dasding
Registered User
Posts: 33
Joined: Tue May 13, 2008 6:29 pm

Re: [BETA] Signature Restrictions 0.0.1

Post by dasding »

nice mod :D

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Signature Restrictions 0.0.1

Post by 4_seven »

demon327 wrote:lol! i'm not a programer :D, and that mod does not what i want.. ;)
thats why i said:
and, 4 shure that should be a nice additional feature 4 this mod
Current Mods | Mod Base | php(BB) programming | No help via PM

Thoul
Registered User
Posts: 810
Joined: Sun Jun 23, 2002 1:25 am
Location: USA
Contact:

Re: [BETA] Signature Restrictions 0.0.1

Post by Thoul »

Tomelie wrote:Hi hi!

I installed this mod, but it didn't work.
After, reviewing the install instructions, I saw that there is probably an incomplete instruction:
Ah, my bad. I included that step in the text instructions, but must have missed copying it over. After that find, you should add:

Code: Select all

//----------------------------------------------------------------------
// Signature Restrictions - Begin Code Alteration
//
						$restrict->check($signature);
						$restrict->get_error($error);
//
// Signature Restrictions - End Code Alteration
//----------------------------------------------------------------------
usenet2you wrote:Maybe this is a nice feature: Block a certain BBCode in signature, e.g. [youtube], so the users can't use it in the signatures,
Thanks for the suggestion. :) I'm considering that for a future version. I haven't gone very deep into how the BBCode systme in phpBB 3 works yet.

lugsciath
Registered User
Posts: 316
Joined: Tue Oct 02, 2007 11:12 am

Re: [BETA] Signature Restrictions 0.0.1

Post by lugsciath »

german Translates, so far ... ;)
//----------------------------------------------------------------------
// Signature Restrictions - Begin Code Alteration
//
'SIGRESTRICT_TOO_HIGH' => 'Deine Signatur benutzt %s zu viele Linien bei der Anzeige.',
'SIGRESTRICT_TOO_LONG_LINE' => 'Deine Signatur hatt %s zu viele Zeichen in Linie %d.',
'SIGRESTRICT_UNABLE_GET_SIZE' => 'Die Größe des Bildes in %s konnte nicht bestimmt werden.',

'SIGRESTRICT_RULES_IMAGES' => 'Du darfst %s Bilder benutzen.',
'SIGRESTRICT_RULES_LINES' => 'Du darfst %s Linien benutzen.',
'SIGRESTRICT_RULES_LINE_HEIGHT' => 'Jede %s Pixels der Bilderhöhe zählt als separate Linie.',
'SIGRESTRICT_RULES_CHARS' => 'Jede Linie darf %s Zeichen erhalten (BBCode zählt nicht mit zum Limit).',
'SIGRESTRICT_RULES_IMAGE_CHARS' => 'Jede %s Pixels der Bilderhöhe zählt als einen Zeichen.',

// Nullar/Singular/Plural language entry. The key numbers define the number range in which a certain grammatical expression is valid.
'SIGRESTRICT_TOO_MANY_IMAGES' => array(
1 => 'Sie haben zu viele Bilder in ihrer Signatur. Es ist nur 1 Bild erlaubt.', // 1
2 => 'Sie haben zu viele Bilder in ihrer Signatur. Es sind nur %d Bilder erlaubt.', // 2+
),
//
// Signature Restrictions - End Code Alteration
//----------------------------------------------------------------------
//-- fin mod : Contact board administration --------------------------------------------------------
//----------------------------------------------------------------------
// Signature Restrictions - Begin Code Alteration
//
$lang = array_merge($lang, array(
'SIG_RESTRICT' => 'Signatur Einschränkungen',
'SIGRESTRICT_ENABLE' => 'Signatur Einschränkungen einschalten',
'SIGRESTRICT_ENABLE_EXPLAIN' => 'Benutzte dies um die Einstellungen für diese Gruppe an und aus zu schalten. Du kannst jede einzelne Einstellung unten ausschalten indem du 0 einträgst.',
'SIGRESTRICT_NOGET_HANDLE' => 'Speichere bei Bildgrößenfehlern',
'SIGRESTRICT_NOGET_HANDLE_EXPLAIN' => 'Soll die Signatur gespeichert werden, wenn die Größe nicht bestimmt werden kann? Bei "Nein" wird eine Fehlermeldung angezeigt.',
'SIGRESTRICT_MAX_LINES' => 'Maximale Linienlänge',
'SIGRESTRICT_MAX_LINES_EXPLAIN' => 'Maximale Länge in Zeilennummer für Signatur erlaubt.',
'SIGRESTRICT_MAX_IMAGES' => 'Maximale Bilder erlaubt',
'SIGRESTRICT_MAX_IMAGES_EXPLAIN' => 'Maximale Anzahl of Bilder erlaubt in user signatures. This does not include smilies.',
'SIGRESTRICT_MAX_LINE_CHARS' => 'Maximale Zeichens per line',
'SIGRESTRICT_MAX_LINE_CHARS_EXPLAIN' => 'Maximale Anzahl of Zeichen per Linie in Signaturen erlaubt.',
'SIGRESTRICT_MAX_LINE_CHARS_SILENT' => 'Zeichenumbrüche bei maximal Zeichen',
'SIGRESTRICT_IMAGE_LINE_PX' => 'Linienhöhe',
'SIGRESTRICT_IMAGE_LINE_PX_EXPLAIN' => "Höhe einer normalen Textlinie. Um herauszufinden, ob ein Bild mehr als eine Linie braucht, wird die Höhe des Bildes durch die Anzahl der Linien geteilt. Linien über diesem Wert wären das Maximum.",
'SIGRESTRICT_IMAGE_WIDTH_PX' => 'Zeichen Weite',
'SIGRESTRICT_IMAGE_WIDTH_PX_EXPLAIN' => "Weite eines Textzeichen. Die Weite der Bilder wird durch diese Anzahl geteilt um herauszufinden, ob ein Bild mehr als die höchste Menge an Zeichen in einer Linie benötigt.",
'SIGRESTRICT_MAX_LINE_CHARS_SILENT_EXPLAIN' => 'Wenn eine Linie das Maximum an Zeichen überschreitet, wird es mehr als eine Linie gezählt, jedesmal wenn ein Zeilenumbruch erfolgt. Wenn du "Nein" setzt erscheint eine Fehlermeldung.',
));
//
// Signature Restrictions - End Code Alteration
//----------------------------------------------------------------------

User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: [BETA] Signature Restrictions 0.0.1

Post by tumba25 »

The MOD author has not replied in this topic since June 2009 so I'll lock this topic as abandoned.

If the MOD author wants to continue development of this MOD you can contact a MOD team member.
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net

Locked

Return to “[3.0.x] Abandoned MODs”