Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2005-05-08 15:06:47

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

Re: [plugin] [ORPHAN] ob1_pagination

< txp:ob1_googlenav outputlastfirst=“0” / >

Are you running RC3?


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

#22 2005-06-07 16:55:34

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [plugin] [ORPHAN] ob1_pagination

I really like this plugin I struggled for a while but got it working very simply.

I am wondering about a couple of things:

1) how can I add this to the top and bottom of the page? I tried this, but to no avail – it just won’t show, not sure what I’m doing wrong could be any number of things!

2) this is a little…extravagant but basically is there anyway I could have someting like the google job where the letters hang over the numbrs? so for example

O b e e w w w w w w w w w a N First 1 2 3 4 5 6 7 8 9 10 11 12 13 etc

You get the idea – I guess it would be quite difficult to implement, but well it couldn’t hurt to ask how to do this if it was possible.

Thanks for a very handy plugin.

Offline

#23 2005-06-07 18:06:49

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

Re: [plugin] [ORPHAN] ob1_pagination

sekhu,

1. It needs an txp:article (or equal) tag to be first called before it can be used since otherwise some variables it uses have not been set yet. Solution: Create a txp:article call (or maybe custom) that calls up exactly what you usually call up but with a blank form to it, meaning it doesn’t show any text. This, ofcourse, means it makes another call to the database but if you can live with it then do it.

2. What letters are you thinking of? Sectionname, sitename? And yes, it would be a bit to do in the plugin. First of you need to know what letter to repeat and where. If it’s a static word it would be easier but still. Sure, it’s doable but not a feature I personally would implement since I do not see a use for it. You might think by the name of the plugin it would have this feature but …


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

#24 2005-08-15 15:17:47

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] ob1_pagination

seku,

I think you can use something like <code><txp:article pgonly=“1” /> <txp:ob1_googlenav /> <txp:article limit=“6” /> <txp:ob1_googlenav /></code> to output the googlenav at the top. the key is the pgonly attribute on the first article tag.

I am also having problems with outputlastfirst=“0”. The first and last links still show up no matter what. I am using Textpattern 4.0

Offline

#25 2005-08-15 15:37:50

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] ob1_pagination

Looking through your code it doesn’t seem that there is a check to see if outputlastfirst=0

Offline

#26 2005-08-17 00:01:19

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

Re: [plugin] [ORPHAN] ob1_pagination

tinyfly,
It could be that it’s a feature that I thought I wrote in there but forgot in the end. When I get back from my holiday I’ll check.


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

#27 2005-10-19 15:27:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,342
Website

Re: [plugin] [ORPHAN] ob1_pagination

I’ve been using the plugin for some time now and I find it wonderful. Recently I noticed that the plugin generates XHTML validation errors especially when used in section specific navigation.

This can be corrected easily by changing all the <code>&</code>s in lines 36-43 to <code>& amps;</code>

Last edited by colak (2005-10-19 15:28:19)


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#28 2005-10-19 15:32:18

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] ob1_pagination

What do you mean by “section-specific” Colak? I’m using this myself in different sections but I’m not seeing validation errors.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#29 2005-10-20 12:29:42

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,342
Website

Re: [plugin] [ORPHAN] ob1_pagination

> thebombsite wrote:

> What do you mean by “section-specific” Colak? I’m using this myself in different sections but I’m not seeing validation errors.
Hi Stuart
i can describe how the plugin responds to my installation which is currently sv1040

I use the googlenav for article_lists. When I view a general list of the site ie <code><txp:article limit=“10”/></code>. All is fine. When I click in a category list or a section list the ampersands in the url are not valid xhtml ie instead of producing links like <code><a href=”?pg=2& amp;c=articles” title=“Page 2”>2</a></code> it produces <code><a href=”?pg=2&c=articles” title=“Page 2”>2</a></code>

note that i added a space between the & and the amp; for PunBB to show the encoding.

Last edited by colak (2005-10-20 12:31:31)


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#30 2005-10-20 12:32:11

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: [plugin] [ORPHAN] ob1_pagination

Ah! I’m not using it for a category listing. I can see the problem though. Thanks for the info.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB