Code For User Survey Count
Code For User Survey Count
Hi CoreJoomla.
I have purchased your fantastic Community Surveys and have now renewed this great product 3 times over the last year or two. It really is a great application.
I would like to know if it is possible, that you could provide me with some code that i can use and add into my custom Joomla template that will generate the users survey response count.
The reason i ask, is that i am creating my own custom Joomla template, and the template will have a user dashboard area, where my customers can keep track of some of their activities on my website.
I also use JomSocial, and JomSocial comes with an API that allows me to input some API code into my custom Joomla template. Using the JomSocial API, i can generate various data for my users. For example. I can generate a users > Karma Points, Friend Count etc.
The code from JomSocial looks like this:
// Display User Karma Points:
<?php
include_once JPATH_ROOT.'/components/com_community/libraries/core.php';
// Get CUser object
$cuser = CFactory::getUser();
$data = $cuser->getKarmaPoint();
echo $data;
?>
I can add the above code into my custom Joomla template, and generate a Joomla User Karma Points for the registered logged in user.
I use these codes to create a custom dashboard area for my customers.
I am wondering if there are any codes from CoreJoomla that i can use that will generate some data for the Community Surveys.
If possible, i would like to be able to generate the Survey Response Count for a registered user. Is this possible ?
For example: John Doe: 4 Survey Responses.
Is it possible you could provide me this code ?
Thank you, and thank you for such a great Joomla application. Community Surveys is the best survey application for Joomla. Thank you very much for help and support.
Front-End Web Developer.
UK
I have purchased your fantastic Community Surveys and have now renewed this great product 3 times over the last year or two. It really is a great application.
I would like to know if it is possible, that you could provide me with some code that i can use and add into my custom Joomla template that will generate the users survey response count.
The reason i ask, is that i am creating my own custom Joomla template, and the template will have a user dashboard area, where my customers can keep track of some of their activities on my website.
I also use JomSocial, and JomSocial comes with an API that allows me to input some API code into my custom Joomla template. Using the JomSocial API, i can generate various data for my users. For example. I can generate a users > Karma Points, Friend Count etc.
The code from JomSocial looks like this:
// Display User Karma Points:
<?php
include_once JPATH_ROOT.'/components/com_community/libraries/core.php';
// Get CUser object
$cuser = CFactory::getUser();
$data = $cuser->getKarmaPoint();
echo $data;
?>
I can add the above code into my custom Joomla template, and generate a Joomla User Karma Points for the registered logged in user.
I use these codes to create a custom dashboard area for my customers.
I am wondering if there are any codes from CoreJoomla that i can use that will generate some data for the Community Surveys.
If possible, i would like to be able to generate the Survey Response Count for a registered user. Is this possible ?
For example: John Doe: 4 Survey Responses.
Is it possible you could provide me this code ?
Thank you, and thank you for such a great Joomla application. Community Surveys is the best survey application for Joomla. Thank you very much for help and support.
Front-End Web Developer.
UK
Access to viewing replies is restricted.
Showing 5 of 5 replies
You do not have permissions for replying to this topic.