1
   

How to mod your forum for simple registration

 
 
harleyx
 
Reply Tue 11 Oct, 2005 06:58 pm
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!
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 692 • Replies: 1
No top replies

 
Craven de Kere
 
  1  
Reply Thu 13 Oct, 2005 11:02 pm
Here is another way to do it:

http://www.able2know.com/forums/viewtopic.php?p=1238758#1238758

In some cases the way I am linking to is better, because depending on the layout the switches can cause layout problems.
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » How to mod your forum for simple registration
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 01/19/2025 at 05:41:01