1

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 ?

2

Re: how to show all Activities on homepage ?

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)

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com - vldPersonals admins community

3

Re: how to show all Activities on homepage ?

{activities:friends=0, timeframe="45",limit="30"} i try this and    
{activities: timeframe="45",limit="30"} this but noting show sad

4

Re: how to show all Activities on homepage ?

Looks like a little bug line 109, apparently should be elseif(! friend_ids).

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com - vldPersonals admins community

5

Re: how to show all Activities on homepage ?

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 smile

6

Re: how to show all Activities on homepage ?

You can't show activities of all members. You may show either one member's activities, or member's friends activities.

Developer

7

Re: how to show all Activities on homepage ?

Maybe this could be a feature request, obviously for friends only. Would it be easy to impliment?

Regards, Peter

8

Re: how to show all Activities on homepage ?

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?

9

Re: how to show all Activities on homepage ?

you want to show activities of all member ?
i believe i can get that done if you want

10

Re: how to show all Activities on homepage ?

misulicus wrote:

you want to show activities of all member ?
i believe i can get that done if you want

nice ! let me know how?

11

Re: how to show all Activities on homepage ?

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

12

Re: how to show all Activities on homepage ?

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.

13

Re: how to show all Activities on homepage ?

Walera82 wrote:

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"}

14

Re: how to show all Activities on homepage ?

I did this change but I was near to loose all my website . sad

My website hanged completely . sad

15

Re: how to show all Activities on homepage ?

It working perfectely on my hommepage!

Thancs!

16

Re: how to show all Activities on homepage ?

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. sad

17

Re: how to show all Activities on homepage ?

The above code is not working for me.  Does anyone have code that works?

18

Re: how to show all Activities on homepage ?

cool thx you :-)

19

Re: how to show all Activities on homepage ?

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