Keyword

[Codeplay Project] Recording and Processing User Habits/Trends in K2.

  • Tafadzwa Makura
  • Tafadzwa Makura's Avatar Topic Author
  • Offline
  • New Member
More
13 years 7 months ago #95340 by Tafadzwa Makura
I am in the process of customizing a Joomla K2 website code named Codeplay 1 where users post their articles for review by other users. By following a number of tutorials on this forum i have been able to customize my K2 Joomla website in the following ways.

Bellow is a list of what I need! Bellow that is a list of the things I have already managed to do by checking the documentation and forum.

This is what I need

1.)- I want K2 to monitor a users's submit history and to "upgrade" their account when they post a certain number of articles.

(My Guess)
Each time a user submits an article K2 adds +1 to a custom database column in the user's table and if the number in that table reaches a certain value it upgrades the user to a diffrent K2 group (database table)


2.)- 1.)- I want my site moderators to be able to "condemn" a user by clicking a button only viewable by them in the front end item layout. If a user is condemned a number of times they will be demoted.

(My Guess)
Each time a moderator clicks the condemn button on a specific article a script pulls the current article author's name and adds/subtracts -1 to a custom column let's call it "Reputation" in that user's table and if the number in that column reaches a certain value (ie -10) it moves the user to the lowest K2 group (database column). if a user is condemned AGAIN!!! after being demoted already and the value in the Reputation column becomes (-11) the user is de-registered from the site and a notification sent!


This is what I have Done so far.

- Add a "terms of use" check box to the front-end submission form that must be ticked before user can save a new or edited article(form.php Hack).

- Remove the option for the user to feature their own submitted article.

- Remove the option for the users to browse or upload to the server when they submit images or videos.

- Disable the inclusion of images and links in articles submitted from the front end (JCE Extention) The only way user can add images is by using the K2 image inclusion.

-Disabled

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum