XF2 [8WR] XenPorta 2 (Portal) PRO

XF2 [8WR] XenPorta 2 (Portal) PRO [Paid] 2.2.0.2

No permission to buy ($40.00)

DistortedDorian

Active member
Hey, I seem to have an issue with long posts on the index page. It shows me "hjhjh." at the bottom of the page article if it extends the max size, why is that?
 

Mackeral_Fillet

Well-known member
Hi @Jaxel

I’d like to insert content between articles on the Porta home page. I’m not using the masonry layout so have them stacked.

Could I do this:
Article 1
Article 2
Article 3
Article 4
Custom content
Article 5
Article 6
Etc etc

What would be the best way of achieving this?

Thanks
Rob.
 

boban

Well-known member
Hi @Jaxel

I’d like to insert content between articles on the Porta home page. I’m not using the masonry layout so have them stacked.

Could I do this:
Article 1
Article 2
Article 3
Article 4
Custom content
Article 5
Article 6
Etc etc

What would be the best way of achieving this?

Thanks
Rob.

I’m using article categories as a workaround.



Article widget 1 - article from category 1

Other widget

Article widget 2(default XenPorta) - article from category 2

Other widget

Article widget 3 - Article from category 3
Etc
 

Mackeral_Fillet

Well-known member
I’m using article categories as a workaround.



Article widget 1 - article from category 1

Other widget

Article widget 2(default XenPorta) - article from category 2

Other widget

Article widget 3 - Article from category 3
Etc
Thanks. With this is it possible to keep things in chronological order though?
 

boban

Well-known member
There is a few limitations. Each category has own chronological order but I think it is not a big deal. Different category different top news :)
 

Jaxel

Well-known member
Jaxel updated XF2 [8WR] XenPorta 2 (Portal) PRO with a new update entry:

2.0.2.1 - CHANGELOG

  • Added a widget position for "XenPorta > Articles list: After article". This widget position will allow you to place widgets after each article in your articles list. In addition to this, you could use the included context to limit the widget from appearing based on the iteration of the article. For instance, you could have a widget appear after every third article, etc... Check the FAQ for more information.
  • Added special RSS feeds for article lists.
  • Changed some entity...

Read the rest of this update entry...
 
Firstly, thanks so much for adding RSS, might be low in demand but I still need it ;)
Is the length of contnet defined anywhere? Wasn't able to immediately see it.

Secondly, since the update, I don't appear to get inline attachments on the front page.

For example on here: https://www.osnn.net/ second article down you can see "View attachment 110313" but if you click on the article itself, you will see the image inline as previously.

Lastly, if the author of an article hasn't been added as an author within the admin, it goes to a page that doesn't exist, for example https://www.osnn.net/threads/nvidia-ending-32-bit-driver-support.108480/ American Zombie is not an author can but can promote articles, could his profile not instead go to his forum profile instead? https://www.osnn.net/members/american-zombie.3399/

Thanks!
 
Last edited:

Jaxel

Well-known member
Is the length of contnet defined anywhere? Wasn't able to immediately see it.
admin.php?options/groups/discussionOptions/#discussionRssContentLength

Secondly, since the update, I don't appear to get inline attachments on the front page.
Whoops... Will fix for next version. For now, you can edit the template `EWRporta_articles_macros` and replace:
Code:
{{ bb_code($article.article_excerpt, 'ewr_porta_article', $article) }}
with:
Code:
{{ bb_code($article.article_excerpt, 'ewr_porta_article', $article.Thread.FirstPost) }}



Lastly, if the author of an article hasn't been added as an author within the admin, it goes to a page that doesn't exist
Will fix for next version.
 
Last edited:

Mackeral_Fillet

Well-known member
Thanks very much for the update @Jaxel

It it possible to have a different widget appear? The code here refers to the same widget appearing after x number of articles.

Suppose I want a different widget to appear after article 6? Is that possible?

Thanks,
Rob.

Code:
<xf:if is="$context.i % 3 == 0"><div class="porta-article-item">
    <div class="block-container porta-article-container">
        <h3 class="block-header">{$title}</h3>
        <div class="block-body block-row">
            This widget will appear after every third article.
        </div>
    </div>
</div></xf:if>
 

Jaxel

Well-known member
Thanks very much for the update @Jaxel

It it possible to have a different widget appear? The code here refers to the same widget appearing after x number of articles.

Suppose I want a different widget to appear after article 6? Is that possible?

Thanks,
Rob.

Code:
<xf:if is="$context.i % 3 == 0"><div class="porta-article-item">
    <div class="block-container porta-article-container">
        <h3 class="block-header">{$title}</h3>
        <div class="block-body block-row">
            This widget will appear after every third article.
        </div>
    </div>
</div></xf:if>
Make two widgets? Have one show up at 6, have one show up at 3...

Or you can put two if statements in a single widget.
 

Mackeral_Fillet

Well-known member
Make two widgets? Have one show up at 6, have one show up at 3...

Or you can put two if statements in a single widget.

OK, I'll give it a go. From the description above it looks like 'Widget 1' will show after article 3, 6, 9 etc etc..

Thanks for your help. My page is starting to look amazing!
 

Dragonsys

Member
OK, I'll give it a go. From the description above it looks like 'Widget 1' will show after article 3, 6, 9 etc etc..

Thanks for your help. My page is starting to look amazing!
Change the
Code:
is="$context.i % 3 == 0"
to display where you want it. the 3 shows every 3rd, a 6 would be every 6th. Just make sure they don't overlap each other
 
Top