[RC] Mobile Device

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Post Reply
User avatar
Sniper_E
Registered User
Posts: 730
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [RC] Mobile Device

Post by Sniper_E » Thu Nov 19, 2015 4:45 am

John I have no idea what you have going on there.
The mobile images are in the ext/sniper/mobiledevice/images/ directory.

You have page/ext/sniper/mobiledevice/images/ and adm/ext/sniper/mobiledevice/images/
which is pulling from who knows where. page/ and adm/ have nothing to do with this ext.

I can't duplicate that problem. You must have something else causing that.
And 2000px max width is way too large for an image or a flash. 600px would be more like it.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
John connor
Registered User
Posts: 1836
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: [RC] Mobile Device

Post by John connor » Thu Nov 19, 2015 9:49 am

I have the size set to zero now, but I'll try a smaller size. I figured 2000x2000 was good enough for users of multiple monitors or larger screens. So I would accommodate that. I don't allow anyone to upload flash except Admins and Mods.

User avatar
Sniper_E
Registered User
Posts: 730
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [RC] Mobile Device

Post by Sniper_E » Thu Nov 19, 2015 4:04 pm

You can set the max-width to whatever you want.

phpBB prosilver style has a max-width:

Code: Select all

#wrap {
	border: 1px solid transparent;
	border-radius: 8px;
	margin: 0 auto;
	max-width: 1152px;
	min-width: 625px;
	padding: 15px;
}
Out of that max-width: 1152px; the forum is smaller and the profile section takes up room.
The actual max space available in the post section is around 870px.

But still... no matter what size I set that to in the ACP, the images still post for me with no error.
I bet you have something else going on in your site. Another extension maybe, I don't know.

Is anyone else having this same problem?
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
John connor
Registered User
Posts: 1836
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: [RC] Mobile Device

Post by John connor » Fri Nov 20, 2015 3:00 am

Sniper_E wrote:Is anyone else having this same problem?

Yeah, they were. I created a different board and all my new users and their uncle it seems are using a smartphone. So when the image from this EXT was posted it would shoot the error out. Luckily I caught this right away with another poster disabling parse which for some reason worked to allow him to post.

User avatar
Sniper_E
Registered User
Posts: 730
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [RC] Mobile Device

Post by Sniper_E » Fri Nov 20, 2015 5:45 am

John connor wrote:
Sniper_E wrote:Is anyone else having this same problem?
Yeah they were, all my new users and their uncle.
:lol: I didn't mean is anyone else on your board having this same problem. Your board is where the problem is located at. I meant is anyone else that has installed this extension having this same problem.

I tried to duplicate the error you are having on three different boards and can not get an error.
And if everyone else and their aunt that has this extension installed is not having that problem...
Then there has to be something on your boards causing that and not this extension.

I will create a new board and install this to check it out one more time.
Where does that page/ and that adm/ come from in your mobile image links?

I am not sure exactly what Enable URL Rewriting: does but check that setting.
John, I really don't know where to help you. But I will check it out again...
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
John connor
Registered User
Posts: 1836
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: [RC] Mobile Device

Post by John connor » Fri Nov 20, 2015 10:40 am

Well, the 404's aren't that big of a deal. But what I would like to know is why I have to use 0 in the max image size so that I don't get the error when posting from a mobile device.

I might load up a clean new phpBB board in Xampp and see what happens. Come to think of it, I never tested this in my current Xampp install on the computer. Just on the live site.

I thought the firewall in my .htaccess file was the issue, but it wasn't.

Edit-

Now for some reason my first board works with the 2000x2000 image limit, but the second board doesn't. The second board is an addon domain, which is funny in the way it works you have to add code to the .htaccess code for the domain to redirect properly. Not sure if that's it or not.

Also, in Xampp I don't have this error with the 2000x2000 image setting. This more than likely means a .htaccess issue or the host.

Berthold
Registered User
Posts: 6
Joined: Mon Jun 22, 2015 3:31 pm

Re: [RC] Mobile Device

