helpers
helpers marek 2 years ago 0%
How does a friendica instance get the "contact id" of a visitor? / Need SQL help https://friendica.mbbit.de/display/b25b9f4f-2063-bb21-8f34-b9a990252308

Hi I am digging in the problem that restricted image / images shared with a specific group or user are not accessible, see [github.com/friendica/friendica…](https://github.com/friendica/friendica/issues/12412) Now I think that I found at least two issues: First: The `allow_cid` filed in the photo table seems not correctly be set. For an image shared with followers only, the result is: ``` select `accessible`,allow_cid,allow_gid from photo where `resource-id` = '100228443963b9a03d31378698994057'; +------------+-----------+-----------+ | accessible | allow_cid | allow_gid | +------------+-----------+-----------+ | 1 | <3> | <~> | | 1 | <3> | <~> | | 1 | <3> | <~> | +------------+-----------+-----------+ ``` Second: The [getRemoteContactID](https://github.com/friendica/friendica/blob/0ae7a53daa5067bba6a2c0d77b0fa12d7ba839ec/src/Core/Session/Model/UserSession.php#L96-L104) method returns a value \> 0 iff the page is reloaded completely (ctrl + f5) otherwise 0. Accordingly, I have two questions: * Does anyone know how the "visitor" is identified, in more detail their contact-id (cid), on the local instance? * To the mysql pros: Can someone provide me the sql command to update the `allow_cid` filed in the photo table? This would make by debugging efforts much easier :-) . Thank you very much, helping me to support \<3

0
0
helpers
helpers marek 2 years ago 0%
Why is a E-Mail notfication for new registration only possbile when registrations are unrestricted open? https://friendica.mbbit.de/display/b25b9f4f-1963-a394-be90-0fe178212514

[@admins](https://forum.friendi.ca/profile/admins) [@developers](https://forum.friendi.ca/profile/developers) [@helpers](https://forum.friendi.ca/profile/helpers) I created a semi public friendica instance (kassel.social) and currently I do not want to allow registrations from general worldwide public but from people in my region. For this, I set the registration policy to "by approval". The problem now is, that I do not get notified by E-Mail if someone wants to register. I need to manually check the instance's front end to see that there is a new registration. Is this by intention, do I do something wrong? Otherwise, I would like to create a new issue on git regarding this. Thank you!

0
0
helpers
helpers marek 2 years ago 100%
How to make a user admin from console https://friendica.mbbit.de/display/b25b9f4f-1963-a0c0-14d9-9bc865194789

Hi [@helpers](https://forum.friendi.ca/profile/helpers) I created a new instance, but for what ever reason the first registered user has no admin rights. How can I set admin rights to a user via console? Thanks!

1
0
helpers
helpers marek 2 years ago 100%
Show image Description in Fancybox? https://friendica.mbbit.de/display/b25b9f4f-1763-9f50-4653-fe3097934697

Hi grischa@friends.brockha.us CC [@helpers](https://forum.friendi.ca/profile/helpers) Does fancybox add-on currently support displaying the image description (more formally, the content of the "alt" attribute of the img tag), and if yes, how / where? If no, do we want to add it?

1
0
helpers
helpers marek 2 years ago 0%
"What does Friendica wants to be"? https://friendica.mbbit.de/display/b25b9f4f-6663-9bb8-871b-225460989062

[@helpers](https://forum.friendi.ca/profile/helpers) [@developers](https://forum.friendi.ca/profile/developers) Let me start with a concrete, question: Are there any efforts / plans to support the **upload** of videos? And now, since I might have your attention, allow me to broaden the question to: What is your opinion regarding "what [#Friendica](https://friendica.mbbit.de/search?tag=Friendica) *is / should be*"? My view / vision is heading slightly in the direction that nowadays image and video content is quite central in social networks and thus a [#Fediverse](https://friendica.mbbit.de/search?tag=Fediverse) application like friendica should support the multimedia aspect a bit more, if it wants to be attractive for the broad public in terms of being an alternative to commercial social networks. Most of you might tell: "Yeah, if one prefers media centric Fediverse, then check out [#pixelfed](https://friendica.mbbit.de/search?tag=pixelfed) ". But I think, pixelfed is yet too much of an Instagram clone, **only** providing the image / video focus (which bothered me at Instagram from the very beginning not being able to have good commenting / discussion options there). In my view, Friendica has great potential becoming a great "one fits all" application for the majority of people who like social media and the concept of the Fediverse. It has way more cool functions than [#mastodon](https://friendica.mbbit.de/search?tag=mastodon) / pixelfed (which are in my opinion too close copies of Instagram and Twitter, respectively) but much simpler and convenient than Hubzilla (which I think is really great, for a computer science person, but not for the broad non-technical focussed public) Wrapping it up: I would love to see a Friendica development towards an easier multimedia support. What are your thoughts? Cheers Marek

0
0
helpers
helpers marek 2 years ago 100%
Delete User immediately? https://friendica.mbbit.de/display/b25b9f4f-9663-9b56-6e70-8f5728433975

Hi [@admins](https://forum.friendi.ca/profile/admins) [@helpers](https://forum.friendi.ca/profile/helpers) I have a couple of test user accounts for developing, and it is a little bit cumbersome that I can't delete a test account directly but have to wait (a week or so) until it is finally deleted. Is there a way to "force deletion" immediately? Thx!

1
0
helpers
helpers marek 2 years ago 100%
The rendering of a thread jumps to its top whenever I interact with, e.g. like a comment https://friendica.mbbit.de/display/b25b9f4f-1463-9218-5cd2-a54988661562

Hi [@developers](https://forum.friendi.ca/profile/developers) [@helpers](https://forum.friendi.ca/profile/helpers) Is it a general behavior that when I interact with a post, e.g. to like a reply, the site scrolls up to the root of the thread? This is very annoying when I want to read through replies and comment / like on my way through. It requires a lot of scrolling through the same content over and over again. Is this an issue with the code, or does it depend on the used browser? Does anybody else even has this issue? You can try here [social.bund.de/@bfdi/109477476…](https://social.bund.de/@bfdi/109477476223436336) and like e.g. my comment [friendica.mbbit.de/display/b25…](https://friendica.mbbit.de/display/b25b9f4f-6063-9213-2232-ee1397814490)

1
0
helpers
helpers marek 2 years ago 0%
Question aboout ids and classes in smarty templates https://friendica.mbbit.de/display/b25b9f4f-1763-80fe-c996-1b5281598164

[@developers](https://forum.friendi.ca/profile/developers) [@helpers](https://forum.friendi.ca/profile/helpers) Currently, I am working on the [issue](https://github.com/friendica/friendica/issues/7807) that the size limit for images to be uploaded is not shown in the upload dialogue. To display this information, I want to extend the `photos_upload.tpl` smarty template. I guess the best way is just to insert a new `<div>...</div>` beneath the submit button. But I see that any `<div>...><div>` has a unique `id` and `class` attribute. What's the deal with these two attributes, what do I need to consider? Are they mandatory or optional? And for this very specific case: When I insert `<div>...><div>` for the image size limit, which values should I use for `id` and `class` attributes?

0
0
helpers
helpers marek 2 years ago 0%
How to deal with / Update Smarty Templates https://friendica.mbbit.de/display/b25b9f4f-1663-80c8-0cad-074666371651

[@developers](https://forum.friendi.ca/profile/developers) [@helpers](https://forum.friendi.ca/profile/helpers) I am sure someone can solve my problem / ignorance on the following issue within a second after I fought on it for hours: I changed a smarty template but what ever I do these changes are not reflected on the frontend. I read that Friendica "precompiles" those templates, but I have no clue when and how this is being done? Anyone? :-)

0
0
helpers
helpers marek 2 years ago 0%
Deprecated Facebook Connector(s) https://friendica.mbbit.de/display/b25b9f4f-1063-7672-187a-c1a519102070

[@helpers](https://forum.friendi.ca/profile/helpers) Hello again! I just had the great or dump idea (could not test it out yet) to reactivate my Facebook account to advertise the [#fediverse](https://friendica.mbbit.de/search?tag=fediverse), and especially [#Friendica](https://friendica.mbbit.de/search?tag=Friendica) . I drew my motivation from the text > With Friendica, you can also fully interact with anyone on Twitter, **post on Facebook** and receive any content on Tumblr, Wordpress or RSS. Friendica allows you to integrate most things on the web via a range of addons such as ITTT, Buffer; you will be able to easily control your own data as you decide. [github.com/friendica/friendica…](https://github.com/friendica/friendica/blob/develop/README.md) But then I read: > Facebook Connector, Facebook Post Connector and Facebook Sync plugins are deprecated. As of the moment you cannot bridge from or to Facebook with Friendica. [github.com/friendica/friendica…](https://github.com/friendica/friendica/wiki/How-to:-Friendica%E2%80%99s-Facebook-connector) How about updating the README.md regarding the state-of-the-art in 2022? BTW: I will nevertheless try to motivate the local Facebook crowd to have a try with [#Friedica](https://friendica.mbbit.de/search?tag=Friedica) , evnen though I loved the idea to post there directly from the [#fediverse](https://friendica.mbbit.de/search?tag=fediverse) . Cheers

0
0
helpers
helpers marek 2 years ago 0%
Events / Calender / Mobilizon https://friendica.mbbit.de/display/b25b9f4f-2163-6a5b-e8d8-c8f370859435

Hi [@helpers](https://forum.friendi.ca/profile/helpers) , last evening I was testing around with [#events](https://friendica.mbbit.de/search?tag=events) on [#mobilizon](https://friendica.mbbit.de/search?tag=mobilizon) (via [demo.mobilizon.org](https://demo.mobilizon.org)). It worked OKAY, I managed to accept / participate to an event via this [#Friendica](https://friendica.mbbit.de/search?tag=Friendica) account. Now, what I found odd is that my feed shows me a remainder on top of the page (cool!) but the event does not occur in the calendar (sad). Is this by intention or is it a bug / not implemented yet? In general, how tightly coupled / compatible are the native [#friendica](https://friendica.mbbit.de/search?tag=friendica) events with [#mobilizon](https://friendica.mbbit.de/search?tag=mobilizon) events? thx & big love to the community \<3

0
0
helpers
helpers marek 2 years ago 0%
#Friendica Server: No access in /tmp warnings https://friendica.mbbit.de/display/b25b9f4f-1263-653b-68c0-6ab906675913

[@helpers](https://forum.friendi.ca/profile/helpers) : Reviewing the local syslog there are thounds of messages from friendica that read: > Nov 4 13:45:04 localhost Friendica[237585]: worker [WARNING]: Path is not writable {"directory":"/tmp/friendica.mbbit.de","user":"friendica"} - {"file":"System.php","line":556,"function":"isDirectoryUsable","uid":"7d351a"} Confirmed that the folder > /tmp/friendica.mbbit.de is owned by www-data:www-data. Seems that PHP tries to acces the files with user "friendica" any idea how to fix that? BTW: At the moment it does seem to have any negative effect on the site at all.

0
0
helpers
helpers marek 2 years ago 0%
Serverseitige Größenreduktion von hochgeladenen Bildern https://friendica.mbbit.de/display/b25b9f4f-5863-6429-6761-bcd789222173

[@helpers](https://forum.friendi.ca/profile/helpers) gibt es bereits ein(e) [#Addon](https://friendica.mbbit.de/search?tag=Addon) / native Möglichkeit die Speichergröße von Bildern durch Reduktion der Auflösung (nicht bloß Kompressionslevel) serverseitig nach dem Upload zu veringen? Ich möchte es mir und anderen Usern aufm dem Sever nicht zumuten vorher ihre Bilder selbst zu transformieren. Danke!

0
0