index page where resource title in left side and downloads and votes in right side ...i want to add view has gotten by each resource after downloads ....and resource categories can be selected by left column........on resource list page
i am creating a add on to count resource view for that i have create addon from ACP also create a folder in library (view counter) in this i put Listener.php and also create a template for views but i want to put the output of this template in resource_list_item template
in following code
i create a add on to to show number of view a resource has gotten it show text view where i want ....but how to show number of views a resource has gotten my listener.php code is
//Our callback signature! We are using here! Look:
public static function template_hook1($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
//Yey! its our template hook!
if ($hookName == 'page_container_head123')
//Our tab! We will do somethin better, hang on.
$contents .= 'view';
i want to show number of views with this text for that do i have to create column in xf_resource table and how i will insert in it and how to fetch this ...please reply
to show with resources number of view a resource has gotten i have created an add on ........
i want to add a column in database table to handle views ....when someone click on resource to view i want to update view column for that view resource id and want to fetch view value for each id ...how can i do it..for resources i have model resources.php...please help
i want to add a column for views a resource has gotten in my xf_resources table.... how can i do it ...can i add direct to table ...and how can i fetch its value for each resource shown on my page...or template resource_index ...or i have to change in model..please reply