The Joomla! Forum ™



Forum rules


Global Rules
Additional Rules for this forum <------- Please read before posting



Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu Oct 27, 2005 2:50 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1827
Location: Germany-Bad Abbach
I'm proud to announce the release of the Joomla! Advanced SEFBot for the Series 1.1.x

The SEF functionallity has moved to a Bot in Joomla! 1.1.x and in the current Alpha Version there is a Bot shipped called:  Joomla SEFURLBot which gives you the known SEF URL's like:

http://localhost/j11/content/section/1/2/

with the Advanced SEFBot you can have URL's like

http://localhost/j11/Frequently_Asked_Q ... _FAQs.html

Installation is really easy:

Install the Advanced SEFBot with the Mambot Installer, go to the Advanced SEFBot and save the parameters.

If you are runing SEF with shipped SEFBot and everythings work well, you can switch to the new Advanced SEFBot by unpublishing the shipped SEFBot and publishing the Advanced SEFBot, that's all.

Supported are all Core Components which are included in the Alpha Pakage. The Advanced SEFBot also supports sef_ext.php files of custome Components which are shipped which such sef_ext.php file to give these component extended SEF URL's.

Download Advanced SEFBot Version 1.0

Bugtracker for the Advanced SEFBot

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Last edited by Predator on Thu Oct 27, 2005 3:06 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 4:30 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Aug 29, 2005 4:25 pm
Posts: 54
Sounds GREAT!!
But am I correct in thinking that this will only work with Joomla 1.1.x and not with 1.0.x

_________________
Bulldog


Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 4:39 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1827
Location: Germany-Bad Abbach
bulldog wrote:
Sounds GREAT!!
But am I correct in thinking that this will only work with Joomla 1.1.x and not with 1.0.x


Yes you are right, i have checked this with Joomla! 1.0.3 where some hooks are added, but it doesn't work. So this Bot will be only for the Joomla! 1.1.x series sorry to tell you this.

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 6:29 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Online

Joined: Thu Aug 18, 2005 2:09 am
Posts: 4650
Location: California
Marko,

Keeps killing the site dead when I publish the Advanced SEFBot.

