Is It Possible To Add This?

BigPete7978

Registered
So I am using an add on called xenPorta for my board. I was wondering if it was possible to add the New Posts and Post Thread buttons to my Home Page and not just on the Forums page. I want them to mirror one another.

FE2080EF-DE57-4281-9A3C-5304595E03AE_zpslfnl2ktn.jpeg

CCA97810-BC8A-453B-99EC-0BEDB66E1659_zpsvszczdzz.jpeg
 
Would you be able to submit a ticket with an admin login, I haven't used the XF2 version of XenPorta yet, nor do I own it but I can take a look.
 
I'll try to pick up the add-on this weekend as I know it's a very popular portal solution and a lot of our users will be using it. I'll look into adjustments we can make on our end as well as suggestions for Jaxel if any he can make directly into to add-on to benefit everyone.
 
So it looks like it's possible, for anyone else who wants it:

Template: EWRporta_articles_index

Find:
Code:
<xf:title>{$xf.options.boardTitle}</xf:title>

Add below:
Code:
<xf:pageaction>
    <xf:if is="$pageSelected == 'new_posts' ">
        <xf:button href="{{ link('forums/list') }}" icon="list">
            {{ phrase('forum_list') }}
        </xf:button>
    <xf:else />
        <xf:button href="{{ $xf.options.forumsDefaultPage == 'new_posts' ? link('forums/new-posts') : link('whats-new/posts') }}" icon="bolt">
            {{ phrase('new_posts') }}
        </xf:button>
    </xf:if>
    <xf:if is="$xf.visitor.canCreateThread()">
        <xf:button href="{{ link('forums/create-thread') }}" class="button--cta" icon="write" overlay="true">
            {{ phrase('post_thread...') }}
        </xf:button>
    </xf:if>
</xf:pageaction>
 
So it looks like it's possible, for anyone else who wants it:

Template: EWRporta_articles_index

Find:
Code:
<xf:title>{$xf.options.boardTitle}</xf:title>

Add below:
Code:
<xf:pageaction>
    <xf:if is="$pageSelected == 'new_posts' ">
        <xf:button href="{{ link('forums/list') }}" icon="list">
            {{ phrase('forum_list') }}
        </xf:button>
    <xf:else />
        <xf:button href="{{ $xf.options.forumsDefaultPage == 'new_posts' ? link('forums/new-posts') : link('whats-new/posts') }}" icon="bolt">
            {{ phrase('new_posts') }}
        </xf:button>
    </xf:if>
    <xf:if is="$xf.visitor.canCreateThread()">
        <xf:button href="{{ link('forums/create-thread') }}" class="button--cta" icon="write" overlay="true">
            {{ phrase('post_thread...') }}
        </xf:button>
    </xf:if>
</xf:pageaction>
I wish I could like this more than once. Thank you so much @Russ!!!!
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back