Welcome, Guest
Username Password: Remember me

override helper
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: override helper

override helper 08 Apr 2010 17:42 #2055

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

Is there a way to override a helper?

Thanks!

Re:override helper 08 Apr 2010 18:21 #2057

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Do you mean one of the helper files in /helpers?

Those are needed for the component to function. What are you trying to accomplish?
"You shall know the truth and the truth shall set you free." JC

Re:override helper 11 Apr 2010 00:14 #2058

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

Sorry for the late reply. I want to add a teacher thumbnail in study list layout and create a custom layout as oppose to the default template capability but there is not way of doing it by just using the view tmpl override, so I have to hack the core helper files. I remove all the table tags definition in listing.php and modified some files, please check out:

www.lakeave.org/Biblestudy/studieslist.html

Is there a way to set a default Study Series when I go to this link and set the default sort to Ascending instead of Descending?

By doing this hacks, I guess it prevented me to apply updates. Hopefully the upcoming v6.2 would have a flexible template system.

Thanks Tom!

Re:override helper 11 Apr 2010 08:25 #2059

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Hi Jack - yes, 6.2 will allow custom layouts. It should be coming out soon. One particular task has slowed down development. As soon as the team solves it we will release it for testing.

I think you can select a particular series for a menu item to go to - you would do that when you create the menu item link under Jooma's menu tab - and 6.2 will allow you to set a default sorting order by id, teacher, or series title.

Hope this helps!

Tom
"You shall know the truth and the truth shall set you free." JC
Last Edit: 11 Apr 2010 08:25 by Tom.

Re:override helper 12 Apr 2010 13:02 #2063

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

Glad to hear that v6.2 allows custom layout. Individual Series Layout will not take me to the same layout as Study List Layout but anyways that's minor layout issue.

I also modified some template code to let user define AVReloaded width & height under Media tab (Template), I noticed this when I'm using a local MP3 file and the popup iframe size has a default width=500 height=500 I believed. While I can define the width & height when using {mp3remote} but there is not way to define it when the file is local and using AVR player.

One last question with the Study List Layout, I'm having issues with Download (compatiblity No) sometimes it works, sometimes not. Is there any quick fix to this? If I set it to Compatibility Yes then it works properly but I see the full path to the MP3 and I also see joomlabiblestudy.org/router.php?file... my question is, may I know what does the router.php do? Maybe I could create the same router.php in my webserver so it's now pointing to joomlabiblestudy.org?

Thanks,

Jackson

Re:override helper 12 Apr 2010 14:18 #2064

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Sorry you are having trouble with downloads. Mainly this happens with curl_fopen is disabled.

This is the contents of the router file:

<?php
$file = $_GET['file'];
$size = $_GET['size'];
 
//Check url for "http://" prefix, and add it if it doesn't exist
if(!eregi('http://', $file)) {
$file = 'http://'.$file;
}
header("Content-Length: ".$size);
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=".basename($file));
header("Content-Type: application/mp3");
header("Content-Transfer-Encoding: binary");
readfile($file);
?>


I'll look into defining defaults that the user can change for the AVR.
"You shall know the truth and the truth shall set you free." JC
  • Page:
  • 1
  • 2
Time to create page: 0.69 seconds