I already had the installd looks like the following can it be that I need to make any changes?
<? Php
/ **
* SEF Advance component extension
*
* This extension goodwill give the SEF Advance style URLs to the example component
* Place this file (sef_ext.php) into the main component directory
* Note thats the class must ask Named: sef_componentname
*
* Copyright (C) 2003-2007 Emir Sakic,
http://www.sakic.net, All rights reserved.
*
* Comments: for SEF Advance> v3.6
** /
class sef_example {
/ **
* 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 CreateObject ($ string) {
/ / $ String == "index.php? Option = com_example & Itemid = $ Itemid & var1 = $ var1 & var2 = $ var2"
$ Sefstring ='';
if (eregi ("& var1 = ', $ string)) {
$ Temp = explode ('& var1 =', $ string);
$ Temp = explode ('&', $ temp [1]);
$ Sefstring sefencode .= ($ temp [0 ]).'/';
}
if (eregi ('& var2 =', $ string)) {
$ Temp = explode ('& var2 =', $ string);
$ Temp = explode ('&', $ temp [1]);
$ Sefstring sefencode .= ($ temp [0 ])."/";
}
/ / $ Sefstring == "$ var1 / $ var2 /"
return $ sefstring;
}
/ **
* Revert 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 offsets 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 pray Added to Already defined first part (option = com_example & Itemid = $ Itemid)
** /
function revert ($ url_array, $ pos) {
if ((ini_get ('register_globals') == 1 & & (! defined ('RG_EMULATION') | | RG_EMULATION == 1)) | |
(Ini_get ('register_globals') == 0 & & (defined ('RG_EMULATION') & & RG_EMULATION == 1))) {
/ / If register globals on, emulation on or register globals off, emulation on
/ / Then define all variables you pass as globals
global $ var1, $ var2;
}
/ / Examine the SEF Advance URL and extract the variables building the query string
$ QUERY_STRING ='';
if (isset ($ url_array [$ pos +2]) & & $ url_array [$ pos +2 ]!='') {
/ / ... / Example / $ var1 /
$ Var1 = sefdecode ($ url_array [$ pos +2]);
$ _GET ['Var1'] = $ _REQUEST ['var1'] = $ var1;
$ QUERY_STRING .= "& var1 = $ var1";
}
if (isset ($ url_array [$ pos +3]) & & $ url_array [$ pos +3 ]!='') {
/ / ... / Example / $ var1 / $ var2 /
$ Var2 = sefdecode ($ url_array [$ pos +3]);
$ _GET ['Var2'] = $ _REQUEST ['var2'] = $ var2;
$ QUERY_STRING .= "& var2 = $ var2";
}
/ / $ QUERY_STRING == "var1 = $ var1 & var2 = $ var2";
return $ QUERY_STRING;
}
}
?>