Welcome, Guest
Username Password: Remember me

Teachers List Layout - No Image of a teacher
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Teachers List Layout - No Image of a teacher

Teachers List Layout - No Image of a teacher 29 Jan 2010 18:30 #1736

  • Jack L
  • OFFLINE
  • Junior Boarder
  • Posts: 29
Hi Tom,

I found a bug (maybe) in Teachers List Layout, the image of a teacher will no appear, at line 47 of components/com_biblestudy/views/teacherlist/tmpl/default.php I changed the code:

From:
if ($item->teacher_thumbnail && $admin_params->get('teachers_imagefolder')) { $i_path = 'images/'.$admin_params->get('teachers_imagefolder/') . $item->teacher_thumbnail;}

To:
if ($item->teacher_thumbnail && $admin_params->get('teachers_imagefolder')) { $i_path = 'images/'.$admin_params->get('teachers_imagefolder') .'/'. $item->teacher_thumbnail;}

The trailing / seems to break the path and defaults to images/

Is this the right fix for this? I'm using version 6.1.3.

Thanks!

Re:Teachers List Layout - No Image of a teacher 30 Jan 2010 08:30 #1738

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Good catch. We'll get that fixed!

** Fixed in 6.1.3 update 4**
"You shall know the truth and the truth shall set you free." JC
Last Edit: 30 Jan 2010 08:37 by Tom.

Re:Teachers List Layout - No Image of a teacher 30 Jan 2010 16:03 #1740

  • Jack L
  • OFFLINE
  • Junior Boarder
  • Posts: 29
Hi Tom!

Still missing a / at the end of the folder name like: src="images/sermonsPastor.jpg" where sermons is the folder I created and Pastor.jpg is the teacher's image.

Thanks!

Re:Teachers List Layout - No Image of a teacher 01 Feb 2010 07:50 #1747

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
This will be fixed in 6.1.4
"You shall know the truth and the truth shall set you free." JC
  • Page:
  • 1
Time to create page: 0.53 seconds