Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Help required with setting correct nugget setting.

VazVaz New
edited September 2007 in Vanilla 1.0 Help
Hi guys,

Recently I made a little code whereby a small drop down menu is placed and when one of the items in it is selected it puts in data into the comments field.

I'm trying to use nuggets to get the drop down to appear in the correct position but I'm failing to get it precisely correct. Either it ends up appearing at different positions or the css messes up.

image

I've tried various weights (-10 - -5) and neither seems to make it go in the correct position. Are there any ideas as to how I can get it there?

Kind regards,
Vaz

Comments

  • PS: the code is: <script type="text/javascript"> function htmlData(selectValue,targetTextArea) { // alert("select box changed to : '" + selectValue + "'"); var txtNode=document.createTextNode(selectValue); var textArea=document.getElementById(targetTextArea); textArea.appendChild(txtNode); } </script> <form method="post"> <select name="colour" id="selbox" onchange="htmlData(this.value,'CommentBox')" /> <option value="#">-Colours-</option> <option value="<font color='pink'></font>">Pink</option> <option value="<font color='green'></font>">Green</option> <option value="<font color='blue'></font>">Blue</option> </select>
  • Have you had a look at the code that puts that spell checker where it is? I would use that as a starting point.
  • VazVaz New
    edited September 2007
    Had a look, took a shot but isnt really happening seeing that I suck at coding :P

    Attempted a little test though:
    if (in_array($Context->SelfUrl, array("comments.php", "post.php"))) { class CommentForm_AddColourPop extends Control { function Render() { echo"Hello"; } } $CommentForm_AddColourPop = $Context->ObjectFactory->NewContextObject($Context, "CommentForm_AddSpellColourPop"); $Page->AddControl("Page_Render", $CommentForm_AddSpellColourPop, $Configuration["CONTROL_POSITION_FOOT"]); } A fatal, non-recoverable error has occurred Technical information (for support personel): Error Message The "CommentForm_AddSpellColourPop" class referenced by "CommentForm_AddSpellColourPop" does not appear to exist. Affected Elements ObjectFactory.NewObject();

    .. fatality comes my way when I attempt these things lol.
This discussion has been closed.