PDA

View Full Version : Adding data to Activity


TheAdminMarket
10-05-2014, 08:09 AM
Hello,

Is there any way to add data to Activity, using Data Manager?

Thank you

Lynne
10-05-2014, 03:56 PM
I have seen other modifications add to the activity.php page. I don't know the name of it, I just know that it caused some errors and users were posting for help with the errors. I would guess they have fixed the mod since then. But anyway, I would do a search in the vB4 Plugins mods for one and see how they did it.

TheAdminMarket
10-05-2014, 04:06 PM
Thank you Lynne. Really appreciate your prompt attention. Well, I was able to do the half job by adding the stream type in database, but then, even with simple (non vb) queries was unable to add data to stream. That's why I wrote if there is any code example by using the Datamanager. Just like adding forums, threads, PMs etc.

kh99
10-07-2014, 10:43 AM
I think you could use vB_ActivityStream_Manage. If you look at includes/class_dm_threadpost.php, for example, and search for vB_ActivityStream_Manage, you can see where posts are added to the activity stream. (Edit: maybe you've seen this already, based on your post above). But I think you need to first add rows in the activitystreamtype table and the package table, then also create classes to handle your type or types and put the files under vb/activitystream (with subdirectories, file names, and class names corresponding to the fields you added in the database).

I haven't done this myself or else I'd try to give more details, but I think if you look at the existing db entries and files under vb/activitystream, you can probably figure it out.

TheAdminMarket
10-12-2014, 06:10 AM
@kh99

Just seen your post. Thank you. Actually now I remember that finally I was able to add data even to activity table and where I stucked was the point of phrasing. I was unable to change "Post new thread" with my own phrase.

But after so long time I've forgot everything that I did. I was not using Datamanager but simple queries.

Thank you