Welcome, Guest
Username Password: Remember me

Teacher Image Custom Tag?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Teacher Image Custom Tag?

Teacher Image Custom Tag? 29 May 2011 04:09 #2625

Hi, is there a Teacher image custom tag that can be used on the Study Details page? Thanks!

Re: Teacher Image Custom Tag? 29 May 2011 06:20 #2629

I'm not a export in the custom tag's but they should be locted in the template editor. This is where you can change the info.
Thanks,
Brent Cordis
Joomla Bible Study Team Member
Last Edit: 29 May 2011 06:21 by Brent Cordis.

Re: Teacher Image Custom Tag? 29 May 2011 16:04 #2633

Thank you for the quick response, Brent! I am currently working in the template editor, and have come up with a custom Studies List layout, but in working with the Study Detail View, if I choose to use a custom layout, it does away with the Teacher's photo (not to mention the "Share" feature), and I would really like to add these to my custom Study Detail view. If there is no way to use a custom tag for either of these, is it possible to simply use php coding for these? Thanks!

Re: Teacher Image Custom Tag? 04 Jun 2011 19:00 #2646

I will look into this. Tom is the one to relay know what to do. he will be available soon to help. In the meantime ill look around at the code and see what i can com up with.
Thanks,
Brent Cordis
Joomla Bible Study Team Member

Re: Teacher Image Custom Tag? 05 Jun 2011 16:53 #2649

Thanks so much, Brent!

Re: Teacher Image Custom Tag? 11 Jun 2011 16:35 #2652

  • Tom
  • OFFLINE
  • Moderator
  • Posts: 316
The custom template was actually developed by one of our former team members and he didn't include the share or teacher information.

If you want, try to experiment by copying this code (out of the studydetails main template) into this file:

/site/components/com_biblestudy/views/studydetails/tmpl/default_custom.php starting at line 41

<?php //Social Networking begins here
if ($this->admin_params->get('socialnetworking')> 0)
{ ?>
<div id="bsms_share">
<?php
$social = getShare($this->detailslink, $row, $params, $this->admin_params);
echo $social;
?>
</div>
<?php } //End Social Networking ?>
<table><tr><td>
 
 
<?php if ($params->get('show_teacher_view') > 0)
{ ?>
 
<?php
$teacher_call = JView::loadHelper('teacher');
$teacher = getTeacher($params, $row->teacher_id, $this->admin_params);
echo $teacher;
echo '</td><td>';
}?>
 
 
<?php
if ($params->get('title_line_1') + $params->get('title_line_2') > 0)
{
$title_call = JView::loadHelper('title');
$title = getTitle($params, $row, $this->admin_params, $this->template);
echo $title;
}?>
 
 
</td></tr></table>
</div>


Put it right BEFORE this code:

$details = getStudyExp($row, $params, $admin_params, $this->template);


See what happens and let us know. Perhaps we can make this a part of 7.0 too.
  • Page:
  • 1
Moderators: Richard Hunt
Time to create page: 0.94 seconds