Get XOOPS XOOPS FAQ Forums News Themes Modules
News World of XOOPS Developers Hacks Modules Themes Archive Submit News

XOOPS vs. Herko Coomans

Make a donation

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Search

Local Support Sites

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Google GUI hacks instant-zero jQuery module news Nordic Olédrion oxygen PageRank security SEO simple-XOOPS sport tag Theme wiki xoops

New Users

Registering user

# 96568

dvsshoescom

Welcome to XOOPS!

Archives

XOOPS Code hosted on SourceForge

xoBile (XOOPS Mobile) [v1.1 RTU]

Posted by Dylian on 2009/11/27 15:00:00 (1550 reads) | Posted on Modules
This module allows you to show your XOOPS website on a mobile phone. (If there are plugins available for the modules you use)

Open in new window

Name: xoBile
Version: 1.1 [RTU] (RTU = Ready To Use)
Release: 27-11-2009

New in this version:
1. Added the articles plugin made by LadyHacker.
2. Added XOOPS Code replacing.
3. Added the posibility to style xoBile (For xhtml compatible phones).

Requirements:
- XOOPS 2.4*
- PHP 5 *

Installation:
- You can simply install this module as a standard XOOPS module.

Upgrade from xoBile v0.9x:
1. Uninstall the old fresh from the module through XOOPS Administration;
2. Remove the old version of the module of the server (eg via FTP);
3. Upload the latest version of the module;
4. Install the new version of the module through XOOPS administration.

Upgrade from xoBile v1.0:
1. Overwrite all the old files with the new one;
2. Update the module in the XOOPS module administration.

Questions:
- If you have questions, comments or requests you can place them on the forums on my website. (You can post in English, although the forum is Dutch)

DEMO HERE (Dutch)
DOWNLOAD HERE

* NOTE: This module is "Ready To Use" but this does not mean that it can't contain bugs.


Printer Friendly Page Send this Story to a Friend Create a PDF from the article


Bookmark this article at these sites

                   

The comments are owned by the poster. We aren't responsible for their content.

Very nice work, Dylian! Congratulations!!!
Posted: 2009/11/27 15:14 • Updated: 2009/11/27 15:14
Nice work and thanks for your efforts, i am getting this error which might be minor but what the solution please.

The selected plugin page could not be found! (Plugin: / Page: main.php)

Am using newbb only.
Posted: 2009/11/27 16:47 • Updated: 2009/11/27 16:47
Strange, did you do a clean install or a upgrade?
And where do you get the message? On the main page or when you open the newbb plugin?

Greets Dylian.

BTW For everyone upgrading xoBile from v1.0 please delete the index plugin.
Posted: 2009/11/27 18:46 • Updated: 2009/11/27 18:57
Quote:
Strange, did you do a clean install or a upgrade? And where do you get the message? On the main page or when you open the newbb plugin?


I did a Clean install and i am getting the error on the main page modules/xobile/index.php. I have also tried the article plug in and its giving the same error.

Here is what i did

First i uninstalled old xoBile from the admin.
Deleted the folder from the server.
Uploaded v1.1 and installed from admin
Updated the new module from admin.
Then installed Forum (Newbb) from the list of available plug-ins.

Am using XOOPS 2.4.1
Posted: 2009/11/27 19:05 • Updated: 2009/11/27 19:05
Fantasic, it was great to have a chat to you about the development of more Bile.. Ectoplasm for Mobiles, you could redirect to it with WURFL.. from the main file so if u are on a mobile.. It will redirect when a WURFL device is detected some for of mobile.

The plugins are nice.
Posted: 2009/11/27 19:59 • Updated: 2009/11/27 19:59
@bumpeyboy: Is the system plugin in the plugins folder? I recreated your setup and did a clean install and a upgrade and here it seems to work fine.

@wishcraft: WURFL redirection added. But my built-in redirection is still the default option.
Posted: 2009/11/28 6:02 • Updated: 2009/11/28 12:56
Dylian the system plugin is in the plugins folder. Has anyone else installed the module and it worked without a problem?
Posted: 2009/11/28 13:28 • Updated: 2009/11/28 13:28
add your site logo to xobile
open class/core.php
add this in function loadHeader
replace
this line

 $xoBile_text 
= new HAW_text($this->sitename);

with the following

 $xoBile_logo 
= new HAW_image("","url of image",$this->sitename);
            
            
$this->add_image($xoBile_logo);

Posted: 2009/11/28 13:31 • Updated: 2009/11/28 13:44
LadyHacker on which folder,file and line should the above be added? Its always good to be precise.
Posted: 2009/11/28 13:33 • Updated: 2009/11/28 13:33
ok read above sorry about the mistake i was still writting it but posted by mistake
Posted: 2009/11/28 13:34 • Updated: 2009/11/28 13:34
LadyHacker thats nice, thanks. Is the module working perfectly from your side?
Posted: 2009/11/28 13:37 • Updated: 2009/11/28 13:37
yeah it is wroking without any error.
Posted: 2009/11/28 13:39 • Updated: 2009/11/28 13:39
Hmm everything just go fine and the test trough the website also ok
But when i test this with a real iphone i get a error message "file cant be downloaded)