1. Installed Joomla 1.1.0 alpha clean
2. Enabled standard SEF (Global Configuration > SEO > Search Engine Friendly URLs > Yes)
3. Renamed htaccess file
4. Standard SEF URLs are working (FAQs URL is http://www.joomla11.test/content/category/3/7/25/)

5. Publish Advanced SEFBot (Joomla! Advanced SEF URLs,  joomla.extendsefbot)
6. Un-publish standard SEFBot (Joomla SEFURLBot,  joomla.sefurlbot)

As soon as I click the un-publish icon - Joomla back-end disappears. Blank screen.
Front-end disappears at the same time. Blank screen.

I go into the database and set the Bots back to Advanced un-published and standard published.
All returns to normal.

Am I missing something in the configuration?
Any ideas?


Ken

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/


Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 6:35 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1827
Location: Germany-Bad Abbach
Did you go into the Bot Backend and save the parameters?

Quote:
Install the Advanced SEFBot with the Mambot Installer, go to the Advanced SEFBot and save the parameters.

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Last edited by Predator on Thu Oct 27, 2005 6:42 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 7:12 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Online

Joined: Thu Aug 18, 2005 2:09 am
Posts: 4650
Location: California
This order worked:

5. View and Save Parameters (Mambots > Site Mambots > Joomla! Advanced SEF URLs > Save)
6. Un-publish standard SEFBot (Joomla SEFURLBot,  joomla.sefurlbot)
7. Publish Advanced SEFBot (Joomla! Advanced SEF URLs,  joomla.extendsefbot)

It's working . . .  :D

KM

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/


Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 7:16 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1827
Location: Germany-Bad Abbach
Nice to hear :D if you find any issues feel free to report them want this bugfree with the Final release of Joomla! 1.1 but currently i haven't found a Bug, but more eyes see more.

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 7:17 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Online

Joined: Thu Aug 18, 2005 2:09 am
Posts: 4650
Location: California
Summary of Installation Steps
Advanced SEF Bot file name:  joomla1.1_bot_extsefbot_1.0_predator.zip

1. Install Joomla 1.1.0 alpha
2. Enable standard SEF (Global Configuration > SEO > Search Engine Friendly URLs > Yes)
3. Rename htaccess.txt file to .htaccess
4. Make sure standard SEF URLs are working (FAQs URL is http://www.example.com/content/category/3/7/25/)
5. Install Advanced SEFBot  (Installers > Mambots > Browse > Upload File & Install)
6. View and Save Parameters (Mambots > Site Mambots > Joomla! Advanced SEF URLs > Save)
7. Un-publish standard SEFBot (Joomla SEFURLBot,  joomla.sefurlbot)
8. Publish Advanced SEFBot (Joomla! Advanced SEF URLs,  joomla.extendsefbot)

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/


Last edited by kenmcd on Fri Oct 28, 2005 12:29 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Oct 27, 2005 7:19 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Online

Joined: Thu Aug 18, 2005 2:09 am
Posts: 4650
Location: California
Predator wrote:
Nice to hear :D if you find any issues feel free to report them want this bugfree with the Final release of Joomla! 1.1 but currently i haven't found a Bug, but more eyes see more.


Just some text issues. I'll send to you when gathered.

_________________
██ AllMedia4Joomla Project
██ http://sourceforge.net/projects/allmedia4joomla/


Top
 Profile  
 
PostPosted: Sun Oct 30, 2005 12:26 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Aug 18, 2005 1:33 pm
Posts: 90
Location: Sebastopol
Predator wrote:
with the Advanced SEFBot you can have URL's like

http://localhost/j11/Frequently_Asked_Q ... _FAQs.html
hm, can i specify the special chars for replace rather than url encode ? For example for replace cyrillic characters to translit ?

_________________
Joomlaportal.ru News, articles and tutorials
Joomlaforum.ru Russian Joomla Support Forum
Member of the Russian Joomla Translation Team


Top
 Profile  
 
PostPosted: Thu Nov 03, 2005 2:26 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Sun Aug 28, 2005 6:38 am
Posts: 71
Predator wrote:
I'm proud to announce the release of the Joomla! Advanced SEFBot for the Series 1.1.x


Is there away to extent this bot, so components with more then one page can have sef urls or will these urls be conferted to /param,value/etz..?

regards,
Michiel

_________________
Joomla! Projects
Michiel Bijland


Top
 Profile  
 
PostPosted: Thu Nov 03, 2005 2:47 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1827
Location: Germany-Bad Abbach
Michiel_1981 wrote:
Predator wrote:
I'm proud to announce the release of the Joomla! Advanced SEFBot for the Series 1.1.x


Is there away to extent this bot, so components with more then one page can have sef urls or will these urls be conferted to /param,value/etz..?

regards,
Michiel



Long URL's only supported directly for the Core Components, for 3rd Party component the normal SEF URL's ( /param,value/etz..? ) are shown, to have also long URL's you need an extra sef_ext.php for this component, a howto make a sef_ext.php is on it's way, currently you have to look if the 3PD of this component has allready made a sef_ext.php.

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Top
 Profile  
 
PostPosted: Thu Nov 03, 2005 4:05 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Sun Aug 28, 2005 6:38 am
Posts: 71
Predator wrote:
Michiel_1981 wrote:
Predator wrote:
I'm proud to announce the release of the Joomla! Advanced SEFBot for the Series 1.1.x


Is there away to extent this bot, so components with more then one page can have sef urls or will these urls be conferted to /param,value/etz..?

regards,
Michiel



Long URL's only supported directly for the Core Components, for 3rd Party component the normal SEF URL's ( /param,value/etz..? ) are shown, to have also long URL's you need an extra sef_ext.php for this component, a howto make a sef_ext.php is on it's way, currently you have to look if the 3PD of this component has allready made a sef_ext.php.


Hi,

I'm the writer of the component so, i'll search out such a file and see what I can learn.

regards,
Michiel

_________________
Joomla! Projects
Michiel Bijland


Top
 Profile  
 
PostPosted: Thu Nov 03, 2005 4:10 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1827
Location: Germany-Bad Abbach
I try to speed up the making of the HowTo to give you the infos for creating your own sef_ext.php ;)

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Top
 Profile  
 
PostPosted: Sun Nov 06, 2005 12:24 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Sep 16, 2005 9:59 am
Posts: 50
Location: Ljubljana
I recieve an error when I publish the sev advanced mambot in joomla 1.1 beta

Fatal error: Cannot redeclare sefreltoabs() in C:\apachefriends\xampp\htdocs\Joomla11\mambots\system\joomla.sefurlbot.php on line 190

Above error is solved:

SEF mambot should be published;
Joomla SEFURLBot should be unpublished;
Joomla SiteURLBot should be published.

An idea is when the SEF advanced Mambot is being published the Joomla SEFURLBot is being automaticly unpublished.

Wildcard

_________________
http://www.marcwitteveen.com


Last edited by wildcard on Sun Nov 06, 2005 12:27 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Nov 06, 2005 6:15 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Sep 05, 2005 11:21 am
Posts: 338
Location: Nis, Serbia
Maybe this can help:

http://developer.joomla.org/sf/go/artf1840?nav=1

_________________
http://www.pcigre.com -> game community


Top
 Profile  
 
PostPosted: Wed Nov 16, 2005 1:29 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Nov 15, 2005 11:45 am
Posts: 45
Hi i have been using sef bot and coresef hack and both seem to have the problem where if the pagination is used, the url is just redirected to the home page, blog frontpage blog section and blog category are not working for pagination.

There doesnt appear to be any mechanism for determining duplicate url's or am i missing something.

I would be really grateful if anyone can confirm these findings.

Yipppie


Top
 Profile  
 
PostPosted: Tue Dec 06, 2005 1:43 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Tue Dec 06, 2005 1:32 am
Posts: 4
Hey everyone,

First post here and new to Joomla today so go easy on me :)

