Forum

 

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
removing the 'part of the series' text
14 February, 2010
5:51 am
Rich Brown
Guru
Forum Posts: 295
Member Since:
13 July, 2009
Offline
21

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.

Rich Brown Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
14 February, 2010
6:27 am
Ben Miller
Moderator
Forum Posts: 383
Member Since:
18 June, 2009
Offline
22

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 Miller
Pathways Church, Appleton, WI, USA
14 February, 2010
6:58 pm
Rich Brown
Guru
Forum Posts: 295
Member Since:
13 July, 2009
Offline
23

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 Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
14 February, 2010
7:37 pm
mwbarker
Member
Forum Posts: 5
Member Since:
20 January, 2010
Offline
24

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?

14 February, 2010
8:48 pm
Rich Brown
Guru
Forum Posts: 295
Member Since:
13 July, 2009
Offline
25

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.

Rich Brown Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
15 February, 2010
5:08 am
mwbarker
Member
Forum Posts: 5
Member Since:
20 January, 2010
Offline
26

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.

15 February, 2010
6:13 am
Tel7
Enthusiast
Forum Posts: 29
Member Since:
21 January, 2010
Offline

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:

'[tags_phrase]' => '<?php if (sb_print_tags($sermon["Tags"]) != "") { ?><p class="sermon-tags">Tags: <?php sb_print_tags($sermon["Tags"]) ?></p><?php } ?>',

Please put this, instead:

'[tags_phrase]' => '<?php if ($sermon["Tags"][0] != ""){ ?><p class="sermon-tags">Tags: <?php sb_print_tags($sermon["Tags"]) ?>.</p><?php } ?>',

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

15 February, 2010
1:42 pm
Rich Brown
Guru
Forum Posts: 295
Member Since:
13 July, 2009
Offline

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

Rich Brown Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
15 February, 2010
5:52 pm
Tel7
Enthusiast
Forum Posts: 29
Member Since:
21 January, 2010
Offline
29

Hi webservant,

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!

Later…Terry

23 February, 2010
2:29 am
Rich Brown
Guru
Forum Posts: 295
Member Since:
13 July, 2009
Offline

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 Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
23 February, 2010
3:22 am
Tel7
Enthusiast
Forum Posts: 29
Member Since:
21 January, 2010
Offline

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

23 February, 2010
4:05 am
Rich Brown
Guru
Forum Posts: 295
Member Since:
13 July, 2009
Offline
32

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

'[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 Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
23 February, 2010
5:39 am
Tel7
Enthusiast
Forum Posts: 29
Member Since:
21 January, 2010
Offline
33

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

23 February, 2010
5:58 am
Rich Brown
Guru
Forum Posts: 295
Member Since:
13 July, 2009
Offline
34

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:

<div class="sermon-browser-results">
<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>
Rich Brown Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
23 February, 2010
6:23 am
Tel7
Enthusiast
Forum Posts: 29
Member Since:
21 January, 2010
Offline
35

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.

23 February, 2010
12:57 pm
Rich Brown
Guru
Forum Posts: 295
Member Since:
13 July, 2009
Offline
36

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.

Rich Brown Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
23 February, 2010
9:49 pm
Tel7
Enthusiast
Forum Posts: 29
Member Since:
21 January, 2010
Offline
37

Hi webservant,

I'd like to test your dictionary.php code – ALL of it.

If it's still identical to the one you posted before, let me know, otherwise pls post the current version here, now.

Thanks.

23 February, 2010
10:01 pm
Tel7
Enthusiast
Forum Posts: 29
Member Since:
21 January, 2010
Offline
38

Cancel my last order, pls Rich (webservant).

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.

23 February, 2010
10:37 pm
Tel7
Enthusiast
Forum Posts: 29
Member Since:
21 January, 2010
Offline
39

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 <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.

24 February, 2010
12:32 am
Rich Brown
Guru
Forum Posts: 295
Member Since:
13 July, 2009
Offline
40

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.

Rich Brown Aisquith Presbyterian Church Parkville, Maryland, USA sermons.aisquith.org
Forum Timezone: Europe/London

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)

 

Comments are closed.