In Dutch : "Downloaden mislukt"
Posted: 2009/11/28 13:47 • Updated: 2009/11/28 13:47
invalid argument in use_simulator();

installed v.1.1 locally works fine. giving the above error on server
Posted: 2009/11/28 17:01 • Updated: 2009/11/28 17:01
@Yurdal: That's a mistake made by myself :-p, i thougt i should redirect iphone's to the mobile xhtml version of xoBile.

You can fix this by changing this line in xobile\include\mobilecheck.inc.php:
if(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) return "xhtml";

To:
if(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) return true;


Or redownload the package and overwrite include/mobilecheck.inc.php with the one in the package.

And LadyHacker, your error actualy means the template isn't set or is set incorrectly, i'm trying to find the cause of this problem but didn't find anything yet.
Wich PHP version do you use on your local server? And wich php version do you use on your public server?
Posted: 2009/11/28 18:40 • Updated: 2009/11/28 20:05
local server i am using xampp with PHP Version 5.2.9

in remote server using 5.2.11
Posted: 2009/11/28 18:51 • Updated: 2009/11/28 18:51
@LadyHacker:
Does the xoops debug return any errors or RED queries?

@Bumpeboy:
Quote:
The selected plugin page could not be found! (Plugin: / Page: main.php)

This error message actualy made me aware of a bug in the error reporting of xoBile .

@Everyone using xoBile v1.1:
Please update to xoBile v1.1.1, you can download it [HERE]

@Bumpeboy again, please upgrade xoBile and post the error message again. (Plugin: --- Will hopefully contain data this time )

Greets Dylian
Posted: 2009/11/28 19:58 • Updated: 2009/11/29 2:25
Hi dylin, the debug doesnt return any error. There is no error in debug
Posted: 2009/11/29 0:51 • Updated: 2009/11/29 0:51
Quote:
@Everyone using xoBile v1.1: Please update to xoBile v1.1.1, you can download it [HERE]


Same error,
The selected plugin page could not be found! (Plugin: system / Page: main.php)

I have done the whole thing again, the download link on your site has given this Version - 1.1 and not 1.1.1,
Posted: 2009/11/29 3:23 • Updated: 2009/11/29 3:23
No, it is version 1.1.1 but the XOOPS module administration rounds of to one decimal.

But about your problem, there can only be four things causing your problem....

1. The system plugin isn't uploaded!
2. The file include/config.inc.php isn't uploaded....
3. Your xoBile instalation/database table is corrupt.

Do you have access to your database with phpmyadmin (or any tool you like...)?
If yes could you check if you see a row in the {prefix}_xoBile_plugins table where plugdir is set to system?

@LadyHacker: Wich skin/template are you using? And do you still get the error message if you replace this line in xobile/class/core.php (line 27):
$this->template $GLOBALS['xoBileConfig']['template'];

With:
$this->template HAW_SIM_CLASSIC;


Greets Dylian.

BTW I could be that i won't response till tomorrow, because i'm busy trying to rewrite all module adresses of me website .
Posted: 2009/11/29 3:47 • Updated: 2009/11/29 4:23
replaced the line still the same. will have a look at the database.

but i tested the same module on another server it works fine. could it be server issue? or database
Posted: 2009/11/29 4:13 • Updated: 2009/11/29 4:13
Updated my previous post (That was the wrong code )

Please try it again with the new line.

If you get a old fashioned "simulator" the code worked, and it means there is somthing wrong with the template settings.

So please report .

Greets Dylian.

BTW Is anyone else getting errors? If so please report. (Can't fix what i don't know)
Posted: 2009/11/29 4:28 • Updated: 2009/11/29 4:29
this is a problem in my server trying to track it down. i installed in my other account with the same host it works fine. it could be some sort of issue in my site
Posted: 2009/11/29 4:32 • Updated: 2009/11/29 4:32
1. The system plugin isn't uploaded! Its uploaded
2. The file include/config.inc.php isn't uploaded....Its uploaded
3. Your xoBile instalation/database table is corrupt. Maybe

Do you have access to your database with phpmyadmin (or any tool you like...)?
If yes could you check if you see a row in the {prefix}_xoBile_plugins table where plugdir is set to system?

Its set to system and newbb

Quote:
plugdir
Edit Delete sytem
Edit Delete newbb

Posted: 2009/11/29 4:40 • Updated: 2009/11/29 4:40
still the same error
the old version was working fine. dont know why this new version giving this error. there is nothing much changed in this version still giving the error.
Posted: 2009/11/29 4:57 • Updated: 2009/11/29 5:01
@Bumpeboy, can i get a link to see it for myself??? And what does the content of you'r qoute mean??

