First, thanks Craven for the SEO mods compilation. That's very cool, and it's helped quite a bit. The only thread I saw on modding this was an answer to a question, but I think it's rather important so I figured I'd write a little how-to.
The objective is to modify the phpbb registration so that it doesn't confuse, intimidate, or deter potential forum members from joining.
We want our phpbb forum to display all the advanced user junk (aim, msn, website, signature, avatars, forum options) only when an registered user edits his/her profile.
phpBB templates operate under a very slick system, which I've only now come to understand after messing with Cravens mods for a while. They operate under an include/exclude system based on text put into basic html comment tags. That makes this mod incredibly simple.
You'll need to edit only 2 lines, out of your
default template, which is the one that a guest user is going to get hit with. As with all mods, I strongly recommend you
backup files before beginning.
Code:OPEN [forum-directory]/templates/subSilver/profile_add_body.tpl
(This assumes subSilver is your default template. Adjust accordingly.)
Code:FIND <!-- END switch_confirm --> (approx line 80)
AFTER, ADD
<input type="hidden" name="hideonline" value="0" checked="checked" />
<input type="hidden" name="viewemail" value="0" checked="checked" />
<input type="hidden" name="notifyreply" value="1" checked="checked" />
<input type="hidden" name="notifypm" value="1" checked="checked" />
<input type="hidden" name="popup_pm" value="1" checked="checked" />
<input type="hidden" name="attachsig" value="1" checked="checked" />
<input type="hidden" name="allowbbcode" value="1" checked="checked" />
<input type="hidden" name="allowhtml" value="0" checked="checked" />
<input type="hidden" name="allowsmilies" value="1" checked="checked" /> <br />
<input type="hidden" name="mode" value="register" />
<input type="hidden" name="agreed" value="true" />
<input type="hidden" name="coppa" value="0" />
<!-- BEGIN switch_edit_profile -->
Code:FIND <!-- BEGIN switch_avatar_block --> (approx line 245)
BEFORE, ADD <!-- END switch_edit_profile -->
Code:SAVE profile_add_body.tpl
That's all there is to it. This is a bit of a workaround, due to the fact that the hidden fields get included in the edit profile, but since they appear before the editable fields of the same name, they don't screw up the edit profile. If anybody knows a phpbb comment tag that can be used to make those hidden fields excluded from the edit profile page, please do tell and I'll update this.
I tried to do it in the same style as Craven's SEO mod compilation.
Enjoy!