Em Andamento

Small Joomla Tiny MCE or php conditional code needed

Either Tiny MCE, Joomla or a plug-in called community builder automatically inserts <br /> tags into the text editor field on the user profile edit page even when no content is being added.

These break tags are then inserted into the database when the profile is updated. Since the fields in the database are not empty (containing <br /> tags now) code that checks for values in a field finds content. This means I have a lot of instances of titles being displayed but no real content to go with them.

## Deliverables

Either Tiny MCE, Joomla or a plug-in called community builder automatically inserts <br /> tags into the text editor field on the user profile edit page even when no content is being added.

These break tags are then inserted into the database when the profile is updated. Since the fields in the database are not empty (containing <br /> tags now) code that checks for values in a field finds content. This means I have a lot of instances of titles being displayed but no real content to go with them.

I have cleaned all the tags out of the database manually but obviously this is not a reasonable solution as every time the client updates a profile the break tags will be re-inserted.

My preferred solution would be the correct code to check for instances of <br> OR ""

something like:

if (($row["cb_publications"] != '') || ($row["cb_publications"] != '<br />'))

{ echo "<p><strong>Publications</strong>:<br />".$row["cb_publications"]."</p>";

}

which doesn't actually work (I just need some code that does). I am using a customized page to display the profile information because the Community Builder page was not terribly customizable either.

The other solution is to solve the problem at the back end and not have the break tags insert into the database. I've looked for where that is and am stumped.

An example of a profile page can be found here: [url removed, login to view]~westonpa/[url removed, login to view]

The problem wont be visible because I've cleaned the break tags out - just picture one of the areas displaying a title but no content

Habilidades: Engenharia, MySQL, PHP, Gestão de projetos, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: problem community solution, php code editor, need profile picture editor, tiny, php solve, real small, work user php project, joomla found, real joomla project, row text php, php edit code, database management joomla, content builder joomla, conditional fields, php project code, obviously editor, page builder joomla, conditional database, bio project, problem joomla content display, community database builder, joomla problem user, conditional joomla, 209, content editor php

Acerca do Empregador:
( 22 comentários ) United States

ID do Projeto: #2975622

Premiar a:

jakefin

See private message.

$42.5 USD em 14 dias
(4 Avaliações)
2.5

2 freelancers estão ofertando em média $34 para este trabalho

sacharosa

See private message.

$25.5 USD in 14 dias
(2 Comentários)
2.5