EllisLab text mark
Advanced Search
2 of 6
2
   
Plugin:  Entries List
Posted: 19 January 2009 09:59 AM   [ Ignore ]   [ # 19 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-02
982 posts

Hi DevServe,

Did you just add 2.3 last night?

Yes, version 2.3 has been just added.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

 
Posted: 23 January 2009 04:12 PM   [ Ignore ]   [ # 20 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-02
982 posts

Hi,

I released version 2.3.1 of Entries List plugin.

In this release a bug was fixed - Previous/Next entry linking not working correctly in cases “weblog” parameter or/and “category” parameter specify some weblog or category into which no entry was posted.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

 
Posted: 12 February 2009 05:41 PM   [ Ignore ]   [ # 21 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-02
982 posts

Hi,

I released version 2.4 of Entries List plugin.

In this release the possibility of using weblog id numbers as the values of “weblog” parameter was added.

Now you can use weblog names or weblog ids as the values of this parameter; you can even
mix weblog names and weblog ids, e.g. weblog=“weblog_name1|10|weblog_name2|15|weblog_name3”.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

 
Posted: 12 March 2009 06:29 PM   [ Ignore ]   [ # 22 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-02
982 posts

Hi,

I released version 2.6 of Entries List plugin.

In this release:

1) added optional parameter “count_start_on”. It is for use together with “sort_separately” parameter. In case the latter has the value “weblogs”, it allows you to specify which weblog counting should start from. In case sort_separately” has the value “categories”, it allows you to specify which category counting should start from. You can use pipe character to stack several weblog short names or several category id numbers, e.g. if count_start_on=“weblog3|weblog6|weblog10” then counting of weblogs will
start when the plugin will output entry posted into any of those weblogs.

2) added optional parameter “count_stop_before”. It is for use together with “sort_separately” parameter. In case the latter has the value “weblogs”, it allows you to specify which weblog counting should stop before. In case sort_separately” has the value “categories”, it allows you to specify which category counting should stop before. You can use pipe character to stack several weblog short names or several category id numbers, e.g. if count_start_on=“16|88|111” then counting of categories will stop before
the plugin will output entry posted into any of those categories.

3) added variable {entries_list_weblog_count}. It outputs count number (1, 2, 3 etc.) of the weblog whose entry is being displayed. Weblogs are counted when parameter “sort_separately” has the value “weblogs”. Only non-empty weblogs are counted.

4) added variable {entries_list_category_count}. It outputs count number (1, 2, 3 etc.) of the category whose entry is being displayed. Categories are counted when parameter
“sort_separately” has the value “categories”. Only non-empty categories are counted.

5) added variable {next_entry_weblog_count}. It outputs count number (1, 2, 3 etc.) of the weblog into which next entry is posted. Weblogs are counted when parameter
“sort_separately” has the value “weblogs”.

6) added variable {next_entry_category_count}. It outputs count number (1, 2, 3 etc.) of the category into which next entry is posted. Categories are counted when parameter
“sort_separately” has the value “categories”.

7) added variable {previous_entry_weblog_count}. It outputs count number (1, 2, 3 etc.) of the weblog into which previous entry is posted. Weblogs are counted when parameter
“sort_separately” has the value “weblogs”. Only non-empty weblogs are counted.

8) added variable {previous_entry_category_count}. It outputs count number (1, 2, 3 etc.) of the category into which previous entry is posted. Categories are counted when parameter “sort_separately” has the value “categories”. Only non-empty categories are counted.

9) added variable {entries_list_weblog_count_total}. It outputs total number of weblogs counted. Weblogs are counted when parameter “sort_separately” has the value “weblogs”.
Only non-empty weblogs are counted.

10) added variable {entries_list_category_count_total}. It outputs total number of categories counted. Categories are counted when parameter “sort_separately” has the value “categories”. Only non-empty categories are counted.

11) added variable {entries_list_sort_separately_iteration}. It outputs iteration number (1, 2, 3 etc.) of the weblog or category being processed. Iteration number is assigned to weblogs when parameter “sort_separately” has the value “weblogs”. Iteration number is assigned to categories when parameter “sort_separately” has the value “categories”. Iteration number is assigned both to empty and non-empty weblogs and categories.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

 
Posted: 16 June 2009 04:28 AM   [ Ignore ]   [ # 23 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-02
982 posts

Hi,

I released version 2.8 of Entries List plugin (version 2.7 were not released publicly).

New features

1) “per_page” parameter - Allows you to specify how many
items should be displayed on one page. This parameter should net be confused with
“limit” parameter. While “per_page” parameter specifies how many
items should be displayed on one page, the “limit” parameter specifies how many items
should be displayed at all, that is on all pages if there will be pagination. If
“sort_separately” parameter has the value “weblogs” or “entries”, then the value of “limit” parameter applies to each weblog or category separately.

2) “max_links” parameter - Allows you to specify how many pagination links should be
displayed. Default value is “2”.

