FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » register.tmpl
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
register.tmpl [message #6572] Thu, 17 October 2002 05:50 Go to next message
roedema   United States
Messages: 10
Registered: October 2002
Karma: 0
Junior Member
my forum doesn't currently use private messages, signatures, or avatars, so I want to remove some options corresponding to them from the register/profile pages, and set defaults in their place. I intend on commenting out their rows in the table and putting in <input type="hidden"> tags in their place.

first of all, are both of these handled by register.tmpl?

I was just going to inquire into their form names, but then I realized I could just "View source". but for the benefit of others reading this post, am I correct in assuming that they have the convention of "reg_" followed by their database name?

lastly, I no longer have the need since they're being commented out, but just in case they're referenced elsewhere, where can I find these in the template editor?

{TEMPLATE-DATA: ignore_admin_radio}
{TEMPLATE-DATA: invisible_mode_radio}
{TEMPLATE-DATA: accept_pm}
{TEMPLATE-DATA: append_sig_radio}
{TEMPLATE-DATA: show_sig_radio}
{TEMPLATE-DATA: show_avatar_radio}
{TEMPLATE-DATA: view_select}

(this last one is somewhat important since it's slightly more involved than the rest. I would like to set the default for this while still allowing it to be chosen. I thought the forum default would handle this but I guess it's just for anonymous users.)

[Updated on: Thu, 17 October 2002 05:57]

Report message to a moderator

Re: register.tmpl [message #6590 is a reply to message #6572] Thu, 17 October 2002 21:59 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
All of the register forum's variables begin with reg_.


These options you've removed are NOT referenced outside of register.tmpl

I am not certain I understand your last question, please explain it better.


FUDforum Core Developer
Re: register.tmpl [message #6598 is a reply to message #6572] Fri, 18 October 2002 00:21 Go to previous messageGo to next message
roedema   United States
Messages: 10
Registered: October 2002
Karma: 0
Junior Member
I was just wondering if I could access those TEMPLATE-DATA snippets via the template editor. most of them I'm replacing, so they'd just require a single hidden input tag each, but I'd like to leave view_select, and just change the default for it. really what I want is for default_view in table users to equal 'msg_tree' instead of 'msg' for new users.
Re: register.tmpl [message #6599 is a reply to message #6598] Fri, 18 October 2002 01:01 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
{TEMPLATE-DATA} usually represents a compiled template or a series of compiled tables. To edit them edit the pre-compiled templates that are being compiled into {TEMPLATE-DATA}.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How i can completly export (save) theme of FUD-forum?
Next Topic: Can I run indexdb.php via shell?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 22:40:16 GMT 2024

Total time taken to generate the page: 0.02532 seconds