[8WR] XenPorta (Portal)

[8WR] XenPorta (Portal) 1.6.0

No permission to download
I would really love to start using this portal plugin but every time I access the latestnews option I get this error:

Code:
An exception occurred: Array to string conversion in /srv/www/minecraftsurvivalgames.com/forum/library/XenForo/Model/Node.php on line 1255
 
XenForo_Application::handlePhpError()
strval() in XenForo/Model/Node.php at line 1255
XenForo_Model_Node->getNodeOptionsArray() in EWRporta/Option/ForumChooser.php at line 16
EWRporta_Option_ForumChooser::renderOption()
call_user_func() in XenForo/ViewAdmin/Helper/Option.php at line 327
XenForo_ViewAdmin_Helper_Option::_renderCallbackOptionHtml() in XenForo/ViewAdmin/Helper/Option.php at line 71
XenForo_ViewAdmin_Helper_Option::renderPreparedOptionHtml() in XenForo/ViewAdmin/Helper/Option.php at line 33
XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml() in EWRporta/ViewAdmin/BlockOptions.php at line 21
EWRporta_ViewAdmin_BlockOptions->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 215
XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlAdmin.php at line 63
XenForo_ViewRenderer_HtmlAdmin->renderView() in XenForo/FrontController.php at line 533
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
XenForo_FrontController->run() in /srv/www/minecraftsurvivalgames.com/forum/admin.php at line 13

Everything else works fine but just this option (which loads in no topics on the homepage). I searched for an answer but haven't found any yet as I guess its not a very common error. Any ideas?
You need to upgrade your XenForo.
 
Thanks for your reply! But sadly I did not forgett that (Or I am just doing something wrong :S).

This is the bbcode:
View attachment 28528
This is the result:
View attachment 28529

No matter where [prebreak][/prebreak] is used inside the post, everything inside disapears. :S

If I am not using prebreak, the thread looks as it should:
View attachment 28530

Looks the same with the default template.
Stuff WITHIN the [prebreak] is hidden and only shows up on the portal.
 
You need to upgrade your XenForo.
I'm using XenForo 1.1.2 and believe I get the same error.

Code:
An exception occurred: Array to string conversion in /forums/library/XenForo/Model/Node.php on line 1255

    XenForo_Application::handlePhpError()
    strval() in XenForo/Model/Node.php at line 1255
    XenForo_Model_Node->getNodeOptionsArray() in EWRporta/Option/ForumChooser.php at line 16
    EWRporta_Option_ForumChooser::renderOption()
    call_user_func() in XenForo/ViewAdmin/Helper/Option.php at line 327
    XenForo_ViewAdmin_Helper_Option::_renderCallbackOptionHtml() in XenForo/ViewAdmin/Helper/Option.php at line 71
    XenForo_ViewAdmin_Helper_Option::renderPreparedOptionHtml() in XenForo/ViewAdmin/Helper/Option.php at line 33
    XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml() in EWRporta/ViewAdmin/BlockOptions.php at line 21
    EWRporta_ViewAdmin_BlockOptions->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 215
    XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlAdmin.php at line 63
    XenForo_ViewRenderer_HtmlAdmin->renderView() in XenForo/FrontController.php at line 533
    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
    XenForo_FrontController->run() in /home/sociall1/public_html/forums/admin.php at line 13
 
I'm using XenForo 1.1.2 and believe I get the same error.

Code:
An exception occurred: Array to string conversion in /forums/library/XenForo/Model/Node.php on line 1255
 
    XenForo_Application::handlePhpError()
    strval() in XenForo/Model/Node.php at line 1255
    XenForo_Model_Node->getNodeOptionsArray() in EWRporta/Option/ForumChooser.php at line 16
    EWRporta_Option_ForumChooser::renderOption()
    call_user_func() in XenForo/ViewAdmin/Helper/Option.php at line 327
    XenForo_ViewAdmin_Helper_Option::_renderCallbackOptionHtml() in XenForo/ViewAdmin/Helper/Option.php at line 71
    XenForo_ViewAdmin_Helper_Option::renderPreparedOptionHtml() in XenForo/ViewAdmin/Helper/Option.php at line 33
    XenForo_ViewAdmin_Helper_Option::renderPreparedOptionsHtml() in EWRporta/ViewAdmin/BlockOptions.php at line 21
    EWRporta_ViewAdmin_BlockOptions->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 215
    XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlAdmin.php at line 63
    XenForo_ViewRenderer_HtmlAdmin->renderView() in XenForo/FrontController.php at line 533
    XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
    XenForo_FrontController->run() in /home/sociall1/public_html/forums/admin.php at line 13
Found the solution. Error only happened using php 5.4 Rolling back to php 5.3.10 and issue resolved. This also affected the options for EVENS (other modification)
 
Stuff WITHIN the [prebreak] is hidden and only shows up on the portal.
Uhm..... why?

I thought the purpose of the [prebreak] is to limit how much/which part of the thread is displayed on the portal? Simmilar to the readmore/break in Joomla for articles. Not to hide text inside the thread.

I don't quite get the idea of [prebreak] :S
 
Uhm..... why?

I thought the purpose of the [prebreak] is to limit how much/which part of the thread is displayed on the portal? Simmilar to the readmore/break in Joomla for articles. Not to hide text inside the thread.

