[8WR] XenPorta (Portal)

[8WR] XenPorta (Portal) 1.6.0

No permission to download
I get this error when I try to post a thread

Declaration of EWRporta_DataWriter_Discussion_Thread::_discussionPostSave() should be compatible with that of XenForo_DataWriter_Discussion_Thread::_discussionPostSave()
  1. XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
  2. XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
  3. XenForo_Autoloader->autoload() in XenForo/Application.php at line 897
  4. XenForo_Application::autoload() in XenForo/Application.php at line 421
  5. XenForo_Application::resolveDynamicClass() in XenForo/DataWriter.php at line 2007
  6. XenForo_DataWriter::create() in XenForo/ControllerPublic/Forum.php at line 572
  7. XenForo_ControllerPublic_Forum->actionAddThread() in XenForo/FrontController.php at line 335
  8. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  9. XenForo_FrontController->run() in /home/mcwh/public_html/letspwn.com/store/index.php at line 13
 
I would not recommend updating to XenForo 1.2 until XenPorta and XenUtiles are updated to match it. 1.2 is a huge change to everything, and there is a reason why its called BETA.
 
Xenporta 1.5.8 is working perfectly fine with Xenforo 1.2 Beta

Uncheck index controlled in xenporta options
Goto Options -> Basic Board Information --> Index Page Route
Enter portal/ and save

Now your portal will be homepage and forum will be domain.com/forums
If you want to change your forums into something else then do the following

Goto Router Filters
Create New Filter
In Find Route Enter forums/
In Replace With Enter desired redirect ex: community/

Thats it!
 
Is it possible to rename the "Home" navigation tab? If so, which file I need to edit as it seems to be hardcoded (haven't been able to find it in phrases - only the default one). :)
 
Xenporta 1.5.8 is working perfectly fine with Xenforo 1.2 Beta

Uncheck index controlled in xenporta options
Goto Options -> Basic Board Information --> Index Page Route
Enter portal/ and save

Now your portal will be homepage and forum will be domain.com/forums
If you want to change your forums into something else then do the following

Goto Router Filters
Create New Filter
In Find Route Enter forums/
In Replace With Enter desired redirect ex: community/

Thats it!

Are you sure it works? When people try to post posts on my forum, it gives me the
I get this error when I try to post a thread

Declaration of EWRporta_DataWriter_Discussion_Thread::_discussionPostSave() should be compatible with that of XenForo_DataWriter_Discussion_Thread::_discussionPostSave()
  1. XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
  2. XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
  3. XenForo_Autoloader->autoload() in XenForo/Application.php at line 897
  4. XenForo_Application::autoload() in XenForo/Application.php at line 421
  5. XenForo_Application::resolveDynamicClass() in XenForo/DataWriter.php at line 2007
  6. XenForo_DataWriter::create() in XenForo/ControllerPublic/Forum.php at line 572
  7. XenForo_ControllerPublic_Forum->actionAddThread() in XenForo/FrontController.php at line 335
  8. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  9. XenForo_FrontController->run() in /home/mcwh/public_html/letspwn.com/store/index.php at line 13
 
So this ad-don it needs a bit of focus in SEO side, In jaxel site itself, way8run in google search, it shows the XenPorta articles, but shows one months old. It should work like a blog, google goes grab the latest post and changes the description of the site. It depends of the search and the cache.

In my case, it shows only my forum description when the xenporta is the Index of my site. I don't understand why isn't working, SEO friendly is the way to go. :)
 
I'm not sure what I've done wrong here. I've changed my news feed posts to have the 'article' layout I guess, but my posts are ugly.

http://i.imgur.com/BHRyJKS.png

The part that should be horizontal at the top of the article is instead vertical, and the actual message comes with the standard Avatar box (circled in red above) and also the attachments box with slide.jpg. How can I change it to how I'm assuming it should look, here:

http://8wayrun.com/threads/south-east-asia-major-2013-june-21st-23rd-stream-schedule-info.16413/

Did I screw up when updating? Is the format on EWR a template modification, and if so, can someone let me know how to change mine?
 
Xenporta 1.5.8 is working perfectly fine with Xenforo 1.2 Beta

Uncheck index controlled in xenporta options
Goto Options -> Basic Board Information --> Index Page Route
Enter portal/ and save

Now your portal will be homepage and forum will be domain.com/forums
If you want to change your forums into something else then do the following

Goto Router Filters
Create New Filter
In Find Route Enter forums/
In Replace With Enter desired redirect ex: community/

Thats it!
This will cause a known bug
http://xenforo.com/community/threads/route-filters.47946/page-5#post-567046
When I do that, I got this error

