Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
875 views
in Q2A Core by

1 Answer

+5 votes
by
selected by
 
Best answer

Yes. You could a code snippet in the same file in the same location, that looks something like this:

$points = qa_get_logged_in_points(); 
if($points > 200 && $points < 1000 ) {  
    $qa_content=include QA_INCLUDE_DIR.'qa-page-user-200-1k.php';
    break;
} else if ($points >= 1000 && $points < 5000 ) {  
    $qa_content=include QA_INCLUDE_DIR.'qa-page-user-1k-5k.php';
    break;
} else if ($points >= 5000) {  
    $qa_content=include QA_INCLUDE_DIR.'qa-page-user-5k.php';
    break;
 
The code snippet uses the points for current logged inuser.
by
Oh, really usefull code. Thanks !
by
Is there anything wrong with it sir? If yes, please correct me
by
This works great. Is there a list of functions like wordpress codex so that I do not have to post a query on this forum everytime i am stuck
by
+1 nice one...
...