Seite 1 von 1

html

Verfasst: 22.06.2005 16:45
von achim89
gibt es einen Mod, dass nur der Admin html benutzen kann, wenn html im acp ausgeschalten ist?

allowhtml für admin oder moderator

Verfasst: 14.07.2005 14:27
von bugscout
moin moin,

habe mich da auch gerade mit rumgeschlagen
meine lösung:

html muss an sein sonst lese ich die tags

in der anmeldung alle user auf allowhtml=0

profile_add_body.tpl
<input type="hidden" name="allowhtml" value="0">

<!--

<tr>
<td class="row1"><span class="gen">{L_ALWAYS_ALLOW_HTML}:</span></td>
<td class="row2">
<input type="radio" name="allowhtml" value="1" {ALWAYS_ALLOW_HTML_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="allowhtml" value="0" {ALWAYS_ALLOW_HTML_NO} />
<span class="gen">{L_NO}</span></td>
</tr>

-->
dann in posting.php alle erlauben die allow=1 sind
//
// Set toggles for various options
//
if ( !$board_config['allow_html'] )
{
$html_on = 0;
}
else
{
$html_on = $userdata['user_allowhtml'] ;

}

aus kosmetischen gründen habe ich dann noch bei posting html-aktivieren auskommentiert.

posting_body.tpl
<!-- BEGIN switch_html_checkbox -->
<!-- <tr>
<td>
<input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_HTML}</span></td>
</tr> -->
<!-- END switch_html_checkbox -->
und den status auf html-aus gesetzt
<td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall"> HTML ist <u>aus</u> <br />{BBquote_STATUS}<br />{SMILIES_STATUS}</span></td>
jetzt kann ich von hand in der userverwaltung im admin einzelne user freischalten

grüsse

Verfasst: 14.07.2005 19:55
von achim89
wo ist diese profile_add_body?

Verfasst: 14.07.2005 20:36
von Mr Death
phpBB2/templates/subSilver/profile_add_body.tpl

Anstatt 'subSilver' halt das Template von dir.

MfG

Re: html

Verfasst: 14.07.2005 21:04
von yen
achim89 hat geschrieben:gibt es einen Mod, dass nur der Admin html benutzen kann, wenn html im acp ausgeschalten ist?
Gugg ma in dein PN-Postfach ^^ Hab den Mod mal irgendwo gefunden, und in dir jetzt mal zu gestellt ^^
##############################################################
## MOD Title: HTML BBcode MOD
## MOD Author: markus_petrux < phpbb.mods@phpmix.com > (Markus) http://www.phpmix.com
## MOD Description: This MOD adds an HTML BBcode to your forum, which allows you to enter HTML tags yourself
## when posting a message. It is also possible to post JavaScript, Flash or Java objects, Forms, etc.
## You can even use other BBCode tags within an HTML block! Syntax is pretty simple: [html]text[/html].
## While this BBCode is powerful, it is also somehow dangerous! By default, it is only allowed for the
## main board administrator. It can also be allowed for other Admins or members of a usergroup via ACP.
##
## MOD Version: 1.1.4
##
## Installation Level: Intermediate
## Installation Time: ~30 Minutes
## Files To Edit: 10
## includes/constants.php
## includes/functions.php
## includes/bbcode.php
## templates/subSilver/bbcode.tpl
## language/lang_english/lang_main.php
## language/lang_english/lang_bbcode.php
## templates/subSilver/posting_body.tpl
## language/lang_english/lang_admin.php
## admin/admin_board.php
## templates/subSilver/admin/board_config_body.tpl
## Included Files: 0
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## *** ABOUT HTML BBCODE MOD ***
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##
## * BEFORE installing this MOD:
##
## This MOD adds the following line into your includes/constants.php file:
##
## define('FOUNDER', 2);
##
## ...where number 2 is the main board administrator. It is the user_id used to install phpBB.
## If for whatever reason you have removed or disabled this user, please adjust the value
## of the FOUNDER constant accordingly. It must match the user_id of your CURRENT main board admin.
## For instance, if the user_id of your main board admin is 100, then change that line to look
## like:
##
## define('FOUNDER', 100);
##
##
## * Allowing HTML is a somehow dangerous !!!
##
## By default, the HTML BBCode is disabled. The main board administrator is allowed to:
##
## a) bypass this restriction.
## b) allow others admins or members of a usergroup to use it (ACP->Configuration).
##
##
## * Syntax for the HTML BBCode is pretty simple:
##
## Usage: [html]text[/html]
##
##
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## *** IMPORTANT NOTES ***
## *** PLEASE, READ BEFORE INSTALLING THIS MOD. THANKS ***
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##
## NOTE --- Make backups of all files and DB tables altered by this MOD
##
## ****
## **** Please, do it now. Make backups BEFORE installing MODs.
## ****
##
##
## NOTE --- Please, consider using EasyMOD to install this MOD.
##
## ****
## **** EasyMOD can automatically install this MOD for you. It works!
## **** EasyMOD version 0.1.13 also supports SQL processing !!!
## ****
## **** Get it here:
## **** http://www.phpbb.com/phpBB/viewtopic.php?t=217673
## ****
##
##
## NOTE --- you MUST first have already installed the Multi BBCode MOD v1.4.0 !!!
##
## Allows you to install BBCode MODs that add quick BBCode buttons in post edits.
## Without this MOD, there is no standard way of installing BBCode MODs.
##
## **** Get it here:
## **** http://www.phpbb.com/phpBB/viewtopic.php?t=145513
##
##
## NOTE --- It is also recommended the BBCode Buttons Organizer MOD !!!
##
## Allows for a neat display of unlimited quick BBCode buttons.
##
## **** Get it here:
## **** http://www.phpbb.com/phpBB/viewtopic.php?t=145516
##
##############################################################
## MOD History:
##
## 2004-10-20 - Version 1.1.4
## - Added a new constant (FOUNDER) in place of the hardcoded user_id for the main board admin (2).
##
## 2004-10-05 - Version 1.1.3
## - Fixed for PHP3 compatibility (now using intval instead of is_numeric).
## - Fixed for compatibility with the new Multiple BBCode MOD v1.4.0 !!!
## - Fixed posting_body.tpl to avoid errors when posting HTML Forms.
##
## 2004-09-18 - Version 1.1.2
## - Fixed SQL error in admin_board when the board has no usergroups defined.
##
## 2004-09-17 - Version 1.1.1
## - Fixed a small bug in admin_board.
## - Fixed a bug in posting related to Multiple BBCode.
##
## 2004-09-17 - Version 1.1.0
## - Added BBCode button (Alt+H) in posting page.
## - Added Support for Usergroup permissions.
##
## 2004-09-14 - Version 1.0.0
## - First Beta released
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################