I don't quite get the idea of [prebreak] :S
You're right. That's exactly the purpose. It's quite simple.

On the portal you are going to see everything on your article up to and including what's in the [prbreak]tags[/prbreak].

So if this is my article:

This is line 1 of my article.
[prbreak]Continue reading[/prbreak]
This is line 2 of my article.

On the portal people will see:

This is line 1 of my article.
Continue reading {This will be a link to the forum thread}

On the forum thread people will see:
This is line 1 of my article.
This is line 2 of my article.

Equally, you could have the [prbreak][/prbreak] tags empty. This will just simply break the article at that point without hiding anything.

Does that make more sense now?
 
You're right. That's exactly the purpose. It's quite simple.

On the portal you are going to see everything on your article up to and including what's in the [prbreak]tags[/prbreak].

So if this is my article:

This is line 1 of my article.
[prbreak]Continue reading[/prbreak]
This is line 2 of my article.

On the portal people will see:

This is line 1 of my article.
Continue reading {This will be a link to the forum thread}

On the forum thread people will see:
This is line 1 of my article.
This is line 2 of my article.

Equally, you could have the [prbreak][/prbreak] tags empty. This will just simply break the article at that point without hiding anything.

Does that make more sense now?
That makes one hell of a lot more sense now!!!

Thanks a lot! This should really find its way into the manual + the RecentNews description in the backend. :)
 
I know that there is a built-in xenMedio block for recent media on xenPorta. But, if we don't have xenPorta installed does anyone have an idea on how to get 'recent media' added to the sidebar?
 
Promote Icon:

RecentNews uses "$news.attach.thumbnailUrl" to load the thumbnail of the attachment I selected in the thread as Promote Icon.
Now I'd like to load and display the fullsize image rather than the small thumb.

How can I do this? :)
 
Hello,

This is a great add-on! thanks Jaxel.

I was wondering if this issue is discussed already (tried to find it, no luck):
When i navigate to a specific Article (in Article view), i see all the other blocks below the article and the sidebar on that screen! along with the complete Article view. Can someone please tell me how i can get rid of other blocks and keep just the Article, Comments (for article) and sidebar on the Article view? or if i am doing something wrong, please let me know! :)

Thanks!
GMS
 
Look at your layouts.

You need to define an article layout view otherwise it defaults to your portal layout (and is a bit screwed up).
 
How do you add the recent media and wiki sidebar blocks like on Jaxel's site?
I have the media and wiki addons installed but I can't find the blocks for em.

If you have already installed the appropriate addons from XenPorta/library/EWRporta/XML_Addons and configured any options you want in ACP > XenPorta > Blocks > (making sure they are not hidden to the user groups you wish to display them to), then you also need to add these blocks into one of XenPorta's layouts. For example ACP > XenPorta > Layouts > Portal.

Using the Portal (default) layout as an example you just need to drag and drop the blocks into the desired position, in your case most likely in the sidebar position. Some blocks don't work in all positions as they were not designed to be there so be wary if you experiment too much. You can create further layouts as needed to display the blocks only on those types of pages – index, forum, article etc.
 
Look at your layouts.

You need to define an article layout view otherwise it defaults to your portal layout (and is a bit screwed up).

Thanks Rob! i knew i was missing something. I guess Custom layouts is actually very useful! not sure how i missed it.

Thanks,
GMS
 
You're right. That's exactly the purpose. It's quite simple.

On the portal you are going to see everything on your article up to and including what's in the [prbreak]tags[/prbreak].

So if this is my article:

This is line 1 of my article.
[prbreak]Continue reading[/prbreak]
This is line 2 of my article.

On the portal people will see:

This is line 1 of my article.
Continue reading {This will be a link to the forum thread}

On the forum thread people will see:
This is line 1 of my article.
This is line 2 of my article.

Equally, you could have the [prbreak][/prbreak] tags empty. This will just simply break the article at that point without hiding anything.

Does that make more sense now?
That makes one hell of a lot more sense now!!!

Thanks a lot! This should really find its way into the manual + the RecentNews description in the backend. :)
Thank you for this, Yorick. This has been added to the User Guide. :)
 
I was curious if it was possible to change the color of who posted something to the xenPorta homepage via usergroups?

This is what I have so far:

Code:
{xen:if '{xen:helper ismemberof, $news.username, 3}', 'admin', 'username'}

For some reason it's having trouble with seeing if $news.username is in the group with an ID of 3, (which in this case it should be, returning true and using the value of 'admin')

Any help is appreciated!
 
Promote Icon:

RecentNews uses "$news.attach.thumbnailUrl" to load the thumbnail of the attachment I selected in the thread as Promote Icon.
Now I'd like to load and display the fullsize image rather than the small thumb.

How can I do this? :)
Just in case someone else needs this too.

The following code (used inside the EWRblock_RecentNews template) will load and display the attachment image that is selected as "Promotion Image". No changes anywhere else required. :)
Code:
<img alt="{$news.attach.filename}" data-original="attachments/{$news.attach.filename}.{$news.attach.attachment_id}"src="attachments/{$news.attach.filename}.{$news.attach.attachment_id}">
 
Just wondering if the sticky function works ? Do i need to setup something different. i tried to promote a post on the portal to sticky yet it did not stay sticky. I just wondering if this feature works correctly or was it just me.
 
Top Bottom