[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!
Scam Warning
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)
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 » Wed Jun 07, 2017 2:12 pm

No, those extensions pull it's info into the viewtopic page with event templates. This extension inserts the Posted via mobile data in the posts table with each message. You can not compare these different ext.

After disabling this extension the images will have to be left in place. Or image will show in all the posts made via mobile instead of the mobile image. You would have to edit each post to take them out.

I'll see if I can think of another way of delivery but I have no clue right now. Not using the image in the post message to start with is the only way around this issue.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

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 » Wed Oct 18, 2017 8:54 pm

Theriddler1 wrote:
Thu Jun 01, 2017 10:08 am
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.
I'm working on an update for this ext now, wrestling through a few problems.

I will look into maybe having the [ Post made via Mobile Device ] post another way. But each one of those are defined during each post. Off the top of my head I still can't see how to make this post in an event template and tie it in per post id. That is kind of out of my coding knowledge.

But I'll put my thinking cap on.

Look the [ Post made via Mobile Device ] is in the event/listener.php

Code: Select all

	public function posting_modify_message_text($event)
	{
		$message = $event['message_parser'];
		$this->user->data['is_mobile'] = $this->mobile_device_detect();

		if ($this->user->data['is_mobile'] && $event['mode'] != 'edit' && !$event['preview']	&& !$event['refresh'])
		{
			$status = $this->mobile_device_detect();
			$board_url = generate_board_url() . '/';
			$text = $this->user->lang['POST_MADE_VIA'];
			$message->message .= "\n\n[size=85][b][i][ " . $text . " " . $status[1] . " ][/i][/b][/size] [img]" . $board_url . "ext/sniper/mobiledevice/images/" . $status[1] . ".png[/img]";
			$event['message_parser'] = $message;
		};
	}
You could always take the image part out of that line. Shorten that $message->message .= line.

Code: Select all

$message->message .= "\n\n[size=85][b][i][ " . $text . " " . $status[1] . " ][/i][/b][/size]
[ Post made via Butt Call ] Image
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

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 » Wed Oct 25, 2017 6:46 pm

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.
Yes, I will create another table for the posts then add an event template to append the "Post made via Mobile Device" in with the post. Then disabling the extension will remove it from all your previous posts. But sorry, in your old posts with previous versions of mobiledevice you will have to manually edit them out.

I will also create switches in acp and ucp so anyone can disable any of the features they don't want to see. This will include disabling seeing your own notifications and images in your viewtopic posts and your profile. This was a request from awhile back.

Coming soon to a server near you!

[ Post made via Samsung Galaxy S5 Active ] Image
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
dmzx
Registered User
Posts: 730
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [RC] Mobile Device

Post by dmzx » Fri Oct 27, 2017 9:28 am

;)
dmzx-web.net - Need a Host? - Want to Donate

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 » Wed Nov 08, 2017 12:40 am

It's almost ready for release. dmzx... Is doing his magic on the coding part of this and it will be ready to roll out.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

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 » Sat Nov 18, 2017 4:01 am

Extension Update: Mobile Device 1.0.5

Please let me have your comments/requests.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
lopoto
Registered User
Posts: 93
Joined: Thu Feb 12, 2015 3:13 pm

Re: [RC] Mobile Device

Post by lopoto » Sat Nov 18, 2017 2:42 pm

THX Sniper_E for you work

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 » Sat Nov 18, 2017 4:13 pm

Awesome! Will be giving the new version a go. :mrgreen:

scheccia
Registered User
Posts: 35
Joined: Fri Feb 10, 2017 8:16 am

Re: [RC] Mobile Device

Post by scheccia » Sun Nov 19, 2017 1:16 pm

i have this page error when try to go in settings
La pagina web all'indirizzo http://127.0.0.1/testforum/adm/index.ph ... ode=config potrebbe essere temporaneamente non disponibile oppure è stata permanentemente spostata a un nuovo indirizzo web.
ERR_CONTENT_DECODING_FAILED

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 » Sun Nov 19, 2017 6:28 pm

ThE KuKa pointed out at Github some text issues in the lang files. I changed the text and updated the download right away.

Download the extension again and copy these files over the ones on your server. Refresh browser, no need to disable ext.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

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 Dec 11, 2017 4:10 am

First post updated to Mobile Device version 1.0.6

Added test device with desktop in settings and enhanced some other features.
Please give it a test run and report any issues. Thank you!
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:

User avatar
german-german
Registered User
Posts: 46
Joined: Sun Jan 15, 2017 1:56 am
Location: Buenos Aires - Argentina
Name: Germán A. Sassone
Contact:

Re: [RC] Mobile Device

Post by german-german » Wed Dec 13, 2017 10:33 pm

Download link broken (?

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 Dec 14, 2017 12:08 am

Fixed...
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: 1825
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: [RC] Mobile Device

Post by John connor » Thu Mar 29, 2018 7:08 am

Hi. I'm using this extension in 3.2.2 and it works well, I haven't upgraded to the latest yet since I have a custom UA there and I need to modify the code again which I can't remember off hand now to do the upgrade. But my question is I get an error with using PHP 7.2.3.

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/AustinMaddox/s3/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 67: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 542: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 543: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 542: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 543: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4517: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4517: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4517: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)

The other extension is the AWS extension and I asked him about it as well. Do you why I would get this?

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

Re: [RC] Mobile Device

Post by John connor » Sat Jun 02, 2018 11:15 am

Another question: How can I prevent others from copying my Sig line and using it in their post? I have my own custom UA that shows a Pic of a drone and I'd like to make it so only my posts can display it and not have someone else copy that code from my post and insert it into their post.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Hippie459MN and 21 guests