1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Few questions before deciding to purchase.

Discussion in 'XenForo Pre-Sales Questions' started by Andrea88, May 10, 2012.

  1. Andrea88

    Andrea88 New Member

    Hello! I work for a company that is currently looking to change from SMF to one with more capabilities and overall design for their marketing research projects. I came upon Xenforo and I'm very impressed with the overall look of it. We run projects for clients that require to have an online discussion board online for around 2-3 weeks. Of course, these are hosted in our domain. The boards are up for this period of time, then shut down once the client’s project is over. We often have 3-4 ongoing projects at the same time.

    For example:

    ourservice.research.com/client1
    ourservice.research.com/client2
    ourservice.research.com/client3
    ourservice.research.com/client4

    Will this be possible if we were to purchase a license for Xenforo? I read the FAQs but I want more insight on this matter. Thank you!
     
  2. bambua

    bambua Well-Known Member

    Wouldn't it be easier to set up accounts for them and set up private forums that only those accounts can see? I know that's very easy to do, I do that on my forums.
     
  3. Andrea88

    Andrea88 New Member

    Thanks for the reply, bambua. And yes, we have thought of that but these projects require the client's logo to be placed as a banner on the top of the forum and for the link to have the client's name at the end so participants feel more secured...
     
  4. Sadik B

    Sadik B Well-Known Member

    You can do that as well.

    1. Create separate forums for each client.
    2. Create separate Usergroup for each client. (Not really necessary, you can work with specific userId as well, if there's only one user per client)
    3. Include the logo in the header with a template conditional which checks for usergroup Id (or UserId). That way you can display different logos depending on who is accessing the site!

    Hope it helps.
     
    TheVisitors likes this.
  5. bambua

    bambua Well-Known Member

    The banner at the top would be easy, you can check what group someone is in from the template and have it display an appropriate banner. As for the other, you would probably have to accomplish it with a redirect, out of the box at least, a forums link looks like this: http://xenforo.com/community/forums/client1.5/
     
  6. Andrea88

    Andrea88 New Member

    That's interesting. I will let our support team know. Thanks a lot!
     
  7. Andrea88

    Andrea88 New Member

    I am currently trying the demo. Can you please tell me how to accomplish the following

     
    bambua likes this.
  8. bambua

    bambua Well-Known Member

    Find the logo_block template in the admin and change it to something like the following:

    Code:
    <div id="logoBlock">
        <div class="pageWidth">
            <div class="pageContent">
                <xen:include template="ad_header" />
                <xen:hook name="header_logo">
                    <div id="logo">
                        <a href="{$logoLink}">
                            <span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
                            <xen:if is="{xen:helper ismemberof, $user, 3}">
                                <img src="http://pathtothisgroupsimage" alt="{$xenOptions.boardTitle}" />
                            <xen:elseif is="{xen:helper ismemberof, $user, 3}">
                                <img src="http://pathtothisgroupsimage" alt="{$xenOptions.boardTitle}" />
                            <xen: else />
                                <img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
                            <xen:if />
                        </a>
                    </div>
                </xen:hook>
                <span class="helper"></span>
            </div>
        </div>
    </div>
    
    In the lines where it's using the ismemberof if check, that number is the usergroup that you are checking for. You can get this number, by going to Users->List User Groups, it's the number in the URL for the link for that group. And the img tag there really can be anything you want to be in that spot.
     
  9. Sadik B

    Sadik B Well-Known Member

  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Minor syntax corrections. And you will want to use $visitor instead of $user:

    Code:
                            <xen:if is="{xen:helper ismemberof, $visitor, 3}">
                                <img src="http://pathtothisgroupsimage" alt="{$xenOptions.boardTitle}" />
                            <xen:elseif is="{xen:helper ismemberof, $visitor, 4}" />
                                <img src="http://pathtothisgroupsimage" alt="{$xenOptions.boardTitle}" />
                            <xen:else />
                                <img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
                            </xen:if>
    
     

Share This Page