No announcement yet.

Adding a checkbox to newreply

  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding a checkbox to newreply


    In the Template: newreply I've added the following code:

    PHP Code:
    <if condition="is_member_of($bbuserinfo, 6)"><div><label for="cb_scout"><input type="checkbox" name="scout" id="cb_scout" tabindex="1" $checked[signature] />Scouting?</label></div></if> 
    It's already showing up for admins.

    Now I'd like to add this value into my database. Therefore I added an additional field to the posting table "scout" which should hold 0 or 1.

    I checked newreply.php but I don't see any Database Insert call or what so ever. How is it possible to insert this value into my posting table now?

    Thanks for any help!

  • #2
    yep you need to check it out, it should be in newreply or functions_newreply (or one of the other function includes)..

    Just be aware you will need to change it in a lot of places.. i did this once and it was a pain the bum to do.. But that was 3.0x so yeh things might have changed.


    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.