XF2 [8WR] XenPorta 2 (Portal) PRO

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

No permission to buy ($40.00)

Jaxel

Well-known member
You would have to bring it up with them. Because this code is inherit to XF2's core.

Also, precisely why I absolutely hate skin frameworks and will never buy a skin that requires one. I love the look of Abyss; but I won't install bloatware.
 

boban

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.

Don't use the modulo operator, it doesn't make sense, use equality sign only.

Code:
<xf:if is="$context.i == 3"><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 third article.
        </div>
    </div>
</div>

<xf:elseif is="$context.i == 5" />

<div class="block-container porta-article-container">
        <h3 class="block-header">{$title}</h3>
        <div class="block-body block-row">
            This widget will appear after fifth article.
        </div>
    </div>
</div>
</xf:if>
 

Mackeral_Fillet

Well-known member
Don't use the modulo operator, it doesn't make sense, use equality sign only.

Code:
<xf:if is="$context.i == 3"><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 third article.
        </div>
    </div>
</div>

<xf:elseif is="$context.i == 5" />

<div class="block-container porta-article-container">
        <h3 class="block-header">{$title}</h3>
        <div class="block-body block-row">
            This widget will appear after fifth article.
        </div>
    </div>
</div>
</xf:if>
I cant get that to work at all unfortunately.
 

DistortedDorian

Active member
"hjhjh." is not a part of the original post, it shows up if the article is long and its url leads to the article.
 

boban

Well-known member
I cant get that to work at all unfortunately.

Missing: <div class="porta-article-item">


Code:
<xf:if is="$context.i == 3"><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 third article.
        </div>
    </div>
</div>

<xf:elseif is="$context.i == 5" /><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 fifth article.
        </div>
    </div>
</div>
</xf:if>

Anyway change is="$context.i % 3 == 0" to is="$context.i == 3" and so on in your working template.
 

fotografik

Active member
Hi Jaxel,

There seems to be an issue with attachments not showing up in articles. We just updated our test site to XF 2.0.5, and also updated a whole bunch of add-ons including XenPorta to 2.0.21.

Now all attachments in the articles do not show up in the portal view.

screenshot.png

The highlighted areas contain image attachments that were visible previously. I have rebuilt the cache for Attachment Thumbnails, but this didn't have any effect.

Any ideas on where could the problem lie? I have checked permissions for users, groups and nodes, and all are yes to view attachments.
 

fotografik

Active member
Update: I spun up another test instance using last night's DB backup to test. So, on XF 2.0.4 and only updating the XenPorta add-on to 2.0.21.

Same result. Image attachments in Portal articles do not show up, and also Image links are broken.

screencap.PNG

Update of the update: If I change the URL of the link from www to the development server, the linked image will show up correctly. Still trying to figure out the attached images issue.
 
Last edited:

Frode789

Well-known member
Hi Jaxel,

There seems to be an issue with attachments not showing up in articles. We just updated our test site to XF 2.0.5, and also updated a whole bunch of add-ons including XenPorta to 2.0.21.

Now all attachments in the articles do not show up in the portal view.

View attachment 174596

The highlighted areas contain image attachments that were visible previously. I have rebuilt the cache for Attachment Thumbnails, but this didn't have any effect.

Any ideas on where could the problem lie? I have checked permissions for users, groups and nodes, and all are yes to view attachments.

I have the same problem after updating to 2.0.5.. @Jaxel ?
 
Last edited:
@Jaxel thanks for the awesome addon for xenforo it makes my site that more great.
I would also love to make use of your newest update with the "Added a widget position for "XenPorta > Articles list: After article"
I tried that on a new html widget and it worked but.. i can't seem to get it to work with the "latest threads with a prefix" widget it shows but after every article. Is it possible to appear only after the second article? I tried editing that specific template but no luck.
 
Top