Thanks
Heidi Hafner
https://www.ads-software.com/extend/plugins/contact-form-7/
]]>I am looking to modify this plugin to prevent Super Admins and users of the Administrator role from being counted. I know I can disable the “Count the page views of registered users who are logged in” option in the plugin’s settings, but that doesn’t work for me because some of my visitors do register, and I’d like to utilize registrations more in the future. I want to count all visitors – logged in or out – except the main Admin account created during installation and my everyday Admin role account.
I found line 1298 of /plugins/stats/stats.php where stats_footer is added to the wp_footer hook. Upon adding an if statement around that which checked whether the user wasn’t super_admin nor an administrator role, I got an error message about wp_get_current_user() being called but not yet defined. Would someone please let me know how to perform my task?
Edit: I’ve looked at these Codex pages:
https://codex.www.ads-software.com/Function_Reference/is_super_admin
https://codex.www.ads-software.com/Function_Reference/current_user_can
I have a site based on the Joomla! platform in which I have integrated a WordPress blog. The problem is that I don’t have any statistics for my blog. I wanted to install the Stats plugin offered by WordPress, but I don’t know where I can find ‘stats.php’ and ‘open-flash-chart.swf’. Can anyone help me, please?
Best regards,
Narcis
Fatal error: Call to undefined function plugin_dir_url() in /home/innertec/public_html/blog/wp-content/plugins/stats/stats.php on line 215
]]>How do I activate the stats plugin? I’ve already installed in the plugins directory. I can see it in the plugins directory.
]]>each time I try to upload stats.php I get this message;
“File type does not meet security guidelines. Try another. Back to Image Uploading”
What am I doing wrong? I’ve never had a blog before so I’m a bit confused.
Thanks Alex
]]>