• 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.

#1
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!
 

bambua

Well-known member
#2
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
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...
 

Sadik B

Well-known member
#4
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...
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.
 

bambua

Well-known member
#8
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.
 

Jake Bunce

XenForo moderator
Staff member
#10
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.
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>