PDA mambot 2.1
This project and information is deprecated. Please visit Mobile Joomla! project at mobilejoomla.com for the latest and best way of mobilize Joomla! web sites. Thank you very much for your support.
Changes in the new version:
- Now there is no division into “pda-bot” and “pda-subdomain-bot”. All is set up within the framework of one plugin.
- It is possible to remove optionally pictures (img) and others tags (iframe, object, applet, embed. script) which can seem to you “superfluous” in the version for a pda.
- It is possible to set a name of a subdomain (not necessarily pda.*).
- Specially for developers - the global variable $ispda (or $GLOBALS[’ispda’]) is created (accepting value “true” in case of pda-version of a site, and “false” otherwise).
- It is possible to install and uninstall a patch for joomla cache directly in mambot parameters (in a block of mambot description).
- And others.
It is shortly planned to publish a series of illustrated articles devoted to installation and adjustment of this plugin.
Don’t forget to uninstall previous version of mambot and template before install new one.
27 Responses to “PDA mambot 2.1”
You can follow any responses to this entry through the
RSS 2.0 feed.
September 3rd, 2007 at 2:11 pm
Dear,
I am trying to unzip the pda-bot-2.1.zip but there seems to be a compression error.The template unzips fine.
rg
Fonny
September 3rd, 2007 at 2:15 pm
fonny:
Strange (I unpack it successfully). May be it is because archive contains subfolder. Try tar.gz-version: pda-bot-2.1.tar.gz
September 3rd, 2007 at 2:38 pm
Physicist,
Thanks, unpacks like a charm now.
gr
Fonny
September 3rd, 2007 at 3:05 pm
Physicist,
Looks like the bot has a problem when the site is in a subdir.
I changed pdabot.php (in line 102-103) to :
# if($botParams->get( ‘homepage’ ) &&
# ($_SERVER[’REQUEST_URI’]==’/’ || $_SERVER[’REQUEST_URI’]==’/index.php’) )
$uri = str_replace ($_SERVER[’REQUEST_URI’], ‘/’, $_SERVER[’SCRIPT_NAME’]);
if($botParams->get( ‘homepage’ ) && ($_SERVER[’REQUEST_URI’]==’/’ || $uri==’/index.php’) )
Now the bot is redirecting to the right url
gr
Fonny
September 3rd, 2007 at 3:16 pm
Thanks.
But right way must be like:
$parsed=parse_url($mosConfig_live_site); $path=isset($parsed['path'])?$parsed['path']:''; $subdomain=$botParams->get('subdomainname').'.'; if( $botParams->get( 'subdomain' ) && substr($_SERVER['HTTP_HOST'],0,strlen($subdomain))==$subdomain ) { $mosConfig_live_site='http://'.$_SERVER['HTTP_HOST'].$path; $GLOBALS['ispda']=true; } if( $botParams->get( 'useragent' ) && CheckAgent() ) { $GLOBALS['ispda']=true; } if( $GLOBALS['ispda'] ) { $_COOKIE['jos_user_template']=$botParams->get( 'pdatemplate' ); $homepage=$botParams->get( 'homepage' ); if($homepage && ($_SERVER['REQUEST_URI']==$path.'/' || $_SERVER['REQUEST_URI']==$path.'/index.php') ) { $GLOBALS['pdahome']=1; $_SERVER['REQUEST_URI']=$path.'/'.$homepage; if(substr($homepage,0,10)=='index.php?') { $_SERVER['QUERY_STRING']=substr($homepage,10); parse_str($_SERVER['QUERY_STRING'],$_REQUEST); } } }September 3rd, 2007 at 4:11 pm
I’ve updated pda-bot-2.1 distributive. Above discussed problem fixed (I hope).
September 3rd, 2007 at 4:51 pm
Hi,
pda-bot.2.1.zip has still the same problem. Subfolders shouldn’t be a problem as template has also one.
If it can help you I am working on a Mac.
Have manually made fixes and seems to work.
Thanks for the assistance.
gr
Fonny
September 3rd, 2007 at 5:00 pm
What is your joomla settings?
1. Joomla version
2. Cache (On/Off)
3. SEF (On/Off)
4. Full site address (e.g. http://localhost/joomla/)
5. PDA device
6. Address you set for pda-homepage
September 3rd, 2007 at 5:59 pm
I am just extracting the file local on my system. No Joomla involved.
Using Mac OSX 10.4.10
Double-click on the template.zip -> no problem
Double-click on the bot give error : unable to unarchive ‘pda-bot-2.1.zip’ into ‘Desktop’. (Error 1 - Operation not permitted.)
September 3rd, 2007 at 6:21 pm
fonny:
I had no problem in opening this file (I use 7-zip). To make sure I had uploaded both zip and tar.gz archives (see links in the post).
By the way, Joomla! unpack and install this zip archive without problem.