[8WR] XenPorta (Portal)

[8WR] XenPorta (Portal) 1.6.0

No permission to download
I'm having some issues with the recent news block in XenPorta. My website, http://earthlycraft.com
just had a fresh install of XenForo with the Minecraft theme. However, the recent news block doesn't have a top like the other blocks do. I'd like the top of the block to have the title of the post/announcement, with the Minecraft grass theme. I've done some research, and found that the site: [picture given below] seems to get this to work. Any ideas? When I have "Break out of content" unchecked, there's a big white space around the recent news block.
 
Hello.
After update mysql-server portal work perfectly but /forum/ show error:
Code:
An exception occurred: Mysqli statement execute error : Incorrect arguments to mysqld_stmt_execute in /blablabla/library/Zend/Db/Statement/Mysqli.php on line 214
 
    Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
    Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 734
    Zend_Db_Adapter_Abstract->fetchAll() in EWRporta/Block/RecentNews.php at line 38
    EWRporta_Block_RecentNews->getModule() in EWRporta/Model/Blocks.php at line 116
    EWRporta_Model_Blocks->getBlockParams() in EWRporta/ViewPublic/Custom.php at line 71
    EWRporta_ViewPublic_Custom->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 215
    XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
    XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 533
    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
    XenForo_FrontController->run() in /blablabla/index.php at line 13

I disabled XenPorta and forum is working again.
Tell me, what could be the problem?

mysql was updated from 5.1.63 to 5.1.66 =)
I solved the problem:
At step 6
Code:
/library/XenForo/ViewRenderer/Abstract.php(215): EWRporta_ViewPublic_Custom->renderHtml()
we get array $view. In array we have next params:
portal:
_params['layout1'] = portal
/forum/:
_params['layout1'] = index
_params['layout2'] = portal
For fix this bug need disable Index (index > portal) in options XenPorta

p.s. i think is "dog-nail" and problem is further =)
One of my clients had the same problem. Was fixed be disabling Index (index > portal) in the XenPorta options screen as suggested. Thank you.


Anyone worked out why this is causing an error? I note that the mysql version on my client's server is also 5.1.66 (presumably recently updated, but unable to confirm). Is there a known bug in this mysql version?
 
One of my clients had the same problem. Was fixed be disabling Index (index > portal) in the XenPorta options screen as suggested. Thank you.


Anyone worked out why this is causing an error? I note that the mysql version on my client's server is also 5.1.66 (presumably recently updated, but unable to confirm). Is there a known bug in this mysql version?
I use 5.2.17
 
Admin CP -> Appearance -> Templates -> EWRblock_RecentNews

Change the red pieces to h3 which is what the sidebar blocks are using:

Rich (BB code):
<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>

					<a href="{xen:link threads, $news}" class="newsTitle">{$news.title}</a>
				</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('data/media/{$news.medio.media_id}.jpg') no-repeat;">
									<a href="{xen:link 'full:media/popout', $news.medio}" class="OverlayTrigger"><img src="js/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">{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">({$news.view_count} {xen:phrase views} / {$news.first_post_likes} {xen:phrase likes})</span>
						<span class="comments"><a href="{xen:link threads, $news}">{$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: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:contentcheck>
							</div>
						</xen:if>
					<xen:else />
						<div class="source">
							{xen:phrase discussion_in_x_started_by_y_date_z, 'forum=<a href="{xen:link forums, $news}">{$news.node_title}</a>', 'name=<a href="{xen:link members, $news}" class="username">{$news.username}</a>', 'date=<a href="{xen:link threads, $news}">{xen:datetime $news.post_date, html}</a>'}
						</div>
					</xen:if>

					<div class="continue">
						<a href="{xen:link threads, $news}" style="background: transparent url('@imagePath/xenforo/icons/redirect.png') no-repeat left bottom; padding-left: 20px;">
							{xen:phrase continue_reading}
						</a>
					</div>
				</div>
			</div>
		</div>
	</xen:foreach>

	<xen:if hascontent="true">
	<div class="section sectionMain">
		<xen:contentcheck>
		<xen:if is="{$option.pagenav} && {$option.count} > {$option.limit}">
			<div style="margin-left: 5px;">
				<xen:pagenav link="portal" page="{$page}" perpage="{$option.limit}" total="{$option.count}" />
			</div>
		</xen:if>
		</xen:contentcheck>
	</div>
	</xen:if>
</div>
 
Admin CP -> Appearance -> Templates -> EXTRA.css

Add this:

Code:
.EWRporta_Portal .sectionMain
{
padding: 0px !important;
}
Oh, it seems to have a whitish space in-between posts now. I've added a 2nd post on the website as an example. Is there a way to remove this? Thanks!
 
Is there anyway to get the current article's threadId in a second block/module (custom code) in ArticleView?

For example: the second block/module will get the current threadId and list more recent promotion thread exclude the current article's threadId for reader.

I tried to include the code:
Code:
<xen:container var="$threadId">{$thread.thread_id}</xen:container>

Then the second block (php code, extends XenForo_Model ), put below the Article area in custom article's layout, and get the variable: $threadId. But not success. It shows not found variable $threadId.

Thanks so much!
 
Hi all,

I'm having an issue with attachments. They show fine on the threads, but on the portal ( http://www.kh-vids.net/ ) they simply show as "View attachment ###" links. I've tried setting Guest permissions to be able to view attachments (both for the usergroup and the news nodes) but I'm still having no luck.
 
Top Bottom