Resource icon

Extra Portal 1.2.4

No permission to download
Not necessary like I painted, but you get the point.
Ok. Steve, I'm sure, may have a better solution as CSS is not my strong suit but this should get you going on the default style.

Replace the el_portal_item_bit template contents with the following (all of it):

Code:
<li id="portalitem-{$item.portalItem_id}" class="elportalItem itembit {$item.content_type} {xen:if "{$item.mediaCount} > 0", 'media',''}" data-contentType="{$item.content_type}" data-contentId="{$item.content_id}" data-author="{$item.data.username}">
    <div class="subHeading categoryStrip">
        <h3><a href="{xen:raw $item.data.url}"><xen:if is="@el_portal_threadprefix">{xen:helper threadPrefix, $item.data.}</xen:if>{$item.data.title}</a><p class="portalalignright"><xen:if is="@portal_show_thread_creator">{xen:phrase created_by} <span class="username"><xen:username user="$item.data" title="{xen:phrase thread_starter}" /></span></xen:if> </p></h3>
    </div>
        <div class="message">

        <xen:if hascontent="true">
            <div class="author">
                    <xen:if is="{$item.attachment_id}"><a href="{xen:link 'attachments', {xen:array 'attachment_id={$item.attachment_id}'}}" target="_blank" class="LbTrigger" data-href="{xen:link misc/lightbox}"><img src="{xen:link 'attachments', {xen:array 'attachment_id={$item.attachment_id}'}}" alt="{$item.filename}" class="itemimg LbImage" /></a></xen:if>
                <xen:contentcheck>
                    <xen:if is="@portalAvatar">
                        <xen:if is="@portal_avatar_size_m">
                            <div class="avatar"><xen:avatar user="$item.data" size="m" img="true" /></div>
                        <xen:else />
                            <div class="avatar"><xen:avatar user="$item.data" size="s" img="true" /></div>
                        </xen:if>
                           
                    </xen:if>
                        <xen:comment><xen:if is="@portal_show_thread_creator"><dl class="pairsJustified"><dt><span class="username"><xen:username user="$item.data" title="{xen:phrase thread_starter}" /></span></dt></dl></xen:if></xen:comment>
                    <div class="itemDate">
                       
                        <xen:if is="{$item.categorytitle}">{xen:phrase el_portal_in_category} <a href="{xen:link portal/categories, $item}">{$item.categorytitle}</a></xen:if>
                       
                    </div>
                </xen:contentcheck>
            </div>
        </xen:if>
       
            <article>
                <blockquote class="messageText ugc baseHtml">
                    {xen:raw $item.messageHtml}
                </blockquote>
            </article>
        </div>
        <div class="sectionFooter">
                <div class="contentSummary">
                    <xen:comment>
                    <a href="{xen:link 'portal/manage-items/edit', $item } " class="OverlayTrigger button ">{xen:phrase edit}</a>
                    &nbsp;               
                    </xen:comment>
                    &nbsp;
                    <xen:if is="@portalShowCommentCount AND {$item.data.reply_count}">{xen:phrase comments}: {$item.data.reply_count}</xen:if>
                    &nbsp;
                    <xen:if is="@portalShowViewCount AND {$item.data.view_count}">{xen:phrase views}: {$item.data.view_count}</xen:if>
                    <xen:if is="@portalDate"><p class="portalaligncenter"><xen:datetime time="$item.data.post_date"/></p></xen:if>                   
                </div>
                <a class="more button" href="{xen:raw $item.data.url}">{xen:phrase el_portal_read_more}»</a>
        </div>
</li>

Next add the following to your EXTRA.css template:

Code:
.portalalignright {
float: right;
}

.portalaligncenter {
position:absolute;
right:50%;
bottom: 12px;
}

The end result:
Screen Shot 2015-10-05 at 6.52.43 PM.webp
 
Hi,

in your descritption it is written:

"Extra Portal is not "linked" to a specific forum...."

Do you have plans to add this option in the future? For my sites I need both options: In ACP check forums that are automatically linked and the manual possibility thread by thread as it is by now.

I use Xenporta 2 on another site and it has these features. But it is getting very expensive, if you want to use it on many sites...

Thanks
 
Hi,

Great Portal solution. However, If I activate [bd] Widget, the sidebar with its portal categories disappear. How do I avoid this?
 
Hi,
now I get an Error by visiting "portal/manage-items" for managing my items:

ErrorException: Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2593014 bytes) - library/XenForo/Template/Abstract.php:251

Does anyone experienced that with 5000+ items?
 
When making this amendment
The situation is explained below:
Path is portal :
http://www.an-island.net/forum/
And the path Forum:
http://www.an-island.net/forum/forums
This annoying visitors to the site and form links be ugly and not good
-----------------------
Amendment, which would like to be
Forum that the path does not change:
http://www.an-island.net/forum/
But Page portal transmitted from the following link:
http://www.an-island.net/forum/portal/
To be following linkage:
http://www.an-island.net
 
You would have to move your installation to the root folder instead of the forum subfolder
 
I do not want to put on the Forum

I regretted most remorse when you convert the site vbulletin to xenforo
I was a belief that it will be more flexible than
But when I use scripts proved me the contrary, more complex scripts and tired of dealing


But there is a solution other than move
 
Hi,
now I get an Error by visiting "portal/manage-items" for managing my items:

ErrorException: Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2593014 bytes) - library/XenForo/Template/Abstract.php:251

Does anyone experienced that with 5000+ items?

Damn,
I can't manage my portal items. I think there are too many (>5000) and the overview page wants to load them all instead using pagination. I guess that's why the page is getting the Fatal Error. :(

Anything possible to change @Dan ?
 
Damn,
I can't manage my portal items. I think there are too many (>5000) and the overview page wants to load them all instead using pagination. I guess that's why the page is getting the Fatal Error. :(

Anything possible to change @Dan ?
The only thing I could suggest is try and increase your memory limit in your php.ini to 256M
 
Well I still got a problem for a long time. A slow portal(14s TTFB) and the other pages/forums are fast (200ms). It was faster few weeks ago and nothing changed except more content inserted. :(

Debugging Xenforo itselft just showed that the Queries were ok.

Page Time: 14.0101s
Memory: 11.3600 MB (Peak: 12.0705 MB)
Queries (24, time: 0.0051s, 0.0%)


I also disabled most of addons and it didn't helped. I've set the portalitem count from 50 to 20 once and it saved few seconds so there has to be something there.
After those 14s the site shows up and loads the js.
Is it possible to debug Extra Portal?

Any suggestions @Dan?
 
Top Bottom