Link to home
Start Free TrialLog in
Avatar of narmi2
narmi2

asked on

Help with code

I have a basic forum and am having problems with the [quote] button.  What happens is when the [quote] button is clicked, it gets the appropriate text and sticks it into the message textbox like so

[quote=username]the quoted message here[/quote]

so that part works fine, and i even save it to the database at it is above.

how do i format this so it looks similar to the text in normal forums when the new message is posted which includes the quoted text?

i'm guessing css???

any suggestions on how its done?
SOLUTION
Avatar of TSmooth
TSmooth

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of narmi2
narmi2

ASKER

i'm happy about the css part.  what i an confused about is the following

lets say it uses a div tag to store the information into the database e.g.

<div class="myquote">some test here</div>

is stores it in the database like this

&lt;div class=&quot;myquote&quot;&gt;some test here&lt;/div&gt;

it displays it on the page like this

<div class="myquote">some test here</div>

im using tinymce....... how do i get around this problem?
Avatar of narmi2

ASKER

Please ignore my last comment, that was not the problem.  will get back to you which i get the problem clear in my mind!
Avatar of narmi2

ASKER

ok, another atempt

i am using a wysiwyg editor in my webpage which does not display row html, even though it is the raw html which gets saved into the database.

when i click the quote button, it sticks the quoted text into the wysiwyg editor, but only shows the text without the div tag.  the div tag is still around the text but it just cannot be seen in the editor.

now, when this happens "a quote is quoted" and the user then adds his/her own text below the quote, it ends up getting added to the quoted text because you cannot see where the div tag starts or ends in the wysiwyg editor.

how can i get around that?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of narmi2

ASKER

ok the <br /> solution worked! :D