MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
BBcode & Smiles
AuthorText
slashado
Donator

Posts: 302
Contributes: 329

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 05/02/2009 09:01
BBcode & Smiles
#post18034
Como eu faço pra ativar o BBcode em outras áreas além dos artigos? áreas como, My pages, Blog e Mensagens? e onde eu coloco os smiles? aqui no fórum tem os smiles ao lado da textarea, como faço pra colocar isso nos forms de comentários? tem como eu colocar os smiles no FCK Editor onde eu edito as páginas do site?

Abraços!

Translate:

How do you turn on BBCode in other areas besides the articles? areas such as, My pages, Blog and Messages? and where I put the smiles? here in the forum is the smiles on the side of the textarea, how do you put it in forms of feedback? as I have put smiles on the FCK Editor where I edit the pages of the site?
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Eager for MemHT 5
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 6901
Contributes: 4406

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 05/02/2009 11:20
Re: BBcode & Smiles
#post18049
1) You cannot use FCKeditor for BBCode

2) It could be a security problem... HTML or BBCode it's ok.. HTML + BBCode = Could be a serious problem... but it's your choice

3) If you want to use BBCode in HTML areas (you must add bbcode manually in textareas) open the page where you want to add it and find (something like this):

code
$text = outCode($text);
and add after
code
$text = bb2html($text);
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
slashado
Donator

Posts: 302
Contributes: 329

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 05/02/2009 12:09
Re: BBcode & Smiles
#post18064
It is true, had forgotten the details of security ... better not use it not. But is there any way I insert emotions on my pages without you manually add a picture to post them? and provide comments only on emotions for example? if so, great, if not, better security than a smiling face, because that smile can turn away tears after! Thanks for the advice and for the tip!
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Eager for MemHT 5
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 6901
Contributes: 4406

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 05/02/2009 12:14
Re: BBcode & Smiles
#post18066
Add $text = bb2smile($text);

It's safe
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
slashado
Donator

Posts: 302
Contributes: 329

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 05/02/2009 12:26
Re: BBcode & Smiles
#post18069
Until I had seen something ... but, I just post in this format? it saw that "outCode" appears in various formats as $ blah = outCode ($ blahblah);

I post as $ text, or adapt to the format shown in the code of each page?
Thanks for the support ... you are the man!
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Eager for MemHT 5
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 6901
Contributes: 4406

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 05/02/2009 12:38
Re: BBcode & Smiles
#post18070
it's not called in all pages with the same name, it can appear as $text, $testo, $content etc
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
slashado
Donator

Posts: 302
Contributes: 329

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 05/02/2009 12:44
Re: BBcode & Smiles
#post18072
hmmm, I get it, then all I have to add is "= bb2html" on the next line ... I understand now! Thank you!
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Eager for MemHT 5
Delete Edit Quote
 
slashado
Donator

Posts: 302
Contributes: 329

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 05/02/2009 12:46
Re: BBcode & Smiles
#post18073
hmmm, I get it, then all I have to add is "= bb2html" on the next line ... I understand now! Thank you members!
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Eager for MemHT 5
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 6901
Contributes: 4406

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 05/02/2009 12:51
Re: BBcode & Smiles
#post18074
Not in ALL lines... in the main text one only.

Tell me in which page you want to add it.

In articles for example it's $testo:

code
$testo = outCode($row['testo']);
on the ~132th row
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
slashado
Donator

Posts: 302
Contributes: 329

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Brasil
Languages: Português, Inglês (via Google), e todas as outras (via google)
Date: 05/02/2009 13:00
Re: BBcode & Smiles
#post18075
All is well ... I could add the page to "Message", and certainly in other to understand the logic that is very easy to understand ... CMS is a first line certainly ... Mem Thank you very much, but I'm more concerned about the newsletter that keeps no entries made by subscribers ... that is worried because, as soon as I register it returns a message of success, however, he remains the registered email, it does not store the email registered in the Bank ... posted there, I asked, I hope you can help me with this problem too! See you soon!
..::MS Criações::.. - Criação e Hospedagem de Websites!
..::Memht BRASIL::.. - Comunidade brasileira do MemHT!
Eager for MemHT 5
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.191.108

Username
Password
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo