Textpattern Forum

You are not logged in. Register | Login | Help

#1 2004-09-11 03:05:15

obeewan
Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

[plugin] [ORPHAN] ob1_pagination

Name: ob1_pagination
Version: 2.5
Author: Henrik Jönsson
Author URL: revolutioni.se
Modified: 2007-10-13
Paste URL

Summary: This plugin creates a navigation bar as seen on Google when you search for something. It has a wide variety of attributes so you are able to customize it untill you drop.

Update
Now works out-of-the-box in TXP 4. Thanks to gerhard for his fixing it while I was doing else.
Also works with my newly test-released ob1_advanced_search plugin.

I took in consideration featurerequests therefor we see some new attributes coming into the sun and some who have changed a bit. Take a look in the help for the plugin for a full list in the change log.

Renamed
On popular demand I’ve changed the name of the plugin from ob1_googlenav to ob1_pagination. (Also, makes me less prone to get sued by Google ;).

# Name: ob1_pagination v2.5 (compressed)
# Type: Client side plugin
# Creates a Google inspired pagination.
# Author: Henrik Jönsson
# URL: http://rise.lewander.com/
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

H4sIAAAAAAAAA90823LbOJbP9legGVXL7sjUzY4T3TKZdLo7W0k6Fbt3ZiuVSkEkJHFMEQxB
StZ05bf2B/bH9pwD8CaRkpzOw9ZWxbYE4lxxcG4AwwfdzuBPNbgcWAFfCmuoBl34LKfdzyGf
ewGPPRng6JOBxZN4ISOacjWwfhNB5N2x//if/w6U0nMAlZn0OYk8HOnBxEUch4N2O/KUsH2x
5oErItuRyzZOuB5YKxEpQ6Q/sHr2FaHqDixXKCfywpSDPsx9GQkeC8U4+1XKuS+YF6jQi4TL
cm5tnAwyONIlea56V4D3pP3T6cnJez+BaQNWlg8e/PHhzYDVchqL+zjkcSyioA2gFyXQD8IX
XAELCc5n8UIwYtNbwQe5XMpAsRdxHHnTBCEubhY8EuyF790J1rc77I8glFEs3FZK3zHQjga2
ZTRv+54jAiVUe7q5ULwNcO3Tk5/ap6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ziIzKMeH8uyjnw8s+Oyu2YMt54hT81h2KUIHvn7/dvk2b01nzEl/yoRQd
QsfTYZrCbLP6R+DhtSb2QSiZRAD4Rjo8llEl36UWuOG7bItFjvPNoA2dwiTVCrt6DCMZisjf
2Aztzi0kDdk+V0kICbpJ2qRdTalwZ3zNFTXbdG4IwTBtl/LC7KzBStMhuYIiwWa/wN5wd/bY
N7nRnLUlv8dmiWNgizvgiCN8suOpQJtCX4CGADpzhEs+8yZGN0dqozwVnIW973Cr6nCbWsbp
25N7mysHUO+eSe+g1rdyawmka96iNaNUVwl6BY9cuKKX5zC5lYFv3vw8wFPd2XyJs/JbqrUF
Er0Orh9nMuon9MLcHrs5MorgtPyQpeyNvu8FAlMrU5WsC+b/l0fChaX4ILjLkhCzGljuZbZk
aRU6+d3H/xrA/E8Hef83X4FVz+5kpfoLsh1yTVAZ4h710tQxQV9FsXO52Ql2h49L0/cyL/Tp
nDWpeFmTLDg7hMrVtOra3YxFcma6NkzmJsklF5x6R9hJsIkgI5rLCBzwC1/J7DE5ZwgdFAQZ
vnW7TSjXxevAiz2eZVtb+0AfkZr/OmLp0s3pfm9g8Y7b6/Q7130x7Tr9ntN7xp/y2VRMnzx9
9tTtPrGGX/8X80U5S/pCAAA=

Last edited by colak (2011-08-21 02:44:04)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#2 2004-09-11 03:25:02

obeewan
Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_pagination

Found the first bug. It currently does not add the $c variable if set. I will fix this when I get up in the morning (5am currently).

Dratt and double dratt!


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#3 2004-11-01 02:24:10

alicson
Member
Registered: 2004-05-26
Posts: 361
Website

Re: [plugin] [ORPHAN] ob1_pagination

obeewan,
ob1_googlenav is a truly excellent plugin…
just one request: the ability to change the order of the tabs… such as to put firsttext before previous text, or reverse the pagination order….
also, “liselected” and “liempty” do not appear to be responding for me.. is that anything to do with your $c variable thing?

thank you for making this!


textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki

Offline

#4 2004-11-02 10:10:42

obeewan
Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_pagination

alicson,

The problem with categories have been solved in the 2.0 version, just hadn’t written about it, my bad.

liselected and liempty works fine for me. I’ve found the use of it on your site so how do you call it alicson? <txp:ob1_googlenav whatgoeshere? />

Regarding the request. I guess it ain’t mission impossible to do what you ask for, allthough I am not exactly sure what you mean :)

Do you mean like:

  • < older
  • < previous
  • 3
  • 2
  • 1
  • next >
  • current >

?


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#5 2004-11-02 12:33:04

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

Re: [plugin] [ORPHAN] ob1_pagination

> alicson wrote:
> also, “liselected” and “liempty” do not appear to be responding for me..

“liselected” also won’t work for me – otherwise it’s a great plugin!

Last edited by ChrisJ (2004-11-02 12:33:17)

Offline

#6 2004-11-02 13:28:32

obeewan
Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_pagination

Ahaaaa .. Now I know what the problem is! My detail page is flunky also heh .. To use linkselected you also have to set linkcurrent to 1 so the current page becomes a link. Otherwise it will be set to the liempty class. This is for now. I’ll fix so the current get’s set even if the current page is not using a link.

Will this solution work for you both? Vote NOW! ;)

Last edited by obeewan (2004-11-02 13:42:58)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#7 2004-11-02 16:09:59

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

Re: [plugin] [ORPHAN] ob1_pagination

yo baby, yo baby, yo baby yo! I’m voting for Carrie Bradshaw!

<small>(nothing to worry about, it’s only a reaction on foggy november weather)</small>

edit:
BTW, any chance for liselectedtext attribute?

Last edited by ChrisJ (2004-11-02 16:41:28)

Offline

#8 2004-11-02 18:38:31

obeewan
Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_pagination

ChrisJ,

You mean a replacement to the number that is currently selected? Hmm .. Shouldn’t be that hard to implement ..


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#9 2004-11-02 23:17:09

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

Re: [plugin] [ORPHAN] ob1_pagination

Hi, obeewan
Oh, what my today somehow blurred mind also tried to say – and the fingers didn’t type: text<strong>title</strong>, to add something like title="Current page" to the liselected.

Offline

#10 2004-11-03 13:05:43

obeewan
Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: [plugin] [ORPHAN] ob1_pagination

Ah .. Sure .. No problemo. Starting my “off-job” week tomorrow but will be a bit bizzy (moving to a new apartment etc) but I’ll do my best .. =)

Last edited by obeewan (2004-11-03 19:23:11)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

Board footer

Powered by FluxBB