Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#106 2005-10-05 21:29:12

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

Re: [plugin] [ORPHAN] ob1_title

Yes, sorry Els, I was looking at the page rather than the tab. You definitely have :: in the tab. You can sleep more easily now can’t you? :) Can’t say I’ve had the problem though I’m slowly replacing it with TXP tags. Now that we can use things like <code><txp:section title=“1” /></code>, <code><txp:category title=“1” /></code> and <code><txp:page_title /></code> I’m finding I need this plug-in les and less.


Stuart

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

Offline

#107 2005-10-17 22:32:49

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] ob1_title

Hi.
This plug-in seems to work fine for me but just want to say that when in set TXP in debugging status I get the following:
<pre>
Notice: Undefined offset: 0 in /www/exaudi/public_html/justamente/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 48

Notice: Undefined offset: 0 in /www/exaudi/public_html/justamente/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 63

Notice: Undefined offset: 0 in /www/exaudi/public_html/justamente/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 100
</pre>

I dont know what does mean, and again, the plug-in and the site both seem to work fine.

Of course, if I disable ob1_title plugin, those errors dissapear.

What the errors mean? should I change anything?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#108 2005-10-17 22:59:35

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

Re: [plugin] [ORPHAN] ob1_title

They aren’t errors they are only notices. Provided everything is working properly you shouldn’t worry about it. Most of the plug-ins create notices at the moment because most of them haven’t been fully updated to 4.0.1 specification. Keep your site set to “Live”.

Last edited by thebombsite (2005-10-18 14:21:47)


Stuart

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

Offline

#109 2005-10-18 13:13:35

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] ob1_title

Thanks, thebombsite!

I didnt know they werent “errors”, but they look like errors for common people like me!
Of course I will keep my site in “Production”.

I remember now that I reported an “error” (notice) for Manfre’s mem_randimg plugin too. Ups!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#110 2005-10-19 20:29:16

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] ob1_title

I found a ‘solution’ for my abovementioned problem, which was this:

If you have a plugin tag for instance like this:

<txp:ob1_title separator=" :: " order="%sitename,%category,%article" />

and there is a comma in the article title, that comma is converted to the separator ‘ :: ‘ as well. Which looks kind of strange if you even have three commas in an article title like I did.

In the plugin code I changed this line

$arrOb1Order = explode(",",$order);

into this

$arrOb1Order = explode(";",$order);

and changed the tag to

<txp:ob1_title separator=" :: " order="%sitename;%category;%article" />

Of course if you also have ‘;’ in article titles this won’t work ;)

(edited to present code better)

Last edited by els (2007-01-09 18:08:38)

Offline

#111 2005-10-19 21:29:25

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

Re: [plugin] [ORPHAN] ob1_title

You’re getting too good at this Els. :grin:


Stuart

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

Offline

#112 2005-10-19 21:37:45

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] ob1_title

Yeah, I’m very proud of myself, adding exactly one dot ;)

Offline

#113 2005-10-19 22:16:22

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

Re: [plugin] [ORPHAN] ob1_title

Yes but it’s where you put the dot that counts. ;)


Stuart

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

Offline

#114 2005-10-25 16:58:13

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] ob1_title

A suggestion:

Can be added the option to display the site slogan?
It could be the %slogan attribute.

Thanks <small>and excuse my english</small>


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#115 2005-10-27 20:55:45

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] ob1_title

Hi,

I want to share <a href=“http://forum.textpattern.com/viewtopic.php?pid=83109#p83109”>this tip</a> I wrote.
It explains how to strip out HTML tags from article title, when the article title is being showed in the browser title bar.
It’s a combination of two plug-ins: ob1_title and <a href=“http://forum.textpattern.com/viewtopic.php?id=6443”>sab_striphtml</a>.

Maybe, what I did with this two plug-ins can be merged inside ob1_title.
I mean, that by default, ob1_title strips out HTML tags that are in article title (%article).

Thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#116 2005-12-09 00:28:54

jdykast
Member
From: Tennessee
Registered: 2004-12-30
Posts: 119
Website

Re: [plugin] [ORPHAN] ob1_title

On the (non)issue of the undefined offset, are there certain areas of the plugin that can be updated to make it meet 4.0.x specs? I would be glad to work on it if I was pointed in the right direction.

Offline

#117 2005-12-09 00:54:20

Infi
Member
Registered: 2005-05-28
Posts: 75

Re: [plugin] [ORPHAN] ob1_title

> doggiez wrote:

> I found a ‘solution’ for my abovementioned problem, which was this….

Very glad I stumbled on this one. I’ve been wondering what one might do about that. Now, I don’t have to wonder anymore. :D Thanks!

Offline

#118 2005-12-09 09:24:17

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] ob1_title

Glad it can help someone else as well, I really thought I must be the only one having trouble with this ;)

Offline

#119 2006-01-30 12:03:46

ekutsenko
Member
From: Ukraine
Registered: 2005-08-16
Posts: 11
Website

Re: [plugin] [ORPHAN] ob1_title

Great plugin, thank you!

Offline

#120 2006-10-19 09:57:51

Boby Dimitrov
Member
From: Sofia, Bulgaria
Registered: 2004-09-27
Posts: 76
Website

Re: [plugin] [ORPHAN] ob1_title

Just wanted to let you know, that versions 2.x lack integration with spc_section_alias. Versions 1.x have such “integration”, but do not accommodate for the group=”“ parameter.

Offline

Board footer

Powered by FluxBB