[ yot | yob ] [ Home | Admin | Hilfe ]
204.152.184.76 

Antwortmodus

 Zum Löschen
Regeln
  • Erlaubte Formate: GIF, JPG, PNG
  • Maximale Dateigröße: 4.096 Kb
  • Bilder über 300 x 300 Pixel werden verkleinert (Antworten 200 x 200)
  • Lies diese Regeln und FAQ vor der Teilnahme
  • Erlaubter BBCode: [b][i][u][s]
  • Die Inhalte dieser Seite sind prinzipiell nicht ernst zu nehmen
  • 97 Posts mit 49 Bildern in 25 Threads von 37 Besuchern
>>>>>>

 [ zurück ]

allow no-picture threads

!ADMIN 17.02.10 (Mi) 11:12 Nr.7  
no-picture threads can be allowed nao.
to do so, just add a new variable to config.php

define ('NOFILE_CHECKBOX_ALLOWED', 0);
 // To allow non-picture-threads

For Ordnung und Sauberkeit, I did it after the section

define ('SHOWFLIPBUTTON', 0);
 // Show Flip-Button in postarea
	define ('SHOWASCIIBUTTON', 0);
 // Show Ascii-Button in postarea
	define ('SHOWCLEARBUTTON', 0);
 // Show Clear-Button in postarea
	define ('bbCodeON', 1);
 // Switch bbCode on
	define ('WORDFILTERON', 1);
 // Filter filthy words and hide them under


then, in imgboard.php, look for

if (!$resno) // "No file" checkbox for new threads {
 $dat	.= ' [<label title="' . T_NOFILE . '"><input type="checkbox" name="textonly" value="on" /> ' . S_NOFILE . '</label> ]';
}

uncomment that section and replace it with

if (NOFILE_CHECKBOX_ALLOWED == 1 ) {
 if (!$resno) // "No file" checkbox for new threads {
  $dat	.= ' [<label title="' . T_NOFILE . '"><input type="checkbox" name="textonly" value="on" /> ' . S_NOFILE . '</label> ]';
 }
}

And you're done. Letz check if it works with this thread!!!1

Passwort    [  ] 
[ zurück ]
[ Home | Admin | Hilfe ]