On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




“Show Forum/Topic in Page Title” doesn’t

UserPost

1:29 pm
21 May 2008


Grant Barrett

Member

posts 62

1

I updated to SF 3.1 last night on a blog running WP 2.5.1. Everything seems to be fine except that the option for “” doesn't work. The box is ticked. I have unticked it and saved the settings and then re-ticked it and it still doesn't work. None of the page titles show the forum nor the topic. I do run All-in-One-SEO pack, but disabling it did not fix the issue.

1:32 pm
21 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

2

So you don't get the topic title appearing like I do above on this site?

The most probable cause of that is another plugin taking over the title. Do you have any others installed that may massage the page title in any way?

1:46 pm
21 May 2008


Grant Barrett

Member

posts 62

3

No, I have no plugins that do that but All in One SEO, and as I said above, deactivating it didn't fix the problem.

1:55 pm
21 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

4

Can you give me a site/forum link?

1:57 pm
21 May 2008


Grant Barrett

Member

posts 62

5

2:15 pm
21 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

6

OK… so at the top where you have a big yellow rectangle with the words 'Discussion Forum” in it… is that the actual page title of your forum page (as set in Manage > Pages)?

3:06 pm
21 May 2008


Grant Barrett

Member

posts 62

7

Yes, that's right.

5:06 pm
21 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

8

Well there is just the one WP filter to change 'the_title' template tag and that is what I am using but i will investigate.

11:04 pm
23 May 2008


Grant Barrett

Member

posts 62

9

Andy, did you make any headway on this? It doesn't seem to have been remedied in the 3.1.1 update.

12:31 am
24 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

10

None whatsoever but I really don't believe I have anything to remedy. The only thng I can think of is sequencing, if there is another process effecting the title and we need to resequence events. So it might be worth you having a play.


The file: sf-control.php

The line: 123

reads:

add_filter('the_title', 'sf_setup_page_title');

you can alter the sequence by oputtin a number at the end as:

add_filter('the_title', 'sf_setup_page_title', 10);

Low numbers get operated on first, higher number later. Might be worth setting it to 20 or 30 to see of that makes any difference. My best bet still is that this is interference from something.


3:34 am
24 May 2008


Grant Barrett

Member

posts 62

11

None whatsoever but I really don't believe I have anything to remedy


You mean it's not a bug that the Show Forum/Topic in Page Title doesn't work? Even though it used to?


I don't know what could be interfering. Yesterday when I disabled every plugin except SF in order to troubleshoot another problem the forum/topic titles were *still* not showing. Unless deactivated plugins can affect activated plugins, I don't see how this isn't a problem with the new version of SF.


But I'll try that bit of code and see what happens.

3:48 am
24 May 2008


Grant Barrett

Member

posts 62

12

Changing that file in those ways didn't have any effect positive or negative on the display of the forum titles.

5:20 am
24 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

13

Grant,


I know you said that you checked the settings, but want to make sure it looks like this



also, I run All in One SEO on five sites with SPF, so it shouldnt be an issue…

5:48 am
24 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

14

also, if you could please post the value in the wp_options table, the option_value for the option_name sftitle… 


thanks…

7:44 am
24 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

15

Mr Papa said:

also, if you could please post the value in the wp_options table, the option_value for the option_name sftitle… 


thanks…


Are you suggesting this could be a problem with the php serialize statement? It's true we've seen that elsewhere before but why would it be unique to Grant on the page title? Unless it's a php version issue which might be a possibility. But yes - agreed - it might be educational to see what the database holds for this…

7:58 am
24 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

16

yes, its a wild theory, but basically, yes… 

12:15 pm
24 May 2008


Grant Barrett

Member

posts 62

17

This is the contents of that field:


a:3:{s:9:”sfinclude”;s:2:”on”;s:9:”sfnotitle”;N;s:8:”sfbanner”;s:0:”";}

1:01 pm
24 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

18

Thanks Grant. I'll take this away and have an explore.

Mr Papa was right that we have had serialisation problems before. This is a php thing that doesn't always work according to the manual. I'll run this through some tests…

2:36 pm
24 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

19

Well the first thing to say is that your string is identical to my string so it is not the php serialise function that is at fault. Having said that, I guess it could be the unserialise function! I can  think of only one way of testing that and that is to replace the string directly into the database without going through the Admin > Options screen. The warning here, of course, is that if you change any other options this will go back to what it is now but it may, at least, prove one way or the other if this is where the fault lay.

So - if you are happy to try this, the replacement value is:

a:3:{s:9:”sfinclude”;s:1:”1″;s:9:”sfnotitle”;s:1:”0″;s:8:”sfbanner”;s:0:”";}

This basically shows the values as strings instead of booleans which will work fine with the code that reads it in. If this works, it would be useful to know what version of php you are using there. It will also mean, of course, that I will have to re-code quite a bit of the admin options to cater for serialise/unserialise problems that some versions may have.

If, on the other hand it does not do the trick I might have to ask you to do another little code dump for me but let's cross that bridge if we need to.

11:23 pm
24 May 2008


Grant Barrett

Member

posts 62

20

Not only did it not work, but when I went to the SF options, both Show Forum/Topic in Page Title and were checked and the field next to Graphic Replacement URL had an “a” in it. 

11:44 pm
24 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

21

well, did you type it in just like Andy had?  I am not sure why it shows two diff styles of double qoutes…  I hope you just used a good, old normal double quote..


11:46 am
25 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

22

Grant Barrett said:

Not only did it not work, but when I went to the SF options, both Show Forum/Topic in Page Title and were checked and the field next to Graphic Replacement URL had an “a” in it. 


Grant: I will be emailing you - Andy

11:23 pm
25 May 2008


jw

Guest

23

I'm also having the same problem with the page titles. It worked before I upgraded, but doesn't now.

11:41 pm
25 May 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

24

If you are referring to the title in the browser window then this was removed in 3.0.3 and discussed at some length in various threads in this forum.

12:02 am
26 May 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

25

fyi… Grant's problem turned out to be an issue with his page template file…

jw, a link and some other info would help…



Reply to Topic: “Show Forum/Topic in Page Title” doesn’t

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 4 + 12        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

10 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)