I would like to implement something in the public stream or personal stream that show if the person sent via mobile or via desktop. Does anyone knows a mean to do so? For example sent via mobile web instead of sent via web Thanks, ranto
That needs to come from the client itself, StatusNet does that already, if you post via (as an example) the !snmobile client it adds that under the post details, this is also the same using the desktop client.
well it doesn't on my statusnet, is there anything to add to the plugin to do that? Are you using Mobile or Mobileprofile plugin? Anyhow, many thanks for your answer. Ranto
Vodafone europe on a nokia mobile for example ;-) But I would just like that it recognize that it was sent from a mobile phone (using internet connection not a carrier)
Ah, you mean using your instance as the mobile version. Well in that case you are using your site exactly the same but in a different guise, in theory I suppose it could be done.
You need to enable the MobileProfile plugin, it will recognize a list of mobile phone useragents and automatically display the mobile version of the site if it's enabled. add the following to your config.php to enable it. addPlugin('MobileProfile'); It will not however show that a notice was posted from a mobile phone, it will just show from 'web' it can probably be accomplished with a plugin, but it would also require some changes to the core software (off the top of my head the NoticeSource table)
@jordanc, Thanks a lot, I have already the MobileProfile plugin enable on my statusnet instance. But I would to show from webmobile instead of from web and also if possible display the mobile phone. I will try to find a way to do so. Another question offtopic: Is it forbidden to give tip modifying the core software in this forum? I might have some answer on some topics but it need to modify the core and I do not know if it is allowed to talk about that here. Thanks, Ranto
@ranto not forbidden, just not recommended, mostly because it makes upgrading near impossible :-) I think you can probably do what you need to without modifying core files, but I'm not that familiar with how the development actually works. Adding sources to the NoticeSource table isn't really modifying core files though, a plugin can probably do it. From my very basic understanding of the software 'under the hood' and what you would need would be a plugin (probably based on or extending MobileProfile) that would add one or more sources to the NoticeSource table based on the mobile platform being used, then attach that information to posts being sent from the web with that platform. I don't know however if that's actually possible while posting over the web rather than via the api (which I know takes NoticeSource into account). You might try dropping by #statusnet on irc.freenode.net a lot of the devs and plugin developers hang out there, you might have some luck getting advice from them.
Comments
However, other clients may differ.
Are you using Mobile or Mobileprofile plugin?
Anyhow, many thanks for your answer.
Ranto
But I would just like that it recognize that it was sent from a mobile phone (using internet connection not a carrier)
@jordanc might have some ideas.
Ranto
add the following to your config.php to enable it.
addPlugin('MobileProfile');It will not however show that a notice was posted from a mobile phone, it will just show from 'web' it can probably be accomplished with a plugin, but it would also require some changes to the core software (off the top of my head the NoticeSource table)
Thanks a lot,
I have already the MobileProfile plugin enable on my statusnet instance. But I would to show from webmobile instead of from web and also if possible display the mobile phone. I will try to find a way to do so.
Another question offtopic: Is it forbidden to give tip modifying the core software in this forum? I might have some answer on some topics but it need to modify the core and I do not know if it is allowed to talk about that here.
Thanks,
Ranto
I think you can probably do what you need to without modifying core files, but I'm not that familiar with how the development actually works.
Adding sources to the NoticeSource table isn't really modifying core files though, a plugin can probably do it. From my very basic understanding of the software 'under the hood' and what you would need would be a plugin (probably based on or extending MobileProfile) that would add one or more sources to the NoticeSource table based on the mobile platform being used, then attach that information to posts being sent from the web with that platform. I don't know however if that's actually possible while posting over the web rather than via the api (which I know takes NoticeSource into account).
You might try dropping by #statusnet on irc.freenode.net a lot of the devs and plugin developers hang out there, you might have some luck getting advice from them.