I installed Alpha and have it running on my server. I did all the steps mentioned in this thread and now all my URL's are SEF. There's a problem though as not all URL's are loading the pages they should. I created a new article and when I load it the page loads but it's loading the default (home) page.  You can see what I'm talking about here:

http://www.bodybuildingnotes.com

The article I wrote that won't load is here:

http://www.bodybuildingnotes.com/index. ... nkings.htm

But other SE friendly URL's will load:

http://www.bodybuildingnotes.com/index.php/contact/

It's worth noting that I'm running IIS and I had to edit that advanced SEF bot with the same code that was used to edit the sef.php file for version 1.0. I inserted this code:

$_SERVER['REQUEST_URI'] = (isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $_SERVER['SCRIPT_NAME']);

// Append the query string if it exists and isn't null
if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) {
  $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
}

Towards the top of the page and I change:

return $GLOBALS['mosConfig_live_site']."/".$string;

to

return $GLOBALS['mosConfig_live_site']."/index.php/".$string;

Can someone help me out? I had the normal SEF urls working on version 1.0 but I'd really like to get this working with advanced SEF urls on version 1.1.

Thank you,
Kris


Top
 Profile  
 
PostPosted: Thu Dec 08, 2005 12:41 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Dec 07, 2005 11:12 pm
Posts: 1
Predator wrote:

The SEF functionallity has moved to a Bot in Joomla! 1.1.x and in the current Alpha Version there is a Bot shipped called:  Joomla SEFURLBot which gives you the known SEF URL's like:

http://localhost/j11/content/section/1/2/

with the Advanced SEFBot you can have URL's like

http://localhost/j11/Frequently_Asked_Q ... _FAQs.html



This is a great additional because SEF URLs are so important for anyone wanting to get their site found.

There has been discussion on other SEO / SEM forums that hyphens in URLs generate higher click-through rates than underscores

http://localhost/j11/Frequently-Asked-Q ... -FAQs.html

http://localhost/j11/Frequently_Asked_Q ... _FAQs.html

The argument goes that users find long URLs with hyphens easier to read (more legible) and thus click on the results more often than underscores.

Also losing the .html extension makes the URL easier to read (or so the conjecture goes). Mainly because the URL is shorter (what users really care about the extension anyway?)

http://localhost/j11/Frequently-Asked-Q ... ample-FAQs

http://localhost/j11/Frequently_Asked_Q ... _FAQs.html


I have not seen solid quanitifiable research on this but assuming all other things are equal, I would tend to agree with the theory. If anyone else has seen quanitifiable research about user patterns on URL strings, then please point me in the right direction, I'd love to read it.