@LadyHacker, there are very much changes from 1.0 to 1.1/1.1.1 . Can you post the contents of your core.php here? At least line 24 till 44?

Greets Dylian
Posted: 2009/11/29 5:31 • Updated: 2009/11/29 5:32

class xoBile_core extends HAW_deck {
    var 
$sitename;
    var 
$template;
    var 
$backlink;
    var 
$backURL;
    function 
__construct($backlinkV){
        
$this->HAW_deck($GLOBALS['xoopsConfig']['sitename'], HAW_ALIGN_LEFT);
        
$this->sitename $GLOBALS['xoopsConfig']['sitename'];
        
$this->template $GLOBALS['xoBileConfig']['template'];
        
$this->backlink $backlinkV;
        
$this->backURL  "index.php";   
    }
    
    function 
loadheader() {
        
$this->use_simulator($this->template);
        
$this->set_css($this->template);
        
$this->use_link_brackets(false); 
        if(
$GLOBALS['plugin']['plugdir'] == "system"){
            
$xoBile_text = new HAW_text($this->sitename);
        }else{
            
$xoBile_text = new HAW_text($GLOBALS['plugin']['name']);
        }
        
$xoBile_text->set_css_class("toolbar");
        
$this->add_text($xoBile_text);
    }

Posted: 2009/11/29 5:35 • Updated: 2009/11/29 5:35
Yeah i really think thats a server problem, but normally this should work, because normally you only get that error when no skin css file is specified.
SEE (class/hawhaw.php):
function use_simulator($sim="http://skin.hawhaw.de/skin.css")
  {
    if (
$sim === HAW_SIM_NONE)
      
$this->use_simulator HAW_SIM_NONE;
    else if (
$sim === HAW_SIM_CLASSIC)
      
$this->use_simulator HAW_SIM_CLASSIC;
    else if (
is_string($sim))
    {
      
$this->use_simulator HAW_SIM_SKIN;
      
$this->skin $sim;
    }
    else
      die(
"invalid argument in use_simulator()");
  }



I'll try to recreate your problem, but if it's a problem of your installation, i don't think it's possible to recreate you problem. (Using XAMPP for testing)

Greets Dylian.
Posted: 2009/11/29 6:12 • Updated: 2009/11/29 6:14
yeah i checked this class. i installed the module to another account it works perfectly with no errors. i used xammpp for testing it works fine. dont know what could be wrong with server?
Posted: 2009/11/29 6:25 • Updated: 2009/11/29 6:25
Maybe xoBile 1.2 RTT will work for you, if everything goes on scedule v1.2 will be released before wednesday. [edit]Ok, it didn't so it won't be released before wednesday , but i hope i get al the problems fixed before the end of the week.[/edit]

It will have WURFL redirection.
It will have a permission check. (This is the only thing that could delay release...)
It will check the capabilities of a device with WURFL.
And last but not least, a few minor bugs are corrected.

Greets Dylian.
Posted: 2009/11/29 7:47 • Updated: 2009/12/1 10:20
I did the update but still no luck, the error remains " downloaden mislukt" i cleared the cache and the cookie from my iphone but still stuck...
Posted: 2009/11/29 8:48 • Updated: 2009/11/29 8:48
Dutch: Dat is echt een nadeel van geen iPhone hebben. Testen is bijna onmogelijk. Naar welke url wordt je doorgestuur? modules/xobile/?hawoutput=xhtml of zonder ?... erachter?

Groetjes Dylian. (Zullen we verder praten op xoops.nl?)
----------------------------------

English: Thats a disadvantage of not having a iPhone, testing is almost imposible. What is the url you get redirected to? modules/xobile/?hawoutput=xhtml or without ?... behind it?

Greets Dylian. (Could we talk further on xoops.nl?)
Posted: 2009/11/29 9:10 • Updated: 2009/11/29 9:15
Hi Dylan
There is probely something wrong with the re-direction because when i do www.site.com/modules/xobile on the iphone it works fine but when i go with the iphone www.site.com only it gives this error
Posted: 2009/11/29 10:04 • Updated: 2009/11/29 10:04
I gues something went wrong with updating xoBile to v1.1.1, please try it again and otherwise try what happens if you do the hack manualy?

The explanation you give above tells me the mobile phone check still redirects to the mobile xhtml page of xobile. And in v1.1.1 it doesn't do that anymore.

Greets Dylian.
Posted: 2009/11/29 13:56 • Updated: 2009/11/29 13:56
I already downloaded 1.1.1 and i have checked the file you mention , but still no luck :(
Posted: 2009/11/29 15:06 • Updated: 2009/11/29 15:06
Hope you don't mind, Dylian, but I've opened a forum topic here for your users to post their problems in rather than use the comments area. Thanks.
Posted: 2009/11/29 19:23 • Updated: 2009/11/29 19:23