Announcement

Collapse
No announcement yet.

template conditional question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Grover
    replied
    Great!

    Originally posted by floris
    I now use this on vBulletin.nl:

    Open the navbar templates and find this code:
    Code:
    <!-- breadcrumb, login, pm info -->
    Above this, on a new line, add this code:
    Code:
    <if condition="is_member_of($bbuserinfo, 3)">
    <table border="1" width="100%" bordercolor="#800000" cellspacing="0" cellpadding="3">
    <tr>
    	 <td width="100%" align="left">
    <strong><span class="normalfont">
    You have not yet activated your forum account, $bbuserinfo[username]! <br />
    To request your activation e-mail, click <a href="register.php?$session[sessionurl]&amp;do=requestemail&amp;email=$bbuserinfo[email]">here</a>.<br />
    If you did not enter your real e-mail address at registration, please go to your <a href="profile.php?$session[sessionurl]&amp;do=editpassword">$vbphrase[user_cp]</a> and change it.<br />
    For more details about registration, please click <a href="faq.php?faq=vb_user_maintain#faq_vb_why_register">$vbphrase[faq]</a>. <br />
    You may have to temporarily de-activate any spam protection on your computer or the activation e-mail may not get through.
    </span></strong>
    	 </td>
    </tr>
    </table>
    <br />
    </if>
    Save the template and enjoy

    This looks like this:
    Fantastic these suggestions! Since running my forum... the MOST questions I got about using the forum where the fact that people didn't now how to complete the registration process. You can find countless posts on Vbulletin.com from co-admins concerning the problems with re-activation mails. If there's anything that can be improved from VB2 to VB3, then it's definately this registration-process, IMHO. VB3 has already improved on this, as I understood from replies from the VBTeam, but this template addition just finishes it. I will definately use this template-edit on VB3. It will be my first ever......

    Leave a comment:


  • Boofo
    replied
    And I just installed it. Thank you very much, sir.

    Leave a comment:


  • merk
    replied
    I completed it.

    http://www.vbulletin.org/forum/showthread.php?p=472771

    Leave a comment:


  • Boofo
    replied
    Thank you, sir. I will be looking forward to it.

    Leave a comment:


  • merk
    replied
    Originally posted by Boofo
    Could you do an inarray with this?
    No, its not that simple

    Ill try hax up something in the next day or 2.

    Leave a comment:


  • Boofo
    replied
    Could you do an inarray with this?

    Leave a comment:


  • merk
    replied
    You cannot use the code for multiple usergroups.

    You must add an aditional check for each one (OR is_member_of($bbuserinfo, NEXTID)).

    Leave a comment:


  • Floris
    replied
    No idea, actually. But that would cleanup quite a number of conditionals in my templates So I hope so

    Leave a comment:


  • Boofo
    replied
    I see a couple of my suggestions about the wording were helpful.

    Is the code in the message I posted above how you would add multiple groups?

    Leave a comment:


  • Floris
    replied
    I now use this on vBulletin.nl:

    Open the navbar templates and find this code:
    Code:
    <!-- breadcrumb, login, pm info -->
    Above this, on a new line, add this code:
    Code:
    <if condition="is_member_of($bbuserinfo, 3)">
    <table border="1" width="100%" bordercolor="#800000" cellspacing="0" cellpadding="3">
    <tr>
    	 <td width="100%" align="left">
    <strong><span class="normalfont">
    You have not yet activated your forum account, $bbuserinfo[username]! <br />
    To request your activation e-mail, click <a href="register.php?$session[sessionurl]&amp;do=requestemail&amp;email=$bbuserinfo[email]">here</a>.<br />
    If you did not enter your real e-mail address at registration, please go to your <a href="profile.php?$session[sessionurl]&amp;do=editpassword">$vbphrase[user_cp]</a> and change it.<br />
    For more details about registration, please click <a href="faq.php?faq=vb_user_maintain#faq_vb_why_register">$vbphrase[faq]</a>. <br />
    You may have to temporarily de-activate any spam protection on your computer or the activation e-mail may not get through.
    </span></strong>
    	 </td>
    </tr>
    </table>
    <br />
    </if>
    Save the template and enjoy

    This looks like this:
    Attached Files

    Leave a comment:


  • Boofo
    replied
    Thanks for clearing that up. Is there a link that a user can click that will automatically send them an activation email or take them to a screen that can?

    How would you add multiple usergroups to that? Like this?
    PHP Code:
     <if condition="is_member_of($bbuserinfo, 1,3,8,9)"

    Leave a comment:


  • Floris
    replied
    The first was:

    <if condition="is_member_of($bbuserinfo, 3)">
    INSERT MESSAGE HERE
    </if>

    And he suggested not to use the second one.
    Last edited by Floris; Mon 2 Feb '04, 11:43pm.

    Leave a comment:


  • Boofo
    replied
    Which conditional should we use? I'm confused with what you said about the membergroup thing.

    Leave a comment:


  • merk
    replied
    The second conditional example that was given will work, however shouldnt be used.

    You should use is_member_of to make sure they are not a member of that group in their aditional groups.

    Leave a comment:


  • Boofo
    replied
    Thanks, that is great! I changed the wording a little bit and added the user's name to make it a bit more personal. My wife works for a local cable company on their Internet Tech Support team and she has run into countless situations where the customer thinks that de-activate mean to un-install. And also there have been a few customers that aren't sure which computer you would be talking about with the SPAM software, theirs or the ISP's.

    This is what I have now. Let me know what you think.

    <if condition="is_member_of($bbuserinfo, 3)">
    <table border="1" width="100%" bordercolor="#800000" cellspacing="0" cellpadding="3">
    <tr>
    <td width="100%" valign="middle" align="center"><b><font size="4">You have not yet activated your forum account, $bbuserinfo[username]. To re-request your activation e-mail, please click <a href="faq.php?s=&amp;do=search&amp;q=activation"><font color="gold">here</font></a>. You may have to temporarily de-activate any SPAM protection on your computer or the activation e-mail may not get through. If you did not enter your real e-mail address at registration, please go to your <a href="usercp.php"><font color="gold">user cp</font></a> and change it. Another activation e-mail will then be sent to the new address.</font></b></td>
    </tr>
    </table>
    <p>&nbsp;</p>
    </if>
    Also, would you be willing to share the FAQ link info?
    Last edited by Boofo; Mon 2 Feb '04, 11:06pm.

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X