preg_match_all() expects at least 3 parameters, 2 given
  1. XenForo_Application::handlePhpError()
  2. preg_match_all() in XenForo/DataWriter/RouteFilter.php at line 129
  3. XenForo_DataWriter_RouteFilter->_countWildcards() in XenForo/DataWriter/RouteFilter.php at line 117
  4. XenForo_DataWriter_RouteFilter->_preSave() in XenForo/DataWriter.php at line 1429
  5. XenForo_DataWriter->preSave() in XenForo/DataWriter.php at line 1368
  6. XenForo_DataWriter->save() in XenForo/ControllerAdmin/RouteFilter.php at line 100
  7. XenForo_ControllerAdmin_RouteFilter->actionSave() in XenForo/FrontController.php at line 335
  8. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  9. XenForo_FrontController->run() in /home/andy/public_html/site/admin.php at line 13
 
This add-on causes a random deletion of the last_post_id table, for the forth time in a row. Pretty randomly too.

At this time we decided to disable it completely... I am pretty sure XenPorta is the cause.
If you want more debugging information, please PC me.

ErrorException: Undefined index: last_post_id - library/XenForo/NodeHandler/Abstract.php:129

#0 /home/corefree/public_html/community/library/XenForo/NodeHandler/Abstract.php(129): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/corefree/...', 129, Array)
#1 /home/corefree/public_html/community/library/XenForo/NodeHandler/Forum.php(46): XenForo_NodeHandler_Abstract->_getForumLikePushableData(Array, Array)
#2 /home/corefree/public_html/community/library/XenForo/Model/Node.php(645): XenForo_NodeHandler_Forum->getPushableDataForNode(Array, Array, Array)
#3 /home/corefree/public_html/community/library/XenForo/Model/Node.php(640): XenForo_Model_Node->mergePushableNodeData(50, Array, Array, Array)
#4 /home/corefree/public_html/community/library/XenForo/Model/Node.php(612): XenForo_Model_Node->mergePushableNodeData(0, Array, Array, Array)
#5 /home/corefree/public_html/community/library/XenForo/Model/Node.php(758): XenForo_Model_Node->pushNodeDataUpTree(0, Array, Array, Array)
#6 /home/corefree/public_html/community/library/XenForo/ControllerPublic/Index.php(12): XenForo_Model_Node->getNodeDataForListDisplay(false, 0)
#7 /home/corefree/public_html/community/library/EWRporta/ControllerPublic/Index.php(9): XenForo_ControllerPublic_Index->actionIndex()
#8 /home/corefree/public_html/community/library/XenForo/FrontController.php(313): EWRporta_ControllerPublic_Index->actionIndex()
#9 /home/corefree/public_html/community/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /home/corefree/public_html/community/index.php(13): XenForo_FrontController->run()
#11 {main}
 
Hi,
In the "Recent Threads" block, is there a way to show the avatar of the user who posted recently in the thread rather than the avatar of the user who created the thread?
 
Anyone here has done a 2 columns Recent News Layout?
I am trying to figure out something buts not working all together
 
Edit: I´ve done something buts bit dirty way.