IMHO, allowing URL styles to be customisable would be a lovely addition to this Bot. That way, it's up to the website owner to choose whether their URLs have hyphens, underscore, or no file extension (or whatever else they want).  :)

Again, great to see work being done on this, it'll make surfing the web an easier experience.



PS - this is my first-ever post on Joomla so be gentle.


Top
 Profile  
 
PostPosted: Thu Dec 08, 2005 12:19 pm 
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 9:06 am
Posts: 1475
The sef_ext.php seem kind of limited to what it can do... things like this seem not to work:
  • define the extension
  • define the complete URL (not just a part of it)
  • force to not store the URL in the database when it can be reversed anyway
  • generate SEF links for things like RSS-links (to have a permanent link)

Will the sef_ext be extended?

Will it be possible to use multiple SEF bots (published) at the same time?

That could help where the sef_ext is (and will) be limited... in addition it could be possible to support something like multi site without requiring to offer the complete SEF solution (just an example to show where SEF bots could work together... where in other areas probably only one should be responsible).

_________________
http://de.siteof.de/


Top
 Profile  
 
PostPosted: Tue Jan 31, 2006 11:49 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Oct 07, 2005 4:45 pm
Posts: 64
Any luck for Windows IIS users? Or is this just for Apache?

Thanks.


RedBox


Top
 Profile  
 
PostPosted: Sun Feb 05, 2006 12:15 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1827
Location: Germany-Bad Abbach
de wrote:
The sef_ext.php seem kind of limited to what it can do... things like this seem not to work:
  • define the extension
  • define the complete URL (not just a part of it)
  • force to not store the URL in the database when it can be reversed anyway
  • generate SEF links for things like RSS-links (to have a permanent link)

Will the sef_ext be extended?

Will it be possible to use multiple SEF bots (published) at the same time?

That could help where the sef_ext is (and will) be limited... in addition it could be possible to support something like multi site without requiring to offer the complete SEF solution (just an example to show where SEF bots could work together... where in other areas probably only one should be responsible).


Where are the limits? The first 3 POints can be done with an sef_ext.php last point have to check.

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Top
 Profile  
 
PostPosted: Tue Feb 07, 2006 6:36 pm 
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 9:06 am
Posts: 1475
Predator wrote:
Where are the limits? The first 3 POints can be done with an sef_ext.php last point have to check.

Any documentation/secification available?

As far as I know the sef_ext.php was introduced with SEF Advanced and it is also implemented by 404 SEF (for example)... I did not hear any complains about the implementation of it in 404 SEF but know that it was not really possible with it... For example when I set to use a ".html" extension that this extension was added always. The other limitiation seemed true there too.

_________________
http://de.siteof.de/


Top
 Profile  
 
PostPosted: Tue Feb 07, 2006 7:19 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Aug 17, 2005 10:12 pm
Posts: 1827
Location: Germany-Bad Abbach
de wrote:
Predator wrote:
Where are the limits? The first 3 POints can be done with an sef_ext.php last point have to check.

Any documentation/secification available?

As far as I know the sef_ext.php was introduced with SEF Advanced and it is also implemented by 404 SEF (for example)... I did not hear any complains about the implementation of it in 404 SEF but know that it was not really possible with it... For example when I set to use a ".html" extension that this extension was added always. The other limitiation seemed true there too.


Depends where you set the extensions, so it's upto how the sef_ext.php is made, you can create the links as you like the limit is the coding skill.

Here a quick sef_ext.php is did for DOCMan is not perfect and can befinetuned, but as a hint URl will be created directly without forced to store in a database.

I'm currently working on a port of OpenSEF to Joomla! 1.1 which will give me more ideas to rework the Advanced SEF, as you suggested for multisites ;) 

Code:
class sef_docman {

