Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • Peter Konstantakos Friend
    #129919

    Notice: Undefined index: path in /home/kma/public_html/templates/ja_iolite/ja_templatetools_1.0x.php on line 210

    I get this when I click on this link http://www.idctrading.com/index.php?option=com_philaform&Itemid=35&form_id=1

    Why is this happening?

    Thanks

    Peter Konstantakos Friend
    #255132

    I tried the form with the default Joomla Template and it works fine. So this means that this template is in direct conflict with Phil a Form. Please tell me what i need to do to fix this. Thanks

    Peter Konstantakos Friend
    #255390

    I am getting sick of posting in these forums and not getting any answers. This is the last straw for me. I will never buy anything or nor will I ever use one of your templates ever again or suggest them to anyone.

    I posted this message days ago and not one reply. I am really hate your company. You do nothing to support real businesses who are trying to make a living using your templates.

    You just lost a developer member renewal. I am done with you guys, forever.

    Sherlock Friend
    #255405

    Hi
    I have viewed your topic, but Philaform is a commercial component, i can’t have code to test

    Menalto Friend
    #255414

    I would check the $mosConfig_live_site settings in the configuration.php if that is correct, it seems to me that the error is that it cant find the correct path:

    function getLiveSiteURL() {
    global $mosConfig_live_site;
    $url = parse_url($mosConfig_live_site);
    $livesite = $url['scheme'].'://'.$_SERVER['SERVER_NAME'].($_SERVER['SERVER_PORT']==80?'':':').($url['path']?$url['path']:'');
    return $livesite;
    }

    Lately there has been so many bugs with JA templates and alot of extensions, so i think its about time JA change the way they build templates on.
    If it gonna continue like this, JA needs to build extensions too,since they do the coding so specific.

    Peter Konstantakos Friend
    #255417

    The configuration.php file is correct.

    I never had a problem with phil a form before. It is only when you started making a template config file. I have to get this working the whole site depends on the form.

    I should get my money back for my membership since you guys can’t figure out something that to me any coder worth his weight should be able to figure out.

    Peter Konstantakos Friend
    #255418

    nguoiabcd,

    This is directed at you. YOUR ANSWER IS NOT GOOD ENOUGH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Phil-a-Form is a very common component used on more Joomla sites than any Joomlart template is. How can you sit there and type an answer like that to a 3 year customer.

    I am steaming mad at you guys. your templates used to work great. Now they are the WORST templates out there.

    BTW I have been a member for 3 years and I am done with you. Your company will go out of business because you do not service your developer members. There will be more people like me I guarantee it

    You guys are useless. I will never buy anything from you again or use your broken templates ever again.

    Sherlock Friend
    #255477

    Hi.
    sorry if i make you angry, but my idea that if you can send me code componnent, i will build on my localhost to test.

    Peter Konstantakos Friend
    #255509

    I paid Phil Taylor, the owner of Phil-a-Form, to fix your template. He said it is because of your template’s config file.

    Menalto Friend
    #255510

    Was it related to the code i posted abve here?

    Peter Konstantakos Friend
    #255515

    Yes it was.

    Here is the modded file

    <?php

    define (‘JA_TOOL_COLOR’, ‘ja_color’);

    define (‘JA_TOOL_SCREEN’, ‘ja_screen’);

    define (‘JA_TOOL_FONT’, ‘ja_font’);

    define (‘JA_TOOL_MENU’, ‘ja_menu’);

    define (‘JA_TOOL_USER’, ‘usertool’);

    class JA_Tools {

    var $_params = null; //Params will store in cookie for user select. Default: store all params

    var $_params_cookie = array(); //Params will store in cookie for user select.

    var $_tpl = null;

    var $template = ‘ja_galena’;

    //This default value could override by setting with function setScreenSizes() and setColorThemes()

    var $_ja_screen_sizes = array (‘narrow’, ‘wide’);

    var $_ja_color_themes = array (‘default’, ‘cyan’, ‘red’);

    function JA_Tools ($template, $_param, $_params_cookie=null) {

    $this->template = $template;

    $this->_params = $_param;

    if(!$_params_cookie) {

    $_params_cookie = array();

    }

    if (($this->getParam(JA_TOOL_USER) & 1) && !in_array(JA_TOOL_SCREEN, $_params_cookie)) {

    $_params_cookie[]=JA_TOOL_SCREEN;

    }

    if (($this->getParam(JA_TOOL_USER) & 2) && !in_array(JA_TOOL_FONT, $_params_cookie)) {

    $_params_cookie[]=JA_TOOL_FONT;

    }

    if (($this->getParam(JA_TOOL_USER) & 4) && !in_array(JA_TOOL_COLOR, $_params_cookie)) {

    $_params_cookie[]=JA_TOOL_COLOR;

    }

    foreach ($_params_cookie as $k) {

    $this->_params_cookie[$k] = $this->_params->get($k);

    }

    $this->getUserSetting();

    }

    function getUserSetting(){

    $exp = time() + 60*60*24*355;

    if (isset($_COOKIE[$this->template.’_tpl’]) && $_COOKIE[$this->template.’_tpl’] == $this->template){

    foreach($this->_params_cookie as $k=>$v) {

    $kc = $this->template.”_”.$k;

    if (isset($_GET[$k])){

    $v = $_GET[$k];

    setcookie ($kc, $v, $exp, ‘/’);

    }else{

    if (isset($_COOKIE[$kc])){

    $v = $_COOKIE[$kc];

    }

    }

    $this->setParam($k, $v);

    }

    }else{

    @setcookie ($this->template.’_tpl’, $this->template, $exp, ‘/’);

    }

    return $this;

    }

    function getParam ($param, $default=”) {

    if (isset($this->_params_cookie[$param])) {

    return $this->_params_cookie[$param];

    }

    return $this->_params->get($param, $default);

    }

    function setParam ($param, $value) {

    $this->_params_cookie[$param] = $value;

    }

    function getCurrentURL(){

    $cururl = mosGetParam( $_SERVER, ‘REQUEST_URI’, ” );

    if(($pos = strpos($cururl, “index.php”))!== false){

    $cururl = substr($cururl,$pos);

    }

    $cururl = sefRelToAbs($cururl);

    $cururl = ampReplace($cururl);

    return $cururl;

    }

    function genToolMenu($ja_tools, $imgext = ‘gif’){

    ?>

    <ul class=”ja-usertools-font”>

    <li><img style=”cursor: pointer;” title=”Increase font size” src=”<?php echo $this->templateurl();?>/images/user-increase.<?php echo $imgext;?>” alt=”Increase font size” id=”ja-tool-increase” onclick=”switchFontSize(‘<?php echo $this->template.”_”.JA_TOOL_FONT;?>’,’inc’); return false;” /></li>

    <li><img style=”cursor: pointer;” title=”Default font size” src=”<?php echo $this->templateurl();?>/images/user-reset.<?php echo $imgext;?>” alt=”Default font size” id=”ja-tool-reset” onclick=”switchFontSize(‘<?php echo $this->template.”_”.JA_TOOL_FONT;?>’,<?php echo $this->getParam(JA_TOOL_FONT);?>); return false;” /></li>

    <li><img style=”cursor: pointer;” title=”Decrease font size” src=”<?php echo $this->templateurl();?>/images/user-decrease.<?php echo $imgext;?>” alt=”Decrease font size” id=”ja-tool-decrease” onclick=”switchFontSize(‘<?php echo $this->template.”_”.JA_TOOL_FONT;?>’,’dec’); return false;” /></li>

    </ul>

    <script type=”text/javascript”>var CurrentFontSize=parseInt(‘<?php echo $this->getParam(JA_TOOL_FONT);?>’);</script>

    <?php

    if ($ja_tools & 4){//show color tools

    ?>

    <ul class=”ja-usertools-color”>

    <?php

    foreach ($this->_ja_color_themes as $ja_color_theme) {

    echo “

    <li><img style=”cursor: pointer;” src=””.$this->templateurl().”/images/”.strtolower($ja_color_theme).( ($this->getParam(JA_TOOL_COLOR)==$ja_color_theme) ? “-hilite” : “” ).”.”.$imgext.”” title=””.$ja_color_theme.” color” alt=””.$ja_color_theme.” color” id=”ja-tool-“.$ja_color_theme.”color” onclick=”switchTool(‘”.$this->template.”_”.JA_TOOL_COLOR.”‘,’$ja_color_theme’);return false;” /></li>

    “;

    } ?>

    </ul>

    <?php

    }

    }

    function setScreenSizes ($_array_screen_sizes) {

    $this->_ja_screen_sizes = $_array_screen_sizes;

    }

    function setColorThemes ($_array_color_themes) {

    $this->_ja_color_themes = $_array_color_themes;

    }

    function getCurrentMenuIndex(){

    global $Itemid, $database, $mosConfig_shownoauth, $my;

    //Get top menu id;

    $id = $Itemid;

    $menutype = ‘mainmenu’;

    $ordering = ‘0’;

    while (1){

    $sql = “select parent, menutype, ordering from #__menu where id = $id limit 1”;

    $database->setQuery($sql);

    $row = null;

    $database->loadObject($row);

    if ($row) {

    $menutype = $row->menutype;

    //if ($menutype != ‘mainmenu’) return 0;

    $ordering = $row->ordering;

    if ($row->parent > 0)

    {

    $id = $row->parent;

    }else break;

    }else return 0;

    }

    if ($mosConfig_shownoauth) {

    $sql = “SELECT count(*) FROM #__menu AS m”

    . “nWHERE menutype='”. $menutype .”‘ AND published=’1’ AND parent=0 and ordering <= $ordering”;

    } else {

    $sql = “SELECT count(*) FROM #__menu AS m”

    . “nWHERE menutype='”. $menutype .”‘ AND published=’1’ AND access <= ‘$my->gid’ AND parent=0 and ordering <= $ordering”;

    }

    $database->setQuery($sql);

    return $database->loadResult();

    }

    function calSpotlight ($spotlight, $totalwidth=100, $firstwidth=0) {

    /********************************************

    $spotlight = array (‘position1’, ‘position2’,…)

    *********************************************/

    $modules = array();

    $modules_s = array();

    foreach ($spotlight as $position) {

    if( mosCountModules ($position) ){

    $modules_s[] = $position;

    }

    $modules[$position] = array(‘class’=>’-full’,’width’=>$totalwidth.’%’);

    }

    if (!count($modules_s)) return null;

    if ($firstwidth) {

    if (count($modules_s)>1) {

    $width = round(($totalwidth-$firstwidth)/(count($modules_s)-1),1) . “%”;

    $firstwidth = $firstwidth . “%”;

    }else{

    $firstwidth = $totalwidth . “%”;

    }

    }else{

    $width = round($totalwidth/(count($modules_s)),1) . “%”;

    $firstwidth = $width;

    }

    if (count ($modules_s) > 1){

    $modules[$modules_s[0]][‘class’] = “-left”;

    $modules[$modules_s[0]][‘width’] = $firstwidth;

    $modules[$modules_s][‘class’] = “-right”;

    $modules[$modules_s][‘width’] = $width;

    for ($i=1; $i<count ($modules_s) – 1; $i++){

    $modules[$modules_s[$i]][‘class’] = “-center”;

    $modules[$modules_s[$i]][‘width’] = $width;

    }

    }

    return $modules;

    }

    function isIE6 () {

    $msie=’/msies(5.[5-9]|[6].[0-9]*).*(win)/i’;

    return isset($_SERVER[‘HTTP_USER_AGENT’]) &&

    preg_match($msie,$_SERVER[‘HTTP_USER_AGENT’]) &&

    !preg_match(‘/opera/i’,$_SERVER[‘HTTP_USER_AGENT’]);

    }

    function isOP () {

    return isset($_SERVER[‘HTTP_USER_AGENT’]) &&

    preg_match(‘/opera/i’,$_SERVER[‘HTTP_USER_AGENT’]);

    }

    function noBG4IE6() {

    if ($this->isIE6())

    echo ‘ style=”background: none;”‘;

    }

    function baseurl(){

    return $this->getLiveSiteURL();

    }

    function getLiveSiteURL() {

    global $mosConfig_live_site;

    $url = parse_url($mosConfig_live_site);

    $livesite = $url[‘scheme’].’://’.$_SERVER[‘SERVER_NAME’].($_SERVER[‘SERVER_PORT’]==80?”:’:’).(@$url[‘path’]?@$url[‘path’]:”);

    return $livesite;

    }

    function templateurl(){

    return $this->getLiveSiteURL().”/templates/”.$this->template;

    }

    function getRandomImage ($img_folder) {

    $imglist=array();

    mt_srand((double)microtime()*1000);

    //use the directory class

    $imgs = dir($img_folder);

    //read all files from the directory, checks if are images and ads them to a list (see below how to display flash banners)

    while ($file = $imgs->read()) {

    if (eregi(“gif”, $file) || eregi(“jpg”, $file) || eregi(“png”, $file))

    $imglist[] = $file;

    }

    closedir($imgs->handle);

    if(!count($imglist)) return ”;

    //generate a random number between 0 and the number of images

    $random = mt_rand(0, count($imglist)-1);

    $image = $imglist[$random];

    return $image;

    }

    function isFrontPage(){

    global $option;

    return ($option==’com_frontpage’);

    }

    function sitename() {

    global $mosConfig_sitename;

    return $mosConfig_sitename;

    }

    function getAllSectionIds () {

    global $database;

    $query = “SELECT id FROM #__sections WHERE published = 1;”;

    $database->setQuery($query);

    $c = $database->loadObjectList();

    $catids = array();

    foreach($c as $_c) $catids[] = $_c->id;

    return $catids;

    }

    function getSectionId ($catid) {

    global $database;

    $query = “SELECT section FROM #__categories WHERE id=$catid;”;

    $database->setQuery($query);

    return $database->loadResult();

    }

    function getThemeForSection () {

    //get the most parent menu id

    global $Itemid, $database;

    $mid = $Itemid;

    $pid = $mid;

    $pmenu = $mmenu = null;

    while ($pid) {

    $query = “select parent, link from #__menu where id=$mid”;

    $database->setQuery($query);

    $database->loadObject($pmenu);

    $mmenu = $pmenu;

    $mid = $pid;

    $pid = ($pmenu)?$pmenu->parent:0;

    }

    if(!$mmenu) return ”;

    //parse link

    $urls = parse_url($mmenu->link);

    $querystring = $urls[‘query’];

    $output = null;

    parse_str ($querystring,$output);

    $sectionid = 0;

    if(isset($output[‘option’]) && $output[‘option’] == ‘com_content’) {

    if(isset($output[‘task’]) && $output[‘task’]==’blogsection’){

    $sectionid = $output[‘id’];

    }

    else if(isset($output[‘task’]) && $output[‘task’]==’blogcategory’){

    $catid = $output[‘id’];

    $sectionid = $this->getSectionId($catid);

    }

    }

    if($sectionid) {

    if(!$sectionid) return ”;

    $query = “select params from #__modules where `module`=’mod_janews'”;

    $database->setQuery($query);

    $params = new mosParameters($database->loadResult());

    $catids = $params->get(‘catid’);

    if ($catids) {

    $catids = preg_split(‘/[n,]|<br />/’, $catids);

    }else {

    return ”;

    }

    for ($i = 0; $i < count($catids); $i++) {

    $temp = split(‘:’,$catids[$i]);

    if(isset($temp[0])) $catid = $temp[0];

    if($catid==$sectionid) {

    return isset($temp[1])? ‘-‘.trim($temp[1]):”;

    }

    }

    }

    return ”;

    }

    }

    ?>

    Sherlock Friend
    #255688

    Hi Konstantakos
    Thank for your sharing, Phil Taylor have modified ja_templatetools_1.0x.php
    Change this line:

    $livesite = $url['scheme'].'://'.$_SERVER['SERVER_NAME'].($_SERVER['SERVER_PORT']==80?'':':').($url['path']?$url['path']:'');
    To

    $livesite = $url['scheme'].'://'.$_SERVER['SERVER_NAME'].($_SERVER['SERVER_PORT']==80?'':':').(@$url['path']?@$url['path']:'');

    Peter Konstantakos Friend
    #255691

    I want to tell you something. Do you really belive that I want to get angry with you guys? Well I don’t. I have paid out a lot of money for the developer memberships over the last 3 years and everytime I look for support it takes days for you to respond. Only when I make a fuss does anyone pay attention. I have to ask you guys, why could you not tell me the answer to this after I sent you a url and you could see the error? Such a simple fix I can’t belive you could not have figured it out. So it cost me $50 USD to have Phil Taylor fix it. Which is fine I do not mind paying. I would pay you guys but no one answers my inquiries. Why is that? Only things you answer are the easy questions. Well I have a business to run and I use your templates quite a bit so when I need support it is usually urgent. And before I ever ask for support I search every thread before I ask. And what do I get, nothing. Very disappointing.

    Sherlock Friend
    #255698

    Hi.
    I think you remember that I have supported you in some questions, but in this question, i haven’t worked with Phil a form before, I only saw likeMenalto said those lines code. Only after you share your fixed by Phil Taylor, I compare code and see those different. This question isn’t easy, i know you are disappoiting, but we will try to support you in others question
    Regards

Viewing 14 posts - 1 through 14 (of 14 total)

This topic contains 14 replies, has 3 voices, and was last updated by  Sherlock 16 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum