[ABD] [RC2] phpBB Mobile 2.0.0

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by Nawid » Mon Jan 24, 2011 9:03 pm

I believe it says:

adding acp module: acp/info/acp_mobile.php
failed
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com

User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by callumacrae » Mon Jan 24, 2011 9:07 pm

Nawid wrote:I believe it says:

adding acp module: acp/info/acp_mobile.php
failed
Did you copy all files correctly? That error definitely shouldn't be there.

~Callum
macr.ae = my website. you probably won't like it.
Proud user ofProud user of

User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by Nawid » Mon Jan 24, 2011 9:30 pm

Now everything went ok. But now I have this problem.

As soon as I enable phpbb mobile from admin panel, I get this error:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/session.php on line 1612: preg_match() [function.preg-match]: Empty regular expression
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4768: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4770: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4771: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4772: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
I have dubbel checked all my edits and files...
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com

User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by callumacrae » Mon Jan 24, 2011 9:35 pm

Nawid wrote:Now everything went ok. But now I have this problem.

As soon as I enable phpbb mobile from admin panel, I get this error:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/session.php on line 1612: preg_match() [function.preg-match]: Empty regular expression
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4768: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4770: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4771: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4772: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
I have dubbel checked all my edits and files...
It looks like the config settings didn't install properly. In the ACP, set the regex to the default setting (you can find it in the install_mobile.php file)

~Callum
macr.ae = my website. you probably won't like it.
Proud user ofProud user of

User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by Nawid » Mon Jan 24, 2011 9:42 pm

Dear Callum,
I searched, but I didn't found User agent regex... :?
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com

User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by callumacrae » Mon Jan 24, 2011 9:57 pm

Nawid wrote:Dear Callum,
I searched, but I didn't found User agent regex... :?
I can find it right now cos I have no access to a computer, but if you wait until tomorrow I will be able to find it. If you want to find it yourself, go into root/install_mobile.php and look in the source code. Search for "/iP" without the quotes, and there you will find the regex. The whole thing will be something like /iPhone|Android|.../. Just copy it into the regex field in the ACP.

~Callum
macr.ae = my website. you probably won't like it.
Proud user ofProud user of

User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: [RC] phpBB Mobile 2.0.0

Post by prototech » Tue Jan 25, 2011 12:14 am

I see the problem now: fetch_imageset_cfg is not returning a value when imageset.cfg does not exist.

Find:

Code: Select all

			return $img_array;
		}
Replace with:

Code: Select all

		}
		return $img_array;
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.

sugar
Registered User
Posts: 3
Joined: Tue Jan 25, 2011 10:19 am

Re: [RC] phpBB Mobile 2.0.0

Post by sugar » Tue Jan 25, 2011 10:38 am

Hello everyone, I have some problem.
After installing, go into PCA-->Style-->phpBB Mobile,
if insert the check in "phpBB Mobile enabled?" without insert the string /iPad|iPhone|iOS|Opera Mobi|BlackBerry|Android|IEMobile|Symbian/ in "user agent regex" textbox i have this error:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/session.php on line 1595: preg_match(): Empty regular expression
if insert the chack (phpBB Mobile enabled?) and "user agent regex" with the string
/iPad|iPhone|iOS|Opera Mobi|BlackBerry|Android|IEMobile|Symbian/
nothing happens, and the changes are not saved, if I leave the page and return the check "phpBB Mobile enabled?" is not active

I read all this discussion and have tried:

Code: Select all

Replacing it with $this->img_array = array_merge($this->img_array, $this->fetch_imageset_cfg('mobile', true)); is working fine for me. Try replacing it with:

CODE: SELECT ALL
$this->img_array = array_merge((array) $this->img_array, (array) $this->fetch_imageset_cfg('mobile', true));

and this:

Code: Select all

I see the problem now: fetch_imageset_cfg is not returning a value when imageset.cfg does not exist.

Find:
CODE: SELECT ALL
         return $img_array;
      }

Replace with:
CODE: SELECT ALL
      }
      return $img_array;