   /**
   * Creates the SEF advance URL out of the Joomla! request
   **/
   function create ($string) {
      global $database, $sefConfig, $sufix,$longurl;
      
      if (empty($sefConfig)) {
         $ext_suffix = $sufix;
         $ext_url = $longurl;
      } else {
         $ext_suffix = $sefConfig->encode_page_suffix;
         $ext_url = $sefConfig->category_title_field;
      }
      
      $sefstring ='';
      $string = str_replace( '&', '&', $string );
      if (eregi("&task=doc_details",$string) ||
      eregi("&task=doc_edit",$string) ||
      eregi("&task=doc_checkout",$string) ||
      eregi("&task=doc_checkin",$string) ||
      eregi("&task=doc_reset",$string) ||
      eregi("&task=doc_move",$string) ||
      eregi("&task=doc_delete",$string) ||
      eregi("&task=doc_update",$string) ||
      eregi("&task=doc_unpublish",$string) ||
      eregi("&task=doc_publish",$string) &&
      eregi("&gid=",$string)) {
         
         if (eregi("&task=",$string)) {
            $temp = split("&task=", $string);
            $temp = split("&", $temp[1]);
            $sefstring .= $temp[0]."/";
         }
         if (eregi("&gid=",$string)) {
            $temp = split("&gid=", $string);
            $temp = split("&", $temp[1]);
            $database->setQuery("SELECT dmname FROM #__docman WHERE id=".$temp[0]);
            $sefstring .= docman_sefencode($database->loadResult());
         }
            
         return $sefstring.$ext_suffix;
      } elseif (eregi("&task=upload",$string) OR eregi("&task=search_form",$string)) {
         $temp = split("&task=", $string);
         $temp = split("&", $temp[1]);
         $sefstring .= $temp[0]."/";
         return $sefstring;
      } elseif (eregi("&task=license_result",$string) && eregi("&gid=",$string)) {
         $temp = split("&task=", $string);
         $temp = split("&", $temp[1]);
         $sefstring .= $temp[0]."/";
         $temp = split("&gid=", $string);
         $temp = split("&", $temp[1]);
         $database->setQuery("SELECT dmname FROM #__docman WHERE id=".$temp[0]);
         $sefstring .= docman_sefencode($database->loadResult())."/";
         $temp = split("&bid=", $string);
         $temp = split("&", $temp[1]);
         $sefstring .= $temp[0]."/";
         return $sefstring;
      } elseif (eregi("&task=doc_download",$string)) {
         $temp       = split("\?option=com_docman", $string);
         $temp       = split('&', $temp[1]);
         foreach($temp as $key => $value) {
            $sefstring .= $value.'/';
         }
         $string = str_replace( '=', ',', $sefstring );
         return $string;
      }
      elseif (eregi("&gid=",$string)) {
         $temp = split("&gid=", $string);
         $temp = split("&", $temp[1]);
         $database->setQuery("SELECT $ext_url FROM #__categories WHERE id=".$temp[0]);
         $sefstring .= docman_sefencode($database->loadResult());
         return $sefstring.$ext_suffix;
      }
   }
    /**
   * Reverts to the Joomla query string out of the SEF advance URL
   **/
    function revert ($url_array, $pos) {
      // define all variables you pass as globals
      global $database, $sefConfig, $longurl;
      if (empty($sefConfig)) {
         $ext_url = $longurl;
      } else {
         $ext_url = $sefConfig->category_title_field;
      }
      // Examine the SEF advance URL and extract the variables building the query string
       $QUERY_STRING = "";
       $database->setQuery("SELECT id "
      ."FROM #__menu "
      ."WHERE link='index.php?option=com_docman'");
      $Itemid = $database->loadResult();
      $_GET['Itemid'] = $Itemid;
      $_REQUEST['Itemid'] = $Itemid;
      $QUERY_STRING .= "option=com_docman&Itemid=$Itemid";
      $pos=0;
      if (isset($url_array[$pos+2]) && $url_array[$pos+2] !="" &&
         ($url_array[$pos+2]   == "search_form" ||
         $url_array[$pos+2]    == "upload")) {    
         $task = $url_array[$pos+2];
         $_GET['task'] = $task;
         $_REQUEST['task'] = $task;
         $QUERY_STRING .= "&task=$task";
         return $QUERY_STRING;   
      }
      elseif (isset($url_array[$pos+2]) && $url_array[$pos+2] !="" &&
         ($url_array[$pos+2] == "task,doc_download")) {
         $temp = explode(',', $url_array[2]);
         $task = $temp[1];
         $_GET['task'] = $task;
         $_REQUEST['task'] = $task;
         $temp2 = explode(',', $url_array[3]);
         $gid = $temp2[1];
         $_GET['gid'] = $gid;
         $_REQUEST['gid'] = $gid;
         $QUERY_STRING .= "&task=$task&gid=$gid";
         return $QUERY_STRING;
      }
      elseif (isset($url_array[$pos+2]) && $url_array[$pos+2] !="" &&
         ($url_array[$pos+2] == "license_result")) {
         $task = $url_array[$pos+2];
         $_GET['task'] = $task;
         $_REQUEST['task'] = $task;
         $dmname = docman_sefdecode($url_array[$pos+3]);
         $database->setQuery("SELECT id "
         ."FROM #__docman "
         ."WHERE dmname='$dmname'");
         $gid = $database->loadResult();
         $_GET['gid'] = $gid;
         $_REQUEST['gid'] = $gid;
         $bid = $url_array[$pos+4];
         $_GET['bid'] = $bid;
         $_REQUEST['bid'] = $bid;
         $QUERY_STRING .= "&task=$task&gid=$gid&Itemid=$Itemid&bid=$bid";
         return $QUERY_STRING;   
      }
      elseif (isset($url_array[$pos+2]) && $url_array[$pos+2] !="" &&
           ($url_array[$pos+2]   == "doc_details" ||
           $url_array[$pos+2]    == "doc_edit" ||
           $url_array[$pos+2]    == "doc_checkout" ||
           $url_array[$pos+2]    == "doc_checkin" ||
           $url_array[$pos+2]    == "doc_reset" ||
           $url_array[$pos+2]    == "doc_move" ||
           $url_array[$pos+2]    == "doc_delete" ||
           $url_array[$pos+2]    == "doc_update" ||
           $url_array[$pos+2]    == "doc_unpublish" ||
           $url_array[$pos+2]    == "doc_publish")) {       
           
         $dmname = docman_sefdecode($url_array[$pos+3]);
         $database->setQuery("SELECT id "
         ."FROM #__docman "
         ."WHERE dmname='$dmname'");
         $gid = $database->loadResult();
         $task = $url_array[$pos+2];
         $_GET['task'] = $task;
         $_REQUEST['task'] = $task;
         $QUERY_STRING .= "&task=$task";
         $_GET['gid'] = $gid;
         $_REQUEST['gid'] = $gid;
         $QUERY_STRING .= "&task=$task&gid=$gid";
         return $QUERY_STRING;
      }
      elseif (isset($url_array[$pos+2]) && $url_array[$pos+2]!="" ) {
         $catname = docman_sefdecode($url_array[$pos+2]);
         $database->setQuery("SELECT id "
         ."FROM #__categories "
         ."WHERE $ext_url='$catname'");
         $gid = $database->loadResult();
         $_GET['gid'] = $gid;
         $_REQUEST['gid'] = $gid;
         $QUERY_STRING .= "&gid=$gid";
         return $QUERY_STRING;
      }
   }
}
/**
 * Get new string with new space filler etc...
 *
 * @param string $string
 * @return encoded string
 */
