|
View previous topic :: View next topic |
| Author |
Message |
matuck Newbie


Offline Joined: Oct 19, 2005 Posts: 24 Location: dalton ga
|
Posted: Wed May 19, 2010 12:58 pm Post subject: Re: Bad Company 2 Stats Module |
|
Not sure. alot of those problems because the way its originally coded.
I have some ideas to improve the system greatly but will take a major rewrite of the way the system does things.
Unfortunately I'm not gonna spend that much time on it.
Right now every time pages are loaded its hitting an external site to load player stats. My ideas are to cache some of this in the database so its not fetched every time.
Also because of the way the system work now is there is problems with variables getting overflowed or undefined.
Most of this can be fixed by using a database instead of loading every bit of the data from the external api.
matuck's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/MySQL 4.0.25/php 4.3.11/CPG 9.0.6.1
|
|
| Back to top |
|
 |
Kinsman Dragonfly addicted


Offline Joined: May 29, 2006 Posts: 343 Location: Australia
|
Posted: Wed May 19, 2010 1:21 pm Post subject: Re: Bad Company 2 Stats Module |
|
True, I see one guy is pulling the data, then forming an XML with it.
For now it does work, and looks 100%, great job.
Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
|
|
| Back to top |
|
 |
Genocide Newbie


Offline Joined: Oct 17, 2009 Posts: 8 Location: UK
|
Posted: Wed May 19, 2010 1:29 pm Post subject: Re: Bad Company 2 Stats Module |
|
the problem i was experiencing with the player name links not working within the blocks is now fixed
just need to edit the blocks for it to work:
block-BFBC2_Stats_name.php
search line 77:
$content .= ' <td align="center"><img src="modules/'.$modname.'/images/Ranks/'.$stats[$out]['most_used'].'.png" alt="" style="vertical-align: middle;" /> <a href="modules.php?name='.$modname.'&mode=view_profile&pid='.$stats[$out]['name'].'">'.$playername.'</a></td>';
change to:
$content .= ' <td align="center"><img src="modules/'.$modname.'/images/Ranks/'.$stats[$out]['most_used'].'.png" alt="" style="vertical-align: middle;" /> <a href="index.php?name='.$modname.'&mode=view_profile&pid='.$stats[$out]['name'].'">'.$playername.'</a></td>';
block-BFBC2_Stats_full.php
search line 86
$content .= ' <td align="center"><img src="modules/'.$modname.'/images/Ranks/'.$stats[$out]['most_used'].'.png" alt="" style="vertical-align: middle;" /> <a href="modules.php?name='.$modname.'&mode=view_profile&pid='.$stats[$out]['name'].'">'.$playername.'</a></td>';
change to:
$content .= ' <td align="center"><img src="modules/'.$modname.'/images/Ranks/'.$stats[$out]['most_used'].'.png" alt="" style="vertical-align: middle;" /> <a href="index.php?name='.$modname.'&mode=view_profile&pid='.$stats[$out]['name'].'">'.$playername.'</a></td>';
Genocide's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Genocide Newbie


Offline Joined: Oct 17, 2009 Posts: 8 Location: UK
|
|
| Back to top |
|
 |
matuck Newbie


Offline Joined: Oct 19, 2005 Posts: 24 Location: dalton ga
|
Posted: Wed May 19, 2010 1:57 pm Post subject: Re: Bad Company 2 Stats Module |
|
think thats part of the variable overflow. i was talking about.
matuck's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/MySQL 4.0.25/php 4.3.11/CPG 9.0.6.1
|
|
| Back to top |
|
 |
Kinsman Dragonfly addicted


Offline Joined: May 29, 2006 Posts: 343 Location: Australia
|
Posted: Wed May 19, 2010 2:02 pm Post subject: Re: Bad Company 2 Stats Module |
|
heres the 2 blocks i fixed. all links now open the module on a new page.
Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
|
|
| Back to top |
|
 |
Genocide Newbie


Offline Joined: Oct 17, 2009 Posts: 8 Location: UK
|
Posted: Wed May 19, 2010 6:00 pm Post subject: Re: Bad Company 2 Stats Module |
|
not sure how but these new blocks have corrected the problems i got with the language file
i alter the code for myself so the links opened up within the same page rather than open a new one.
thanks
Genocide's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Kinsman Dragonfly addicted


Offline Joined: May 29, 2006 Posts: 343 Location: Australia
|
Posted: Thu May 20, 2010 4:26 am Post subject: Re: Bad Company 2 Stats Module |
|
No problem, I just manually wrote the titles, and fixed the links.
Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
|
|
| Back to top |
|
 |
Kinsman Dragonfly addicted


Offline Joined: May 29, 2006 Posts: 343 Location: Australia
|
Posted: Tue May 25, 2010 2:23 pm Post subject: Re: Bad Company 2 Stats Module |
|
We suddenly started getting a lot of this error, no idea what changed, but switching back to display by game alias gets rid of it for now.
| Code:: |
Fatal error: Call to undefined function displayerror() in /home/bik47463/public_html/junglewraiths.net/modules/BFBC2_Stats/index.php on line 208 |
Line in question says this.
| Code:: |
DisplayError(_TITLE_PNOTFOUND._GOBACK, true); |
Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
|
|
| Back to top |
|
 |
greenday2k Forum Admin


Offline Joined: Aug 11, 2005 Posts: 489 Location: CO
|
|
| Back to top |
|
 |
BobCat Nice poster


Offline Joined: Apr 03, 2008 Posts: 85 Location: Gold Coast, Australia
|
Posted: Thu Jun 03, 2010 1:49 pm Post subject: Re: Bad Company 2 Stats Module |
|
i would like to throw a big Thanks to those involved in getting this module going and working, great stuff.
Nice site Kinsman, great to see a AU gamers site using DragonflyCMS.
BobCat's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache2.2.16/MySQL5.0.91/PHP5.2.14/DF9.2.3.3
|
|
| Back to top |
|
 |
Kinsman Dragonfly addicted


Offline Joined: May 29, 2006 Posts: 343 Location: Australia
|
Posted: Thu Jun 03, 2010 9:32 pm Post subject: Re: Bad Company 2 Stats Module |
|
Thanks, it serves us well.
Kinsman's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0
|
|
| Back to top |
|
 |
|
|