Welcome, Guest
Please Login or Register.    Lost Password?

AUP Content Approved
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: AUP Content Approved
#12360
AUP Content Approved 1 Month, 1 Week ago Karma: 0
Hi.
I want to mark an article when it has been read by a user and points are assigned.
For example. I 've got an article and inside it I wrote {aup::content=50}.
I want that user read on article : " Read complete" (for example after title) when the user has read that article and points are been assigned to user, or "Read Not Complete" when article isn't been read by user.
Which code I've to insert to have this result?
I see I can modify the file sysplgaup_content.php but I don't know what insert on it..

For example :
if ( preg_match('#{AUP::pointsapproved}#Uis', $article->text, $m) )
...... and after?????


Thanks a lot
jackinc
Fresh Boarder
Posts: 12
graphgraph
Points: 58
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/02 17:57 By jackinc.
The administrator has disabled public write access.
 
#12388
Re:AUP Content Approved 1 Month, 1 Week ago Karma: 0
Is there a function on lphaUserPointsHelper::...... to see if points are been approved or not for that article??
jackinc
Fresh Boarder
Posts: 12
graphgraph
Points: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12389
Re:AUP Content Approved 1 Month, 1 Week ago Karma: 43
No this function not exist.
But I don't understand your first question. Can you explain more ?
Bernard
Administrator
Posts: 2099
graph
Points: 0
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Paris Birthday: 02/28
The administrator has disabled public write access.
All components on this site are free but...
Ever thought about giving something back?
Please make a donation if you want to support its continued development. Your donations help by hardware, hosting services and other expenses.
 
#12393
Re:AUP Content Approved 1 Month, 1 Week ago Karma: 0
Sorry for my bad english...
I try to explain what I want to do....
I give some points everytime an register user read an article with {aup::content=50}
(the approvation is not automatically but manually) and that user must go on "Personal page" to see if that points are been approved or not....

I want all register users can to see if the points are been approved for that article, ON ARTICLE...

For Example an article like this :

Title : MY HOUSE
My house is very beautiful place............

become

Title : MY HOUSE 50 Points Approved (or 50 points waiting for approve)
My house is very beautiful place.....

Thanks a lot for your help
jackinc
Fresh Boarder
Posts: 12
graphgraph
Points: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12397
Re:AUP Content Approved 1 Month ago Karma: 43
Ok, I understand. It's custom work. You must hack the plugin content for AlphaUserPoints to do this.
Bernard
Administrator
Posts: 2099
graph
Points: 0
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Paris Birthday: 02/28
The administrator has disabled public write access.
All components on this site are free but...
Ever thought about giving something back?
Please make a donation if you want to support its continued development. Your donations help by hardware, hosting services and other expenses.
 
Go to topPage: 1
Moderators: Mortti, adroussel, dalekurt
get the latest posts directly to your desktop
Goto Top