Page 4 of 25

Posted: Thu Oct 28, 2004 6:40 pm
by Zenandrar
Mana wrote: As you can see none of the "new" settings created by the mod are visible.


I didn't look the mod yet (just DLed it) but I saw something just like that with another one (Admin Userlist). If you look on that topic, the solution is around page 18-20. The problem was on the language changes, easy fix. Maybe it's the same for you...

Profile Control Panel

Posted: Thu Oct 28, 2004 8:58 pm
by Nikolai Popkov
Could You make yours mod for mod Profile Control Panel
http://www.phpbb.com/phpBB/viewtopic.php?t=150925 ?

Re: [2.0.7] Signatures control

Posted: Thu Nov 04, 2004 11:28 pm
by bitton
MOD Database Manager wrote: Classification: 58 Profile

MOD Name: Signatures control
Author: -=ET=-
MOD Description: This MOD let admins fully control what they allow or not for signatures. However, regardless these rules for members, they can do what they want via the ACP.

MOD Version: 1.0.0
Installation Level: Easy
Installation Time: ~ 10 Minutes

Download File: signatures_control_1.0.0em.zip
File Size: 18219 Bytes

Security Score:


How is this defaulted? Is the default value set so that signatures are turned on for all users unless an admin turns someones sig off individually?

Is there a way to set this mod so that the default value of sigs is "OFF" for all members unless the admin goes in and turns the signature on for a member? How would I do that? Thanks.

Posted: Fri Nov 05, 2004 2:18 am
by Zenandrar
Thats standard feature of phpBB, just go on the ACP > General Admin > Configuration > User and Forum Basic Settings > Allow signatures

Posted: Sat Nov 06, 2004 9:22 am
by bitton
Zenandrar wrote: Thats standard feature of phpBB, just go on the ACP > General Admin > Configuration > User and Forum Basic Settings > Allow signatures

So are you saying that when you add this mod and then go to the admin panel all new and current signatures can be set with a default value of OFF and then we can use this mod to turn some individuals ability to have a signature ON?

Will the new members who join the board not have the ability to post signatures unless and until I use this mod to turn on that option for them individually?

Posted: Sat Nov 06, 2004 7:22 pm
by Zenandrar
bitton wrote: So are you saying that when you add this mod and then go to the admin panel all new and current signatures can be set with a default value of OFF and then we can use this mod to turn some individuals ability to have a signature ON?

No, I'm saying that the ability to turn off signatures from any user of your board is a standard feature of phpBB.
bitton wrote: Will the new members who join the board not have the ability to post signatures unless and until I use this mod to turn on that option for them individually?

If you set signatures off as a default for everyone, yes

Posted: Mon Nov 08, 2004 12:44 am
by Einstein
I like the idea of this MOD ... but I have no need for it yet.

Posted: Wed Nov 10, 2004 1:38 pm
by jetnet.cc
ET,

We got your signatures_control_1.2.1em up and running, and it seems to do just fine...

On your website I found the current version with a Dutch translation. This one has a syntax error, a parse error and some language errors. No biggie, I corrected them all and wil post it under this post for all cloggies to use.

Two questions:
1
In the file viewtopic.php there is a change:
#-----[ FIND ]------------------------------------------------
#
# NOTE: this is a search by part(s) of code line(s)!
# The original line(s) to find is(are) longer and must look like this (if no MOD has already modify them):
#
# if ( $user_sig != '' )
# {
# $user_sig = '<br />_________________<br />' . str_replace("\n", "\n<br />\n", $user_sig);
# }
#
if ( $user_sig != '' )
{
$user_sig =
}

#
#-----[ IN-LINE FIND ]----------------------------------------
#
''

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
&& $userdata['user_allowsignature'] != 0

#
#-----[ IN-LINE FIND ]----------------------------------------
#
}

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
else $user_sig = '';


Shouldn't that be:
else
{
$user_sig = '';
}


Or doesn't it make difference ?

2
After the 1.0.0 and the 1.2.1 upgrade I found the Signature data not under the Signature header in the Admin Control panel but under the basic forum settings...Did I miss something or has that happened to others as well ?

Anyway, GREAT MOD !, hope above things are nothing or minor at best, next post the corrected dutch lang_sig_control.php file :D

keep it up !

Gideon Reisel
the Netherlands

