eric redegeld
2 years ago
Clipboard for OSSN is a user data export component for the Open Source Social Network.
The idea behind Clipboard is simple: users should be able to see, understand and safely archive the data connected to their own account.
Social platforms often make it easy to post, upload and interact, but much harder to get a clear overview of what you have created over time. Clipboard adds that missing piece to OSSN by giving users a structured overview of their own activity and export options.
Clipboard can include:
Timeline posts
Comments
Blogs
Photos and local media
Files
Forum topics and replies
Private messages
Profile related data
Each section can be viewed separately and exported where available as ZIP, JSON or readable text. A full export is also available with a clear folder structure, making it easier for users to keep a personal archive or backup.
The module is built with privacy and data ownership in mind. Only the user can view their own Clipboard page. An administrator should only use this functionality for support or export on request.
Clipboard is designed to work with OSSN Free and OSSN Premium. If optional modules such as Blog, Forum or Files are not installed, those sections simply remain empty. If they are added later, Clipboard will try to include them safely.
Why this matters:
Users should not be locked into a platform.
Users should be able to download and review their own data.
A social network should be transparent about what is connected to an account.
Data portability should be a normal part of a privacy respecting community.
Clipboard is part of the JustBSocial.eu approach: user in control, privacy by design and real ownership of your own content.

Eric redegeld
Replied 1 month ago
test and all seem working fine, enjoy
Sara Andersson
Replied 3 months ago
Yes thank you Eric! This is perfect, i dont want to break the law and get a fine of 1.000.000 Euro :)
Arsalan Shah
Replied 3 months ago
Very nice Eric, good component! This makes GDPR component complete!
Eric redegeld
Replied 3 months ago

Harry Stok
Replied 1 year ago
@eric redegeld geinstalleerd en super werkend, Zo dank je wel voor je werk!
Eric redegeld
Replied 2 years ago
good advise, add this in next update
Michael Zülsdorff
Replied 2 years ago
Yeah, not very likely, but the same will happen if OssnWall is disabled.
Thus, whenever accessing a class or a function which isn't guaranteed to be available, do a check in advance like
if (com_is_active('COMPONENT_NAME_TO_BE_CHECKED')) {
// proceed ...
}
or if your component basically makes no sense at all without another component installed and enabled
then add that dependency to the xml file and use this hook:
ossn_add_hook('required', 'components', 'FUNCTION_TO_ADD_REQUIRED_COMS');
as done in Pinned Posts for example which needs a working wall, too.
Eric redegeld
Replied 2 years ago
Thank you Dominik L for point to this error.
Changes Made
Bug Fix: Missing Blog Class Handling
Added a check in clipboard_fetch_user_data() to verify if the Blog class exists before using it.
If the Blog class is unavailable (e.g., the Blogs component is not installed), the code logs a warning and gracefully defaults to an empty list of blogs. This prevents crashes in environments without the Blogs component.
Improved Fallback Logic
Ensured that the Clipboard component remains functional even when optional dependencies, like the Blogs component, are missing.
Enhanced Debugging
Added error_log statements to provide useful debugging information when:
Posts or comments contain invalid data.
The Blog class is missing or unavailable.
Updated ossn_com.php
Improved the structure and readability of the file.
Added robust error handling for unexpected situations (e.g., missing GUIDs or invalid objects).
Updated component.xml
Bumped the component version to 2.1 to reflect the latest updates.
Enhanced the description to better communicate the component’s purpose and functionality.
Retained the MIT license, which allows free use, modification, and distribution with attribution.
Eric redegeld
Replied 2 years ago
found it, it now crached on the missing blog.
testing now and when not active or present to get this line now
Blogs
The Blogs component is not installed or activated.
Eric redegeld
Replied 2 years ago
Ow weird. I wil look in to this