bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Using values from the db in your textfield/ddlb?

(1 post)
  • Started 1 year ago by Null
  • This topic is not resolved
  1. Hi,

    You can add values into a textfield like this:
    <input type="text" name="number_of_topics" id="number_of_topics" value="<?php echo bb_get_option( 'bbp_number_of_topics' ); ?>"/>

    Now there will be a value when the texfield is loaded. But what if there is no value, how can I let it show 0 then? using : 0 wont work.

    Sec question:
    Same tactics as above, but now with a ddlb. I can't get this fixed. How can i show the value in a ddlb?

    Got this:
    <td><?php forum_dropdown(); ?></label></td> but where do I put that value thingy?

    Many thx

    _Null

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.