Posted: Wed Nov 10, 2004 1:53 pm
by jetnet.cc
<?php
/**************************************************************
* MOD Title: Signatures control
* MOD Version: 1.2.1
* Translation: Nederlands (Dutch)
* Rev date: 14/08/2004
* Translator: SNEEuWBAL < sneeuwbal@belgianmetal.com > (n/a) http://www.belgianmetal.com
* Corrected parse error in line 45 of the code, corrected ['SIG_ALLOW_SMILIES'] line (was ['SIG_ALLOW_SMILES'], added $lang['sig_explain_limits'] = 'Het is beperkt tot %s tekens%s%s%s.'; (was missing) and minor language errors by JetNet < admin@jetnet.cc >
*
***************************************************************/

$lang['sig_settings'] = 'Signature instellingen';
$lang['sig_settings_explain'] = 'waarschuwing: voor alle numerieke velden (behalve deze voor lettergrote), "0" ofleeg betekent "onbeperkt"!';

$lang['sig_max_lines'] = 'Maximum aantal regels';
$lang['sig_wordwrap'] = 'Maximum aantal tekens zonder spatie';
$lang['sig_allow_font_sizes'] = 'Tekstgrootte [size]';
$lang['sig_allow_font_sizes_yes'] = 'Onbeperkt';
$lang['sig_allow_font_sizes_max'] = 'Beperkt';
$lang['sig_allow_font_sizes_imposed'] = 'Opgelegd';
$lang['sig_font_size_limit'] = 'tekst grootte is beperkt';
$lang['sig_font_size_limit_explain'] = 'phpBB ondersteund geen tekst grotes hoger dan 29. Ook worden er geen grotes kleiner dan 7 ondersteund.';
$lang['sig_min_font_size'] = 'minimum /';
$lang['sig_max_font_size'] = 'maximum of opgelegde grote';
$lang['sig_text_enhancement'] = 'tekst verbeteringen toestaan';
$lang['sig_allow_bold'] = 'Vet ';
$lang['sig_allow_italic'] = 'Schuin ';
$lang['sig_allow_underline'] = 'Onderlijnd ';
$lang['sig_allow_colors'] = 'Tekst kleur [color]';
$lang['sig_text_presentation'] = 'tekst presentaties toestaan';
$lang['sig_allow_quote'] = 'Quoteren [quote]';
$lang['sig_allow_code'] = 'Code Quoteren

Code: Select all

'; 
$lang['sig_allow_list'] = 'Lijsten [list]'; 
$lang['sig_allow_url'] = 'Urls toestaan [url]'; 
$lang['sig_allow_images'] = 'Afbeeldingen toestaan [img]'; 
$lang['sig_max_images'] = 'Maximum aantal afbeeldingen'; 
$lang['sig_max_img_size'] = 'Maximum afbeeldings grote'; 
$lang['sig_max_img_size_explain1'] = 'In principe, mag het beheren van afbeeldings grootes geen problemen opleveren. Niettemin, als een afbeeldingsgrootte niet kan worden nagegaan, Dan moet het  toegelaten of geweigerd worden.'; 
$lang['sig_max_img_size_explain2'] = 'Het beheren van afbeeldingen kan soms voor problemen zorgen? (%s). Afbeeldingen die niet gecontroleerd worden moeten worden toegestaan of geweigerd.'; 
$lang['sig_max_img_size_explain3'] = 'In principe, is het beheren van afbeeldings grotes onmogelijk. (%s). Afbeeldingen die niet gecontroleerd worden moeten worden toegestaan of geweigerd.'; 
$lang['sig_img_size_legend'] = '(h x w)'; 
$lang['sig_allow_on_max_img_size_fail'] = 'Toestaan als het onmogelijk is om te controleren'; 
$lang['sig_max_img_files_size'] = 'Maximale bestandsgrootte van de afbeelding'; 
$lang['sig_max_img_av_files_size'] = 'maximale totale afbeeldings + avatar bestands grootte';
$lang['sig_max_img_av_files_size_explain'] = 'Als er een waarde in dit veld wordt gezet, zal er globale controle zijn voor de afbeelding en avatar, en de 2 afzonderlijke controles zullen worden uitgeschakels. Als er geen waarde of 0 wordt ingegeven, zal de globale controle worden gedeactiveerd.'; 
$lang['sig_Kbytes'] = 'Kb'; 
$lang['sig_exotic_bbcodes_disallowed'] = 'Andere BBCodes NIET toestaan';
$lang['sig_exotic_bbcodes_disallowed_explain'] = 'instellen van andere BBCodes die moeten worden geweigerd (eg.: fade,php,shadow)';
$lang['sig_allow_smilies'] = 'Smilies toestaan';
$lang['sig_reset'] = 'De gebruiker zijn signature resetten';
$lang['sig_reset_explain'] = 'Handtekeningen van <span style="color: #800000">alle gebruikers</span> verwijderen! Dit is om ze te verplichten om ze opnieuw in te stellen en te laten controleren';
$lang['sig_reset_confirm'] = 'Weet u zeker dat u de handtekeningen van alle gebruikers wilt verwijderen?';

