• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[8wayRun.Com] XenPorta (Portal)

Status
Not open for further replies.
Having this issue as well. It's spamming our error log. Haven't really looked into it yet, but just wanted to chime in. :)
The error occours if you use the layout of the portal for the forums. Also the global rss isn't available with an error 500 (at least at my environment).
The problem is, that the xenporta wants a node-id to catch a custom style. Since the node_id is 0 for the global rss, you have to set it to 0 if it's empty.
To work around the problem open @xenforoinstallpath/library/EWRporta/ControllerPublic/Forum.php
search:
Code:
            $response->params['layout1'] = 'forum-'.$response->params['forum']['node_id'];
replace with:
Code:
            $node_id = (!empty($response->params['forum']['node_id'])) ? $response->params['forum']['node_id'] : 0;
            $response->params['layout1'] = 'forum-'.$node_id;
 
Well I still cant seem to get this to work properly and have no idea what im doing wrong. Will gladly pay someone to have a quick look and explain in laymen terms where im going wrong..no doubt a box unchecked or something equally stupid :)

I set up the slider but everytime you click on one of the contents, on the following page it displays the slider inbetween the content and the comments box http://109.123.102.124/~vpstest/index.php?threads/test-news-item.38589/
 
Hi,

Im pretty sure this has been mentioned before but I can seem to find it at the moment, so can anyone tell me how to get the "recentslider" to look the same as the one on "8wayrun"?

Thanks
 
I can't seem to figure out how to create new, or edit the original layout. Am I missing something? On the layout page, the only button there is 'install layout'...I don't want to import one, I want to create a new one...or just edit the original portal page.
 
but how do I change the layout of the template then? I don't see anything in the exported file that controls the actual layout of the page.

The default has 2 columns and a sidebar. I want to change it to something different (similar to how the 8wayrun site is)...but can't seem to figure out where to edit the layout.
 
ok, I feel like an idiot now...think it's time to get some coffee. I had them in the left column rather than the right column so it was causing my issues. Thanks.
 
got Xenporta installed (just upgraded to 1.5.1) and works really well bar an issue whereby anyone who likes our Facebook page then has their photo show up twice in the Facebook block ?
 
Search in block EWRblock_RecentNews template by
PHP:
                            <a href="{xen:link threads, $news}" class="newsTitle">{$news.title}</a>
and change it by
PHP:
                            <xen:if is="{$news.prefix_id}">
                                <xen:if is="{$linkPrefix}">
                                    <a href="{xen:link forums, $forum, 'prefix_id={$news.prefix_id}'}" class="prefixLink">{xen:helper threadPrefix, $news, html, ''}</a>
                                <xen:else />
                                    {xen:helper threadPrefix, $news}
                                </xen:if>
                            </xen:if>
                            <a href="{xen:link threads, $news}" class="newsTitle">{$news.title}</a>

Search in block EWRblock_RecentNews template by
PHP:
                                <xen:if is="{$news.attach}">
                                    <img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" />
                                <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}" />
                                    <img src="{$news.image}" alt="{$news.image}" style="max-height: 150px; max-width: 150px;" />
                                <xen:else />
                                    <xen:avatar user="$news" size="m" itemprop="photo" />
                                </xen:if>
and change it by
PHP:
                                <xen:if is="{$news.attach}">
                                    <img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" />
<xen:comment>                                <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:comment>
                                <xen:elseif is="{$news.image}" />
                                    <img src="{$news.image}" alt="{$news.image}" style="max-height: 150px; max-width: 150px;" />
                                <xen:else />
                                    <xen:avatar user="$news" size="m" itemprop="photo" />
                                </xen:if>

Salud2
Thank you for this, lms. :)
Thank you wasn't in there before will test it out now and have bookmarked for future reference, would be a good idea if you go that info included in the faq/manual the guys are building.
Thank you for the tip off, Liam Dawe.:)

I have included this in the XenPorta User Guide.
 
I'm having dificulties with the [prebreak] function. I'd like the first image of the thread shown and after that the user has to click on a link.

8wayruncom.jpg


It's similar like in this website:

http://www.onlydesigned.com
 
I'm having dificulties with the [prebreak] function. I'd like the first image of the thread shown and after that the user has to click on a link.

It's similar like in this website:

http://www.onlydesigned.com


This is easy to do:

1) Removing the Date

Just add this to your EXTRA.css

Code:
.newsDate.secondaryContent {
display: none;
}

2) Removing the Image

When promoting a thread just choose:

1.webp
 
Ok try this:

Add the following code to your EXTRA.css:

Code:
.messageUserBlock {
display: none;
}


Sorry didn't see you have also problems with prebreak. So it is a very simple function.

Write everthing in your Post. Then put

Code:
[prebreak][/prebreak]

at the point you wish the break for the news. Thats all!

Benny
 
Pagebreak if off my list now, thanks pjfry :)

After adding the second extra.css code the message user block also disappeared on the thread page, so I removed it.

Disabling the "promotion icon" did the trick:

7vW80.jpg


However, I can't do that with all the threads. Is there a way to make this global & default?

Can I set a default image dimension for the portal images and center them ?
 
Oh yes of course you are right the userblock is also for the posts. But try this:

Code:
.recentNews .messageUserBlock {
display: none;
}

Because your second question:

Can I set a default image dimension for the portal images and center them ?

I already asked several posts before without any answer. So I did it the manual way but I think the new css code should work better.
 
Added but I still neet to disable the promotion icon in order the image to appear :(
Anyone know how to center images on the portal by default ?
Thanks.
 
Hi

I did now some tests on my homepage. But I think there is now way to resolve this without editing some template and addon files. So I looked for an alternative. I found this:

Use the CSS from above. And put to your "News" Post two images:

one little empty one and the one you like for the news. Put the empty one first in the post after this the real one. Now the empty one is used for the promotion icon which is now hidden by css and the normal one is shown as news image.

But this is not the best way to do it, maybe Jaxel put an Option in the next release to set an Default Option for the Promotion Image in the Admin Panel.
 
Thats way to much work pjfry but thanks :)

I managed to center the image

Code:
.recentNews .messageContent {
text-align: center;
}

Default image resizing is still an issue. Hope anyone can come up wit a code that makes it possible.
 
Status
Not open for further replies.
Top Bottom