Форумы / Cotonti / Extensions / [Plugin] Cotonti Social

1234>>>

Dyllon
#1 27.12.2011 02:54

Hey there community,

I've recently been working on the idea of creating a social network feel within Cotonti's user system, and I wanted to give everyone a preview of what's in-store with this extension. I have no intention of making a facebook duplicate out of Cotonti, but merely taking some of the interesting features (such as user walls, friends list, photo albums, etc..), and incorperating them into the users module to make your website a little more interactive.

I've made some pretty good progress within the last two nights, and I hope to complete the extension within the next couple of days. Here is a list of features I plan to include in the initial release:

  • Friends List - Add friends and allow them to post on your wall.
  • User Wall - Post your own statuses, have your friends comment on them, allows friends to post on your wall.

Whats to come in the future:

  • Like/Dislike - can't create a social network without the like button (or +1 for you google people)
  • Photo Ablums - using the default photo option from your profile isn't cutting it..

Here are some screen shots of my current progress.. everything you see in them is completely functional so far.

(and yes.. that is my tattoo in this picture cheeky)

cotonti-social-preview-1_89.png cotonti-social-preview-2_89.png cotonti-social-preview-3_89.png

We are what we repeatedly do. Excellence then, is not an act, but a habit.
Отредактировано: Dyllon (27.12.2011 03:36, 12 лет назад)
foxhound
#2 27.12.2011 08:51

Looks really nice!

This surely will come in handy in the future for, like you say, give your members a little extra. Would it be possible for you to intergrate: sent a PM, a users posts/topics/pages and that kind of things?

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
lukgoh
#3 27.12.2011 11:53

Dyllon this looks awesome. Just incase you were looking for any ideas I was looking for something like this: http://www.cotonti.com/forums/31211?m=posts which would work nicely here.

Dyllon
#4 27.12.2011 13:16

Absolutely! I had every intention to add a feed, but I forgot to mention it here.

We are what we repeatedly do. Excellence then, is not an act, but a habit.
lukgoh
#5 27.12.2011 13:24

Will this be a sepeate extension to the user profiles or will you simply be able to include it with tags and seperate tpl files? 

Nice tattoo btw.

Kingsley
#6 27.12.2011 14:25

wow, this really looks good. Cant wait to go and use it.. meant for sienna, I presume?

Dyllon
#7 27.12.2011 14:43

of course wink

We are what we repeatedly do. Excellence then, is not an act, but a habit.
Twiebie
#8 27.12.2011 15:22

Looks very nice, Dyllon.

Definitely going to use it on Siena when you release it!

GHengeveld
#9 27.12.2011 16:19
Hi dyllon, awesome work there. If you need help with anything just ask. I can also add some Siena optimizations such as caching if you like.
Dyllon
#10 28.12.2011 15:20

Hey Gert,

I appreciate the offer for help, and I'm actually going to take you up on it. I've encountered a little bug which I can't seem to fix when redirecting back to the user's profile page. Using the following code redirects me to the users list, rather than their profile.

cot_redirect(cot_url('users', 'm=details&amp;id=' . $friendid));

This code redirects me to this. Notice it is the correct URL, but the & is displayed in it's html form.

index.php?e=users&amp;m=details&amp;id=2

Any ideas?

We are what we repeatedly do. Excellence then, is not an act, but a habit.
Отредактировано: Dyllon (28.12.2011 16:40, 12 лет назад)
Kingsley
#11 28.12.2011 17:28

fuck fuck fuck fuck.. I like this so much that I am actually  starting to migrate to Sienna..

But i soooo hate the work that it brings.. gotdamn you Dyllon..
trololol

diablo
#12 28.12.2011 18:35

Terrible tattoo great plugin :)

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
GHengeveld
#13 28.12.2011 21:37

Remove &amp; from the call to cot_url and add true as the 4th param for cot_url. The 3rd is an empty string. So it becomes:

cot_redirect(cot_url('users', 'm=details&id=' . $friendid, '', true));

By setting the last param to true, you indicate to cot_url that it shouldn't do htmlentities (convert & to &amp;). This is a requirement when you use it in combination with cot_redirect, because http redirect urls shouldn't be html encoded.

For the record, the 3rd param can be used to set the url hash (#abc).

Отредактировано: GHengeveld (29.12.2011 10:05, 12 лет назад)
rayblo
#14 28.12.2011 22:11
#32317 Kingsley:

fuck fuck fuck fuck.. I like this so much that I am actually  starting to migrate to Sienna..

But i soooo hate the work that it brings.. gotdamn you Dyllon..
trololol

 

Lazy bugger

Nice plugin m8, looks good

[b]www.dutchcotonti.com[/b]<br />
De plaats voor nederlandse ondersteuning voor Cotonti.<br />
The place for support for Cotonti in Dutch
Kingsley
#15 29.12.2011 15:22

No, not lazy.. just everytime I try sienna there is something that doesn't act like it should, or things don't work properly.. that's why I haven't bothered with switching yet.

1234>>>