Recent Topics

1 Aug 08, 2014 02:17    

Hi

I am running a b2evolution site with approx 80 blogs for scout patrols planning a camp.

We want to Export these to pdf to review them on the camp itself.

I posted this time last year with a similar but did nothing about it :(

we are happy to print the blogs to pdf files as they are except some of them are automatically divided in pages as would be normal !!

can i remove the code that paginates the blog posts and could someone point out where it would be.

The blogs are all using the intense skin

Thanks in advance

Peter

http://padir.org/prelogs/blogs/default.php

2 Aug 08, 2014 05:50

Hi @padir,

The right way to do that, without touching the code, is by setting the number of Posts/Days per page (http://b2evolution.net/man/item-list-features) to a higher value, let's say 200. That way all the posts will be displayed in the main page, unless the blog has more posts than the number you just set.

However, this is a per-blog setting, which means that needs to be done on each blog. Knowing that you have several blogs, maybe it makes sense to do a little change in the code to save time:

  1. Go to file inc/skin/_skin.funcs.php
  2. Go to the line 106. It should look like this:
    init_MainList( $Blog->get_setting('posts_per_page') );
  3. Replace the following section of code by the number that you prefer:
    $Blog->get_setting('posts_per_page')
  4. The modifed line will look like this:
  5. init_MainList( 200 );

Regards!

3 Aug 08, 2014 10:48

@mgsolipa wrote earlier:

Hi @padir,

The right way to do that, without touching the code, is by setting the number of Posts/Days per page (http://b2evolution.net/man/item-list-features) to a higher value, let's say 200. That way all the posts will be displayed in the main page, unless the blog has more posts than the number you just set.

However, this is a per-blog setting, which means that needs to be done on each blog. Knowing that you have several blogs, maybe it makes sense to do a little change in the code to save time:

  1. Go to file inc/skin/_skin.funcs.php
  2. Go to the line 106. It should look like this: init_MainList( $Blog->get_setting('posts_per_page') );
  3. Replace the following section of code by the number that you prefer: $Blog->get_setting('posts_per_page')
  4. The modifed line will look like this:
  5. init_MainList( 200 );

Regards!

Super Thanks a Million !!
ill Probaby change the code this time around and change the settings in the individual blogs next Year !!!


Form is loading...