$lang['sig_reset_successful'] = 'De Handtekeningen van alle gebruikers zijn verwijderd!';
$lang['sig_reset_failed'] = 'Error: Handtekeningen kunnen niet worden verwijderd.';

$lang['sig_config_error'] = 'Uw Handtekening settings zijn niet geldig.'; 
$lang['sig_config_error_int'] = 'U heeft negatieve getallen ingegeven (Of de minimum grootte van de fonts is groter dan 29):'; 
$lang['sig_config_error_min_max'] = 'U heeft tegenstrijdige waarden ingegeven voor de maximale en minimale font grootte (min: %s / max: %s). De maximale font grootte moet groter zijn dan 1.'; 
$lang['sig_config_error_imposed'] = 'U heeft ervoor gekozen om een font size te verplichten, maar deze is niet correct. (%). Het minimum is 7 en de maximum is 29.'; 

$lang['sig_allow_signature'] = 'Kan signature weergeven';
$lang['sig_yes_not_controled'] = 'Ja, niet gecontroleerd';
$lang['sig_yes_controled'] = 'Ja, gecontroleerd';

$lang['sig_explain'] = 'Een handtekening is een klein tekstje dat onder aan iedere post wordt toegevoegd die je plaatst.';
$lang['sig_explain_limits'] = 'Het is beperkt tot %s tekens%s%s%s.'; 
$lang['sig_explain_max_lines'] = ' op %s lijnen'; // Be careful to the space at the begining! 
$lang['sig_explain_font_size_limit'] = ' (grootte %s tot %s)'; // Be careful to the space at the begining! 
$lang['sig_explain_font_size_max'] = ' (grootte %s maximaal)'; // Be careful to the space at the begining! 
$lang['sig_explain_no_image'] = ' en GEEN afbeeldingen'; // Be careful to the space at the begining! 
$lang['sig_explain_images_limit'] = ' en %s en afbeeldingen met pixels niet gorter dan %sx%s en met een maximum van %sKb'; // Be careful to the space at the begining! 
$lang['sig_explain_unlimited_images'] = ' en zoveel afbeeldingen als je wilt, maar geen mag groter zijn dan %sx%s pixels, met een maximum van %sKb'; // Be careful to the space at the begining! 
$lang['sig_explain_avatar_included'] = ', avatar inbegrepen'; 
$lang['sig_explain_wordwrap'] = 'In de handtekening zijn meer dan %s tekens aan één stuk zonder een spatie ertussen niet toegestaan.'; 

$lang['sig_BBCodes_are_OFF'] = 'BBCodes staan <u>UIT</u>'; 
$lang['sig_bbcodes_on'] = '%sBBCodes%s AAN: '; 
$lang['sig_bbcodes_off'] = '%sBBCodes%s UIT: '; 
$lang['sig_none'] = 'geen'; 
$lang['sig_all'] = 'alle'; 

$lang['sig_error'] = 'Uw handtekening is ongeldig.'; 
$lang['sig_error_max_lines'] = 'Uw tekst bevat %s lijnen waar er maar %s zijn toegelaten.'; 
$lang['sig_error_wordwrap'] = 'Uw tekst bevat %s groepen van meer dan %s tekens zonder spatie, waar dit verboden is.'; 
$lang['sig_error_bbcode'] = 'U heeft deze verboden BBCode(s) gebruikt: %s'; 
$lang['sig_error_font_size_min'] = 'U hebt de font size %s gebruikt waar het minimum %s is.'; 
$lang['sig_error_font_size_max'] = 'U hebt de font size %s gebruikt waar het maximum %s is.'; 
$lang['sig_error_num_images'] = 'U heeft %s afbeeldingen gebruikt, waar het toegelaten maximum %s is.'; 
$lang['sig_error_images_size'] = 'De %s afbeelding is te groot.<br />De grootte is %s pixels hoog en %s breed, waar het maximum %s hoog en %s breed is.'; 
$lang['sig_unlimited'] = 'onbeperkt'; 
$lang['sig_error_images_size_control'] = 'Het is onmogelijk om de afbeeldings grootte te berekenen van: %s<br />Ofwel is er geen afbeelding op deze locatie, of het forum kan deze niet controleren, sowieso kan u deze niet gebruiken.'; 
$lang['sig_error_avatar_local'] = 'Er is een probleem met dit bestand: %s<br />Het is onmogelijk om de grootte na te gaan.'; 
$lang['sig_error_avatar_url'] = 'De URL moet fout zijn: %s<br />Er is geen avatar op deze locatie.'; 
$lang['sig_error_img_files_size'] = 'De totale grootte van de afbeeldingen gebruikt is %sKb waar het maximaal toegestaan %sKb is.'; 
$lang['sig_error_img_av_files_size'] = 'De totale grootte van de afbeeldingen in uw handtekening (%sKb) en uw avatar (%sKb) is hoger dan de toegestane %sKb.'; 