function docman_sefencode($string) {
   global $sefConfig, $sufix, $lowercase,$url_exception;
   
   if (empty($sefConfig)) {
      $ext_suffix = $sufix;
      $ext_space = _SEF_SPACE;
      $ext_lower = $lowercase;
      $ext_strip = $url_exception;
      
   } else {
      $ext_suffix = $sefConfig->encode_page_suffix;
      $ext_space = $sefConfig->encode_space_char;
      $ext_lower = $sefConfig->encode_lowercase;
      $ext_strip = array($sefConfig->encode_strip_chars);
   }

   $string = urlencode($string);
   $string = eregi_replace("%2F", "%10", $string);
   $string = eregi_replace($ext_space, "%11", $string);
   $string = eregi_replace("\+", $ext_space, $string);
   foreach ($ext_strip as $value) {
      $string = ereg_replace(urlencode($value), $value, $string);
   }
   if ($ext_lower) {
      $string = strtolower($string);
   }
   return $string;
}
/**
 * Get back to original string
 *
 * @param string $string
 * @return decoded string
 */
function docman_sefdecode($string) {
   global $sefConfig, $sufix;
   
   if (empty($sefConfig)) {
      $ext_suffix = $sufix;
      $ext_space = _SEF_SPACE;
      
   } else {
      $ext_suffix = $sefConfig->encode_page_suffix;
      $ext_space = $sefConfig->encode_space_char;
   }
   
   $string = eregi_replace($ext_suffix, "", $string);
   $string = eregi_replace($ext_space, "%20", $string);
   $string = eregi_replace("%11", $ext_space, $string);
   $string = eregi_replace("%10", "%2F", $string);
   $string = urldecode($string);
   $string = addslashes($string);
   
   return $string;
}

