An example of step-by-step development
The goal of this component is enabling the admin to pin one or more posts on top of the newsfeed, as requested here:: https://www.opensource-socialnetwork.org/discussion/view/6844
Changelog:
ready to use,
v7.3dev3: added OssnWall as pre-requisited component
v7.3dev2: fixed wrong merging of extra 'wheres' to get*Posts queries
v7.3dev1: + option to un-/collapse pinned posts contributed by Dominik L.
v7.2dev4: + compatibility fix for Friends-Online component as reported by Dominik L.
v7.2dev3: + 'Pin' menu entries on any wall post
v7.2dev2: + 'Unpin' menu entries on Pinned Post's frontend panel
v7.2dev1: + option to hide/display comments
ready to use, but not recommended
v7.1dev4: + eight selectable background colors + language files
early releases NOT to be used in production environments
v7.1dev3: pinned posts being removed from original location + crash debug
v7.1dev2: pinned posts appear on top of the newsfeed
v7.1dev1: admin backend to save post ids + basic placement on top of newfeed
How to pin one or more posts:
Choose the post you want to pin, open its menu on the right and click 'Pin':
The page reloads and the result will look like this.
(With Greetings and Site Announcement installed, Pinned Posts will care about a meaningful ordering by the way.)
How to unpin one or more pinned posts:
Choose the post you want to unpin, open its menu on the right and click 'Unpin':
Collapsing pinned posts:
Since members may not be too delighted to find the same pinned posts again and again whenever they visit the newsfeed, they may collapse any post they don't want to see anymore...
to just one line ...
Yeah, simply read the documentation, Eric.
https://www.opensource-socialnetwork.org/wiki/view/2006/how-to-install-and-update-components
Never use FTP or similar tools to install/update/remove components or themes!!!
Some do trigger database changes on regular installing/de-installing via admin backend - and of course OSSN can't be aware of that if you are applying changes via that FTP backdoor.
That is: In the worst case you'll end up with an inconsistent/corrupted site.
mzzz oke fixed, think been doing it long time te wrong way
it works now
sorry for the stress,
Hi Michael, sorry
Whats is the best way, i use FTP to upload and overwrite the files
I will remove the complete module now and upload the latest from the admin site
Still waiting for your answer, Eric.
And this is to remind you on
https://www.opensource-socialnetwork.org/wiki/view/1101/how-to-report-a-bug-error-issue
I tested this component both on my own free Ossn site and a clean Premium site. And I cannot reproduce that "look great, but after update no pinned post for me!" you reported a day ago.
Next: You wrote
weird
Display comments and allow commenting
com:pinned:posts:collapse:posts
The more weird part is that you got
com:pinned:posts:collapse:posts
That is: You're missing the latest language files which are included with the latest component release of course. In other words: Your installation is incomplete! And I wonder which way you are 'updating' components in general? Did you really delete the old version by means of the admin backend, or did you copy files manually to your server?
I was asking
That is: v7.2dev3 is working
but v7.2dev4 does not work anymore?
What about v7.2dev4 ?
weird
Display comments and allow commenting
com:pinned:posts:collapse:posts
all are off, just pinned an post and this will dissapears and not pinned.
The post is only visible in user owner timeline.
Now at work and wil update my shadow site with running code and try again.
so again version
pinned-posts-7-2dev3 works
pinned-posts-7-3dev2 does not works
thank you for help and anwsering
Eric,
I just pinned two posts on the Premium sandbox site Arsalan offered you for testing 2 days ago
https://www.opensource-socialnetwork.org/discussion/view/7297/post-from-friends-not-visible
No issues with latest Pinned Posts v7.3dev2 - I cannot reproduce your problem, sorry.
That is: v7.2dev3 is working
but v7.2dev4 does not work anymore?
Besides: Since we are talking about Pinned Posts, I was asking for your Pinned Posts options being enabled/disabled.
got now version pinned-posts-7-2dev3 back on, and this works now.
active modules, pff got a lot.
Alle active moduls are updated, and gor premium
Which was latest version running without issues for you?
Which options do you have enabled?