• 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.
Yes this is possible. I have many different news modules running on my site. You have to open the xml and change theses settings adding the #1 after recentnews:
  1. RecentNews1
  2. recentnews1_forum
  3. recentnews1_limit
  4. recentnews1_truncate
  5. recentnews1_social
  6. recentnews1_pagenav
  7. recentnews1_leftdate
  8. EWRblock_RecentNews1
  9. EWRblock_RecentNews1.css
  10. $RecentNews1
  11. EWRblock_RecentNews1.css"
  12. After making changes to the xml save RecentNews1.xml but don't upload yet.
  13. If you want more then one news module change the 1 to a 2 and so forth for each module.
Now you have to open /library/EWRPorta/Block/RecentNews.php / Make a copy and then rename RecentNews.php to RecentNews1.php. Open RecentNews1.php and change class EWRporta_Block_RecentNews extends XenForo_Model to class EWRporta_Block_RecentNews1 extends XenForo_Model. Save and Exit. Make sure you have the RecentNews1.php uploaded to /library/EWRporta/Block. After making sure this is uploaded you can upload your xml into the blocks section of the admin area. Hope this helps.

Itworx4me

Worked like a charm, thanks!
 
Hi one short Question:

I am not so familiar with the Xenforo template system. But I will learn it step by step :) So my first challenge i have is to remove the thumbnail from the News and replace it with the full image. I found this code in the recent_news template:

HTML:
<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-width: 647px;" /></a>
                                <xen:else />
                                    <xen:avatar user="$news" size="m" itemprop="photo" />
                                </xen:if>
                                </xen:contentcheck>
                        </div>

So I now I have to replace in the following line the src file:

HTML:
<a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>

But I am not sure what is the template code for the full image instead of the thumbnail. Maybe someone xould help me!


EDIT:

One more Question:

What is the difference between:

{$news.image} and {$news.attach}

Thanks!

Benny
 
i uploaded the file and installed it
but i don't know how can i use it looks difficult :(
can you explain it
Thanks and you deserve it $$
 
Had an early version of Xenporta installed without issues.

I've just upgraded my forums to 1.1.1 as well as the xenporta, and it appears to be broken.

Can anyone tell me what would be causing this?

www.psvaddicts.com

Also - I had created a custom module before for CU3eR but it now doesn't recognise it, as it's now blocks.....How do I create a block now?

Just looked at the layouts and this may be the issue...

Before, you had only central columns with a sidebar but now, there are 2 columns + Sidebar.

How can I make it so it's 1 column + sidebar?
 
Deleted it all, gonna start over.

Bloody annoying though.

Uh-Oh, hearing things like this makes me leery to use any add-ons, because of upgrade path difficulties. One tiny mistake and your site is borked! It would be nice if add-ons could deactivate themselves if an error is encountered and record the error, that way you don't have to start from square one.
 
Uh-Oh, hearing things like this makes me leery to use any add-ons, because of upgrade path difficulties. One tiny mistake and your site is borked! It would be nice if add-ons could deactivate themselves if an error is encountered and record the error, that way you don't have to start from square one.
Never had any issues with any of his addons myself, I couldn't recommend Porta and Utilities enough! :)
 
To be fair, I'm not sure what's happened. The site was well designed and I had spent months on it.

Due to the changes in 1.1.1, xenPorta and my theme, I'm guessing something totally borked somewhere (I was an early adopter to xenforo.

I was going to do a total overhaul of my site anyway, this has just forced it!
 
When I try to uninstall XenPorta This comes up.

Server Error

Mysqli prepare error: Table 'xxxx.EWRporta_blocks' doesn't exist
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 218
  5. XenForo_Model->fetchAllKeyed() in EWRporta/Model/Blocks.php at line 7
  6. EWRporta_Model_Blocks->getAllBlocks() in EWRporta/Install.php at line 161
  7. EWRporta_Install->_uninstall_0() in EWRporta/Install.php at line 156
  8. EWRporta_Install::uninstallCode() in XenForo/DataWriter/AddOn.php at line 193
  9. XenForo_DataWriter_AddOn->_postDelete() in XenForo/DataWriter.php at line 1738
  10. XenForo_DataWriter->delete() in XenForo/ControllerAdmin/AddOn.php at line 116
  11. XenForo_ControllerAdmin_AddOn->actionDelete() in XenForo/FrontController.php at line 310
  12. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  13. XenForo_FrontController->run() in /home/mcwh/public_html/community/admin.php at line 13
 
I've been slaving away on a new version of my site, after Porta seemed to kill it before, Only for this to happen.

I've just got this come up.....

Just added the twitter column and now have this. Tried to remove it, no joy.

An exception occurred: Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') OR EWRporta_promotes.promote_date < ?) AND xf_thread.discussion_state = 'v' at line 10 in /home/minicham/public_html/library/Zend/Db/Statement/Mysqli.php on line 77
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 734
  5. Zend_Db_Adapter_Abstract->fetchAll() in EWRporta/Block/RecentNews.php at line 24
  6. EWRporta_Block_RecentNews->getModule() in EWRporta/Model/Blocks.php at line 112
  7. EWRporta_Model_Blocks->getBlockParams() in EWRporta/ViewPublic/Custom.php at line 67
  8. EWRporta_ViewPublic_Custom->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 215
  9. XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
  10. XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 533
  11. XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
  12. XenForo_FrontController->run() in /home/minicham/public_html/index.php at line 13
UPDATE 1.
Removing the Recent News + Recent Slider gets the page to load again. However, when I try to rebuild cache's under tools, I get this.





PLEASE Tell me Porta hasn't killed my database again?!?





Server Error