_________________
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Last edited by Predator on Tue Feb 07, 2006 7:21 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Wed Feb 08, 2006 6:38 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Oct 07, 2005 4:45 pm
Posts: 64
RedBox wrote:
Any luck for Windows IIS users? Or is this just for Apache?

Thanks.


RedBox


Guess not. Could not get it to work. Anyhoo.... I went and installed Apache on Windows. Did all the things to get the regular SEF to work. I follow ken's summary installation and the advanced SEF seems to be working for the most part.

I get this error when I clicked on 'Links', 'Contact Us', 'News Feed', and 'Wrapper' menu items that shows up with the default installation:

Notice: Undefined variable: QUERY_STRING in C:\Program Files\Apache Group\Apache2\www\wwwtest\mambots\system\joomla.extendsefbot.php on line 235
Notice: Undefined variable: QUERY_STRING in C:\Program Files\Apache Group\Apache2\www\wwwtest\mambots\system\joomla.extendsefbot.php on line 236

Has anyone encountered this? Does anyone know what is going on?

Thanks.


RedBox


Top
 Profile  
 
PostPosted: Wed Feb 08, 2006 6:51 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Oct 07, 2005 4:45 pm
Posts: 64
RedBox wrote:
RedBox wrote:
Any luck for Windows IIS users? Or is this just for Apache?

Thanks.


RedBox


Guess not. Could not get it to work. Anyhoo.... I went and installed Apache on Windows. Did all the things to get the regular SEF to work. I follow ken's summary installation and the advanced SEF seems to be working for the most part.

I get this error when I clicked on 'Links', 'Contact Us', 'News Feed', and 'Wrapper' menu items that shows up with the default installation:

Notice: Undefined variable: QUERY_STRING in C:\Program Files\Apache Group\Apache2\www\wwwtest\mambots\system\joomla.extendsefbot.php on line 235
Notice: Undefined variable: QUERY_STRING in C:\Program Files\Apache Group\Apache2\www\wwwtest\mambots\system\joomla.extendsefbot.php on line 236

Has anyone encountered this? Does anyone know what is going on?

Thanks.


RedBox




Ok.. did a few more forum searches. On other similar errors on undefined string (for poor programming), the suggestion was to lower the error reporting level. Here is what I changed next:

'error_reporting  =  E_All' to 'error_reporting  =  E_ERROR'

After the change, I no longer get the errors. However, when I clicked on the menu items as listed above, it keeps going back to the front page. I unpublished Advanced SEF and publish the regular SEF, and all links are working. Something must be wrong... I hope someone can help me out.


Thanks.


RedBox


Last edited by RedBox on Wed Feb 08, 2006 5:06 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Feb 09, 2006 5:11 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Oct 07, 2005 4:45 pm
Posts: 64
kenmcd wrote:

Summary of Installation Steps
Advanced SEF Bot file name:  joomla1.1_bot_extsefbot_1.0_predator.zip

1. Install Joomla 1.1.0 alpha
2. Enable standard SEF (Global Configuration > SEO > Search Engine Friendly URLs > Yes)
3. Rename htaccess.txt file to .htaccess
4. Make sure standard SEF URLs are working (FAQs URL is http://www.example.com/content/category/3/7/25/)
5. Install Advanced SEFBot  (Installers > Mambots > Browse > Upload File & Install)
6. View and Save Parameters (Mambots > Site Mambots > Joomla! Advanced SEF URLs > Save)
7. Un-publish standard SEFBot (Joomla SEFURLBot,  joomla.sefurlbot)
8. Publish Advanced SEFBot (Joomla! Advanced SEF URLs,  joomla.extendsefbot)


Well since no one has responded, I suppose no one knows the answer. So I figured I'll try it with Joomla! 1.1 Alpha2. However, it seems like Site Mambots is no longer there. Has anyone tried this on Joomla! 1.1 Alpha2?

I got to Step 4 just fine with Alpha2. For step 5, I selected Extensions and and then Upload File & Install. It seems to install properly with no error messages. After that, I have no idea how to complete step 6 onwards. I poked around and clicked on 'Extensions' > 'Plugins'. I can see 'Joomla! Advanced SEF URLs' on the installed Plugins list but can't click on it.

Not knowing what to do, I checked SEF and clicked on the 'Uninstall' button on the top right, which I think is the wrong thing to do because now none of the links are SEF...  :laugh:

If anyone has any new steps that I can try again, I would appreciate if you can post it here.

Thanks. :)


