phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

FAQFAQ - PIERWSZA POMOC!!  regulaminREGULAMIN  SzukajSZUKAJ  UżytkownicyUżytkownicy  GrupyGrupy  StatystykiStatystyki
RejestracjaRejestracja  ZalogujZaloguj  DownloadDownload  katalog Forów DyskusyjnychKatalog Forów   FAQ Video tutoriale

Poprzedni temat «» Następny temat
HTML on forum - how to enable it?
Autor Wiadomość
Matteo



Pomógł: 1932 razy
Posty: 5715
Wysłany: 05-09-2010, 15:54   HTML on forum - how to enable it?

To enable the ability to use html in posts, you should:
in AP > General Admin > Configuration > Posting > set:
Allow HTML: Yes
Allow HTML for Admin's: Yes
Allow HTML for JuniorAdmin's: Yes
Allow HTML for Moderator's: Yes


At the same time, these settings should be dependent on whom we want to use html in the forum. If only to admin's Allow HTML for Admin's: Yes etc.

Now you must determine to which tags we give this permission. Default are already entered:
Kod:
b,i,u,pre

If you want to use other, you must add, separated by commas, no spaces.
Ex. to had possibility to use codes from youtube, you need tags:
Kod:
embed,object

You must added this by code, which we want to apply.

Next in AP > General Admin > Configuration > Profile > set:
Always allow HTML
Whether during registration as well as edition of profile, to show the field "Always allow HTML" ?(It be engaged significantly): [b]Yes


Next step is enable HTML when you making a post. You can do this during the posting - unmark option Disable HTML in this post, or by modify file posting.php.
FIND:
Kod:
$s_html_checked = (($html_on && $mode == 'editpost') || ($preview && !isset($HTTP_POST_VARS['disable_html'])) ) ? '' : 'checked="checked"';
REPLACE WITH:
Kod:
$s_html_checked = (($html_on && $mode == 'editpost') || ($preview && !isset($HTTP_POST_VARS['disable_html'])) ) ? '' : '';

After this operation, this field been automaticly unmarked.
You can do this also with quick reply.
templates/name_of_template/quick_reply.tpl
FIND:
Kod:
<input type="hidden" name="disable_html" value="1" />
REPLACE WITH:
Kod:
<input type="hidden" name="disable_html" value="0" />
and in posting.php
FIND:
Kod:
if ( !$HTTP_POST_VARS['disable_html'] )
{
    $s_html_checked = (($html_on && $mode == 'editpost') || ($preview && !isset($HTTP_POST_VARS['disable_html'])) ) ? '' : 'checked="checked"';
}
else
{
    $s_html_checked = 'checked="checked"';
}
REPLACE WITH:
Kod:
if ( !$HTTP_POST_VARS['disable_html'] )
{
    $s_html_checked = (($html_on && $mode == 'editpost') || ($preview && !isset($HTTP_POST_VARS['disable_html'])) ) ? '' : '';
}
else
{
    $s_html_checked = '';
}


(original content)
_________________
Fora, strony, sklepy internetowe i wiele więcej...
matteo.fcb(at)gmail.com
 
     
Gadatliwa Kasia 

   
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Kopiowanie wszelkich treści zawartych na forum, modyfikacji oraz instrukcji bez zgody administracji i autorów tematów/postów zabronione!

Powered by phpBB modified by Przemo © 2003 phpBB
Strona wygenerowana w 0,06 sekundy. Zapytań do SQL: 12
Polecane serwisy

Najlepsze oprogramowanie do prowadzenia sklepu internetowegoNajlepszy program do sklepu firmowany przez Przem'a

Sklep z gadżetami

mediaclick.pl

serwis laptopów

phpbb

Polisy Ubezpieczeniowe TU Europa

Design Cart - Tworzenie sklepu internetowego

dnirozwoju.pl

Ranking Hostingów HostingOnline.pl

• Zamów reklamę