Well, you've got me stumped. One more silly question, before I give up: After you changed "Preached" to "Presented" in dictionary.php, are you sure you uploaded the file to the right spot on the server? Another way of asking the same question: Are you sure that the dictionary.php file you just posted matches the one that is currently running on your server?
Sorry for asking these annoying questions, but it is the only thing I can think of right now.
Ben, I have gone as far as to delete dictionary.php, and when I reactivate SB it still works. There has to be another copy of dictionary.php in there somewhere. It's 12:51 am here so I am going to bed. I will look at this tomorrow.
Rich Brown Webmaster, Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
One other thought I just had: are you running any caching plugins, such as wp-cache or WP Super Cache? If so, that might explain the behavior you are seeing.
Ben, I have looked, literally, in every single folder on the server. I have deleted unused folders, and even looked for hidden files. I am not runnign, nor have I ever run, any caching plugins. The odd thing is, the fix (for No Series) works. It's only that word that appears incorrectly. I am not a programmer, so what I think likely happened is that I misplaced a quote, a comma, or a space right before the insertion of the code. It's not a huge issue, and frankly, I could obsess over it forever – so I will leave it be. When we get a new release, that will (hopefully) wipe out whatever I have done to cause the behavior.
Rich Brown Webmaster, Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
Maybe I'm missing something here, but aren't these in the actual templates themselves (Sermons > Templates)? I know I have not read the entire thread here, but the search results template contains "Preached by" and the sermon page contains "preached at a". Those are literal strings, not tags. Just checking the obvious, but have you looked at your templates?
Maybe I'm missing something here, but aren't these in the actual templates themselves (Sermons > Templates)? I know I have not read the entire thread here, but the search results template contains "Preached by" and the sermon page contains "preached at a". Those are literal strings, not tags. Just checking the obvious, but have you looked at your templates?
Hi MW – yes, I have triple-checked my templates. It's not in there.
Rich Brown Webmaster, Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
If it's not in there, maybe the easiest thing to do would be to put them back in there instead of using a dictionary.php file for that part. Just a thought.
Post edited 6:18 am – 15 February, 2010 by Tel7 Post edited 6:20 am – 15 February, 2010 by Tel7 Post edited 6:22 am – 15 February, 2010 by Tel7 Post edited 6:27 am – 15 February, 2010 by Tel7 Post edited 6:30 am – 15 February, 2010 by Tel7
Hi Ben,
Thanks heaps for the pointer re the tags not displaying fix. Works for me!
Regarding your comment to webservant re the literals in the template, yes, they are usually there, but my patches move them to the dictionary.php file, so they can be displayed only when those fields contain significant stuff.
Hi all,
Regarding my previous post re the patch to avoid displaying the "Tags:" label when there are no tags, I have now tested that untested part of my code and found it wanting (sorry), so here's the (tested) fix.
Where I had this:
I assume that's right, but I'm new to PHP and I'm guessing at the array syntax, but it seems to work. PHP gurus feel free to enlighten me if I'm mistaken.
Hi webservant,
Sorry to hear of your woes with one of my patches. Please don't give up yet.
I installed your dictionary.php code and it worked (and even put "Presented at a…" on the Sermon page), so that looks good (apart from lines 25 and 60 which have not pasted cleanly, because this silly forum can't seem to handle posting the word 'embed' in square brackets. Is this a good time to tell you that the template *must* be saved *after* changing dictionary.php, to activate the dictionary.php change, as mentioned in the comments of sermon.php, which say "dictionary.php – Translates the template tags into php code. Used only when saving a template.").
I have a few questions for you which might help us sort this:
1. What versions of WordPress and SermonBrowser are you using?
2. Have you been saving your template *after* your changes to dictionary.php (this needs to be done even when the template isn't changing)?
3. When you save dictionary.php, does it say "File edited successfully." near the top of the page?
4. When you *subsequently* save the template, does it say "Templates saved successfully." near the top of the page?
5. Could you please post your "Sermon page" template here for analysis. Just if you have the energy.
And for my personal benefit:
6. I like your site's theme. What is it called and how much does it cost (or is it free)?
Hi again all,
Does anyone know where the SermonBrowser templates are stored? When I change the template, I don't see any files getting updated. Or is it somewhere in the database (where?)?
And to get further off topic (sorry), while I've got you all trapped here, can anyone recommend any *free* WP themes which are appropriate for church-style websites (as opposed to the traditional WP themes which are designed for blogs)?
Thanks.
Post edited 1:53 pm – 15 February, 2010 by webservant Post edited 1:54 pm – 15 February, 2010 by webservant
Terry – Indeed, I had not saved the template after I edited dictionary.php. When I did that (just now), the word "presented" appeared just where I wanted it. Thanks!!!!
Glad it worked out for you! Sorry I didn't mention the template saving order earlier. I learned it by trial and error, but just noticed the comment about it in sermons.php yesterday, when looking into your issue.
And thanks for the theme link. Much appreciated, bro!
Post edited 2:32 am – 23 February, 2010 by webservant
Terry – one minor glitch that I noticed. When I click on the hyperlink for a series, it used to give me all the sermons in that series. Now it just takes me back to the Search Results page. See this link, and click on the "Advent 2009″ series.
Rich Brown Webmaster, Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
I see the problem on your site, but I don't yet see the cause. The code from your last post of dictionary.php looks OK, and that code works for me I think. On your site, fails only on the Sermon page, not on the Search results page, right?
Pls post (again) the lines of code which contain "[series_phrase1]" & "[series_phrase2]", from dictionary.php and the Templates.
Pls also tell me what version of WP and the SermonBrowser you're using.
I see the problem on your site, but I don't yet see the cause. The code from your last post of dictionary.php looks OK, and that code works for me I think. On your site, fails only on the Sermon page, not on the Search results page, right?
Pls post (again) the lines of code which contain "[series_phrase1]" & "[series_phrase2]", from dictionary.php and the Templates.
Pls also tell me what version of WP and the SermonBrowser you're using.
Thanks.
Terry
'[series_phrase1]' => '<?php if ($sermon->series != "-") { ?> (Part of the <a href="<?php sb_print_series_link($sermon) ?>"><?php echo stripslashes($sermon->series) ?></a> series)<?php } ?>',
'[series_phrase2]' => '<?php if ($sermon["Sermon"]->series != "-") { ?>Part of the <a href="<?php sb_print_series_link($sermon) ?>"><?php echo stripslashes($sermon["Sermon"]->series) ?></a> series.<br /><?php } ?>',
WordPress v. 2.9.1
SermonBrowser v. 0.43.5
Rich Brown Webmaster, Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
Looks good, webservant (which is bad news, of course, and we all know who tries to make bad things look good).
I'm running low on ideas, so as I grasp at straws, pls humour me by saving your:
- dictionary.php again, THEN your:
- Template again,
testing it again, and reporting back…again.
Looks good, webservant (which is bad news, of course, and we all know who tries to make bad things look good).
I'm running low on ideas, so as I grasp at straws, pls humour me by saving your:
- dictionary.php again, THEN your:
- Template again,
testing it again, and reporting back…again.
Thanks.
Done, in that order… and the same thing happens.
Rich Brown Webmaster, Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
I tested my code again now, and it now fails. Maybe I tested it wrongly before. Now I have an environment to look into this properly. I'll have to get back to you. Later.
Sorry – webservant has found a bug in my above posted code, which was meant to display the series "phrase" only when the sermon is part of a series. It did that, but the link didn't work correctly (see details above).
Please change my code in dictionary.php: function sb_sermon_page_dictionary(), from this:
'[series_phrase2]' => '<?php if ($sermon["Sermon"]->series != "-") { ?>Part of the <a href="<?php sb_print_series_link($sermon) ?>"><?php echo stripslashes($sermon["Sermon"]->series) ?></a> series.<br /><?php } ?>',
to this:
'[series_phrase2]' => '<?php if ($sermon["Sermon"]->series != "-") { ?>Part of the <a href="<?php sb_print_series_link($sermon["Sermon"]) ?>"><?php echo stripslashes($sermon["Sermon"]->series) ?></a> series.<br /><?php } ?>',
After saving the above change to dictionary.php, remember to save the template again, even if you're not changing the template itself. Saving the template will activate your change to dictionary.php, as noted in sermon.php.
Sorry for wasting your time, and thanks for bringing this to my attention, webservant.
Please let me know if there are any more problems.
Sorry – webservant has found a bug in my above posted code, which was meant to display the series "phrase" only when the sermon is part of a series. It did that, but the link didn't work correctly (see details above).
Please change my code in dictionary.php: function sb_sermon_page_dictionary(), from this:
After saving the above change to dictionary.php, remember to save the template again, even if you're not changing the template itself. Saving the template will activate your change to dictionary.php, as noted in sermon.php.
Sorry for wasting your time, and thanks for bringing this to my attention, webservant.
Please let me know if there are any more problems.
First, it works. Thanks!
Second – you're not wasting our time. I feel like I am wasting yours! I am not a programmer – I am a dangerous amateur with a day job that has nothing to do with web design. I am extremely grateful to you and everyone else here who volunteers their time to help.
Rich Brown Webmaster, Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org