RedBox


Top
 Profile  
 
PostPosted: Thu Feb 09, 2006 5:59 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Oct 07, 2005 4:45 pm
Posts: 64
Ok.. for some reason I missed clicking on Plugins. I updated the steps to reflect Joomla! 1.1 Alpha2

1. Install Joomla 1.1.0 alpha2
2. Enable standard SEF (Global Configuration > SEO > Search Engine Friendly URLs > Yes)
3. Rename htaccess.txt file to .htaccess
4. Make sure standard SEF URLs are working (FAQs URL is http://www.example.com/content/category/3/7/25/)
5. Install Advanced SEFBot  (Extensions > Browse > Upload File & Install)
6. View and Save Parameters (Plugins > Site Plugins > Joomla! Advanced SEF URLs > Save)
7. Un-publish standard SEFBot (Joomla SEF URLs,  joomla.sefurlbot)
8. Publish Advanced SEFBot (Joomla! Advanced SEF URLs,  joomla.extendsefbot)


RedBox


Last edited by RedBox on Thu Feb 09, 2006 2:23 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Feb 09, 2006 6:03 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Oct 07, 2005 4:45 pm
Posts: 64
Grrr....  :( :( I think I need a break. After publishing Joomla! Advanced SEF URLs, my site is coming up blank. Unpublish it and re-publish Joomla SEF URLs and everything works again. Sigh...


RedBox


Top
 Profile  
 
PostPosted: Wed Mar 22, 2006 2:22 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Oct 07, 2005 4:45 pm
Posts: 64
I downloaded the nightly 1.1 build on March 20 and tried using this Advanced SEF Bot but am getting the following errors when installing it (Step 5 if you follow the posts above). I am not sure where to report it so I will post it here. After getting the error the first time, I removed the whole site and reinstalled it from scratch but got the same error.

JWarning: JInstaller::install: File C:\Program Files\Apache Group\Apache2\www\wwwtesta\media\install_4420b42f9e6fd\joomla.extendsefbot.php does not exist

C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\utilities\error.php:220
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\utilities\error.php:160
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\utilities\error.php:98
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\installer\installer.php:856
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\installer\installer.php:608
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\installer\installer\plugin.php:93
C:\Program Files\Apache Group\Apache2\www\wwwtesta\administrator\components\com_installer\admin.installer.php:113
C:\Program Files\Apache Group\Apache2\www\wwwtesta\administrator\components\com_installer\admin.installer.php:514
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\document\module\renderer\Component.php:119
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\document\document.php:419
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\document\document.php:460
C:\Program Files\Apache Group\Apache2\www\wwwtesta\administrator\index2.php:109
JWarning: JInstallerPlugin::install: Failed to copy files to "C:\Program Files\Apache Group\Apache2\www\wwwtesta\plugins\system\"

C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\utilities\error.php:220
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\utilities\error.php:160
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\utilities\error.php:98
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\installer\installer\plugin.php:95
C:\Program Files\Apache Group\Apache2\www\wwwtesta\administrator\components\com_installer\admin.installer.php:113
C:\Program Files\Apache Group\Apache2\www\wwwtesta\administrator\components\com_installer\admin.installer.php:514
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\document\module\renderer\Component.php:119
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\document\document.php:419
C:\Program Files\Apache Group\Apache2\www\wwwtesta\libraries\joomla\document\document.php:460
C:\Program Files\Apache Group\Apache2\www\wwwtesta\administrator\index2.php:109


RedBox


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group