BETA VERSION. module works, but CSS still not working
The Clipboard module is an extension for the Open Source Social Network (OSSN) that allows users to generate an overview of their activity on the platform, including:
Timeline Posts: A list of posts made by the user, including any attached images and comments.
Comments: Comments on posts are displayed separately and structured.
Blogs: An overview of blogs written by the user, including links to the original blog posts.
Download Functionality: Users can download their data as a text file for personal archiving or backup purposes.
This module is ideal for users who want to maintain an archive of their social media activity and easily download it for personal use.
Some changes ... just having a first brief look ...
define('__CLIPBOARD__', ossn_route()->com . 'Clipboard/');
remember that Unix file and directory names are case-sensivite
and your component gets installed as Clipboard - not clipboard
ossn_extend_view('css/ossn.default', 'clipboard/css/clipboard');
Ossn expects css files included like this to be PHP executables (allowing to use some vars) - so rename it to clipboard.php
/*
echo ossn_set_page_layout('contents', array(
'content' => $content,
'title' => $title,
));
*/
Have a look into themes/goblue/plugins/default/theme/page/layout/contents.php:
It's dealing with content only, thus it makes no sense to pass a title parameter. And if you don't want a standalone page but include it (as shown in the screenshot) the complete change is:
$page = ossn_set_page_layout('contents', array(
'content' => $content,
));
echo ossn_view_page($title, $page);
Great!!! Like said feedback about working css would be great. But this looks great
Really useful. Thanks Eric!
Ready for testing. This was a lot of fun and took weeks, but I finally have something to show.
Inspired by exploring the Wall, Blog, and Feedback code, I created this module.
The result is an overview of all your posts and reactions.
In this version, the post limit is set to 1000:
// Fetch timeline posts
$wall = new OssnWall();
$userposts = $wall->GetUserPosts($user, array('pagelimit' => 1000));
In the next version, this will be set to false for unlimited posts.
Enjoy using it, and please provide feedback!
I’m still struggling with the CSS, so any help is welcome.