The Activity Extension is part of vldPersonals 2.5.5. The following tutor shows how you can adapt this mod for version 2.5.3.
1. Need to download the following extension, unzip it and upload ext.activities.php to your includes/ext folder.
Click Here to Download
IMPORTANT: When you download the above folder, there will be TWO ext.activities.php files. You only need to upload one depending on your site features. One is for those who use the excellent Youtube Mod from vldCrowd and the other is for those who use the Default Video feature of vldPersonals.
2. Need to download the following activities folder, uzip it and upload activities folder to your template/media/ folder
Click Here to Download
3. Need to download the following extension, unzip it and upload ext.activities.tpl to your template folder
Click Here to Download
4. Need to download the following extension, unzip it and upload ext.get_date.php to your includes/ext folder
Click Here to Download
IMPORTANT: Many of you may already have this extension if you use the Status Update mod. Check your ext folder to see if you already have before uploading
5. Add the following to your includes/languages/your language/lang.core.php
// activities
"activities" =>
"My Friends Activities",
"activities_friends" =>
"%1% is now friends with %2%",
"activities_blog" =>
"%1% has posted a new blog entry %2%",
"activities_album" =>
"%1% has created a new album %2%",
"activities_picture" =>
"%1% has uploaded a new %2% %3%",
"activities_video" =>
"%1% has uploaded a new %2%",
"activities_audio" =>
"%1% has uploaded a new audio file %2%",
"activities_event" =>
"%1% has posted a new event %2%",
"activities_guestbook" =>
"%1% has posted in %2%'s guestbook",
"activities_comment" =>
"%1% has left a comment for %2%'s %3% %4%",
"activities_gift" =>
"%1% has sent %2% a gift %3%",
"activities_blog_label" =>
"blog entry",
"activities_video_label" =>
"video",
"activities_event_label" =>
"event",
"activities_picture_label" =>
"picture",
"to" =>
"to",
6. Open your templates/your template/media/content.css and add the following css code:
/* activities */
table.activities {
width: 100%; }
table.activities td {
border-bottom: 1px solid #f0f0f0;
padding: 3px 0px; }
table.activities td.activity { }
table.activities td.date {
width: 120px;
color: #acacac;
text-align: right; }
div.htmltooltip {
display: none;
position: absolute;
border: 1px solid #444444;
background-color: white;
padding: 3px;
text-align: left; }
div.htmltooltip img {
border: 1px solid #436082;
text-align: center; }
7. Open your account_home.tpl and add the following call where you desire
{activities:member_id=member_id,limit=10,timeframe=14}
Note: can change timeframe to what you desire. The above call is set to show friends activities for the past 14 days.
TWEAKING AND SYTLING
Where you place the above call (#7 above) in account_home.tpl is up to you. You can tweak the style for your template.
There are probably three files you would tweak to change the style: (1) account_home.tpl, (2) ext.activities.tpl and (3) content.css. It is important that you backup these files before making changes.
If I add the call as is in #7 above to account_home.tpl it would probably look something like this:
I already have a number of mods from vldCrowd and I wanted to blend the activity mod with my other mods. I made adjustments to the three files I mention above to get something like this:
Good Luck








Comments
johnwh
dezchilds
i need this for 2.5.2
godyn
<a href="http://www.mysite.eu/member/393/" title="<img src=http://www.mysite.eu/media/uploads/t_photo_0xfzfygpftpsurs8433por5ntenb.jpg />"
I tried solving in the php but that didn't work, it must be a decoding problem.
Also when I try to place a small thumb in the tpl file I get an encoding problem:
<a href="http://www.mysite.eu/{member_profile_link}">
<img src="http://www.mysite.eu/media/uploads/{member_picture}" alt="" width="33" height="33" hspace="5" vspace="5" border="0" align="left" /></a>
So the sites url is encoded correct and the user and picture not.
Same thing with the tooltips...
Strange...
gugu
I know 2.5.2 use picture_.jpg format.
maybee it is the same for 2.5.1 ...
but since 2.5.3 it is t_photo_.jpg
and radioact has write a comments here and tell us how to do ;)
godyn
madirfan
example: i dont want that my friends see my Activitys...
misulicus
many of my users complain that they see the friends activity stuff and they don`t have any friends.
Zoli
Pages
1 2 3Log in to leave a comment