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?
[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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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!
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok the <br /> solution worked! :D
ASKER
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
<div class="myquote"&
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?