I have a question about kunena

13 years 1 month ago #6083 by BarnTotal
I have a question about kunena (FireBoard) and URLs that look like the following
www.barntotal.se/option , com_kunena / Itemid, 2077/func, view / catid, 24/id, 19 031 /

I have changed the first page like this
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?

Please Log in or Create an account to join the conversation.

13 years 1 month ago #6084 by Saka
You should upload the SEF extension (sef_ext.php). You can find it here: www.sakic.net/products/sef_advance/extensions/

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

13 years 1 month ago #6085 by BarnTotal
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?

Please Log in or Create an account to join the conversation.

13 years 1 month ago #6086 by Saka
You just need to upload a file with FTP. Please download the file, unzip it and you will find detailed instructions in there.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

13 years 1 month ago #6087 by BarnTotal
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, 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 = $ _REQUEST = $ 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 = $ _REQUEST = $ var2;
$ QUERY_STRING .= "& var2 = $ var2";
}
/ / $ QUERY_STRING == "var1 = $ var1 & var2 = $ var2";
return $ QUERY_STRING;
}

}
?>

Please Log in or Create an account to join the conversation.

13 years 1 month ago #6088 by Saka
No, that's example SEF extension. You need to upload one you download to folder components/com_kunena/

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch