Topic: how to show all Activities on homepage ?
how to show all Activities on homepage ?
hi i need to show all Activities on my homepage are this is possible ?
You are not logged in.
how to show all Activities on homepage ?
hi i need to show all Activities on my homepage are this is possible ?
Use same extension call as in account_home.tpl but exclude member_id=member_id param, put it to homepage.tpl
Last edited by radioact (2009-11-28 12:32:50)
{activities:friends=0, timeframe="45",limit="30"} i try this and
{activities: timeframe="45",limit="30"} this but noting show ![]()
Looks like a little bug line 109, apparently should be elseif(! friend_ids).
Hi there,
I wonder if there is anything else you need to add to homepage.tpl to make the activities visible. Right now I just added {activities:timeframe="45",limit="10"} to show the latest 10 activities, but nothing shows so far. Any help would be great ![]()
You can't show activities of all members. You may show either one member's activities, or member's friends activities.
Maybe this could be a feature request, obviously for friends only. Would it be easy to impliment?
Yes, I'm intrested in this feature also, because this way the admins can put this activity on the homepage and overview all members activity.
Vlad, can you give directions what lines to change in the php extension?
you want to show activities of all member ?
i believe i can get that done if you want
you want to show activities of all member ?
i believe i can get that done if you want
nice ! let me know how?
I've found a way through selecting a non-active profile with NO friends or favs. This works for me as admin to see all activities
in includes/ext/ open ext.activities.php find in line 67
this:
$result = $DB->query("(SELECT f1.member_id as friend_id, f1.request_date, m.*
FROM " . DB_PREFIX . "friends AS f1, " . DB_PREFIX . "members AS m
WHERE f1.friend_id=$member_id AND f1.member_id=m.member_id AND f1.pending='0')
UNION
(SELECT f2.friend_id, f2.request_date, m.*
FROM " . DB_PREFIX . "friends AS f2, " . DB_PREFIX . "members AS m
WHERE f2.member_id=$member_id AND f2.friend_id=m.member_id AND f2.pending='0')
ORDER BY lastvisit DESC LIMIT 50");replace with this:
$result = $DB->query("(SELECT f1.member_id as friend_id, f1.request_date, m.*
FROM " . DB_PREFIX . "friends AS f1, " . DB_PREFIX . "members AS m
WHERE f1.pending='0')
UNION
(SELECT f2.friend_id, f2.request_date, m.*
FROM " . DB_PREFIX . "friends AS f2, " . DB_PREFIX . "members AS m
WHERE f2.pending='0')
ORDER BY lastvisit DESC LIMIT 50");then it would have to go.
in includes/ext/ open ext.activities.php find in line 67
this:
$result = $DB->query("(SELECT f1.member_id as friend_id, f1.request_date, m.* FROM " . DB_PREFIX . "friends AS f1, " . DB_PREFIX . "members AS m WHERE f1.friend_id=$member_id AND f1.member_id=m.member_id AND f1.pending='0') UNION (SELECT f2.friend_id, f2.request_date, m.* FROM " . DB_PREFIX . "friends AS f2, " . DB_PREFIX . "members AS m WHERE f2.member_id=$member_id AND f2.friend_id=m.member_id AND f2.pending='0') ORDER BY lastvisit DESC LIMIT 50");replace with this:
$result = $DB->query("(SELECT f1.member_id as friend_id, f1.request_date, m.* FROM " . DB_PREFIX . "friends AS f1, " . DB_PREFIX . "members AS m WHERE f1.pending='0') UNION (SELECT f2.friend_id, f2.request_date, m.* FROM " . DB_PREFIX . "friends AS f2, " . DB_PREFIX . "members AS m WHERE f2.pending='0') ORDER BY lastvisit DESC LIMIT 50");then it would have to go.
and in homepage tpl ad this:
{activities:member_id=1,timeframe="45",limit="30"}
I did this change but I was near to loose all my website . ![]()
My website hanged completely . ![]()
It working perfectely on my hommepage!
Thancs!
I replace php code in ext.activities.php, and add {activities:member_id=1,timeframe="45",limit="30"} to homepage.tpl, but not show all member, only member id 1. ![]()
The above code is not working for me. Does anyone have code that works?
cool thx you :-)
Is their a way to keep all male activities from Not showing up?
I try use types= but it didn't work.
{activities:member_id=1,types="1|2......
thanks