stuck at assign a function for specific usergroup
#3
ok i fixed the usergroup stuff but the variable is not shown on templates,
i tried echo and it worked(echo inside function) but not working in template.

here is my full plugin:
http://pastebin.com/zgrRgZk2

currently what it does:
  1. counts user's all visible posts of specific usergroup(i successfully implemented that) from 1st of this month onwards, we can also exclude forums whose posts we don't wants to be get counted.
  2. it creates postcount_postbit, postcount_profile templates in global template & pasts {$postcount_postbit} to postbit,postbit_classic templates & {$postcount_profile} to member_profile template.

what i wants to do but failing:
  1. the {$postcount_postbit} and {$postcount_profile} are not being displaced on postbit as well as in member profile.. and when i tried only {$postscount} by manually adding on postbit and member profile but only in members profile page it displayed, in postbit,its still not displayed..
  2. When i add {$postscount} manually on member profile then if my(the user who is watching anyone's profile) $postscount are displayed in every members profile :/ which is i guess because i haven't stored the data in database.. but in data base where i should add my each users $postcount so it can be easily showed/updated like {$postscount} ? which hooks would be involved in this ?
Discord: Prince#4000
Reply


Messages In This Thread
RE: stuck at assign a function for specific usergroup - by HMR - 2016-09-05, 07:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)