Post by Berthold » Wed May 25, 2016 7:05 pm

Thanks for this cool extension.

Is it possible to use the mobile detection of this extension from another extension (via require or something else)? Or is there another way to detect a mobile device in a php-file?

User avatar
wkuzma
Registered User
Posts: 389
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [RC] Mobile Device

Post by wkuzma » Fri May 27, 2016 6:40 pm

I just tried to install this ext and when I select it in acp I get this error

Fatal error: Cannot access private property tas2580\mobilenotifier\acp\mobilenotifier_module::$u_action in /home2/iogcodfo/public_html/test/includes/functions_module.php on line 625

User avatar
Hippie459MN
Registered User
Posts: 894
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [RC] Mobile Device

Post by Hippie459MN » Fri Mar 17, 2017 4:51 pm

Sniper, on v1.0.4 and it is working great on 3.2.0 here but have one little question, How would I go about removing the little mobile device icon next to the username when on a mobile device? Dont really think its necessary (Im pretty sure I know if im on mobile device or a desktop LoL) and I think it takes away from the look and would like to get rid of it.

Thanks.
Image

User avatar
Sniper_E
Registered User
Posts: 730
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: [RC] Mobile Device

Post by Sniper_E » Mon Mar 20, 2017 9:11 pm

There is an event template that you can delete to remove that image. I would have to be home to see whichange one. Find the one with viewtopic.php in the name and delete it. Be in acp before you delete and refresh cache after you delete it. The board will give you an error if you don't refresh.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
Hippie459MN
Registered User
Posts: 894
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [RC] Mobile Device

Post by Hippie459MN » Mon Mar 20, 2017 10:03 pm

Sounds good. :) Thanks.

User avatar
John connor
Registered User
Posts: 1836
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: [RC] Mobile Device

Post by John connor » Fri May 26, 2017 12:48 pm

Delete.

User avatar
Theriddler1
Registered User
Posts: 447
Joined: Sat Aug 27, 2011 11:00 pm
Location: NL
Name: Theriddler❶
Contact:

Re: [RC] Mobile Device

Post by Theriddler1 » Wed May 31, 2017 8:59 pm

As nice as this extension seems the trouble begins when you uninstall the extension.
You have to keep the phone image files on the server because the phone images are still present in the post pages.

Is it possible to remove them when you uninstall the extension.
Theriddler - Moderator @ phpBB.nl | phpBBservice.nl Team-member
ImageSupport Tools | Image My Extensions | buy me a beer Image

User avatar
John connor
Registered User
Posts: 1836
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: [RC] Mobile Device

Post by John connor » Thu Jun 01, 2017 3:31 am

Theriddler1 wrote:
Wed May 31, 2017 8:59 pm
As nice as this extension seems the trouble begins when you uninstall the extension.
You have to keep the phone image files on the server because the phone images are still present in the post pages.

Is it possible to remove them when you uninstall the extension.
Yeah, that is a problem. I don't have any reason to remove the extension, but if you change domains or uninstall it, you would have to use the database to remove that line from post's. I don't know what kind of query you could run though.

User avatar
Theriddler1
Registered User
Posts: 447
Joined: Sat Aug 27, 2011 11:00 pm
Location: NL
Name: Theriddler❶
Contact:

Re: [RC] Mobile Device

Post by Theriddler1 » Thu Jun 01, 2017 10:08 am

John connor wrote:
Thu Jun 01, 2017 3:31 am
I don't know what kind of query you could run though.
I have to look into it or even beter the extension author but as it seems this extension uses the img bbcode and it stores into the database in the post pages (post text). If i look for example at another extension "thanks for posts" or Browser & OS in Viewtopic (dmzx) it has it's own database columns so when you remove them you remove all entries out of the post pages no traces left.

So i believe if this extension uses own database tables to store it's data connected with the post id where to show it will be better.
Theriddler - Moderator @ phpBB.nl | phpBBservice.nl Team-member
ImageSupport Tools | Image My Extensions | buy me a beer Image

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: aedgington, Gubkin, Midway and 27 guests