I´ve changed section sectionMain into class recentNews, not id
and added the following CSS
.recentNews.sectionMain.section {
display: block;
float: left;
margin-right: 12px;
width: 45%;

pagenav is without section and sectionMain, just a Style thing
to get it underneath the Newsblock i added "clear:both to it.

Problem i have now is, if a Block is longer underneath is nothing displayed then a lot Space

Unbenannt.webp

Thats the EWRblock_RecentNews Template

PHP:
<xen:require css="message_user_info.css" />
<xen:require css="bb_code.css" />
<xen:require css="EWRblock_RecentNews.css" />

<div id="recentNews">
    <xen:foreach loop="$RecentNews" value="$news">
        <div class="section sectionMain recentNews" id="{$news.thread_id}">
            <div class="primaryContent {xen:if {$option.leftdate}, 'leftDate'}">
                <div class="subHeading">
                    <div style="float: right; white-space: nowrap;">
                        <a href="{xen:link threads, $news}"><xen:datetime time="$news.promote_date" /></a>
                        <xen:if is="{$visitor.permissions.EWRporta.canPromote}">
                            &nbsp; (<a href="{xen:link 'threads/edit', $news}" class="OverlayTrigger">{xen:phrase edit}</a>)
                        </xen:if>
                    </div>
                    <h2><a href="{xen:link threads, $news}" class="newsTitle">{xen:helper threadPrefix, $news}{$news.title}</a></h2>
                </div>
                <div class="newsDate secondaryContent">
                    <div class="newsMonth heading">{$news.month}</div>
                    <div class="newsDay">{$news.day}</div>
                </div>
                <xen:if is="{$news.promote_icon} != 'disabled'">
                <xen:if hascontent="true">
                    <div class="messageUserBlock">
                        <div class="avatarHolder">
                            <xen:contentcheck>
                            <xen:if is="{$news.attach}">
                                <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
                            <xen:elseif is="{$news.medio}" />
                                <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
                                    <a href="{xen:link 'full:media/media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
                                </div>
                            <xen:elseif is="{$news.image}" />
                                <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" style="max-height: 150px; max-width: 150px;" /></a>
                            <xen:else />
                                <xen:avatar user="$news" size="m" itemprop="photo" />
                            </xen:if>
                            </xen:contentcheck>
                        </div>
                    </div>
                </xen:if>
                </xen:if>
                <div class="messageContent baseHtml">
                    <div class="postedBy">
                        <span class="posted iconKey"><div class="sticky"></div>{xen:phrase by_x_at_y,
                            'user=<a href="{xen:link members, $news}" class="username">{$news.username}</a>',
                            'date=<a href="{xen:link threads, $news}">{xen:time $news.post_date, 'absolute'}</a>'}</span>
                        <span class="views">({xen:number $news.view_count} {xen:phrase views} / {xen:number $news.first_post_likes} {xen:phrase likes})</span>
                        <span class="comments iconKey"><div class="new"></div><a href="{xen:link threads/unread, $news}">{xen:number $news.reply_count} {xen:phrase comments}</a></span>
                    </div>
                    <div class="newsText">{xen:raw $news.messageHtml}</div>
                    <div class="clearFix"></div>
                </div>
                <div class="sectionFooter">
                    <xen:if is="{$option.social}">
                        <xen:if hascontent="true">
                            <div class="sharePage">
                                <xen:require css="share_page.css" />
                                <xen:contentcheck>
                                    <xen:hook name="recentnews_share_page_options" params="{xen:array 'url={xen:link canonical:threads, $news}'}">
                                    <xen:if is="{$xenOptions.tweet.enabled}">
                                        <div class="tweet shareControl">
                                            <a href="http://twitter.com/share" class="twitter-share-button"
                                                data-count="horizontal"
                                                data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
                                                data-url="{xen:link canonical:threads, $news}"
                                                {xen:if {$news.title}, 'data-text="{$news.title}"'}
                                                {xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
                                                {xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
                                        </div>
                                    </xen:if>
                                    <xen:if is="{$xenOptions.plusone}">
                                        <div class="plusone shareControl">
                                            <div class="g-plusone" data-size="medium" data-count="true" data-href="{xen:link canonical:threads, $news}" data-lang="{$visitorLanguage.language_code}"></div>
                                        </div>
                                    </xen:if>
                                    <xen:if is="{$xenOptions.facebookLike}">
                                        <div class="facebookLike shareControl">
                                            <xen:container var="$facebookSdk">1</xen:container>
                                            <fb:like href="{xen:link canonical:threads, $news}" layout="button_count" action="{$xenOptions.facebookLikeAction}" font="trebuchet ms" colorscheme="@fbColorScheme"></fb:like>
                                        </div>
                                    </xen:if>
                                    </xen:hook>
                                </xen:contentcheck>
                            </div>
                        </xen:if>
                    <xen:else />
                        <div class="categories">
                            <ul>
                                <xen:if is="{$visitor.permissions.EWRporta.canPromote}">
                                    <a href="{xen:link 'threads/category', $news}" class="button OverlayTrigger">+</a>
                                </xen:if>
                                <xen:foreach loop="$news.categories" value="$subCat">
                                    <li><a href="{xen:link 'articles', $subCat}" class="button">{$subCat.category_name}</a></li>
                                </xen:foreach>
                            </ul>
                        </div>
                    </xen:if>
                    <div class="continue">
                        <a class="iconKey button" href="{xen:link threads, $news}">
                            <div class="redirect"></div>
                            {xen:phrase continue_reading}
                        </a>
                    </div>
                </div>
            </div>
        </div>
     
    </xen:foreach>
</div>
    <xen:if hascontent="true">
    <div class="pagenavBorder">
        <xen:contentcheck>
        <xen:if is="{$option.pagenav} && {$option.count} > {$option.limit}">
            <xen:if is="{$category}">
                <xen:pagenav link="articles" linkdata="{$category}" page="{$page}" perpage="{$option.limit}" total="{$option.count}" />
            <xen:else />
                <xen:pagenav link="portal" page="{$page}" perpage="{$option.limit}" total="{$option.count}" />
            </xen:if>
        </xen:if>
        </xen:contentcheck>
    </div>
    </xen:if>
 
Last edited:
Top Bottom