Author Topic: I have a question about kunena  (Read 767 times)

BarnTotal

  • Newbie
  • *
  • Posts: 3
    • View Profile
I have a question about kunena
« on: 06 April 2011, 10:38 »
I have a question about kunena (FireBoard) and URLs that look like the following
http://www.barntotal.se/option, com_kunena / Itemid, 2077/func, view / catid, 24/id, 19 031 /

I have changed the first page like this
http://www.barntotal.se/barntotal_forum/ 
and the headlines is okey but the posts will not change and it i try it just gets page can not be displayed. What should I do to postings will get good URLs?

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,500
    • View Profile
    • Sakic.Net
Re: I have a question about kunena
« Reply #1 on: 06 April 2011, 11:16 »
You should upload the SEF extension (sef_ext.php). You can find it here: http://www.sakic.net/products/sef_advance/extensions/

BarnTotal

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: I have a question about kunena
« Reply #2 on: 06 April 2011, 12:10 »
Hello again

I'm not quite so good at everything when I got a lot of help before. Is it fölängningen for FireBoard (v1.6.2) Kunena to download? Is it easy to INSTALLED this then or is it hard?

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,500
    • View Profile
    • Sakic.Net
Re: I have a question about kunena
« Reply #3 on: 06 April 2011, 12:46 »
You just need to upload a file with FTP. Please download the file, unzip it and you will find detailed instructions in there.

BarnTotal

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: I have a question about kunena
« Reply #4 on: 06 April 2011, 13:23 »
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;
}

}
?>

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,500
    • View Profile
    • Sakic.Net
Re: I have a question about kunena
« Reply #5 on: 06 April 2011, 16:40 »
No, that's example SEF extension. You need to upload one you download to folder components/com_kunena/