?>

Posted: Fri Nov 12, 2004 3:05 pm
by fiestaju
Sounds like a really good mod, when i go to install it though i get this error in the Admin control panel
Parse error: parse error in ..../phpBB2/admin/admin_board.php on line 163


I saw a something about this a few replies ago but have tried re-doing the admin_board.php file several time to no avail!

Anyone got any ideas as to what i'm doing wrong?

Cheers, Ju :)

Posted: Sat Nov 13, 2004 6:13 am
by onigumo
Is there a way to exclude admins? I'd really like that.

Posted: Sat Nov 13, 2004 1:03 pm
by (¯`·._.·[LaZaRuS]·._.·´¯)
Hey looks a good mod, however...

I get this error when installing with EM, could someone please give us a hand..?
Critical Error

FIND FAILED: In file [posting.php] could not find:

if( $user_sig != '' )
{
$template->assign_block_vars('switch_signature_checkbox', array());

MOD script line #250 :: FAQ :: Report


I have found the line and stuff and it is there indeed...

Posted: Mon Nov 15, 2004 10:48 pm
by lyrae
Eek!

I get this when trying to View changes with EasyMod before running the install:
The requested URL /boards/posting.php&password=**edited**&install_file=signatures_control_1.2.1em.txt&install_path=./mods/signatures_control_1.2.1em/ was not found on this server.


I'm on Apache 1.3.33. The paths are correct (/boards/posting.php is there, anyway, and the mod was uploaded into the mods directory as instructed). Does it not like the syntax of those parameters, maybe? I'm confuzzled. Please help!! :?

Posted: Sun Nov 21, 2004 6:29 am
by onigumo
Here's a screen shot: http://pb.exocrew.com/haruko/download.php?id=97

Why is "%sBBCodes%s" displayed like that?

By the way, I'm using version 1.0.0 of this MOD.

Edit-- added link for screen shot. :roll:

Posted: Sat Dec 04, 2004 9:30 pm
by wandering soul too
#-----[ OPEN ]------------------------------------------------
#
admin/admin_board.php


#-----[ FIND ]------------------------------------------------
#
if( isset($HTTP_POST_VARS['submit']) )
{
#-----[ AFTER, ADD ]------------------------------------------
#


i found that exact line two times:
if( isset($HTTP_POST_VARS['submit']) )
{
$sql = "UPDATE " . CONFIG_TABLE . " SET
config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'
WHERE config_name = '$config_name'";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql);
}
}
}

if( isset($HTTP_POST_VARS['submit']) )
{
$message = $lang['Config_updated'] . "<br /><br />" . sprintf($lang['Click_return_config'], "<a href=\"" . append_sid("admin_board.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");

message_die(GENERAL_MESSAGE, $message);
}
}


after which one do i need to add the code?

when going to my acp i get the following error message where normally the administration menu is
Parse error: parse error, unexpected T_SWITCH in xxxx/board/admin/admin_board.php on line 166


line 166 is the line with switch in the following piece of code:
// Start add - Signatures control MOD

switch ( $new['sig_allow_font_sizes'] )
{
case 1:
$sig_allow_font_sizes_yes="checked=\"checked\"";
break;
case 2:
$sig_allow_font_sizes_max="checked=\"checked\"";
break;
case 0:
$sig_allow_font_sizes_imposed="checked=\"checked\"";
break;


that is a similar error to what another person posted here before and it was suggested to make the changes again. however since that line is part of text i copied and pasted to add as was instructed, i do not know what is causing this error. could it be that it is caused because there are faults at other places in that file? or does the mistake need to be in that line alone.
any help would be much appreciated. (i am not very php literate). thanks.