3) “entry_date” variable now can have “date_format” parameter.

4) “entries_list_count” variable. It outputs count number of the entries being displayed.
If five entries are being displayed, then for the fourth entry the {entries_list_count}
variable would have a value of “4”.

5) “entries_list_absolute_count” variable. It outputs absolute count number of the entries being displayed by the tag, including those entries on previous pages (if using pagination). If five entries are being displayed per page, then for the fourth entry on the second page the {entries_list_absolute_count} variable would have a value of “9”

6) “entries_list_separate_count” variable. It is used when parameter “sort_separately” has the value “weblogs” or “categories”. Outputs count number of the entries; entries of each weblog or category are counted separately.

7) “next_entry_date” variable; can have “date_format” parameter.

8) “previous_entry_date” variable; can have “date_format” parameter.

9) {entries_list_paginate_top}{/entries_list_paginate_top} and {entries_list_paginate_bottom}{/entries_list_paginate_bottom} variable pairs. Variables available for use within these variable pairs are: {enties_list_current_page}, {enties_list_total_pages} and {enties_list_pagination_links}.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

 
Posted: 13 July 2009 07:08 PM   [ Ignore ]   [ # 24 ]   [ Rating: 0 ]
Joined: 2006-02-22
424 posts

Hi!

I love you plugins! Thanks!

Quick questions on this one:

1. Do I put this plugin inside or outside weblog:entries tag?

2. I am looking for an alternative to the stock {paginate} single entry links. Could you give me an example for prev/next single entry page linking?

3. Does this plugin accept url_title? I am trying to setup single entry prev/next linking, but my url structure is unconventional… The stock prev/next is not working for me. smile

4. Does this plugin work with the latest EE version? I am getting these Notices:

Notice: Undefined variable: conds3 in /home2/uname/public_html/system_folder/plugins/pi.entries_list.php on line 1157
Notice: Undefined variable: conds3 in /home2/uname/public_html/system_folder/plugins/pi.entries_list.php on line 1158
Notice: Undefined variable: conds3 in /home2/uname/public_html/system_folder/plugins/pi.entries_list.php on line 1159

This is the code:

{exp:entries_list weblog="{weblog}"}
{next_entry_url_title}
{
/exp:entries_list} 

Thanks!
Cheers,
M

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

 
Posted: 13 July 2009 08:02 PM   [ Ignore ]   [ # 25 ]   [ Rating: 0 ]
Joined: 2006-02-22
424 posts

Man, your plugins are cool! I think I am able to get the prev/next single entry links using something like this (put inside weblog:entries tag):

{exp:entries_list weblog="{weblog}" entry_id="{entry_id}" limit="1"}
{next_entry_title}
{
/exp:entries_list} 
{
/exp:weblog:entries} 

But I am still getting that undefined variable notice… I know notices are not that big of a deal, but I think I may poke around your plugin to see if I can fix… Seems like there is probably just a spot where $condsX vars need to be initialized. Or, am I doing things wrong?

Thanks!

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

 
Posted: 13 July 2009 08:16 PM   [ Ignore ]   [ # 26 ]   [ Rating: 0 ]
Joined: 2006-02-22
424 posts

Hi! Me again. smile

For a quick fix, I was able to supress the notices by using the @ error control operator, for example:

$output = @$FNS->prep_conditionals($output$conds3);
$output = @str_replace('{entries_list_weblog_count}'$conds3['entries_list_weblog_count']$output);
$output = @str_replace('{entries_list_category_count}'$conds3['entries_list_category_count']$output);
$output = @str_replace('{entries_list_sort_separately_iteration}'$conds3['entries_list_sort_separately_iteration']$output); 

I think I noticed other notices when using your example code from your first post… But I have only had time to trouble shoot prev/next linking.

Anyway, loving this plugin! Just what I was looking for. Kinda wish the built-in prev/next worked as well as this plugin does. :D

Thanks!
M

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

 
Posted: 14 July 2009 01:54 AM   [ Ignore ]   [ # 27 ]   [ Rating: 0 ]
Joined: 2006-02-22
424 posts

Hello,

I am noticing a problem with the date/time output.

Using EE entry_date tag:

{entry_date format="%m/%d/%Y @ %g:%i%a"

I get this output:

07/09/2009 @ 5:35pm

And using entries_list_entry_date:

{entries_list_entry_date date_format="%Y/%m/%d @ %g:%i%a"

I get this:

07/10/2009 @ 12:35am

I have tried using date_localize=“yes”, but that appears to not change anything.

Any tips? For now, I will probably use PHP to account for the offset.

Thanks!
M

EDIT/UPDATE #1:

I set the server offset to “420” via “CP Home”›“Admin”›“System Preferences”›“Localization Settings”, and that seemed to sync the two date tags, but now EE thinks that I am on East Coast time. :(

EDIT/UPDATE #2

Well, for those interested…

In order to figure out my server time, I used:

echo date("m/d/Y @ g:ia"); 

Which outputs this:

07/14/2009 3:39am 

Currently, my local time is 12:39am.

Since I am -8:00, I set my Server Time Zone under “Localization Settings” via the CP to UTC -5:00 with no server offset time.

Long story short, I am using this PHP to compensate for the time diff:

<?php echo date("m/d/Y @ g:ia", (strtotime('{entries_list_entry_date date_format="%Y-%m-%d %H:%i:%s %O"}') - 10800)); ?> 

Where the “- 10800” is 3 hours in seconds.

Unfortunately, my solution feels very hackish… I hope that I am not missing a plugin/control panel setting somewhere? :D

EDIT/UPDATE #3

Also, here is my final code for prev/next entries (I put the below inside weblog:entries tag):

{exp:entries_list weblog="{weblog}" entry_id="{entry_id}" aliases_only="yes" date_format="%m/%d/%Y"}
    {if entries_list_total_results 
0}
        
<div class="paginate">
            
{if next_entry_title != ""}
                
<a href="{path='/entry/<?php echo date('Y/m/d', (strtotime('{next_entry_date date_format='%Y-%m-%d %H:%i:%s %O'}') - 10800)); ?>/{next_entry_url_title}/'}">
                    < 
{next_entry_title}
                
</a>
            
{/if}
            {if 
(next_entry_title != "") AND (previous_entry_title != ""){/if}
            {if previous_entry_title 
!= ""}
                
<a href="{path='/entry/<?php echo date('Y/m/d', (strtotime('{previous_entry_date date_format='%Y-%m-%d %H:%i:%s %O'}') - 10800)); ?>/{previous_entry_url_title}/'}">
                    
{previous_entry_title} >
                </
a>
            
{/if}
        
</div>
    
{/if}
{
/exp:entries_list} 

The structure of my EE single entry URIs look like so:

http://site.come/entry/2009/06/28/url-title/

Hence, my date comments from above.

Cheers,
M

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

 
Posted: 19 July 2009 06:35 AM   [ Ignore ]   [ # 28 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-02
982 posts

Hi mhulse,

I will check if there is any bug after a couple of weeks, when I will be back at home.

Cheers,
Laisvunas.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

 
Posted: 19 July 2009 02:47 PM   [ Ignore ]   [ # 29 ]   [ Rating: 0 ]
Joined: 2006-02-22
424 posts

Hi Laisvunas! Thanks for the reply, I really appreciate it. smile

Laisvunas - 19 July 2009 10:35 AM

Hi mhulse,
I will check if there is any bug after a couple of weeks, when I will be back at home.
Cheers,
Laisvunas.

Wow, that would be great! smile

Of course, no rush… The solution I have found is working great. This, and all of your other, plugins are amazing! Many many thanks for sharing with the rest of us.

Have a great day!
Cheers,
Micky

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

 
Posted: 20 July 2009 12:38 PM   [ Ignore ]   [ # 30 ]   [ Rating: 0 ]
Avatar
Joined: 2006-10-08
281 posts

I also get an error when i dont use a category:

{exp:entries_list weblog="myweblog" entry_id="{segment_3}"}
    Next entry id is
:{next_entry_id}<br />
    
Previous entry id is:{previous_entry_id}<br />
{/exp:entries_list} 

Throws:

Notice: Undefined index: cat_name in /var/sites/test/system/plugins/pi.entries_list.php on line 1113
Notice: Undefined index: cat_url_title in /var/sites/test/system/plugins/pi.entries_list.php on line 1114

Is my code above the correct way to display next and previous links?

 Signature 

CodeIgniter & Expression Engine Freelance Developer


Based in Leicester, UK.


Billy Media | Next Big Leap | LinkedIn

 
Posted: 20 July 2009 01:44 PM   [ Ignore ]   [ # 31 ]   [ Rating: 0 ]
Joined: 2006-02-22
424 posts

Hi Bohboh,

In terms of the notices, they are not mission-critical show stoppers… In fact, I think only super admins will see those notices when they are logged in.

If you want a quick way to remove those notices, just put an @ in front of the lines that are throwing-up notices… See message #26.

Other than the notices, are you getting next_entry_id and previous_entry_id to display?

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

 
Posted: 07 August 2009 04:21 PM   [ Ignore ]   [ # 32 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-02
982 posts

Hi mhulse and Bohboh,

I played with code snippets you posted but was not able to reproduce any unwanted effects.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

 
Posted: 07 August 2009 06:02 PM   [ Ignore ]   [ # 33 ]   [ Rating: 0 ]
Joined: 2006-02-22
424 posts

Hi Laisvunas! Thanks for testing, I really appreciate it.

Hrm, you know what… I wonder if it has to do with the PHP version.

I just realized that my host is running PHP4, not v5.

<off-topic>Kinda disappointed, because they say that all their servers run on PHP5.</off-topic>

I could send you server-setup specifics if you are curious?

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

 
2 of 6
2