XenZine Articles [Deleted]

I used the ad_below_top_breadcrumb template to put some stuff up but I DON'T want it to appear on Xenzine pages.
I guess that's a conditional I wrap around my 'stuff' - help?

ps. thanks for the css to make the summary box neater. Looks good.

pss. I got the conditional to place it only on the other pages.
 
Last edited:
Just realised something; it would be awesome if XenZine could be integrated with Trophies ("user has posted at least x articles"). It would also, though with both of these ideas I can only speak out of personal interest, what would interest others is up to them, work well with usergroup promotions I think. Allow writers to be promoted to editorial positions based on number of articles published (perhaps so they can choose editors picks, or whatever an admin decides to promote them to).

Just thoughts.
 
I like to have a standard sidebar on ALL pages of the site so visitors can feel secure about finding things without them being hidden behind tabs, which less experienced users don't like.
I have added my code as follows to all the xenzine pages I could identify
Code:
<xen:sidebar>
<xen:include template="shan_sidebar"></xen:include>
</xen:sidebar>

If there is a better way so I don't have to handle updates on lots of templates please tell. I did look at the xenzine sidebar template but it doesn't appear on all pages and I do find consistency important for lower standard users.)

Cannot identify which template to insert my code to get sidebar on subcategory page eg
http://www.firstcollege.co.uk/xz-articles/?category=english-and-literature&id=88
Firefox ID element gives me xenzine_article_list
and my sidebar code is on that one.
Which template do I need please?
 
I like to have a standard sidebar on ALL pages of the site so visitors can feel secure about finding things without them being hidden behind tabs, which
Firefox ID element gives me xenzine_article_list
and my sidebar code is on that one.
Which template do I need please?

try xenzine_category_list
 
tenants updated XenZine Articles with a new update entry:

XenZine Articles CMS - Multiple Pages Update.... and more

Fixes
  • Self publishing redirects to the submit page (if you can bypass publishing, you should be directed to the Article after publishing it) -fixed
  • Editing a Published Article can result in multiple versions of the article, it should only result in one unpublished version - fixed
  • Users can delete there own unpublished articles

Enhancements, Unpublished / Published and Submit An Article Areas
  • All of these areas now look much better using responsive design

Enhancements, Article Page
  • It's now possible to add multiple pages to an articles (this is an option that can be turned on / off in the ACP). Muliple pages are searchable, share the same likes and can be edited similar to the main aritcle page. A user can add a page once they have completed something on their first page of the article submision area
  • I've made the permissions a bit more idiot proof. If a category is not associated to a forum, and no default article forum is selected, none of the thread related Article Tools display
Enhancements, Images
  • Retina Ready Images. There is now an option to use retina ready images (double the pixel resolution). For article images (images in the category list/article list/editors picks) *Note, images within article content will not be affected, since this is core functionality

Enhancements, Nav Bar
  • The nav bar name "articles" can now be independently altered by updating the phrase, for instance alter the phrase xz_articles_nav from "Articles" to "Home"
  • It's now possible to set the position of the Articles nav menu. Three options are available "home", "middle", (If you set it to home and want it as the first nav position, don't forget to remove the default xf homepage from your ACP options)

Enhancements, Miscellaneous
  • Dialogues / Functions / Article Creation Areas all now check that the user is registered, and return the registration form if not (assertions for other permissions too)

Read the rest of this update entry...
 
Getting errors showing up in the logs like this below.

Code:
Server Error Log
Error Info
ErrorException: Argument 1 passed to XenZine_Model_Perms::hasForumAssociation() must be an array, boolean given, called in /var/www/vhosts/****/httpdocs/library/XenZine/ControllerPublic/Article.php on line 112 and defined - library/XenZine/Model/Perms.php:120
Generated By: Unknown Account, 24 min ago
Stack Trace

#0 /var/www/vhosts/****/httpdocs/library/XenZine/Model/Perms.php(120): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/var/www/vhosts...', 120, Array)
#1 /var/www/vhosts/****/httpdocs/library/XenZine/ControllerPublic/Article.php(112): XenZine_Model_Perms->hasForumAssociation(false)
#2 /var/www/vhosts/****/httpdocs/library/XenZine/ControllerPublic/Article.php(18): XenZine_ControllerPublic_Article->displayArticle(21, NULL)
#3 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(337): XenZine_ControllerPublic_Article->actionIndex()
#4 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /var/www/vhosts/****/httpdocs/index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
  ["url"] => string(79) "http://www.yourpshome.net/article/how-to-start-a-playstation-home-clubhouse.21/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Getting errors showing up in the logs like this below.
Code:
Server Error Log
Error Info
ErrorException: Argument 1 passed to XenZine_Model_Perms::hasForumAssociation() must be an array, boolean given, called in /var/www/vhosts/****/httpdocs/library/XenZine/ControllerPublic/Article.php on line 112 and defined - library/XenZine/Model/Perms.php:120
Generated By: Unknown Account, 24 min ago
Stack Trace


