SirChick Posted December 12, 2007 Share Posted December 12, 2007 How does quoting a post work exactly... just curious as to how it carries it and then posts it above your inputted text whilst surrounding it in like a colour box to make it stand out ...? Is it a session or something? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted December 12, 2007 Share Posted December 12, 2007 javascript is used for place forum tags in textarea and the php script is set-up to interpret cretin text patterns and convert them to html/css styles when their output to you forum; like: [color=red][/color] the php output would interpret the above code to something like: <span style="color:red"></span> Quote Link to comment Share on other sites More sharing options...
SirChick Posted December 12, 2007 Author Share Posted December 12, 2007 Yeah but if people have javascript turned off? What happens then? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted December 12, 2007 Share Posted December 12, 2007 forum tags will not be placed in textarea - test it out yourself - turn your JS off and simulate a thread post and try to wrap forum tags around some content - you will see that it does not work. Quote Link to comment Share on other sites More sharing options...
SirChick Posted December 12, 2007 Author Share Posted December 12, 2007 so it just creates a messy post? can it be done by pure php? Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted December 12, 2007 Share Posted December 12, 2007 not exactly - you could take current text from your textarea and repost it, plus the forum tag text; in the textarea when someone clicks a forum tag button. that is about the best work around I can think of; if JS is not enabled. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.