in_array() [function.in-array]: Wrong datatype for second argument
  1. XenForo_Application::handlePhpError() in EWRporta/DataWriter/Discussion/Thread.php at line 35
  2. EWRporta_DataWriter_Discussion_Thread->cachePromotions() in EWRporta/DataWriter/Discussion/Thread.php at line 15
  3. EWRporta_DataWriter_Discussion_Thread->_discussionPostSave() in XenForo/DataWriter/Discussion.php at line 383
  4. XenForo_DataWriter_Discussion->_postSave() in XenForo/DataWriter.php at line 1385
  5. XenForo_DataWriter->save() in XenForo/CacheRebuilder/Thread.php at line 73
  6. XenForo_CacheRebuilder_Thread->rebuild() in XenForo/ControllerHelper/CacheRebuild.php at line 26
  7. XenForo_ControllerHelper_CacheRebuild->rebuildCache() in XenForo/ControllerAdmin/Tools.php at line 78
  8. XenForo_ControllerAdmin_Tools->actionCacheRebuild() in XenForo/FrontController.php at line 310
  9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  10. XenForo_FrontController->run() in /home/minicham/public_html/admin.php at line 13
 
I've been slaving away on a new version of my site, after Porta seemed to kill it before, Only for this to happen.

I've just got this come up.....

Just added the twitter column and now have this. Tried to remove it, no joy.

An exception occurred: Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') OR EWRporta_promotes.promote_date < ?) AND xf_thread.discussion_state = 'v' at line 10 in /home/minicham/public_html/library/Zend/Db/Statement/Mysqli.php on line 77
  1. Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
  2. Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
  3. Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
  4. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 734
  5. Zend_Db_Adapter_Abstract->fetchAll() in EWRporta/Block/RecentNews.php at line 24
  6. EWRporta_Block_RecentNews->getModule() in EWRporta/Model/Blocks.php at line 112
  7. EWRporta_Model_Blocks->getBlockParams() in EWRporta/ViewPublic/Custom.php at line 67
  8. EWRporta_ViewPublic_Custom->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 215
  9. XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67
  10. XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 533
  11. XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
  12. XenForo_FrontController->run() in /home/minicham/public_html/index.php at line 13
UPDATE 1.

Removing the Recent News + Recent Slider gets the page to load again. However, when I try to rebuild cache's under tools, I get this.





PLEASE Tell me Porta hasn't killed my database again?!?




Server Error

in_array() [function.in-array]: Wrong datatype for second argument
  1. XenForo_Application::handlePhpError() in EWRporta/DataWriter/Discussion/Thread.php at line 35
  2. EWRporta_DataWriter_Discussion_Thread->cachePromotions() in EWRporta/DataWriter/Discussion/Thread.php at line 15
  3. EWRporta_DataWriter_Discussion_Thread->_discussionPostSave() in XenForo/DataWriter/Discussion.php at line 383
  4. XenForo_DataWriter_Discussion->_postSave() in XenForo/DataWriter.php at line 1385
  5. XenForo_DataWriter->save() in XenForo/CacheRebuilder/Thread.php at line 73
  6. XenForo_CacheRebuilder_Thread->rebuild() in XenForo/ControllerHelper/CacheRebuild.php at line 26
  7. XenForo_ControllerHelper_CacheRebuild->rebuildCache() in XenForo/ControllerAdmin/Tools.php at line 78
  8. XenForo_ControllerAdmin_Tools->actionCacheRebuild() in XenForo/FrontController.php at line 310
  9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  10. XenForo_FrontController->run() in /home/minicham/public_html/admin.php at line 13


just disable xenporta.
 
Not useful when I want to use it though?

Had to re-create the database from a quick back-up i did 5 mins before.

Not sure what caused it.
 
With 1.5.1, anybody else having problems with attachment thumbnails not showing for guests in Recent News? Search this thread for 'thumbnail' but didn't see anything. :coffee:

Not sure if I know what you mean correctly, but have you given permission to guests to see attachments? Its possible that is why guests are not able to see the attachments.
 
Is there a way to change the link in the recent threads sidebar box to go directly to the last post when clicked?
 
I seem to have lost my promote thread button after changing the text size on the flexile theme. Is there anyway I can add it to thread tools?
 
When we move a (recent) thread and leave a redirect, both appear in the recentthreads module. I think redirects should not appear in there. Is there a way to hide them?
 
Recent Threads
I need to temporarily remove the cutoff date for the recent threads block. This will help me with development and the first couple days of a site going live. Any suggestions for a quick and temporary file edit?
 
Categories
Categories for XenPorta. Cool.
A few initial impressions ..

I think the slider is a "Home page thing". When I want specific information ... ie. when i click on a category tag ... I don't want the top spot occupied by the slider.
ie. http://8wayrun.com/portal/category/hate-speech/

A categories cloud on the Home Page would be a good idea
http://8wayrun.com/
otherwise I have to click on a random article on the page to get to articles / threads on the topic I want.

It's very cool to see categories in Xenforo .. ie in this thread.
http://8wayrun.com/threads/hate-speech-algol-nudes-surface-scandal-ensues.9453/
How about rolling them out for any threads in any forum :)

Should the categories have a popup quick navigation menu to move to other categories ?
or clicking on the word categories takes you to a page dedicated to a categories cloud ?

Should you use Jake's Tab addon and display all articles in a News Tab ? or Articles Tab ? (as opposed to under the forums Tab ?) Might make it helpful for people to see that XenPorta can be used for Articles :).

What about exposing categories to what's new ?
xenporta.articles.gateway.from.whats.new.to.categories.of.article.webp
 
Status
Not open for further replies.
Back
Top Bottom