I havent seen that issue, I've just uploaded a new version
xenZineArticles_v1_1_05b.zip
can you let me know if it solves it

It looks like you are sending hasForumAssociation($category = null) a value of false,
that can only happen if you have no category_id (or it can't get the category for the given id):

$category = $this->_getCategoryModel()->getCategoryByNodeId($article['category_id']);

It's a bit of a strange error, how was an article submitted without a category

Or was the category deleted?
 
Last edited:
I havent seen that issue, I've just uploaded a new version
xenZineArticles_v1_1_05b.zip
can you let me know if it solves it

It looks like you are sending hasForumAssociation($category = null) a value of false,
that can only happen if you have no category_id (or it can't get the category for the given id):

$category = $this->_getCategoryModel()->getCategoryByNodeId($article['category_id']);

It's a bit of a strange error, how was an article submitted without a category

Or was the category deleted?
It's fixed that error, but i now see the following errors in the logs.

Edit: they only show if "Multi Page Articles" is unticked in the settings.
Code:
ErrorException: Undefined variable: page - library/XenZine/ControllerPublic/Article.php:125
Generated By: C.Birch, A moment ago
Stack Trace

#0 /var/www/vhosts/****/httpdocs/library/XenZine/ControllerPublic/Article.php(125): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/var/www/vhosts...', 125, Array)
#1 /var/www/vhosts/****/httpdocs/library/XenZine/ControllerPublic/Article.php(18): XenZine_ControllerPublic_Article->displayArticle(21, NULL)
#2 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(337): XenZine_ControllerPublic_Article->actionIndex()
#3 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /var/www/vhosts/****/httpdocs/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(79) "http://www.yourpshome.net/article/how-to-start-a-playstation-home-clubhouse.21/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Code:
Server Error Log
Error Info
ErrorException: Undefined variable: countPages - library/XenZine/ControllerPublic/Article.php:124
Generated By: C.Birch, 1 min ago
Stack Trace

#0 /var/www/vhosts/****/httpdocs/library/XenZine/ControllerPublic/Article.php(124): XenForo_Application::handlePhpError(8, 'Undefined varia...', '/var/www/vhosts...', 124, Array)
#1 /var/www/vhosts/****/httpdocs/library/XenZine/ControllerPublic/Article.php(18): XenZine_ControllerPublic_Article->displayArticle(21, NULL)
#2 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(337): XenZine_ControllerPublic_Article->actionIndex()
#3 /var/www/vhosts/****/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /var/www/vhosts/****/httpdocs/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
  ["url"] => string(79) "http://www.yourpshome.net/article/how-to-start-a-playstation-home-clubhouse.21/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Last edited:
@Carla Birch I've added a new version
xenZineArticles_v1_1_05c.zip

I've tested the category list, article list, editors picks, the submission area, approving articles and articles with the option "multiple pages" turned off, this should fix it

(I did see the error, I've just been testing with this turned on for a long while now, I forgot to test the site with multiple pages turned off... embarrassing)
 
It would be cool to have usergroup where user gets both author permission + they get their own Category of articles as an author.
Articles display in topic categories as normal, but the author's page is a search on their articles.

Author page links on profile, membercard, admin options display on post bit / memberlist too.
 
It would be cool to have usergroup where user gets both author permission + they get their own Category of articles as an author.
Articles display in topic categories as normal, but the author's page is a search on their articles.

Author page links on profile, membercard, admin options display on post bit / memberlist too.
I love this idea.

Unrelated to the above, I also realised today that there was a thread (can't remember where but I can find it if needed) where people showed a great deal of interest in a review system (might've been in the thread for Waindigo's book review addon). The ability to show scores or ratings underneath the article summary and image would pretty much cover the whole "review system" thing in one go.
 
I set the max number of editor picks to 16 but it only displays 10.

ACP/Options
Article List - Editor Picks 16
Editors Picks - Editors Picks Block 16


I've tried this, both the carousel and masonry show 16... do you actually have 16 picks? Sometimes I think I've set a pick, but I've only set a pick order
 
I set the max number of editor picks to 16 but it only displays 10.

ACP/Options
Article List - Editor Picks 16
Editors Picks - Editors Picks Block 16


Ah, I know what it was

Each set of options (for each "page") have their own area in the ACP

There are options for the article list page, these options all start with
Article List -

There are options for the editors picks page, these options all start with
Editors Picks -

There are options for the category list page, thesw options all start with
Category List -

You are looking at the category list page

So, if you wanted to increase the number of articles shown for the editors picks section on the Category List page, the option you should change is:
Category List - Editor Picks
The number of "Editor Picks" articles to display on the Category List (set to 0 to turn this additional block off)

What I might eventually do, is add a custom heading in the ACP for each section, the heading will be non-functional, but it will make it easier to understand which page the option affects (and then I can get rid of the prefixes... ;) )
 
Last edited:
Top Bottom