Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2004-10-01 16:15:55

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

Re: [plugin] [ORPHAN] ob1_title

nardo,

do you use the showsection attribute?
Ex:
<code><txp:ob1_title showsection=“1” /></code>


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

#32 2004-10-01 17:28:07

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

Re: [plugin] [ORPHAN] ob1_title

Boby,

I am not able to reproduce the error so I have some followup questions:

  • Do you use the default template for more then one section?
  • What does your call to the plugin look like?

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

#33 2004-10-02 02:33:36

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] ob1_title

obeewan, this is the code I have in my form “html-head” :

<code><title><txp:ob1_title showsection=“1” separator=” : “ /></title></code>

also I get the same thing as boby – and I use the default template for more than one section

cheers, nardo

Offline

#34 2004-10-02 07:30:57

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

Re: [plugin] [ORPHAN] ob1_title

obeewan, in the head of my default page I have <pre><title><txp:ob1_title showsection=“1” /></title></pre>

Also, I use this default page for almost all my sections (except “about”). This “Sitename separator “ problem appears only on the home page – when no section is selected.

I kinda resolved the problem by setting a name for the default section with the section alias plugin like this <pre><txp:spc_section_alias section=“default” name=“put section name here” /></pre>

Last edited by Boby Dimitrov (2004-10-02 07:31:23)

Offline

#35 2004-10-02 17:31:31

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

Re: [plugin] [ORPHAN] ob1_title

Hmm .. I’ll release an update tomorrow that if section is default, no output is done.


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

#36 2004-10-03 21:59:09

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

Re: [plugin] [ORPHAN] ob1_title

The update has been released and tested. Find it in the download link in the first post or on my website.


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

#37 2004-10-04 09:10:06

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

Re: [plugin] [ORPHAN] ob1_title

I get a 404 on that link… 1.31 seems to be there though…

Offline

#38 2004-10-04 09:18:48

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

Re: [plugin] [ORPHAN] ob1_title

Argh. Uploaded in wrong directory. <del>Moving them with the help of my admin who have access (which I don’t from work). Hang on …</del> <ins>Done.</ins> Download now works.

Last edited by obeewan (2004-10-04 09:23:23)


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

#39 2004-10-05 07:43:20

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

Re: [plugin] [ORPHAN] ob1_title

Not wanting to be an ass, but I think the version number still says 1.31 (ducks behind the desk) :)

Last edited by Boby Dimitrov (2004-10-05 07:50:56)

Offline

#40 2004-10-05 08:14:15

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

Re: [plugin] [ORPHAN] ob1_title

Dratt and double dratt.

I’ll fix it .. Uhmm .. Later :)


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

#41 2004-10-14 18:57:05

spchampion
Archived Plugin Author
Registered: 2004-06-10
Posts: 62

Re: [plugin] [ORPHAN] ob1_title

obeewan,

Man, this plugin is awesome. And it works with my plugin! Just one small bug: at the top of the plugin file, where you’re gathering the information from spc_section_alias, there’s this bit of code:

<pre>
<code>
// Check if the section alias plugin is available, if so, see if the // section has a name, otherwise use default if( is_callable( spc_section_alias_name ) ) { $sectionname = spc_section_alias_name( array( “section”=>$s ) ); if( strlen( $sectionname ) == 0 and $s != “default” ){ $sectionname = $s; } else { $sectionname = “”; } }else{ $sectionname = $s; }
</code>
</pre>

It seems to be that the part where $sectionname=”“ is out of place and would explain nardo’s problem. That entire else statement could probably be eliminated. Or am I misreading this entirely?

Offline

#42 2004-10-14 19:47:00

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

Re: [plugin] [ORPHAN] ob1_title

spchampion,

$sectionname is only set to nothing if spc_section_alias_name is not set and the section currently in is default.

That should do it. That was added to fix nardo’s and Boby’s problem actually and hopefully it has. I’ve tested it with the settings they used without getting the problem (the previous versions did have that problem).

And Boby never mentioned it not working after I released the update.

Anyway, there was a request to add your plugin to the code and was easy to do so why not? ;)


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

#43 2004-10-14 21:57:24

spchampion
Archived Plugin Author
Registered: 2004-06-10
Posts: 62

Re: [plugin] [ORPHAN] ob1_title

Heh… I guess I should add that it wouldn’t work for me without commenting out that line in the else statement (I’m using it for a site I’m developing professionally).

This is how I’m reading it:

<pre>
<code>
// Get the section name
$sectionname = spc_section_alias_name( array( “section”=>$s ) );
// If the section name is of zero length and $s is default,
// set $sectionname to be the same as $s.
if( strlen( $sectionname ) == 0 and $s != “default” ){
$sectionname = $s;
}
// Otherwise, when the section name is not 0 length or $s is not default,
// set $sectionname=”“.
else {
$sectionname = “”;
}
</code>
</pre>

So from what I can tell, in any situation where spc_section_alias_name returns anything at all, this code squashes it and sets it back to “”.

Let me add that having this plugin work with mine is a godsend. Thank you so much for developing it!

Last edited by spchampion (2004-10-14 21:59:33)

Offline

#44 2004-10-15 00:45:12

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] ob1_title

jus so u know, it’s working perfectly… here: http://www.seecroatia.net

thanks obee & spc

Offline

#45 2004-10-15 09:57:18

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

Re: [plugin] [ORPHAN] ob1_title

spchampion,

I’ll look into it.

What I need is the exact way you are calling ob1_title aswell as an example name of a section so I can try and reproduce your problem.
Aswell as what version you are using. (As noted, the latest 1.32 still states that it is 1.31 in the admin > plugins tab).


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