Topic RSS
12:01 pm
6 September, 2011
Offline1:29 pm
7 September, 2011
Offline6:08 pm
9 September, 2011
Offline2:56 pm
10 September, 2011
OfflineI too am having this problem, but not only with preachers: it is also with services and sermon series as well. The lists consist of the first item – nothing added below that, which leaves me with no way to edit or delete the other entries.
UPDATE: I have fixed this problem by reverting to version 0.43.5. So if the developers have svn, the problem seems to reside in a change between then and now (10 Sept 2011).
I am still having no luck uploading files.
9:48 am
6 September, 2011
Offline9:20 pm
12 August, 2010
OfflineRabbi Raphael Bearmant said:
When I add a new preacher it IS added to the Database because his name appears in the combobox to choose from when I add a sermon but on the preacher page only the first preacher is visible. Could anyone help?
TIARB
Same problem – i added preachers – they do not show up so i added again – then i had them multiple time and no way to delete – until you add a sermon then they show up – but if you want to delete someone you must delete the sermon first – then they don't show up to delete. i went into database and deleted them manually- but this should be fixed, eh?
6:06 pm
22 October, 2011
OfflineThe problem is in admin.php. They added code to display the number of sermons preached by a preacher but it broke something. I am not skilled in MYSQL so maybe someone can see what needs fixed but here is a temp fix to show all the preachers. It will just have a blank spot under "sermons" in the admin…
In admin.php, change the following line (near line 550):
$preachers = $wpdb->get_results("SELECT {$wpdb->prefix}sb_preachers.*, COUNT({$wpdb->prefix}sb_sermons.id) AS sermon_count FROM {$wpdb->prefix}sb_preachers LEFT JOIN {$wpdb->prefix}sb_sermons ON {$wpdb->prefix}sb_preachers.id=preacher_id GROUP BY preacher_id ORDER BY name ASC");
to:
$preachers = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}sb_preachers ORDER BY name asc");
It turns out that a similar problem is there for the "Services" list. Here's how to fix that as well:
In admin.php, change the following line (near line 600):
$services = $wpdb->get_results("SELECT {$wpdb->prefix}sb_services.*, COUNT({$wpdb->prefix}sb_sermons.id) AS sermon_count FROM {$wpdb->prefix}sb_services LEFT JOIN {$wpdb->prefix}sb_sermons ON service_id = {$wpdb->prefix}sb_services.id GROUP BY service_id ORDER BY name ASC");
to:
$services = $wpdb->get_results("SELECT s.*, m.id AS mid FROM {$wpdb->prefix}sb_services AS s LEFT OUTER JOIN {$wpdb->prefix}sb_sermons AS m ON s.id = m.service_id ORDER BY s.name asc");
6:10 pm
22 October, 2011
OfflineLOL, I just went searching to find more people with this problem to help them out and I found this guy already answered it with a better mySQL code (for the preachers anyway). See this post if you want to keep the sermon count.
http://www.sermonbrowser.com/f…..tly/#p3499
Also, using his fix as an example, the correct code for the "Services" should be:
$services = $wpdb->get_results("SELECT {$wpdb->prefix}sb_services.*, COUNT({$wpdb->prefix}sb_sermons.id) AS sermon_count FROM {$wpdb->prefix}sb_services LEFT JOIN {$wpdb->prefix}sb_sermons ON service_id = {$wpdb->prefix}sb_services.id GROUP BY id ORDER BY name ASC");
Most Users Ever Online: 40
Currently Online:
20 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:
Guest Posters: 7
Members: 2066
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 2
Topics: 1071
Posts: 4045
Newest Members: Nixon Designs, zolaperry, tanec69, lbakyl, richdorm, Aaron Velasquez
Moderators: Ben Miller (387)
Administrators: Mark Barnes (425)
Log In
Register
Home



