sitemap  |  contact

Sakic.Net Forum
08 September 2008, 16:57 *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Save money on product bundles: http://www.sakic.net/support/order/
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Products / SEF Advance / Re: Redirect Loop on: 20 July 2008, 19:52
Just to confirm that fixes the issue for me...
2  Products / SEF Advance / Redirect Loop on: 18 July 2008, 08:19
With the latest SEF Advance [1.5.2], I have a menu link to add new front page content, which links [joomla created it] to http://www.1stuxbridge.com/index.php?option=com_content&view=article&layout=form&Itemid=85

This seems to be a permanent redirection loop....

Mike
3  Products / SEF Advance / sef_ext.php for components on: 08 May 2008, 00:01
If you have a joomla 1.5 component that comes with a functioning router.php and want to use it with SEF advanced, you can create a sef_ext.php with the following content:

[replace XXXXXX with the name of the component (after com_)]
<?php
/**
* SEF Advance component extension
*
* This extension will give the SEF Advance style URLs to the example component
* Place this file (sef_ext.php) in the main component directory
* Note that the class must be named: sef_componentname
*
* Copyright (C) 2003-2007 Emir Sakic, http://www.sakic.net, All rights reserved.
*
* Comments: for SEF Advance > v3.6
**/
require_once("router.php");

class sef_XXXXXX {
   
   /**
   * Creates the SEF Advance URL out of the request
   * Input: $string, string, The request URL (index.php?option=com_example&Itemid=$Itemid)
   * Output: $sefstring, string, SEF Advance URL ($var1/$var2/)
   **/
   function create ($string)
   {
      $string = str_replace("&amp;","&",$string);
      $o = split("&",substr($string,strpos($string,"index.php?")+10));   
      foreach($o as $value)
      {
         $i = split("=",$value);
         $ns[$i[0]] = $i[1];   
      }
      $result = XXXXXXBuildRoute($ns);
      foreach($result as $val)
      {
         $retval .= $val;
         $retval .= "/";   
      }
      return $retval;
   }
   
   /**
   * Reverts to the query string out of the SEF Advance URL
   * Input:
   *    $url_array, array, The SEF Advance URL split in arrays
   *    $pos, int, The position offset for virtual directories (first virtual directory, which is the component name, begins at $pos+1)
   * Output: $QUERY_STRING, string, query string (var1=$var1&var2=$var2)
   *    Note that this will be added to already defined first part (option=com_example&Itemid=$Itemid)
   **/
   function revert ($url_array, $pos)
   {
   
      $na = array();
      for ($a=$pos+2;$a<count($url_array);$a++)
      {
         if (strlen($url_array[$a]) > 0)
         {
            $na[] = $url_array[$a];
         }
      }
      $res = XXXXXXParseRoute($na);
      $QUERY_STRING = '';
      foreach($res as $key=>$value)
      {
         $QUERY_STRING .="&";
         $QUERY_STRING .=$key;
         $QUERY_STRING .="=";
         $QUERY_STRING .=$value;   
         $GLOBALS[$key] = $_GET[$key] = $_REQUEST[$key] = $value;                  
      }
      return $QUERY_STRING;
   }   
}
?>
Pages: [1]