Sunday, January 17th, 2010 (updated 1 Mar ’10)

Nearby Entries v1.1.3 ($15)

Username

Password

Forgot your password?

Register

Elsewhere...

More and more of OpinionJournal goes behind the paywall. Personally I think it’s the right move, because what’s there to lose? If we won’t pay, the business was over anyway. And my bet is we will.

Macworld Expo 2010 Best of Show.

On chatroulette.com.

Russell Beattie: What we really wanted was a MacPad not an iPad.

Sikuli, ingenious GUI scripting. Definitely going to try it.

This video of a tablet mockup makes me horny at last for a tablet computer. I’m excited for tomorrow’s Apple announcement. Guess I’ll be standing in line to buy one as well.

A Little Less Conversation, says Joel Spolsy.

Fake Steve Jobs pens the most insightful piece I’ve read on Google’s complaints vis-a-vis China.

Hypercritical by John Siracusa, or, The Tao of Editing.

A test of input device speed for a 221-word passage.

Sometimes a site needs more access to next and previous entries than ExpressionEngine’s built-in next/previous tags provide.

With the Nearby Entries plugin, you can display not just one but any number of next and previous links. Order them not only chronologically by entry date but by edit date or expiration date or even alphabetically by title. Filter them using standard weblog:entries parameters such as status, category, author and custom fields. And display their custom fields.

For more information, see the docs.

The price per ExpressionEngine installation is $15, it works for both EE v1 and v2, and it’s free to try before you buy.

ExpressionEngine Forums threads where Nearby Entries is mentioned as a solution:

Mon 18 Jan ’10
4:11pm

Terry Evans

This extension loolks really great.

Say I have a weblog and I want to show the next previous entries of only the currently viewed weblog entry’s author.  Is it possible to filter entries by author?

Mon 18 Jan ’10
4:15pm

Adam Khan

Yes, there’s an author_id parameter, documenting it now.

Mon 18 Jan ’10
4:39pm

Terry Evans

Awesome. This solves a major hurdle for me. Sending $$ to you today.

Mon 18 Jan ’10
4:53pm

Adam Khan

Excellent, post here if any problems. Remember the debug=“y” parameter can be helpful if you’re not getting the results you expect.

Mon 18 Jan ’10
5:51pm

Adam Khan

My mistake, the reason the author_id parameter wasn’t documented is because it wasn’t there. Now added in v1.0.3.

Thu 21 Jan ’10
2:53am

Steve Hurst

It figures, I just solved this issue with custom query tags… where were you a month ago? :)

Fri 29 Jan ’10
9:45am

shine

Hi Adam,

Using the above example returns:

Notice: Undefined variable: output in /home/club/public_html/admin/plugins/pi.nearby_entries.php on line 364

Notice: Undefined variable: output in /home/club/public_html/admin/plugins/pi.nearby_entries.php on line 364

I have enabled php for the template. I am basically trying to use the plugin to mimic something textpattern or wordpress does out of the box whereby you can link to next and previous entries in the same weblog.

e.g. http://www.opensourcecms.com/demo/1/85/Textpattern demo showing linking to next and previous at the bottom.

Any help would be great. Cheers!

Shine

Fri 29 Jan ’10
3:01pm

Adam Khan

Shine,

I’ve updated to v1.0.4 so that there won’t be a PHP notice from if the $output variable never gets defined.

A couple of things: are you sure you even need this plugin? If you just need a simple single next and previous from the same weblog, EE’s own built-in next and previous tags should be fine.

If you’re not getting any output at all, try the debug=“yes” parameter and see what it tells you.

Fri 29 Jan ’10
3:40pm

shine

Adam thanks for you quick response and fix.

I have looked at the built-in ee next and previous tags over at http://expressionengine.com/docs/modules/weblog/entry_linking.html

I was unaware I could do what I wanted with the built-in tags because I was not getting any output.

For example I have a weblog called spring collection. I then have for example 10 entries called tops, jeans, shoes etc etc.

I simply want the user to land on the page and view the latest entry and then have a button to have a link to the next and previous entries within the same weblog.

I assumed that your plugin was necessary to get this working.

Just will have to play about with both options to see if I can execute what I want.

Thanks once again.

Shine

Tue 23 Feb ’10
8:01pm

Tyler

I have just set the this_weblog (text) and this_urltitle (segment var) but still get no output. I have set debug to “yes” and I get this

Method: prev

This entry ID:

Prelim query:

Raw results: Array

Fields SQL:

Nearby Entries errors:

If there’s no entry_id there must be both a url_title and a weblog_name.

It looks like its not pulling the url_title / weblog to determine which entry it should be. Please help. Thanks!

Tue 23 Feb ’10
11:33pm

Adam Khan

Tyler, you’re right, it’s a bug introduced with v1.1, making the plugin compatible with both EE v1 and v2. Try the new version, v1.1.1, that should address the problem. (Good to see the debug option in use!)

Tue 23 Feb ’10
11:43pm

Tyler

Now were talking! Does exactly what I want. Brilliant plug-in!

Tue 23 Feb ’10
11:50pm

Adam Khan

Thanks, Tyler, pleased to hear it.

Tue 23 Feb ’10
11:58pm

Tyler

Using it with Low Seg2Cat to completely free up the URL structure in EE.

Wed 24 Feb ’10
9:37am

Adam Khan

> Using it with Low Seg2Cat to completely free up the URL structure in EE.

Crazy sh*t. Would be interesting to see an article on this.

Sun 28 Feb ’10
11:55pm

trif3cta

Fantastic plugin idea, although I’m having the same issue that Tyler was. I’m using 1.1.1.

I’m providing this_urltitle=’{segment_x}’ and this_weblog=‘channel_name’ in debug mode and getting back:

If there’s no entry_id there must be both a url_title and a weblog_name.

Thanks for the help.

@Tyler - pls do share, that sounds wicked.

Mon 1 Mar ’10
9:22am

Adam Khan

trif3cta, are you using Multiple Site Manager?

Mon 1 Mar ’10
3:16pm

trif3cta

Nope. My setup is like so:

/staff/profile/name

Name (segment 3) is what I want to key off, and I have a channel called staff.  So this_urltitle=”{segment_3}” this_weblog=“staff” gives me the error.

The entry ID method returns the right data, however it’s not what I need in this particular case.

Thanks so much for the help.

Mon 1 Mar ’10
5:59pm

Adam Khan

trif3cta, it wasn’t working in EEv2. Try downloading v1.1.2.

Mon 1 Mar ’10
7:59pm

trif3cta

Thanks Adam, that seemed to fix it. 

For some reason I can’t run both functions in the same template, whichever one listed first outputs the results of the query and the other one is blank (or in debug mode, it gives the (If there’s no entry….).

Forgive me if I’m being dense.

Mon 1 Mar ’10
8:58pm

Adam Khan

trif3cta, the density is all mine. Fixed in v1.1.3…

Tue 2 Mar ’10
2:42am

trif3cta

Works like a charm. Gracias.

Post a comment

Name:

Email:

Location:

URL:

Your comment:

Remember my personal information
Notify me of follow-up comments?

Please enter the word you see in the image below: