Topic RSS
Ben Miller said:
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.
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.
7:37 pm
20 January, 2010
OfflineMaybe 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?
mwbarker said:
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.
6:13 am
21 January, 2010
OfflineHi 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:
Please put this, instead:
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.
Terry
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!!!!
As to my template, it is FREE and it is called, "Panorama". It can be found here: http://themocracy.com/?s=panorama
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.
3:22 am
21 January, 2010
OfflineHi webservant,
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
Tel7 said:
Hi webservant,
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
WordPress v. 2.9.1
SermonBrowser v. 0.43.5
Tel7 said:
Hi webservant,
Code looks same as mine from this distance.
Same version of SermonBrowser as I have.
I'm on WP 2.9.2, but I doubt that's the cause.I was also asking for the respective lines from the Templates, pls.
Terry
Sorry, here is my entire template file for the Sermon page. I really appreciate this:
<h2>[sermon_title] <span class="scripture">([passages_loop][passage][/passages_loop])</span> [editlink]</h2>
<span class="preacher">[preacher_link], [date]</span><br />
[series_phrase2] [service_phrase2]
<div class="sermon-description">[sermon_description]</div>
<p class="sermon-tags">Tags: [tags]</p>
[files_loop]
[file_with_download]
[/files_loop]
[embed_loop]
<br /><br />
[/embed_loop]
<table class="nearby-sermons">
<tr>
<th class="earlier">Earlier:</th>
<th>Same day:</th>
<th class="later">Later:</th>
</tr>
<tr>
<td class="earlier">[prev_sermon]</td>
<td>[sameday_sermon]</td>
<td class="later">[next_sermon]</td>
</tr>
</table>
[esvtext]<br>
[preacher_image][preacher_description]
[creditlink]
</div>
Tel7 said:
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.
10:37 pm
21 January, 2010
OfflineHi all,
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:
to 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.
Tel7 said:
Hi all,
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 <?php echo stripslashes($sermon["Sermon"]->series) ?> series.<br /><?php } ?>',to this:
'[series_phrase2]' => '<?php if ($sermon["Sermon"]->series != "-") { ?>Part of the "><?php echo stripslashes($sermon["Sermon"]->series) ?> 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.
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.
Most Users Ever Online: 40
Currently Online: 0be1
13 Guest(s)
Currently Browsing this Page:
2 Guest(s)
Top Posters:
malpan - 2453
jogen - 2440
VanWatterson - 652
GeraldSebring - 364
LucasWoltman - 362
RandellFeenstra - 362
Member Stats:
There have been 7 guest posters
There are 1936 members
There are 1 moderators
There are 1 admins
Forum Stats:
Groups: 1
Forums: 2
Topics: 971
Posts: 3747
Newest Members: twinton, ellison13579, Daigh, mchunful, jesua, LGRG Design
Moderators: Ben Miller (383 )
Administrators: Mark Barnes (425)
Log In
Register
Home




