Is It Possible To Add This?

Discussion in 'General Discussion' started by BigPete7978, Jan 24, 2018.

  1. BigPete7978

    BigPete7978 Customer

    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.

    [​IMG]
    [​IMG]
     
  2. Russ

    Russ Designer

    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.
     
  3. alpertunga688

    alpertunga688 Customer

    i am using xenporta and really like it but i need sidenav menu sample fit to flat awesome theme please @Russ
     
  4. Russ

    Russ Designer

    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.
     
  5. BigPete7978

    BigPete7978 Customer

    Just created the ticket @Russ. Thanks!
     
  6. Russ

    Russ Designer

    So it looks like it's possible, for anyone else who wants it:

    Template: EWRporta_articles_index

    Find:
    Code:
    Copy Source
    <xf:title>{$xf.options.boardTitle}</xf:title>
    Add below:
    Code:
    Copy Source
    <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>
     
    Carlos and BigPete7978 like this.
  7. BigPete7978

    BigPete7978 Customer

    I wish I could like this more than once. Thank you so much @Russ!!!!
     
    Carlos and Russ like this.

Let's work together on your next project

Contact us today to talk about how we can help you

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.