but the result does not change.... :((
Sorry my English,
and thanks for your work

User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by callumacrae » Tue Jan 25, 2011 1:13 pm

Try setting the value manually in the database and purging the cache.

I'm not sure what's happened with you :/

~Callum
macr.ae = my website. you probably won't like it.
Proud user ofProud user of

sugar
Registered User
Posts: 3
Joined: Tue Jan 25, 2011 10:19 am

Re: [RC] phpBB Mobile 2.0.0

Post by sugar » Tue Jan 25, 2011 1:43 pm

I had the wrong theme settings, the option that forces the default theme was active, so the mobile was never displayed. Switched off and all ok.

"phpBB Mobile enabled?" is not selected and I am mistaken, but the theme is active

thx for the MOD ;)

User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by Nawid » Tue Jan 25, 2011 3:56 pm

I also did everything, but I'm still getting the error:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/session.php on line 1612: preg_match() [function.preg-match]: Empty regular expression
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
What did you do exactly sugar?
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com

User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by callumacrae » Tue Jan 25, 2011 4:06 pm

Nawid wrote:I also did everything, but I'm still getting the error:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/session.php on line 1612: preg_match() [function.preg-match]: Empty regular expression
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3726)
What did you do exactly sugar?
Try purging the cache, it might be that the config value never made it to cache (although that seems unlikely)

~Callum
macr.ae = my website. you probably won't like it.
Proud user ofProud user of

sugar
Registered User
Posts: 3
Joined: Tue Jan 25, 2011 10:19 am

Re: [RC] phpBB Mobile 2.0.0

Post by sugar » Tue Jan 25, 2011 4:07 pm

in PCA-->Setting i changed to "no" the "cancel user theme"

If this item is active phpbb always uses the default theme, for both desktop and mobile connections, if it is disabled for desktop connections phpbb sets the default theme, for mobile connections to the mobile theme

User avatar
Nawid
Registered User
Posts: 329
Joined: Sat Jun 27, 2009 4:32 pm
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by Nawid » Tue Jan 25, 2011 4:17 pm

Finally, it's working!

I have changed

Code: Select all

			$this->img_array += $this->fetch_imageset_cfg('mobile', true);

to this

Code: Select all

$this->img_array = array_merge((array) $this->img_array, (array) $this->fetch_imageset_cfg('mobile', true));
I changed this

Code: Select all

         return $img_array;
      }

to this

Code: Select all

      }
      return $img_array;

I went ACP-->Style-->phpBB Mobile,

I enabled + added

Code: Select all

/iPad|iPhone|iOS|Opera Mobi|BlackBerry|Android|IEMobile|Symbian/
in "user agent regex" textbox

And I also did what sugar said.


Thanks sugar, calum95 and prototech!

The mod is working now and I can now start styling and coloring this nice style!

EDIT: As soon as I login through my phone, the page is loading the desktop version of the style. As soon as I logout on my phone, the mobile theme show up again...
Image
Check SuperNova Orange style on:
SchoolLife.nl
phpBB.com

User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: [RC] phpBB Mobile 2.0.0

Post by callumacrae » Tue Jan 25, 2011 5:13 pm

Nawid wrote:Finally, it's working!

I have changed

Code: Select all

			$this->img_array += $this->fetch_imageset_cfg('mobile', true);

to this

Code: Select all

$this->img_array = array_merge((array) $this->img_array, (array) $this->fetch_imageset_cfg('mobile', true));
I changed this

Code: Select all

         return $img_array;
      }

to this

Code: Select all

      }
      return $img_array;

I went ACP-->Style-->phpBB Mobile,

I enabled + added

Code: Select all

/iPad|iPhone|iOS|Opera Mobi|BlackBerry|Android|IEMobile|Symbian/
in "user agent regex" textbox

And I also did what sugar said.


Thanks sugar, calum95 and prototech!

The mod is working now and I can now start styling and coloring this nice style!
Please share - I'm rubbish at styling! XD
Nawid wrote:EDIT: As soon as I login through my phone, the page is loading the desktop version of the style. As soon as I logout on my phone, the mobile theme show up again...
That sounds like a permissions issue - make sure the group you're in has "Can view mobile style" in "Misc" set to "Yes"

~Callum
macr.ae = my website. you probably won't like it.
Proud user ofProud user of

Locked

Return to “[3.0.x] Abandoned MODs”