WhatPulse Forums
Stats buttons - Printable Version

+- WhatPulse Forums (http://whatpulse.org/forums)
+-- Forum: Feature requests (/forumdisplay.php?fid=32)
+--- Forum: Website (/forumdisplay.php?fid=46)
+--- Thread: Stats buttons (/showthread.php?tid=2908)



Stats buttons - matthieuvb - 04-21-2013 08:23 AM

Is it possible to add the 'Team Stats' and 'My Stats' buttons to the forum pages? That makes it a lot easier to navigate from the forum to the stats.


RE: Stats buttons - smitmartijn - 04-21-2013 08:52 AM

Unfortunately not, the forums are a third party software set, while the website is our own. The integration can only go so far.


RE: Stats buttons - Capt.Crash - 04-23-2013 06:40 AM

Wouldn't it just be an extra query?

eg "user_wp_id" "user_wp_team_id" then echo it in the template file?


RE: Stats buttons - smitmartijn - 04-24-2013 03:43 PM

If only...that would mean that the user database and the forum database is in the same region, which they are not.


RE: Stats buttons - Capt.Crash - 04-26-2013 08:14 PM

none the less i still think it's an easy script

db1.select wp_id, wp_team_id from wb_users

update

db2.where user_wp_id = "$db1_wp_id", user_wp_team_id = "$db1_wp_team_id"


it is possible and i do not think it is much coding, i'd write a full script my my knowledge of sql and php is 4 years old


RE: Stats buttons - smitmartijn - 04-27-2013 05:16 AM

You can think what you want, I'm just saying how it is. ;-)

A lot has changed in those 4 years, I suppose.