PDA

View Full Version : Form fields in regular (non-AdminCP) pages


DragonBlade
10-06-2008, 05:23 PM
Dear vBulletin gurus,

I've gotten down pat how to use the table/form construction functions (print_input_row(), print_input_select_row(), etc.). However, those seem to be for Admin pages only. As I would like to offer a clean, neat form for my users on a regular page, is there functions that can accomplish the same goal, or is that pretty much a "you write the HTML on your own" type of thing?

--Sarteck

Lynne
10-06-2008, 08:07 PM
You can always copy the functions into your own page.

DragonBlade
10-07-2008, 02:07 AM
Thanks, Lynne--that's kind of the answer I was looking for. I just wanted to make sure that I was not going about making the forms the wrong way (that there wasn't a vBulliten way of doing things I wasn't aware of).

Lynne
10-07-2008, 02:27 AM
Well, they are done that way in the admin cp area to avoid the template system, I believe (so if you have ruined a template, you can still get into the admin cp). The rest of the forum uses templates to spit out lines of code. Look at all the threads listed as a result of a New Posts search... those aren't spit out using a print_row function, the template is evaled in a while statement. So, in the main forums, a template is used as a kinda print_row function.

DragonBlade
10-07-2008, 04:41 PM
Makes sense... Thanks! A lot, I mean. It's all falling into place a lot easier now.