[8WR] XenPorta (Portal)

[8WR] XenPorta (Portal) 1.6.0

No permission to download
I don't know whether its been said before or not, but it would be good if the articles had a different URL. that way they can be listed in Google News, without the forum posts being listed.
 
I updated from 1.4.6 to 1.5.3b yesterday and it seems at least my middle-right blocks lost their h3 style properties.
I had to add
HTML:
.midRightBlocks .section .secondaryContent h3
{
    font-size: 12pt;
    color: #6cb2e4;
    padding-bottom: 2px;
    margin-bottom: 5px;
    border-bottom: 1px solid #d7edfc;
}
 
.midRightBlocks .section .secondaryContent h3 a
{
    font-size: 12pt;
    color: #6cb2e4;
}
to EXTRA.CSS in order to fix it. Did I break something in the (leap) update process?
 
Twitter block not pulling search results, again in XenPorta 1.5.2.
Tried this: http://xenforo.com/community/threads/8wayrun-com-xenporta-portal.26838/page-37#post-370279
That worked for a few days but then stopped.
Reverted the ewrblock_Twitter template, checked my settings, cleared the block cache and ... nothing.
Here's my Twitter Search Query in Blocks>Twitter:
from:mx5life OR @mx5life

As you told in your previous message, this is an issue with Twitte: their Search Widget now only pulls Toptweet results. There is no official comment about it in the Twitter dev forums, but many users reported the same.

What I did is change the type of the widget from Search to List:
The original EWRblock_Twitter template :
Code:
<xen:require css="EWRblock_Twitter.css" />
 
<div class="section">
<div class="secondaryContent" id="twitter">
<h3>{xen:phrase EWRblock_Twitter_feed}</h3>
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'search',
search: '{xen:raw $option.search}',
interval: 6000,
width: 'auto',
height: {$option.height},
theme: {
shell: {
background: '@pageBackground',
color: '@pageBackground'
},
tweets: {
background: '@contentBackground',
color: '@mutedTextColor',
links: '@primaryMedium'
}
},
features: {
scrollbar: {$option.features.scroll},
hashtags: {$option.features.hashtags},
timestamp: {$option.features.timestamps},
avatars: {$option.features.avatars},
toptweets: {$option.features.toptweets},
live: true,
loop: false,
behavior: 'all'
}
}).render().start();
</script>
<div class="twtr-link">
<span><a href="http://twitter.com/#search?q={$option.search}" target="_blank">{xen:phrase EWRblock_Twitter_join}</a></span>
<a href="http://twitter.com" target="_blank"><img src="http://widgets.twimg.com/i/widget-logo.png" alt="" /></a>
</div>
</div>
</div>
Change this :
Code:
 type: 'search',
to
Code:
 type: 'list',

and this:
Code:
 }).render().start();
to
Code:
 }).render().setList('UserName', 'a-list').start();
where "UserName" is a Twitter username (without '@') and "a-list" is the id of a list belonging to "UserName". Thus your Twitter widget will show all tweets from the list.

I understand that this is only a workaround in order not to leave an empty widget on your front page, but I have not yet discovered a real fix for our issue.
 
How do I show the xenporta blocks on the forum list? I've seen it before so I know it's possible. I'm posting this here because Jaxel isn't a good person to rely on for support. So hopefully somebody else knows. :)
 
Admin CP -> Home -> XenPorta -> Options -> Globalized Custom Layouts -> Index (index > portal)

Screen shot 2012-06-30 at 1.20.29 AM.webp

Then the index page will use the "portal" layout:

Admin CP -> Home -> XenPorta -> Layouts

Screen shot 2012-06-30 at 1.22.34 AM.webp

Or you can create an "index" layout specifically for the index page:

Screen shot 2012-06-30 at 1.21.16 AM.webp
 
I've searched through this section but can't seem to find the answer, I see the problem brought up a few times.

On my portal I want to display a fixed image every time, with the help of CSS it's doing it, but it's stretching the image.

In RecentNews block how can I make it so it doesn't load the thumbnail version 79px38px, it's making the image distorted due to the css resize. Any work around would be appreciated, thanks.
 
I've searched through this section but can't seem to find the answer, I see the problem brought up a few times.

On my portal I want to display a fixed image every time, with the help of CSS it's doing it, but it's stretching the image.

In RecentNews block how can I make it so it doesn't load the thumbnail version 79px38px, it's making the image distorted due to the css resize. Any work around would be appreciated, thanks.
Just about to ask about it. When I promote an article to the portal and use the image attachment, it will show the scaled image. This results in severe penalty in Pagespeed test.
It would be nice to serve the resized image instead of scaled image. I don't know if Xenforo can do that if I want to link to image instead of upload images.
 
Well after looking at it further I'd like to take a different approach and I'm hoping someone can help... in the

EWRblock_RecentNews

I'm basically trying to hard code in images depending on the category each post is in. It makes sense in my head, and I'm hope it's possible code wise something like this:


If someone can get this to work... it would be amazing (y)

Got it working with the help of Jake :)

Within the foreach loop you can use this to check the node_id:
Code:
Code:
<xen:if is="{$news.node_id} == 2">
 
</xen:if>
 
Facebook Group: I get these mistakes. How i can fix that?
There was an error fetching the like box for the specified page.
 
I have not yet discovered a real fix for our issue.
Thank you for helping out here. :)
Also thanks to pjfry for his workaround for the interim.
Update on this little issue.
It turns out (my experience anyway) that by reverting any changes to the ewrblock_Twitter and the options settings as: from:Twittername OR @Twittername works ok.
But, make sure when tweeting that the via @Twittername is deleted from the tweet itself. This is the thing that messes it up, or did for me anyway as it's now working with no issues. :)
Code:
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
This entry, above, in the reverted template is fine. (y)
 
But, make sure when tweeting that the via @Twittername is deleted from the tweet itself. This is the thing that messes it up, or did for me anyway as it's now working with no issues. :)

I am not sure to understand this part : do you mean that the Twitter widget will not show tweets that include this short text? Or any mention?

Anyway, Twitter seems to have modified its algorithm as some recent tweets show in the reverted widget. However, some are also missing, especially (coincidence? I think not.) those that include an http link.
 
do you mean that the Twitter widget will not show tweets that include this short text? Or any mention?
Yep, that's right. I'd been all over the Twitter developer's area looking for a definitive answer last week, probably me not looking in the right place (helluva week, but...I digress...)

Little example screenshot below for clarity here. You see, from a basic Tweet, the "via and @" is entered automatically. <- That won't populate the XenPorta Twitter widget, at least for me.

tweet_01.webp

Removing the "via @mx5life" works perfectly.

The XenForo options for Twitter are as basic enough as that's all that is really required. Unless anything there needs changing.

tweet_02.webp

Hope this helps others that might be facing the same weirdness. (y) (I blame Twitter, *shakes fist at them*). :D
 
Top Bottom