Topic RSS
Edit frontend.php. Change it in 2 places:
and
. Don't change the one that I did not bold.
Hmm I will check again when I get home but I think that's all I had to do. If anyone else wants to jump in that would be great.
RaffiBearmant said:
Did that and it still says preacher in the filter and everywhere else???
u
Can you send me an URL to your site?
I wonder if, perhaps, you have it cached? Could you clear your browser cache (under Tools->Internet Options in IE), and if you are using Wordpress caching plugin, you may would need to reset that as well.
Then, you would likely need to close the browser and log in fresh.
Just a thought…
Dodgeville United Methodist Church -- Dodgeville, WI
1:50 pm
10 November, 2010
OfflineI'm trying to accomplish the same thing, but having trouble with the One-click filter.
I've made the recommended changes in frontend.php, and it works fine if I use the Drop-down filter type. However, with the One-click filter type, the label "Preacher" is still displayed when that filter is active. I have cleared my cache several times, so that is not the problem.
I would rather use the One-click filter type. How can I change "Preacher" to "Speaker" for the One-click filter type?
(My test site is password-protected, so I cannot readily send a link.)
I've found something you can try if you like. I haven't tried it myself.
First the disclaimer: Always make a backup of your files and your database first before making changes to the PHP code, especially if you are not all that comfortable in PHP programming.
Okay, in frontend.php, inside the sb_print_filters function, find the following line:
Change it to:
If you decide to try this, let us know how it turns out.
12:36 am
10 November, 2010
OfflineBen-Thanks for your suggestion. Though it didn't work, I do believe the solution is in the sb_print_filters function. Around line 853, find this line followed by a nested if-then-else statement:
I'm not very good at php syntax, but I think adding another if-then-else option to this statement would work. It should be similar to the following:
$output .= '<strong>Speaker</strong>: ';
I would really appreciate help with the php syntax on this.
GrammaLindaS, I think I got it. In addition to the change I suggested above, you also need to make these changes to frontend.php:
In function sb_print_filters, find the code at around line 869:
$output .= '<strong>'.ucwords($filter_option).'</strong>: *'.$filter_option.'*';
$output .= ' (<a href="'.sb_url_minus_parameter($filter_option).'">x</a>)';
Just before these lines, insert the following lines:
$output .= '<strong>Speaker</strong>: *'.$filter_option.'*';
$output .= ' (<a href="'.sb_url_minus_parameter($filter_option).'">x</a>)';
Next, in function sb_print_filter_line, find the following code around line 761:
Just before this line, insert the following lines:
else $id_adj = $id;
Then substitute "$id_adj" in place of "$id" in the line you found above, so the new line is:
That seemed to work for me. With this solution, the word "preacher" still shows up in the URLs, but the word "speaker" appears on the page.
Let me know if it works for you.
Most Users Ever Online: 40
Currently Online:
16 Guest(s)
Currently Browsing this Page:
1 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




u
